/* Chifa La China — Custom Styles */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(46, 46, 46, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
    margin-right: 0;
}

/* Menu card hover glow */
.menu-card-glow:hover {
    box-shadow: 0 0 40px rgba(224, 122, 95, 0.08);
}

/* Gold accent underline animation */
.gold-underline {
    position: relative;
    display: inline-block;
}
.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A853, #E07A5F);
    transition: width 0.4s ease;
}
.gold-underline:hover::after {
    width: 100%;
}

/* Floating animation for stat cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 2deg)); }
    50% { transform: translateY(-8px) rotate(var(--rotate, 2deg)); }
}

.float-1 { animation: float 6s ease-in-out infinite; --rotate: 2deg; }
.float-2 { animation: float 7s ease-in-out infinite 1s; --rotate: -1deg; }
.float-3 { animation: float 5s ease-in-out infinite 0.5s; --rotate: 1deg; }
.float-4 { animation: float 6.5s ease-in-out infinite 2s; --rotate: -2deg; }

/* Subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Progressive enhancement: reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
}
