/* Custom Styles for Lucky Bakery */

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

/* Base Typography adjustments */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F5EFE6;
}
::-webkit-scrollbar-thumb {
    background: #C05640;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a04330;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Scroll Reveal Classes (Progressive Enhancement) */
/* Default state: visible */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Enhanced state: hidden (only if JS adds the 'reveal-hidden' class) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar Glass Effect */
.nav-scrolled {
    background: rgba(44, 36, 32, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Image aspect ratio utilities fallback */
.aspect-square {
    aspect-ratio: 1 / 1;
}
