/* Custom styles and overrides */

:root {
    --scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Nav scroll state */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 30, 40, 0.08);
}

nav.scrolled .nav-text {
    color: #1E1E28;
}

nav.scrolled .nav-link {
    color: #4A4A5A;
}

nav.scrolled .nav-link:hover {
    color: #F05A28;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations — progressive enhancement, hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F05A28;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
    background: #D1D1D9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A8A8B8;
}
