.testimonials-section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    overflow: hidden;
}

.testimonials-label {
    text-align: center;
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.testimonials-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee-forward {
    animation: marqueeLeft 40s linear infinite;
}

.marquee-reverse {
    animation: marqueeRight 45s linear infinite;
}

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.testimonial-card {
    flex-shrink: 0;
    width: 300px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, background 0.3s ease, width 0.3s ease;
    margin-right: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card.card-wide {
    width: 850px;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.tc-stars {
    color: var(--primary);
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.testimonial-card p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 400;
}

.tc-author {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 280px;
        padding: 20px;
    }
    .testimonial-card.card-wide {
        width: 90vw;
    }
}
