/* ===================================
   International Progreso Market
   Custom Styles
   =================================== */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Product card hover */
.product-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* Visit card hover */
.visit-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
}

/* About image hover */
.about-images img {
    transition: transform 0.5s ease;
}

.about-images:hover img {
    transform: scale(1.02);
}

/* Nav scroll state */
.nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animation delays */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Intersection Observer hidden state */
.observe-me {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-me.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content > div:first-child {
        justify-content: center;
    }
    
    .hero-content > a,
    .hero-content > a + a {
        width: 100%;
        justify-content: center;
    }
    
    .about-images {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .visit-card {
        text-align: center;
    }
    
    .visit-card .flex.items-center {
        flex-direction: column;
        align-items: center;
    }
}
