/* Custom styles for Babalu Cafe */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: #ff5a2e;
    color: #1a1a1a;
}

/* Hero animations - only for below-fold elements via JS */
.menu-card {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .menu-card,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    img {
        transition: none !important;
    }
}

/* Mobile menu animations */
#mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Testimonial transition */
#testimonial-text,
#testimonial-meta {
    transition: opacity 0.5s ease-in-out;
}

#testimonial-text.fading,
#testimonial-meta.fading {
    opacity: 0;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px #ff5a2e;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
}

/* Decorative line animation on hover */
.menu-card a {
    position: relative;
}

.menu-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff5a2e;
    transition: width 0.3s ease;
}

.menu-card a:hover::after {
    width: 100%;
}
