.clients-grid-section {
    background: #010923;
    padding: 4rem 0 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.clients-grid-section::before,
.clients-grid-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    filter: blur(44px);
    opacity: 0.95;
}

.clients-grid-section::before {
    left: 0;
    background: linear-gradient(to right, #000 70%, transparent 100%);
}

.clients-grid-section::after {
    right: 0;
    background: linear-gradient(to left, #000 70%, transparent 100%);
}

.clients-grid-section .container {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    text-align: center;
}

.clients-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clients-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.client-card {
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 340px;
    height: 86px;
    border-radius: 0.6rem;
    padding: 0.7rem 1.5rem 0.7rem 1rem;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.client-card.yellow {
    --card-primary: #c4e538;
    --card-secondary: #fdea8b;
    --card-glow: rgba(196, 229, 56, 0.45);
    background: linear-gradient(135deg, var(--card-secondary) 0%, var(--card-primary) 100%);
    color: #0b1220;
}

.client-card.purple {
    --card-primary: #5b6cff;
    --card-secondary: #007BFF;
    --card-glow: rgba(0, 123, 255, 0.45);
    background: linear-gradient(135deg, var(--card-secondary) 0%, var(--card-primary) 100%);
    color: #ffffff;
}

.client-card.green {
    --card-primary: #0abde3;
    --card-secondary: #20c997;
    --card-glow: rgba(32, 201, 151, 0.45);
    background: linear-gradient(135deg, var(--card-secondary) 0%, var(--card-primary) 100%);
    color: #0b1220;
}

.client-card.white {
    --card-primary: #f0f4f9;
    --card-secondary: #ffffff;
    --card-glow: rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, var(--card-secondary) 0%, var(--card-primary) 100%);
    color: #0b1220;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.client-card:hover {
    transform: translateY(-4px) scale(1.03) rotate(-0.25deg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 0 24px var(--card-glow);
}


.client-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -30%;
    width: 50%;
    height: 160%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
    transform: skewX(-20deg) translateX(0);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.6s ease;
    pointer-events: none;
}

.client-card:hover::before {
    opacity: 0.35;
    transform: skewX(-20deg) translateX(180%);
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    margin-right: 1rem;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.client-card:hover .client-avatar {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24), 0 0 0 8px var(--card-glow), 0 8px 22px rgba(0, 0, 0, 0.18);
}

.client-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    height: 100%;
}

.client-name,
.client-subs,
.client-socials {
    line-height: 1.1;
}

.client-socials {
    align-items: center;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: inherit;
}

.client-subs {
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: inherit;
}

.client-socials {
    display: flex;
    gap: 0.5rem;
}

.client-socials i {
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s;
}

.client-card.yellow .client-socials i {
    color: #222;
}

.client-card.purple .client-socials i,
.client-card.green .client-socials i {
    color: #222;
}

.client-card.white .client-socials i {
    color: #222;
}

.client-socials i:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .clients-row {
        gap: 1rem;
    }

    .client-card {
        min-width: 180px;
        max-width: 200px;
        padding: 1rem 0.7rem 1rem 0.7rem;
    }

    .client-avatar {
        width: 48px;
        height: 48px;
        margin-right: 0.7rem;
    }
}

@media (max-width: 700px) {
    .clients-grid {
        gap: 1.2rem;
    }

    .clients-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    .client-card {
        min-width: 90vw;
        max-width: 95vw;
        padding: 0.8rem 0.5rem 0.8rem 0.5rem;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
}


.clients-row {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.clients-marquee-inner {
    display: flex;
    width: max-content;
    animation-duration: 28s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    gap: 1rem;
    --marquee-distance: 0px;
}

.clients-row[data-direction="rtl"] .clients-marquee-inner {
    animation-name: marquee-rtl;
}

.clients-row[data-direction="ltr"] .clients-marquee-inner {
    animation-name: marquee-ltr;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
    }
}

@keyframes marquee-ltr {
    0% {
        transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
    }

    100% {
        transform: translateX(0);
    }
}

.clients-row:hover .clients-marquee-inner {
    animation-play-state: paused !important;
}


@media (max-width: 900px) {
    .client-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        padding: 0.5rem 0.8rem 0.5rem 0.6rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .client-avatar {
        width: clamp(28px, 5vw, 36px);
        height: clamp(28px, 5vw, 36px);
        margin-right: 0.5rem;
    }

    .client-info {
        min-width: 0;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .client-name {
        font-size: clamp(0.85rem, 2.5vw, 0.98rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .client-subs {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .client-socials i {
        font-size: clamp(0.7rem, 2vw, 0.95rem);
    }
}

@media (max-width: 600px) {
    .clients-grid-section .container {
        padding: 0;
    }

    .client-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        padding: 0.3rem 0.4rem 0.3rem 0.4rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .client-avatar {
        width: clamp(20px, 7vw, 28px);
        height: clamp(20px, 7vw, 28px);
        margin-right: 0.3rem;
    }

    .client-info {
        min-width: 0;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .client-name {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .client-subs {
        font-size: clamp(0.6rem, 2.5vw, 0.7rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .client-socials i {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    }

    .clients-row {
        padding: 4px 0;
    }
}


.companies-section .clients-grid {
    gap: 0.5rem;
}

.companies-section .clients-row {
    padding: 8px 0;
}

.companies-section .clients-marquee-inner {
    gap: 2.4rem;
}

.companies-section .client-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px;
    min-width: 160px;
    max-width: 200px;
    height: auto;
    padding: 0.75rem 0.6rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: none !important;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.companies-section .client-card:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.companies-section .client-card::before {
    content: none !important;
}

.companies-section .client-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 0 10px 0;
    object-fit: contain;
    filter: grayscale(25%) brightness(0.98) contrast(1.05);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.companies-section .client-card:hover .client-avatar {
    filter: none;
    transform: scale(1.03);
}

.companies-section .client-info {
    align-items: center;
    gap: 0.2rem;
}

.companies-section .client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8edf7;
    margin: 0;
    letter-spacing: 0.2px;
}

.companies-section .client-subs,
.companies-section .client-socials {
    display: none !important;
}

@media (max-width: 900px) {
    .companies-section .clients-marquee-inner {
        gap: 1.6rem;
    }

    .companies-section .client-card {
        min-width: 140px;
        max-width: 170px;
        padding: 0.6rem 0.4rem;
        border-radius: 10px;
    }

    .companies-section .client-avatar {
        width: 56px;
        height: 56px;
    }

    .companies-section .client-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .companies-section .clients-marquee-inner {
        gap: 1rem;
    }

    .companies-section .client-card {
        min-width: 110px;
        max-width: 130px;
    }

    .companies-section .client-avatar {
        width: 48px;
        height: 48px;
    }

    .companies-section .client-name {
        font-size: 0.82rem;
    }
}