/* 
 * ZYRANA Luxury Perfume Brand
 * Animations Stylesheet
 */

/* ===== Fade In Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variations */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ===== Gradient Animation ===== */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
}

/* ===== Gradient Circle Movement ===== */
@keyframes circleFloat {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.gradient-circle {
    animation: circleFloat 15s ease-in-out infinite;
}

.circle-1 {
    animation-delay: 0s;
}

.circle-2 {
    animation-delay: -5s;
}

.circle-3 {
    animation-delay: -10s;
}

/* ===== Hover Animations ===== */
/* Product card hover effect */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Button hover animation */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* ===== Testimonial Slider Animation ===== */
@keyframes testimonialSlide {
    0% {
        transform: translateX(0);
    }
    20%, 30% {
        transform: translateX(0);
    }
    50%, 60% {
        transform: translateX(-100%);
    }
    80%, 90% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

.testimonial-track {
    animation: testimonialSlide 30s infinite;
    width: 300%;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

/* ===== Scroll Animations ===== */
@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

.scroll-indicator {
    animation: bounceArrow 2s infinite;
}

/* ===== Section transition animations ===== */
.section-transition {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-transition.active {
    opacity: 1;
    transform: translateY(0);
}

.section-transition:not(.active) {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== Navigation highlight animation ===== */
@keyframes navHighlight {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.nav-links a.active::after {
    animation: navHighlight 0.5s forwards;
}
