/* ========================================
   TESTIMONIALS SECTION
   Elegant testimonial carousel with circular progress
   ======================================== */

/* Section Container */
.testimonials-section {
    position: relative;
    background: var(--bg-dark);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

/* Content Container */
.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Section Header */
.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
}

.testimonials-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--text-white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: var(--text-gray);
    font-weight: var(--font-regular);
}

/* Testimonial Content Area */
.testimonial-content-wrapper {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonial-content {
    text-align: center;
    padding: var(--space-2xl);
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    width: 100%;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

/* Quotation Mark */
.testimonial-quote {
    font-size: clamp(3rem, 5vw, 4rem);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

/* Testimonial Text */
.testimonial-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: var(--text-light);
    font-weight: var(--font-regular);
    font-style: italic;
    margin-bottom: var(--space-xl);
}

/* Client Info */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.testimonial-name {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: var(--font-semibold);
    color: var(--text-white);
}

.testimonial-role {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    color: var(--text-gray);
    font-weight: var(--font-regular);
}

/* Avatar Navigation */
.testimonial-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

/* Avatar Item */
.avatar-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-item:hover {
    transform: translateY(-8px);
}

/* Avatar Circle Container */
.avatar-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

/* Avatar Image */
.avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.avatar-item.active .avatar-image {
    border-color: transparent;
}

/* SVG Progress Circle */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Only show progress ring on active avatar */
.avatar-item.active .progress-ring {
    opacity: 1;
}

.progress-ring-circle {
    stroke: rgba(255, 255, 255, 0.15);
    fill: transparent;
    stroke-width: 8;
}

.progress-ring-circle-active {
    stroke: var(--primary-color);
    fill: transparent;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
}

/* Navigation Arrows - Hidden */
.testimonial-navigation {
    display: none;
}

/* Animation Classes */
.testimonials-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: var(--space-2xl) 0;
    }
    
    .testimonial-content-wrapper {
        min-height: 400px;
    }
    
    .testimonial-content {
        padding: var(--space-lg);
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-avatars {
        gap: var(--space-md);
    }
    
    .avatar-circle,
    .avatar-image,
    .progress-ring {
        width: 80px;
        height: 80px;
    }
    
    .progress-ring-circle,
    .progress-ring-circle-active {
        stroke-dasharray: 226;
        stroke-dashoffset: 226;
        stroke-width: 7;
    }
}

@media (max-width: 480px) {
    .testimonial-avatars {
        gap: var(--space-sm);
    }
    
    .avatar-circle,
    .avatar-image,
    .progress-ring {
        width: 60px;
        height: 60px;
    }
    
    .progress-ring-circle,
    .progress-ring-circle-active {
        stroke-dasharray: 170;
        stroke-dashoffset: 170;
        stroke-width: 6;
    }
    
    .avatar-image {
        border-width: 3px;
    }
}