/* Custom styles for Son & Sister Soul Food Diner */

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

/* Custom selection color */
::selection {
    background-color: #64FFDA;
    color: #0A192F;
}

/* Navbar transition */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.08);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Mobile menu animation */
#bar1 {
    transition: transform 0.3s ease;
}

#bar2 {
    transition: opacity 0.3s ease;
}

#bar3 {
    transition: transform 0.3s ease;
}

#mobileMenuBtn.active #bar1 {
    transform: translateY(6px) rotate(45deg);
}

#mobileMenuBtn.active #bar2 {
    opacity: 0;
}

#mobileMenuBtn.active #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

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

/* Mobile menu transition */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Respect reduced motion preferences */
@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;
    }
    
    .animate-bounce {
        animation: none;
    }
}
