/* Custom styles for La Huacana Mexican Restaurant */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #2d1117;
    color: #f5e9ed;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Scroll-triggered animations */
.feature-card.animate,
.menu-category.animate,
.gallery-item.animate,
.about-image.animate,
.about-content.animate,
.visit-info.animate,
.visit-form.animate {
    animation: fadeUp 0.8s ease-out forwards;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(45, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 204, 0, 0.1);
}

/* Mobile menu */
#mobile-menu {
    pointer-events: none;
}

#mobile-menu.open {
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu items */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 61, 80, 0.3);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item:hover h4 {
    color: #ffcc00;
    transition: color 0.3s ease;
}

/* Gallery */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item.animate {
    animation: scaleIn 0.6s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form */
input:focus,
select:focus,
textarea:focus {
    border-color: #e6a800 !important;
    box-shadow: 0 0 0 3px rgba(230, 168, 0, 0.15);
}

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

::-webkit-scrollbar-track {
    background: #2d1117;
}

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

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

/* Selection */
::selection {
    background: rgba(230, 168, 0, 0.3);
    color: #faf5f7;
}

/* Mobile menu button animation */
#menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
