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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #14B8A6;
    border-radius: 3px;
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.2);
    color: #0A1628;
}

/* Hero animations - visible from load, no JS required */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    animation: heroFade 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement, content visible without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active (via .js class on body) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.mobile-link {
    opacity: 1;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-anim {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
