/* Testimonials Section */
.testimonials-section {
    position: relative;
    padding: 100px 0;
    background: var(--lighter-bg);
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-section .section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.testimonials-section .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.testimonials-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Marquee Container */
.testimonials-marquee-container {
    position: relative;
    margin-top: 4rem;
    width: 100%;
    overflow: hidden;
}

.testimonials-marquee-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

/* Marquee Row */
.testimonials-marquee {
    display: flex;
    gap: 1.5rem;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.testimonials-marquee:hover {
    animation-play-state: paused;
}

.testimonials-marquee.reverse {
    animation-direction: reverse;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Review Card */
.review-card {
    position: relative;
    width: 20rem;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.review-card:hover {
    background: var(--light-bg);
    box-shadow: 0 12px 40px var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--glass-border);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    flex: 1;
    min-width: 0;
}

.review-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Montserrat', sans-serif;
}

.review-username {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-medium);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gradient Overlays */
.testimonials-gradient-left,
.testimonials-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    pointer-events: none;
    z-index: 10;
}

.testimonials-gradient-left {
    left: 0;
    background: linear-gradient(to right, var(--lighter-bg), transparent);
}

.testimonials-gradient-right {
    right: 0;
    background: linear-gradient(to left, var(--lighter-bg), transparent);
}

/* Decorative Blurs */
.testimonials-blur-1,
.testimonials-blur-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    display: none;
}

.testimonials-blur-1 {
    top: 20%;
    left: 10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.testimonials-blur-2 {
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
}

/* Responsive */
@media (min-width: 768px) {
    .testimonials-section .section-title {
        font-size: 3rem;
    }
    
    .testimonials-gradient-left,
    .testimonials-gradient-right {
        width: 20%;
    }
}

@media (min-width: 1024px) {
    .testimonials-section {
        padding: 120px 0;
    }
    
    .testimonials-section .section-title {
        font-size: 3.5rem;
    }
    
    .testimonials-blur-1,
    .testimonials-blur-2 {
        display: block;
    }
    
    .testimonials-gradient-left,
    .testimonials-gradient-right {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-section .section-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .testimonials-section .section-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 1rem;
    }
    
    .review-card {
        width: 16rem;
        padding: 1.25rem;
    }
    
    .testimonials-marquee {
        gap: 1rem;
    }
    
    .testimonials-marquee-wrapper {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-section .section-title {
        font-size: 1.75rem;
    }
    
    .review-card {
        width: 14rem;
    }
}
