/* Custom Styles for El Molino Supermarket */

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-text {
    animation: fadeInUp 1s ease forwards;
}

.hero-delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Image hover effect */
img {
    transition: transform 0.7s ease;
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #FF6B4A;
    color: white;
}

/* Button focus styles */
button:focus,
a:focus {
    outline: 2px solid #FF6B4A;
    outline-offset: 2px;
}

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