/* Custom styles for Dainty Wok */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6F61;
}

/* Selection color */
::selection {
    background: rgba(255, 111, 97, 0.3);
    color: #fff;
}

/* Base transitions */
a, button {
    transition: all 0.3s ease;
}

/* Nav active state */
.nav-link.active {
    color: #FF6F61;
}

/* Menu tab active */
.menu-tab.active {
    background: #FF6F61;
    color: #0a0a0a;
    border-color: #FF6F61;
}

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

/* Reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .menu-item, .rounded-2xl img, .rounded-xl img {
        transition: none;
    }
    img:hover {
        transform: none;
    }
}

/* Only apply hidden state for scroll reveal when JS is available and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(46, 46, 46, 0.5);
}

/* Glow effects */
.glow-coral {
    box-shadow: 0 0 40px rgba(255, 111, 97, 0.15);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M20 0v40M0 20h40' stroke='rgba(255,255,255,0.015)' stroke-width='1'/%3E%3C/svg%3E");
}
