/* ================= BRANDS SECTION ================= */

.brands-section {
    padding: 100px 0;
    background: #f7f8fc;
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(99, 91, 255, .06);
    top: -250px;
    right: -180px;
    pointer-events: none;
}

.brands-heading {
    max-width: 750px;
    margin-bottom: 45px;
    position: relative;
    z-index: 2;
}

.brands-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin-bottom: 15px;
}

.brands-heading h2 span {
    color: var(--primary);
}

.brands-heading p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 650px;
}


/* ================= BRAND CARD ================= */

.brand-card {
    height: 100%;
    min-height: 205px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(99, 91, 255, .06);
    right: -35px;
    top: -35px;
    transition: .4s;
}

.brand-card:hover {
    transform: translateY(-7px);
    border-color: rgba(99, 91, 255, .3);
    box-shadow: 0 22px 50px rgba(16, 24, 40, .10);
}

.brand-card:hover::before {
    transform: scale(2.1);
    background: rgba(99, 91, 255, .09);
}


/* ================= ICON ================= */

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: #efefff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    transition: .35s;
}

.brand-card:hover .brand-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}


/* ================= CONTENT ================= */

.brand-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.brand-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
    max-width: 240px;
    position: relative;
    z-index: 2;
}


/* ================= NUMBER ================= */

.brand-number {
    position: absolute;
    right: 18px;
    bottom: 12px;
    font-size: 38px;
    font-weight: 800;
    color: #f0f1f5;
    font-family: "Manrope", sans-serif;
    line-height: 1;
    transition: .35s;
}

.brand-card:hover .brand-number {
    color: #e8e7ff;
    transform: translateY(-3px);
}


/* ================= BOTTOM ================= */

.brands-bottom {
    margin-top: 35px;
    padding: 22px 25px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brands-bottom strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.brands-bottom span {
    color: var(--muted);
    font-size: 12px;
}

.brands-bottom a {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    padding: 11px 17px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: .3s;
}

.brands-bottom a:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateX(3px);
}


/* ================= MOBILE ================= */

@media (max-width: 767px) {

    .brands-section {
        padding: 65px 0;
    }

    .brands-heading {
        margin-bottom: 30px;
    }

    .brands-heading h2 {
        font-size: 34px;
        letter-spacing: -1.3px;
    }

    .brand-card {
        min-height: 190px;
        padding: 19px;
        border-radius: 15px;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
        margin-bottom: 14px;
    }

    .brand-card h3 {
        font-size: 15px;
    }

    .brand-card p {
        font-size: 11px;
    }

    .brand-number {
        font-size: 30px;
    }

    .brands-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .brands-bottom a {
        width: 100%;
        text-align: center;
    }

}



/* =====================================================
   OUR CLIENTS SECTION
===================================================== */

.clients-section {
    padding: 90px 0 80px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}


/* ================= HEADING ================= */

.clients-heading {
    max-width: 700px;
    margin: 0 auto 45px;
}

.clients-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin-bottom: 15px;
}

.clients-heading h2 span {
    color: var(--primary);
}

.clients-heading p {
    color: var(--muted);
    max-width: 620px;
    margin: auto;
    font-size: 14px;
    line-height: 1.8;
}


/* ================= MARQUEE ================= */

.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;

    /* Fade edges */

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}


/* ================= TRACK ================= */

.clients-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 20px;

    animation: clientScroll 28s linear infinite;
}


/* Pause when mouse hover */

.clients-marquee:hover .clients-track {
    animation-play-state: paused;
}


/* ================= LOGO CARD ================= */

.client-logo {
    width: 180px;
    height: 100px;

    background: #fff;

    border: 1px solid #e8eaf0;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    flex-shrink: 0;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.client-logo:hover {
    transform: translateY(-5px);

    border-color: rgba(99,91,255,.3);

    box-shadow:
        0 15px 40px rgba(16,24,40,.09);
}


/* ================= IMAGE ================= */

.client-logo img {
    max-width: 100%;
    max-height: 55px;

    width: auto;
    height: auto;

    object-fit: contain;

    filter: grayscale(100%);

    opacity: .62;

    transition:
        filter .3s ease,
        opacity .3s ease,
        transform .3s ease;
}


.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}


/* ================= ANIMATION ================= */

@keyframes clientScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ================= NOTE ================= */

.clients-note {

    margin: 40px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #667085;

    font-size: 12px;

    text-align: center;
}

.clients-note i {
    color: #16a34a;
}


/* ================= MOBILE ================= */

@media (max-width: 767px) {

    .clients-section {
        padding: 65px 0 60px;
    }

    .clients-heading {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .clients-heading h2 {
        font-size: 33px;
        letter-spacing: -1.2px;
    }

    .clients-heading p {
        font-size: 13px;
    }

    .clients-track {
        gap: 12px;
        animation-duration: 22s;
    }

    .client-logo {
        width: 145px;
        height: 82px;
        padding: 16px;
        border-radius: 12px;
    }

    .client-logo img {
        max-height: 45px;
    }

    .clients-note {
        padding: 0 20px;
        line-height: 1.6;
        flex-wrap: wrap;
    }

}


/* ================= REDUCE MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    .clients-track {
        animation: none;
    }

}