/* Custom Styles for China Chef */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d4a84f;
}

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* Stagger Children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-content > * {
        animation: none;
    }
    
    img {
        transition: none;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9953c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #c9953c;
    color: #0a1628;
}

/* Image Loading */
img {
    background-color: #0f2140;
}

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

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

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Gold Accent Line */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c9953c, #d4a84f);
    border-radius: 2px;
}

/* Card Hover Glow */
.group:hover .group-hover\:shadow-gold-500\/10 {
    box-shadow: 0 20px 60px rgba(201, 149, 60, 0.1);
}

/* Pulse Animation for Badge */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 149, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 149, 60, 0);
    }
}

.animate-pulse {
    animation: pulse-gold 2s infinite;
}
