/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scroll Reveal — progressive enhancement, only active when JS runs */
.reveal-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hero animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-subtitle {
        transform: translateY(100%);
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    }

    .hero-title {
        transform: translateY(100%);
        animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
    }

    .hero-desc {
        opacity: 0;
        animation: fadeIn 0.8s ease 0.7s forwards;
    }

    .hero-cta {
        opacity: 0;
        animation: fadeIn 0.8s ease 0.9s forwards;
    }

    .hero-stats {
        opacity: 0;
        animation: fadeIn 0.8s ease 1.1s forwards;
    }
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Navbar */
#nav.scrolled {
    background: rgba(6, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

#nav.scrolled .nav-link {
    color: rgba(255,255,255,0.9);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line.open-1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-line.open-2 {
    transform: rotate(-45deg) translate(3px, -3px);
}

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

::-webkit-scrollbar-track {
    background: #060D1A;
}

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

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

/* Selection */
::selection {
    background: rgba(45, 179, 130, 0.3);
    color: #fff;
}
