/* Custom styles for Jugos la Flaca */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #081f31;
}
::-webkit-scrollbar-thumb {
    background: #1c527d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f5a623;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(4, 18, 28, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hero image parallax feel */
#hero {
    will-change: transform;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.geo-float-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

.geo-spin {
    animation: spin-slow 20s linear infinite;
}

/* Product card hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gallery hover zoom */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

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

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
}

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

/* Selection color */
::selection {
    background: #f5a623;
    color: #081f31;
}
