/* ============================================
   Client Reviews - Infinite Scroll Marquee
   GPU Optimized - Only transform animation
   ============================================ */

/* Section Container */
.client-reviews {
    padding: 80px 0 60px;
    background: #faf9f7;
    overflow: hidden;
}

/* Section Header */
.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.reviews-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Marquee Container */
.reviews-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Marquee Track - GPU optimized with translate3d */
.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    animation: marqueeScroll 40s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Pause on hover */
.reviews-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Review Card */
.review-card {
    flex-shrink: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #f0ece8;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-card:hover {
    transform: translateY(-4px);
}

/* Card Top Row - Avatar + Meta + Flag */
.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Circular Avatar */
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f3f4f6;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Client Meta */
.review-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.author-role {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Country Flag */
.country-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Review Text */
.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}

/* Star Rating */
.review-stars {
    font-size: 0.9rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

/* Reviews Footer with CTA */
.reviews-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding: 32px 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0ece8;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-headline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.footer-subtext {
    font-size: 0.9rem;
    color: #64748b;
}

.reviews-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviews-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 640px) {
    .reviews-footer {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .reviews-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* Mobile - Slower animation */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 30s;
    }

    .review-card {
        width: 280px;
    }
}