/* ============================================
   DUST CLEANING ANIMATION
   Visual effect for testimonials scrolling
   ============================================ */

/* ===== DUST PARTICLE ANIMATIONS ===== */
@keyframes dust-float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(15px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes dust-clean {
    0% {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8) translateY(-30px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-60px) rotate(360deg);
    }
}

@keyframes brush-sweep {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(-10deg);
    }
    25% {
        transform: translateX(-40%) translateY(-50%) rotate(5deg);
    }
    50% {
        transform: translateX(-30%) translateY(-50%) rotate(-5deg);
    }
    75% {
        transform: translateX(-20%) translateY(-50%) rotate(10deg);
    }
    100% {
        transform: translateX(50%) translateY(-50%) rotate(0deg);
    }
}

@keyframes brush-move {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes sparkle-clean {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* ===== CLEANING EFFECT CLASSES ===== */
.dust-particle.cleaning {
    animation: dust-clean 1s ease-out forwards;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-clean 0.8s ease-out forwards;
}

/* ===== SMOOTH SCROLLING ===== */
.testimonials__slider {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--spacing-lg);
}

.testimonial-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* ===== ENHANCED CARD TRANSITIONS ===== */
.testimonial-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1.02);
}

.testimonial-card.cleaning {
    animation: card-clean 0.8s ease-out;
}

@keyframes card-clean {
    0% {
        filter: brightness(0.9);
    }
    50% {
        filter: brightness(1.1);
        box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    }
    100% {
        filter: brightness(1);
    }
}

/* ===== RESPONSIVE DUST EFFECTS ===== */
@media (max-width: 768px) {
    .dust-particle {
        width: 3px;
        height: 3px;
    }
    
    .cleaning-brush {
        width: 60px;
        height: 60px;
    }
    
    .sparkle {
        width: 6px;
        height: 6px;
    }
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
.dust-overlay,
.dust-particles,
.cleaning-brush {
    will-change: transform, opacity;
}

.dust-particle {
    will-change: transform, opacity;
}

