/* ==================== Clients Section ==================== */
.clients-section {
    position: relative;
    padding: 80px 0;
    background: var(--bg-color);
    overflow: hidden;
}

.clients-section .sec-head2 {

    margin-bottom: 60px;
}

.clients-section .sec-head2 .sub-head {
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.clients-section .sec-head2 h3 {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Clients Marquee */
.clients-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    display: flex;
}

.clients-marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
    will-change: transform;
    flex-shrink: 0;
}

.clients-marquee-wrapper:hover {
    animation-play-state: paused;
}

.clients-marquee .client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    margin: 0 20px;
    min-width: 200px;
    height: 100px;
    background: var(--theme-color);
    border-radius: 15px;
    border: 1px solid rgba(2, 217, 244, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.clients-marquee .client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 217, 244, 0.1), transparent);
    transition: left 0.5s ease;
}

.clients-marquee .client-logo:hover::before {
    left: 100%;
}

.clients-marquee .client-logo:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(2, 217, 244, 0.2);
}

.clients-marquee .client-logo img {
    max-width: 100%;
    max-height: 25px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s ease;
}

.clients-marquee .client-logo:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Keyframe Animation - Seamless Infinite Loop */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* Ensure smooth scrolling on all browsers */
.clients-marquee-wrapper * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

/* Responsive */
@media (max-width: 991px) {
    .clients-section .sec-head2 h3 {
        font-size: 36px;
    }
    
    .clients-marquee .client-logo {
        min-width: 150px;
        height: 80px;
        padding: 0 30px;
        margin: 0 15px;
    }
    
    .clients-marquee .client-logo img {
        max-height: 25px;
    }
}

@media (max-width: 767px) {
    .clients-section {
        padding: 60px 0;
    }
    
    .clients-section .sec-head2 h3 {
        font-size: 28px;
    }
    
    .clients-marquee {
        padding: 30px 0;
    }
    
    .clients-marquee .client-logo {
        min-width: 120px;
        height: 70px;
        padding: 0 20px;
        margin: 0 10px;
    }
    
    .clients-marquee .client-logo img {
        max-height: 25px;
    }
}
