/* Custom styles for Famous Wok */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal base - visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal hidden state - only applied when JS adds the class */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal initial state - only applied via JS for animated entrance */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animating {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal.animating {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .group:hover img {
        transform: none;
        transition: none;
    }
}

/* Navbar styles */
#navbar.scrolled {
    background: rgba(27, 67, 50, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4a843;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

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

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

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

::-webkit-scrollbar-track {
    background: #f5f0e8;
}

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

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

/* Selection color */
::selection {
    background: #d4a843;
    color: #1B4332;
}
</style>
