/* Testimonials Section Styles */

/* Testimonials Section Container */
.testimonials-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 30px 0 60px 0;
    text-align: center;
    overflow: hidden;
}

/* Section Title with reveal animation (matches tutorial section) */
.testimonials-title-wrapper {
    text-align: center;
    margin: 0 0 50px 0;
    padding: 0 20px;
    overflow: hidden;
}

.testimonials-title {
    font-family: inherit;
    font-size: 5vw;
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: transform 0.8s ease-out, opacity 0.6s ease;
    -ms-transition: transform 0.8s ease-out, opacity 0.6s ease;
    transition: transform 0.8s ease-out, opacity 0.6s ease;
}

.testimonials-title .mobile-br {
    display: none;
}

.testimonials-title-wrapper.visible .testimonials-title {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.testimonials-subtitle {
    font-family: inherit;
    font-size: 4vw;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    color: #666;
    margin: 12px 0 0 0;
    padding: 0;
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
    -ms-transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
    transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
}

.testimonials-title-wrapper.visible .testimonials-subtitle {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

/* Highlight text gradient */
.highlight-text {
    background: linear-gradient(45deg, #E1306C, #C13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Testimonials Rows Container */
.testimonials-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Testimonial Row - Horizontal Scrolling */
.testimonial-row {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

/* Testimonial Card */
.testimonial-card {
    flex-shrink: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    font-style: italic;
    min-height: 60px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.author-handle {
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 968px) {
    .testimonials-section {
        padding: 20px 0 40px 0;
    }

    .testimonials-title-wrapper {
        margin: 0 0 40px 0;
    }

    .testimonials-title {
        font-size: 1.75rem;
    }

    .testimonials-title .mobile-br {
        display: inline;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }

    .testimonials-rows {
        gap: 16px;
    }

    .testimonial-row {
        gap: 16px;
    }

    .testimonial-card {
        width: 280px;
        padding: 20px;
    }

    .testimonial-text {
        font-size: 13px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 15px 0 30px 0;
    }

    .testimonials-title {
        font-size: 1.5rem;
    }

    .testimonials-subtitle {
        font-size: 0.95rem;
    }

    .testimonial-card {
        width: 260px;
        padding: 16px;
    }

    .testimonial-text {
        font-size: 12px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-handle {
        font-size: 11px;
    }
}
