/* Custom styles for Antojitos Oaxaqueños */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a050d;
}
::-webkit-scrollbar-thumb {
    background: #831443;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* Navigation transition */
#navbar.scrolled {
    background: rgba(10, 5, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(131, 20, 67, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Menu card hover */
.menu-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(131, 20, 67, 0.2), 0 0 40px rgba(245, 158, 11, 0.1);
}

/* Special card hover */
.special-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.special-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(131, 20, 67, 0.2);
}

/* Gold shimmer effect on hover */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Fade in animation for scroll sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

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

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fce7f3;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .menu-card:hover, .special-card:hover {
        transform: none;
    }
}
