/* Custom styles for Tacos Los Compas */

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

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

::-webkit-scrollbar-track {
    background: #0a0a08;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3f3a30;
}

/* Selection color */
::selection {
    background: rgba(217, 179, 106, 0.3);
    color: #fdfbf7;
}

/* Hero decorative animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Fade in animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu transitions */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Button hover glow effect */
.bg-gradient-to-r.from-terracotta-600.to-terracotta-500 {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-terracotta-600.to-terracotta-500::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bg-gradient-to-r.from-terracotta-600.to-terracotta-500:hover::after {
    transform: translateX(100%);
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preference */
@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;
    }
    
    .rounded-2xl.overflow-hidden img {
        transition: none;
    }
}

/* Navbar glass effect when scrolled */
nav.scrolled {
    background: rgba(10, 10, 8, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 179, 106, 0.1);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Menu item hover */
.bg-dark-800\/40:hover {
    background: rgba(26, 24, 20, 0.6);
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(217, 179, 106, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}
