﻿/* =========================================
   CLIENT LOGOS - LIGHT PREMIUM STYLE
========================================= */

.clients-logos {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(82, 36, 116, 0.10), transparent 30%), radial-gradient(circle at bottom left, rgba(155, 89, 182, 0.08), transparent 28%), linear-gradient(180deg, #fcfcfe 0%, #f5f7fb 100%);
}

    /* soft texture */
    .clients-logos::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(255,255,255,.65), transparent 45% );
        pointer-events: none;
    }

    /* elegant blur */
    .clients-logos::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: rgba(82, 36, 116, 0.08);
        filter: blur(110px);
        top: -120px;
        right: -60px;
        pointer-events: none;
    }

/* title */
.clients-title {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #1e293b;
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 55px;
}

/* marquee */
.logos-marquee {
    --gap: 38px;
    --duration: 30s;
    position: relative;
    z-index: 5;
    direction: ltr;
}

.marquee-viewport {
    overflow: hidden;
    width: 100%;
    padding: 14px 0;
    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 );
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeMove var(--duration) linear infinite;
    will-change: transform;
}

.logos-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* sets */
.marquee-set {
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex: 0 0 auto;
    padding-inline-end: var(--gap);
}

/* CARD */
.logo-item {
    position: relative;
    width: 210px;
    height: 130px;
    flex: 0 0 auto;
    /* مربع تر */
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(82, 36, 116, .10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

    /* glossy layer */
    .logo-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(255,255,255,.85), transparent 55% );
        opacity: .8;
    }

    /* hover */
    .logo-item:hover {
        transform: translateY(-8px);
        z-index: 30;
        background: #fff;
        border-color: rgba(82, 36, 116, .20);
        box-shadow: 0 16px 35px rgba(15,23,42,.08), 0 8px 18px rgba(82,36,116,.08);
    }

    /* image */
    .logo-item img {
        position: relative;
        z-index: 3;
        height: 72px;
        width: auto;
        max-width: 75%;
        object-fit: contain;
        /* رنگ اصلی لوگو حفظ شود */
        filter: none;
        opacity: 1;
        transition: transform .35s ease;
    }

    /* image hover */
    .logo-item:hover img {
        transform: scale(1.05);
    }

/* animation */
@keyframes marqueeMove {

    from {
        transform: translate3d(0,0,0);
    }

    to {
        transform: translate3d(-50%,0,0);
    }
}

/* mobile */
@media (max-width:768px) {

    .clients-logos {
        padding: 70px 0;
    }

    .clients-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .logos-marquee {
        --gap: 22px;
        --duration: 24s;
    }

    .logo-item {
        width: 165px;
        height: 100px;
        border-radius: 14px;
    }

        .logo-item img {
            height: 54px;
        }
}
