/* Custom styles for New JW Golden Bakery */

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

/* Float animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(244, 241, 235, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(61, 64, 91, 0.08) !important;
}

.nav-scrolled .font-serif {
    color: #3D405B !important;
}

.nav-scrolled a:not(.bg-coral) {
    color: #3D405B !important;
}

.nav-scrolled a:not(.bg-coral):hover {
    color: #E07A5F !important;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* Image hover effects */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

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

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

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

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

/* Selection color */
::selection {
    background: #E07A5F;
    color: white;
}
