.clients {
    padding: 6rem 2rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.clients-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.clients-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    background-size: 40% 40%;
}

.clients-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.clients-header {
    text-align: center;
    margin-bottom: 3rem;
}

.clients-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.clients-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.clients-showcase {
    position: relative;
    margin: 4rem 0;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    animation: scrollShowcase 40s linear infinite;
    gap: 3rem;
    padding: 2rem 0;
}

.showcase-slide {
    flex: 0 0 auto;
    width: 200px;
}

.client-logo {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
        cursor: pointer;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: var(--transition);
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.client-logo:hover img {
    transform: scale(1.1);
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
    mix-blend-mode: overlay;
}

.client-logo:hover .logo-overlay {
    opacity: 0.3;
}

.clients-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--gold-gradient);
    transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
    transition: var(--transition);
}

.stat-card:hover .stat-icon i {
    color: var(--white);
}

.stat-content {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0;
}

.stat-card:hover .stat-glow {
    width: 200px;
    height: 200px;
    opacity: 1;
}

@keyframes scrollShowcase {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 3rem * 8));
    }
}

@media screen and (max-width: 968px) {
    .clients {
        padding: 4rem 1.5rem;
    }

    .showcase-slide {
        width: 160px;
    }

    .client-logo {
        height: 120px;
        padding: 2rem;
    }

    .clients-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .clients-stats {
        grid-template-columns: 1fr;
    }
    
    .showcase-slide {
        width: 140px;
    }
    
    .client-logo {
        height: 100px;
        padding: 1.5rem;
    }
}