/* ========================= CLIENTS MARQUEE SECTION ========================= */
.clients-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.clients-header {
    text-align: center;
    margin-bottom: 60px;
}

.clients-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Edge fade effect */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 100px;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

/* Pause on hover for accessibility and engagement */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s ease;
}

.marquee-item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clients-section {
        padding: 50px 0;
    }
    .marquee-item {
        width: 140px;
        height: 60px;
    }
    .marquee-track {
        gap: 60px;
        animation-duration: 25s;
    }
}
