/* Custom styles for El Jarocho */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fffdf7;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Hero decorative shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.hero-dot {
    animation: float 6s ease-in-out infinite;
}

.hero-dot:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.hero-dot:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5s;
}

/* Subtle pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-image: radial-gradient(circle, #059669 1px, transparent 1px);
    background-size: 24px 24px;
}

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

#mobileMenu.open {
    max-height: 400px;
}

/* Menu card hover effect */
.bg-cream-50:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@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;
    }
}

/* Print styles */
@media print {
    header, #contactForm, button {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
