/* Animations */
@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
    100% {
        transform: translate(20px, -20px) rotate(-5deg);
    }
}

@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeCardIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.pagination-dot.active {
    animation: pulse 2s infinite;
}

/* 3D effect for active card */
.testimonial-card.active .testimonial-inner {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-image 0.3s ease;
    will-change: transform;
}

/* Shimmer effect on author name */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.testimonial-card.active .author-info h4 {
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--primary-light) 50%,
        var(--primary-color) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    animation-delay: 0.5s;
}

/* Floating author image */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.testimonial-card.active .author-image {
    animation: float 3s ease-in-out infinite;
}

/* Spotlight effect */
@keyframes spotlight {
    0% {
        background-position: -100% 0;
    }
    40%, 100% {
        background-position: 200% 0;
    }
}

.testimonial-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: -100% 0;
    animation: spotlight 5s ease-in-out infinite;
    pointer-events: none;
}

/* Section reveal animation */
.testimonials-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.testimonials-section.revealed {
    opacity: 1;
    transform: translateY(0);
}
