/* Custom styles for La Michoacana Clasica */

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

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

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

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

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

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

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

/* Animation for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}

/* Subtle pulse for the hero badge dot */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Card hover glow effect */
.group:hover {
    box-shadow: 0 0 40px rgba(0, 230, 165, 0.08);
}

/* Image loading placeholder */
img {
    background-color: #182846;
}
