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

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

body {
    margin: 0;
    min-height: 100vh;
}

::selection {
    background: rgba(126, 218, 170, 0.3);
    color: #ffffff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040B16;
}
::-webkit-scrollbar-thumb {
    background: rgba(126, 218, 170, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 218, 170, 0.5);
}

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(32px);
}

/* ========== NAV SCROLL STATE ========== */
#site-header.scrolled {
    background: rgba(4, 11, 22, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ========== HERO IMAGE PARALLAX ========== */
#hero .absolute.inset-0 img {
    will-change: transform;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    .scroll-reveal[data-reveal-state="hidden"] {
        opacity: 1;
        transform: none;
    }
}
