/********** Clients Section CSS **********/
.clients-section {
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,250,251,0) 100%);
    z-index: 0;
}

.client-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.client-carousel {
    display: flex;
    animation: scrollX 30s linear infinite;
    width: fit-content;
}

.client-carousel:hover {
    animation-play-state: paused;
}

.client-slide {
    flex: 0 0 auto;
    padding: 0 30px;
}

.client-item {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.client-item img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

@keyframes scrollX {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This should be adjusted based on the width of your slides */
        transform: translateX(calc(-180px * 6 - 60px * 6));
    }
}

/* Add gradient overlays to create fade effect on edges */
.client-carousel-container::before,
.client-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.client-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #f9fafb 0%, rgba(249, 250, 251, 0) 100%);
}

.client-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #f9fafb 0%, rgba(249, 250, 251, 0) 100%);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .client-item {
        width: 150px;
        height: 100px;
    }
    
    .client-item img {
        max-height: 50px;
    }
    
    .client-slide {
        padding: 0 20px;
    }
    
    @keyframes scrollX {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 6 - 40px * 6));
        }
    }
}