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

body {
    overflow-x: hidden;
}

/* Scroll reveal animations — progressive enhancement, only applied via JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* Hero elements animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-elem {
        opacity: 0;
        transform: translateY(20px);
        animation: heroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    .hero-elem:nth-child(1) { animation-delay: 0.2s; }
    .hero-elem:nth-child(2) { animation-delay: 0.4s; }
    .hero-elem:nth-child(3) { animation-delay: 0.6s; }
    .hero-elem:nth-child(4) { animation-delay: 0.8s; }

    @keyframes heroReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-scrolled .nav-logo {
    color: #0A1628;
}

.nav-scrolled a:not(.px-6):not(.px-10):not(.px-12) {
    color: #0A1628 !important;
}

/* Input focus styles */
input:focus, textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #0A1628;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34D4B5;
}
