/* =========================================================
   OUR CLIENTS SECTION
========================================================= */

.clients-section {

    position: relative;

    padding: 50px 0;

    background: var(--white);

    overflow: hidden;

}


/* =========================================================
   BACKGROUND CALIBRATION ICONS
========================================================= */

.clients-bg-icons {

    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

}


.bg-icon {

    position: absolute;

    color: var(--primary);

    opacity: .09;

    font-size: 90px;

}


/* Positions */

.icon-ruler {

    top: 8%;

    left: 3%;

    transform: rotate(-25deg);

}


.icon-gear {

    top: 10%;

    right: 5%;

    font-size: 120px;

}


.icon-gauge {

    bottom: 10%;

    left: 4%;

    font-size: 100px;

}


.icon-activity {

    top: 45%;

    left: 10%;

    font-size: 70px;

}


.icon-tools {

    bottom: 8%;

    right: 7%;

    transform: rotate(-15deg);

}


.icon-target {

    top: 30%;

    right: 15%;

    font-size: 70px;

}


.icon-electric {

    bottom: 25%;

    left: 18%;

    font-size: 70px;

}


.icon-temperature {

    top: 58%;

    right: 4%;

    font-size: 80px;

}


/* =========================================================
   SECTION HEADING
========================================================= */

.clients-heading {

    position: relative;

    z-index: 2;

    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;

}


.clients-label {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-bottom: 15px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2.5px;

}


.clients-label span {

    width: 42px;

    height: 2px;

    background: var(--primary);

    border-radius: 10px;

}


.clients-heading h2 {

    margin: 0 0 16px;

    color: var(--black);

    font-size: clamp(35px, 4vw, 50px);

    line-height: 1.1;

    font-weight: 800;

}


.clients-heading h2 span {

    color: var(--primary);

}


.clients-heading p {

    max-width: 650px;

    margin: auto;

    color: var(--text);

    font-size: 14px;

    line-height: 1.8;

}


/* =========================================================
   CLIENT SLIDER
========================================================= */

.client-slider {

    position: relative;

    width: 100%;

    overflow: hidden;

    padding: 25px 0 35px;

}


/* Left Fade */

.client-slider::before {

    content: "";

    position: absolute;

    z-index: 3;

    top: 0;

    left: 0;

    width: 120px;

    height: 100%;

    background:
        linear-gradient(
            to right,
            var(--white),
            transparent
        );

    pointer-events: none;

}


/* Right Fade */

.client-slider::after {

    content: "";

    position: absolute;

    z-index: 3;

    top: 0;

    right: 0;

    width: 120px;

    height: 100%;

    background:
        linear-gradient(
            to left,
            var(--white),
            transparent
        );

    pointer-events: none;

}


/* =========================================================
   MOVING TRACK
========================================================= */

.client-track {

    display: flex;

    width: max-content;

    align-items: center;

    gap: 25px;

    animation:
        clientMarquee 30s linear infinite;

}


/* Pause when mouse over */

.client-slider:hover .client-track {

    animation-play-state: paused;

}


/* =========================================================
   CLIENT CARD
========================================================= */

.client-card {

    width: 190px;

    height: 145px;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 18px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .06);

    transition: var(--transition);

}


/* Hover */

.client-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(58, 73, 159, .30);

    box-shadow:
        0 15px 35px
        rgba(58, 73, 159, .13);

}


/* =========================================================
   CLIENT IMAGE
========================================================= */

.client-image {

    width: 130px;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px;

    border-radius: 9px;

    background: var(--light);

    border: 1px solid var(--border);

    transition: var(--transition);

}


.client-image img {

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    /* Keep original logo colors */
    filter: none;

    opacity: 1;

    transition: var(--transition);
}


/* Hover logo */

.client-card:hover .client-image {

    background:
        var(--primary-light);

    border-color:
        rgba(58,73,159,.2);

}


.client-card:hover .client-image img {

    filter: none;

    opacity: 1;

    transform: scale(1.05);
}


/* =========================================================
   CLIENT NAME
========================================================= */

.client-card span {

    color: var(--black);

    font-size: 11px;

    font-weight: 700;

    text-align: center;

}


/* =========================================================
   CONTINUOUS HORIZONTAL ANIMATION
========================================================= */

@keyframes clientMarquee {

    0% {

        transform:
            translateX(0);

    }

    100% {

        transform:
            translateX(-50%);

    }

}


/* =========================================================
   TRUST INFORMATION
========================================================= */

.clients-trust {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    max-width: 900px;

    margin: 35px auto 0;

    padding-top: 30px;

    border-top:
        1px solid var(--border);

}


.trust-item {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

}


.trust-icon {

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius: 10px;

    font-size: 19px;

    transition: var(--transition);

}


.trust-item:hover .trust-icon {

    background:
        var(--primary);

    color:
        var(--white);

    transform:
        rotate(-8deg);

}


.trust-item strong {

    display: block;

    color: var(--black);

    font-size: 16px;

    font-weight: 800;

}


