/* ========================================
   TESTIMONIALS SECTION - TAI CHI FLOW
   ======================================== */

@keyframes breathe {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.02) translateY(-4px); }
}

@keyframes ripple {
    0% { 
        transform: scale(0.8);
        opacity: 0;
    }
    50% { 
        opacity: 0.3;
    }
    100% { 
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-8px) rotate(-1deg); }
}

.testimonials {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(242, 201, 105, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(86, 98, 49, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(242, 201, 105, 0.02) 100%);
    padding: clamp(4rem, 15vw, 8rem) 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 201, 105, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(86, 98, 49, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 25s ease-in-out infinite reverse;
}

.testimonials__carousel {
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.testimonials__track {
    display: flex;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ========================================
   TESTIMONIALS - Glass Card Style
   ======================================== */

.testimonial-card {
    min-width: 100%;
    /* Increased padding for a spacious frame */
    padding: clamp(2.5rem, 6vw, 4.5rem); 
    text-align: center;
    position: relative;

    /* GLASS CARD EFFECT */
    background: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    backdrop-filter: blur(12px); /* Blurs the background behind it */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6); /* Subtle highlight border */
    border-radius: var(--radius-xl); /* Soft corners */

    /* ELEVATION / SHADOW */
    box-shadow: 
        0 10px 30px -10px rgba(86, 98, 49, 0.1), /* Soft olive glow */
        0 4px 12px rgba(0, 0, 0, 0.03); /* Crisp grounding shadow */

    /* Initial State for Animation */
    opacity: 0;
    transform: scale(0.96) translateY(16px);
    transition: 
        opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.5s ease;
}

/* Active State */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    
    /* Lift effect when active */
    box-shadow: 
        0 20px 40px -12px rgba(86, 98, 49, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.04);
        
    /* Subtle floating motion */
    animation: cardFloat 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Refined Quote Mark */
.testimonial-card::before {
    content: '“';
    position: absolute;
    /* Positioned to overlap the top border slightly */
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 7rem;
    font-family: Georgia, serif;
    line-height: 1;
    
    /* Gradient color for premium feel */
    background: linear-gradient(180deg, rgba(242, 201, 105, 0.5), rgba(242, 201, 105, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    pointer-events: none;
}

.testimonial-card__quote {
    position: relative;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.testimonial-card__quote p {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* Slightly larger for readability */
    line-height: 1.8;
    color: var(--color-text-primary);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    /* Text shadow to pop against glass background */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.testimonial-card__author {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-olive);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-top: var(--spacing-sm);
}

/* Author Divider Line */
.testimonial-card__author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-brand-yellow) 50%, /* Pop of brand yellow */
        transparent 100%);
    opacity: 0.8;
}


.testimonials__controls {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 5vw, 3rem);
    position: relative;
    z-index: 2;
}

.testimonials__dots {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.testimonials__dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(86, 98, 49, 0.25);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(86, 98, 49, 0.1);
}

.testimonials__dots .dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary-olive);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.testimonials__dots .dot.active {
    background: var(--color-primary-olive);
    width: 40px;
    height: 8px;
    border-radius: 50px;
    box-shadow: 
        0 2px 12px rgba(86, 98, 49, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: ripple 8s ease-out infinite;
}

.testimonials__dots .dot.active::before {
    opacity: 1;
    animation: ripple 8s ease-out infinite;
}

.testimonials__dots .dot:hover:not(.active) {
    background: rgba(86, 98, 49, 0.45);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(86, 98, 49, 0.2);
}

/* Smooth entrance animation for section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonials.in-view {
    animation: fadeInUp 1s ease-out forwards;
}