/**
 * Stacking Testimonials with Scroll Animation
 * Cards stack and transform on scroll
 */

.testimonials-scroll-container {
    position: relative;
    min-height: 300vh;
    width: 100%;
    perspective: 1000px;
}

.testimonials-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.testimonials-cards-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    perspective: 1000px;
}

.testimonial-card-stacked {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 2px solid #FF6B3D;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backface-visibility: hidden;
    will-change: transform, filter;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Stars container */
.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FFB800;
}

.testimonial-stars svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Quote text */
.testimonial-quote {
    flex: 1;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-quote blockquote {
    margin: 0;
    font-style: italic;
}

/* Author section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B3D, #FF8C42);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 61, 0.2);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.testimonial-service {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .testimonials-cards-container {
        max-width: 340px;
        height: 480px;
    }

    .testimonial-card-stacked {
        padding: 1.75rem 1.25rem;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .testimonial-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }

    .testimonial-name {
        font-size: 1rem;
    }

    .testimonial-service {
        font-size: 0.8125rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .testimonials-cards-container {
        max-width: 380px;
        height: 490px;
    }
}