.trust-item span {

    display: block;

    margin-top: 2px;

    color: var(--text);

    font-size: 10px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .clients-section {

        padding: 80px 0;

    }


    .client-card {

        width: 175px;

        height: 135px;

    }


    .client-image {

        width: 120px;

        height: 68px;

    }


    .clients-trust {

        max-width: 700px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .clients-section {

        padding: 65px 0;

    }


    .clients-heading {

        margin-bottom: 30px;

    }


    .clients-heading h2 {

        font-size: 32px;

    }


    .clients-heading p {

        font-size: 12px;

    }


    .clients-label {

        font-size: 9px;

        letter-spacing: 1.5px;

    }


    .client-slider {

        padding: 15px 0 25px;

    }


    .client-track {

        gap: 15px;

        animation-duration: 24s;

    }


    .client-card {

        width: 150px;

        height: 125px;

        padding: 14px;

    }


    .client-image {

        width: 105px;

        height: 62px;

    }


    .client-card span {

        font-size: 9px;

    }


    .clients-trust {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .trust-item {

        justify-content: flex-start;

        max-width: 220px;

        width: 100%;

        margin: auto;

    }


    .bg-icon {

        font-size: 55px;

    }


    .client-slider::before,
    .client-slider::after {

        width: 60px;

    }

}

/* =========================================================
   TWO LAYER CLIENT SLIDER
========================================================= */

.clients-slider-wrapper {

    position: relative;

    display: flex;

    flex-direction: column;

    gap: 18px;

}


/* =========================================================
   SLIDER
========================================================= */

.client-slider {

    position: relative;

    width: 100%;

    overflow: hidden;

    padding: 10px 0;

}


/* =========================================================
   TRACK
========================================================= */

.client-track {

    display: flex;

    width: max-content;

    align-items: center;

    gap: 22px;

}


/* =========================================================
   LAYER 1
   RIGHT → LEFT
========================================================= */

.client-track-left {

    animation:
        moveLeft 28s linear infinite;

}


/* =========================================================
   LAYER 2
   LEFT → RIGHT
========================================================= */

.client-track-right {

    animation:
        moveRight 32s linear infinite;

}


/* =========================================================
   PAUSE ON HOVER
========================================================= */

.client-slider:hover .client-track {

    animation-play-state: paused;

}


/* =========================================================
   LEFT → RIGHT
========================================================= */

@keyframes moveRight {

    0% {

        transform:
            translateX(-50%);

    }

    100% {

        transform:
            translateX(0);

    }

}


/* =========================================================
   RIGHT → LEFT
========================================================= */

@keyframes moveLeft {

    0% {

        transform:
            translateX(0);

    }

    100% {

        transform:
            translateX(-50%);

    }

}


/* =========================================================
   CLIENT CARD
========================================================= */

.client-card {

    width: 190px;

    height: 135px;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 16px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 7px 22px
        rgba(0,0,0,.055);

    transition: var(--transition);

}


.client-card:hover {

    transform: translateY(-7px);

    border-color:
        rgba(58,73,159,.3);

    box-shadow:
        0 15px 35px
        rgba(58,73,159,.13);

}


/* =========================================================
   CLIENT IMAGE
========================================================= */

.client-image {

    width: 130px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 8px;

    background: var(--light);

    border: 1px solid var(--border);

    border-radius: 9px;

    transition: var(--transition);

}


.client-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    /* ORIGINAL COLORS */

    filter: none;

    opacity: 1;

    transition: var(--transition);

}


.client-card:hover .client-image {

    background:
        var(--primary-light);

    border-color:
        rgba(58,73,159,.2);

}


.client-card:hover .client-image img {

    transform: scale(1.06);

}


/* =========================================================
   CLIENT NAME
========================================================= */

.client-card span {

    color: var(--black);

    font-size: 10px;

    font-weight: 700;

    text-align: center;

}


/* =========================================================
   EDGE FADE
========================================================= */

.client-slider::before {

    content: "";

    position: absolute;

    z-index: 5;

    top: 0;

    left: 0;

    width: 100px;

    height: 100%;

    background:
        linear-gradient(
            to right,
            var(--white),
            transparent
        );

    pointer-events: none;

}


.client-slider::after {

    content: "";

    position: absolute;

    z-index: 5;

    top: 0;

    right: 0;

    width: 100px;

    height: 100%;

    background:
        linear-gradient(
            to left,
            var(--white),
            transparent
        );

    pointer-events: none;

}


/* =========================================================
   SECOND ROW DIFFERENT STYLE
========================================================= */

.second-slider {

    padding-top: 5px;

}


.second-slider .client-card {

    background:
        var(--light);

}


.second-slider .client-image {

    background:
        var(--white);

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .clients-slider-wrapper {

        gap: 12px;

    }


    .client-track {

        gap: 14px;

    }


    .client-track-left {

        animation-duration: 23s;

    }


    .client-track-right {

        animation-duration: 26s;

    }


    .client-card {

        width: 145px;

        height: 115px;

        padding: 12px;

    }


    .client-image {

        width: 100px;

        height: 58px;

    }


    .client-card span {

        font-size: 8px;

    }


    .client-slider::before,
    .client-slider::after {

        width: 50px;

    }

}