
/* Basic Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #000; color: white; }
.scroll-container { height: 400vh; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.212);
    padding: 15px 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 700; color: #f2f3f6; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: white; text-decoration: none; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { font-size: 1.2rem; }

/* ===== NAVIGATION - CORRECT MOBILE MENU ===== */

/* Desktop Navigation (default) */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Desktop menu - visible by default */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== HAMBURGER BUTTON ===== */
/* Hidden by default on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger active state */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ===== MOBILE STYLES (Hamburger appears here) ===== */
@media screen and (max-width: 768px) {
    /* Show hamburger button on mobile */
    .nav-toggle {
        display: block;
    }
    
    /* Hide desktop menu on mobile */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* Mobile menu when active */
    .nav-links.active {
        transform: translateX(0);
    }
    
    /* Mobile menu items */
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .nav-link {
        display: block;
        padding: 18px 30px;
        font-size: 1.1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        margin: 8px 0;
    }
    
    .nav-link:hover {
        background: rgba(var(--primary-rgb), 0.2);
    }
    
    /* Social icons in mobile menu */
    .social-icons {
        margin-top: 40px;
        justify-content: center;
        gap: 25px;
    }
    
    .social-icon {
        font-size: 1.4rem;
    }
    
    /* Hide social icons from top bar on mobile */
    .nav-container .social-icons {
        display: none;
    }
}

/* Video Canvas */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}
#video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#video-canvas {
    background-color: #000;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(31, 28, 54, 0.895), rgba(0, 0, 0, 0));
}

/* Floating Elements */
.floating-elements { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 10; pointer-events: none; }
.floating-text {
    position: absolute;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: float 3s infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Content Sections */
.content { position: relative; z-index: 20; }
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
}
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(28, 28, 28, 0.224);
    backdrop-filter: blur(0px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0);
}
h2 { font-size: 4rem; margin-bottom: 20px; color: #f5f5f8; }
.subtitle { font-size: 1.2rem; color: #fbfefe; margin-bottom: 20px; }
.content { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.feature {
    text-align: center;
    padding: 30px;
    background: rgba(18, 17, 17, 0.169);
    border-radius: 15px;
}
.feature-icon { font-size: 3rem; margin-bottom: 15px; }

/* Buttons */
.button-group { display: flex; gap: 15px; margin-top: 30px; }
.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}
.btn-primary { background: #667eea; color: white; }
.btn-secondary { background: transparent; border: 2px solid #667eea; color: #667eea; }

/* Controls */
.control-panel {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 100;
}
.control-panel button {
    padding: 10px 20px;
    margin: 5px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.frame-counter { margin-top: 10px; font-size: 0.9rem; }

/* Progress Bar */
.scroll-progress {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 10px;
    z-index: 100;
}
.progress-bar { height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); width: 0%; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .control-panel { left: 10px; right: 10px; }
    .scroll-progress { width: 90%; }
}
