/* Custom styles for Lovebirds Coffee and Bakeshop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf4f6;
}
::-webkit-scrollbar-thumb {
    background: #b52d52;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #942745;
}

/* Hero image parallax effect */
#hero img {
    will-change: transform;
}

/* Card hover effects */
.bg-gradient-to-br:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Navbar scroll effect */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(181, 45, 82, 0.1);
}

/* Gallery image hover */
.group:hover .group-hover\:scale-105,
.group:hover .group-hover\:scale-110 {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading animation for images */
img {
    background: linear-gradient(90deg, #fce8ec 25%, #f9d0d9 50%, #fce8ec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Section reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    nav, .no-print {
        display: none;
    }
    body {
        background: white;
    }
}
