/* ==========================================================================
   Clients Section - Carousel Style
   ========================================================================== */

.clients {
    padding: 100px 0 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.clients .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
}

.clients .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 0 20px;
}

.clients .section-title {
    font-size: 2.75rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.clients .section-title .text-gradient {
    background: linear-gradient(90deg, #0ea5e9, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.clients .section-description {
    color: #475569;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    padding: 0 20px;
}

/* Carousel Styles */
.clients-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 40px 0 60px;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    will-change: transform;
    width: max-content;
    gap: 30px;
    padding: 20px 0;
}

.client-item {
    flex: 0 0 auto;
    width: 220px;
    height: 120px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.2);
}

.client-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(0.6);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    filter: grayscale(0) contrast(1);
    opacity: 1;
    transform: scale(1.05);
}

/* CTA Section */
.clients-cta {
    text-align: center;
    margin-top: 70px;
    position: relative;
    z-index: 2;
}

.clients-cta h3 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
}

.clients-cta .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.clients-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

/* Shape Divider */
.clients-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.clients-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-220px * 5));
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .clients {
        padding: 90px 0 130px;
    }
    
    .clients .section-title {
        font-size: 2.5rem;
    }
    
    .client-item {
        width: 200px;
        height: 110px;
    }
}

@media (max-width: 992px) {
    .clients {
        padding: 80px 0 120px;
    }
    
    .clients .section-header {
        margin-bottom: 50px;
    }
    
    .clients .section-title {
        font-size: 2.25rem;
    }
    
    .clients-cta h3 {
        font-size: 1.5rem;
    }
    
    .client-item {
        width: 180px;
        height: 100px;
        padding: 15px 25px;
    }
    
    .client-logo {
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .clients {
        padding: 70px 0 110px;
    }
    
    .clients .section-title {
        font-size: 2rem;
    }
    
    .clients .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .client-item {
        width: 160px;
        height: 90px;
        padding: 15px 20px;
    }
    
    .clients-cta h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .clients-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .clients {
        padding: 60px 0 100px;
    }
    
    .clients .section-header {
        margin-bottom: 40px;
    }
    
    .clients .section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .clients .section-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .client-item {
        width: 140px;
        height: 80px;
        padding: 12px 15px;
    }
    
    .client-logo {
        max-height: 60px;
    }
    
    .clients-cta {
        margin-top: 50px;
    }
    
    .clients-cta h3 {
        font-size: 1.3rem;
    }
    
    .clients-shape svg {
        height: 80px;
    }
}

@media (max-width: 400px) {
    .clients {
        padding: 50px 0 90px;
    }
    
    .clients .section-title {
        font-size: 1.6rem;
    }
    
    .clients .section-description {
        font-size: 0.9rem;
    }
    
    .client-item {
        width: 130px;
        height: 75px;
        padding: 10px 12px;
    }
    
    .client-logo {
        max-height: 55px;
    }
    
    .clients-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .clients-cta .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}
