.clients-section {
    padding: 2rem;
    background-color: #e7e5e5;
    text-align: center;
    overflow: hidden;
}

.clients-heading {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #333;
}

.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* .clients-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% * 2);
    animation: slide-left 20s linear infinite;
} */

.clients-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    /* Smooth scrolling */
}

.client-item {
    flex: 0 0 auto;
    /* Prevents shrinking */
    width: 150px;
    /* Fixed width for all images */
    height: 100px;
    /* Fixed height for all images */
    margin: 0 1rem;
    /* Space between images */
}

.client-item img {
    width: 100%;
    /* Image scales to fit width of container */
    height: 100%;
    /* Maintain same height */
    object-fit: cover;
    /* Ensures the image fills the container while maintaining aspect ratio */
    border-radius: 8px;
    /* Optional: Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Optional: Shadow effect */
}

.clients-slider:before,
.clients-slider:after {
    position: absolute;
    top: 0;
    width: 100px;
    height: 250%;
    content: "";
    z-index: 2;
}

.clients-slider:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.clients-slider:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

/* Animation keyframes to move images from left to right */
@keyframes slide-left {
    0% {
        transform: translateX(0);
        /* Start from the visible position */
    }

    100% {
        transform: translateX(-50%);
        /* Move left by half of the total width */
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .clients-heading {
        font-size: 2.3rem;
    }

    .client-item {
        width: 100px;
        /* Smaller width for mobile */
        height: 80px;
        /* Smaller height for mobile */
    }

    .clients-container {
        animation-duration: 15s;
        /* Faster scrolling on mobile */
    }
}