/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #06101e;
}

/* Scroll reveal — progressive enhancement, works without JS */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nav scroll state */
nav.scrolled {
    background-color: rgba(6, 16, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

/* Stat card float animation */
@media (prefers-reduced-motion: no-preference) {
    .stat-card {
        animation: float 4s ease-in-out infinite;
    }

    .stat-card:nth-child(2) {
        animation-delay: -1.3s;
    }

    .stat-card:nth-child(3) {
        animation-delay: -2.6s;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
}

/* Menu card hover glow */
.menu-card:hover {
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.08);
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1c32;
}

::-webkit-scrollbar-thumb {
    background: #1e4470;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d5a8e;
}
