/* ===========================
   Clients Section — Modern Redesign
   Infinite Marquee + Glassmorphism
   =========================== */

/* ---- Section Base ---- */
.clients-section-v2 {
    background: var(--dark-bg);
    padding: 80px 0 60px;
    overflow: hidden;
    position: relative;
}

/* ---- Header ---- */
.clients-header {
    text-align: center;
    margin-bottom: 50px;
}

.clients-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.18);
    color: #FFB800;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.clients-badge i {
    font-size: 0.75rem;
}

.clients-title-v2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
}

.clients-subtitle-v2 {
    font-size: 1.05rem;
    color: #777;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Marquee Container ---- */
.marquee-wrapper {
    position: relative;
    margin-bottom: 60px;
}

/* Fade edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-bg), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-bg), transparent);
}

/* Marquee Track */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-track-reverse {
    animation: marquee-scroll-reverse 40s linear infinite;
}

.marquee-row {
    overflow: hidden;
    padding: 10px 0;
}

.marquee-row+.marquee-row {
    margin-top: 10px;
}

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

/* ---- Client Card (Glassmorphism) ---- */
.client-card-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    min-width: 180px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    flex-shrink: 0;
}

.client-card-v2:hover {
    background: rgba(255, 184, 0, 0.08);
    border-color: rgba(255, 184, 0, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 184, 0, 0.1);
}

.client-card-v2 span {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.client-card-v2:hover span {
    color: #FFB800;
}

/* ---- Counter Stats ---- */
.clients-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 30px 0;
    margin: 0 auto 50px;
    max-width: 700px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.clients-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

.clients-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #FFB800;
    line-height: 1;
    margin-bottom: 6px;
}

.clients-stat-label {
    font-size: 0.78rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.clients-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Testimonials Header ---- */
.testimonials-header-v2 {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials-header-v2 h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

/* ---- CTA ---- */
.clients-cta-v2 {
    text-align: center;
    margin-top: 40px;
}

.clients-cta-v2 .btn {
    padding: 16px 36px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ---- Keyframes ---- */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .clients-section-v2 {
        padding: 60px 0 40px;
    }

    .clients-title-v2 {
        font-size: 2rem;
    }

    .clients-subtitle-v2 {
        font-size: 0.95rem;
    }

    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 40px;
    }

    .client-card-v2 {
        padding: 12px 20px;
        min-width: 150px;
        height: 50px;
    }

    .client-card-v2 span {
        font-size: 0.8rem;
    }

    .clients-stats-row {
        flex-direction: column;
        gap: 18px;
    }

    .clients-stat {
        padding: 0;
    }

    .clients-stat-divider {
        width: 40px;
        height: 1px;
    }

    .marquee-track {
        animation-duration: 20s;
    }

    .marquee-track-reverse {
        animation-duration: 25s;
    }
}

@media (max-width: 480px) {
    .clients-title-v2 {
        font-size: 1.6rem;
    }

    .client-card-v2 {
        padding: 10px 16px;
        min-width: 130px;
        height: 44px;
    }

    .client-card-v2 span {
        font-size: 0.75rem;
    }
}