/* Testimonials Infinite Scroll */
.testimonials {
    background: var(--light-gray);
    padding: 60px 0;
    overflow: hidden;
}

.testimonials-wrapper {
    overflow: hidden;
    margin-top: 40px;
    position: relative;
}

.testimonials-wrapper::before,
.testimonials-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--light-gray), transparent);
}

.testimonials-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--light-gray), transparent);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    animation: scrollTestimonials 60s linear infinite;
    width: fit-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 80px;
    color: rgba(0, 212, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-neon), var(--shadow-lg);
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 24px;
    font-style: italic;
    min-height: 120px;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-cyber);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    color: var(--dark);
}

.author-role {
    font-size: 14px;
    color: var(--gray);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        min-width: 320px;
        max-width: 320px;
        padding: 24px;
    }
    
    .testimonial-text {
        font-size: 15px;
        min-height: 100px;
    }
    
    .testimonials-track {
        animation-duration: 90s;
    }
}
