
/* ==========================================
   TEC CLIENTS LOGO MARQUEE
   Frontend Styles - Version 1.0
========================================== */

/* Main wrapper */
.tec-clients-marquee {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 28px 0;
    background: transparent;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );
}

/* Scrolling track */
.tec-clients-marquee .tec-clients-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: tec-clients-slide 55s linear infinite;
    will-change: transform;
}

/* Logo groups */
.tec-clients-marquee .tec-clients-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 55px;
    padding-right: 55px;
}

/* Individual logo container */
.tec-clients-marquee .tec-client {
    width: 160px;
    height: 100px;
    flex: 0 0 160px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    margin: 0;
    box-sizing: border-box;

    background: transparent;
    border: none;
    box-shadow: none;
}

/* Logo image */
.tec-clients-marquee .tec-client img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 145px;
    max-height: 72px;

    object-fit: contain;
    object-position: center;

    image-rendering: auto;

    /* Default monochrome grey */
    filter: grayscale(1) brightness(0) invert(0.55);
    opacity: 0.75;

    border: none;
    box-shadow: none;

    transition:
        filter 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;

    transform-origin: center;
}

/* Restore original logo colors on hover */
.tec-clients-marquee .tec-client:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
}

/* Pause scrolling on hover */
.tec-clients-marquee:hover .tec-clients-track {
    animation-play-state: paused;
}

/* Seamless infinite animation */
@keyframes tec-clients-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .tec-clients-marquee {
        padding: 24px 0;
    }

    .tec-clients-marquee .tec-clients-group {
        gap: 40px;
        padding-right: 40px;
    }

    .tec-clients-marquee .tec-client {
        width: 145px;
        height: 85px;
        flex-basis: 145px;
        padding: 10px;
    }

    .tec-clients-marquee .tec-client img {
        max-width: 130px;
        max-height: 65px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .tec-clients-marquee {
        padding: 20px 0;
    }

    .tec-clients-marquee .tec-clients-track {
        animation-duration: 45s;
    }

    .tec-clients-marquee .tec-clients-group {
        gap: 24px;
        padding-right: 24px;
    }

    .tec-clients-marquee .tec-client {
        width: 120px;
        height: 75px;
        flex-basis: 120px;
        padding: 8px;
    }

    .tec-clients-marquee .tec-client img {
        max-width: 110px;
        max-height: 55px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tec-clients-marquee .tec-clients-track {
        animation: none !important;
    }

    .tec-clients-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
