/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #020610;
    color: white;
    overflow-x: hidden;
}

::selection {
    background: #00E5A0;
    color: #040B18;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(2, 6, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-bar {
    background: white;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00E5A0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== HAMBURGER ===== */
#menu-toggle.open .nav-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.open .nav-bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open .nav-bar:nth-child(3) {
    width: 6px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 0;
    transform: translateY(40px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.reveal-grid > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-grid.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.3s; }

/* ===== MENU TABS ===== */
.menu-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #00E5A0;
    color: #040B18;
}

.menu-tab:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== PARALLAX SHAPES ===== */
.geo-shape {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020610;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 160, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 160, 0.5);
}

/* ===== FORM ===== */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    width: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: #00E5A0;
    background: rgba(0, 229, 160, 0.05);
}

.form-input.error {
    border-color: #ff6b6b;
}

.form-success {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero .order-1 {
        order: 2;
        height: 350px;
    }
    
    #hero .order-2 {
        order: 1;
    }
    
    .geo-shape {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .max-w-7xl {
        px-4;
    }
}
