/* Custom styles for Pastelería Hana */

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

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

::-webkit-scrollbar-track {
    background: #F5F0E6;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9C4230;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(44, 36, 32, 0.1);
}

/* Hero parallax-like effect */
.hero-section {
    background-attachment: fixed;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

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

/* Pulse animation for CTA buttons */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(192, 86, 64, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(192, 86, 64, 0);
    }
}

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

/* Image hover zoom container */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.5s ease;
}

.img-zoom-container: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;
    }
    
    .animate-bounce {
        animation: none;
    }
}
