/*=========================================================
                    CLIENTS SECTION
=========================================================*/

.clients {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
    background: linear-gradient(180deg,#071722 0%,#081d2b 100%);
}

.clients .section-title {
    text-align: center;
    margin-bottom: 70px;
}

    .clients .section-title span {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 18px;
        color: #22d7f8;
        font-size: 18px;
        font-weight: 700;
    }

        .clients .section-title span::before,
        .clients .section-title span::after {
            content: "";
            width: 55px;
            height: 2px;
            background: #22d7f8;
            opacity: .35;
        }

    .clients .section-title h1 {
        max-width: 1100px;
        margin: auto;
        color: #fff;
        font-size: clamp(30px,2.7vw,48px);
        font-weight: 900;
        line-height: 1.9;
    }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.client-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 360px;
    padding: 30px;
    border-radius: 24px;
    background: #0a2030;
    border: 1px solid rgba(38,216,248,.16);
    box-shadow: 0 12px 35px rgba(0,0,0,.28);
    opacity: 0;
    transform: translateY(60px);
    transition: .45s ease;
}

.client-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(.72) saturate(1.02) contrast(1.05);
    transition: transform .7s ease, filter .4s ease;
    z-index: 0;
}

.client-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,18,28,.10) 0%, rgba(5,18,28,.18) 20%, rgba(5,18,28,.42) 55%, rgba(5,18,28,.82) 100%);
    z-index: 1;
}

.client-logo,
.client-title,
.client-divider,
.client-services {
    position: relative;
    z-index: 2;
}

.client-logo {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .client-logo::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        width: 100px;
        height: 100px;
        filter: blur(15px);
        opacity: 1;
        pointer-events: none;
        z-index: 0;
        transition: transform .45s ease, filter .45s ease, opacity .45s ease;
    }

    .client-logo img {
        position: relative;
        z-index: 2;
        max-width: 82px;
        max-height: 82px;
        object-fit: contain;
        filter: drop-shadow(0 0 6px rgba(255,255,255,.08));
    }

.client-title {
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.6;
    min-height: 72px;
    margin-bottom: 18px;
}

.client-divider {
    width: 95px;
    height: 2px;
    margin-bottom: 22px;
    background: linear-gradient(90deg, transparent, #24dfff, transparent);
    opacity: .65;
    transition: .35s;
}

.client-services {
    width: 100%;
    margin-top: auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .client-services li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        transition: all .35s ease;
    }

        .client-services li:last-child {
            border-bottom: none;
        }

    .client-services span {
        color: #edf8fc;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.7;
    }

    .client-services i {
        color: #26dcff;
        font-size: 16px;
        transition: all .35s ease;
    }

.client-card.show {
    opacity: 1;
    transform: translateY(0);
}


@media (hover:hover) {
    .client-card:hover {
        transform: translateY(-10px);
        border-color: rgba(38,220,255,.55);
        box-shadow: 0 20px 45px rgba(0,0,0,.42), 0 0 22px rgba(38,220,255,.12);
    }

        .client-card:hover .client-bg {
            transform: scale(1.06);
            filter: brightness(.86) saturate(1.08) contrast(1.08);
        }

        .client-card:hover .client-logo {
            transform: translateY(-3px);
        }

            .client-card:hover .client-logo::before {
                filter: blur(16px);
                opacity: 1;
            }

        .client-card:hover .client-title {
            color: #42e8ff;
        }

        .client-card:hover .client-divider {
            width: 140px;
            opacity: 1;
        }

        .client-card:hover .client-services li {
            border-color: rgba(38,220,255,.18);
        }

        .client-card:hover .client-services i {
            transform: scale(1.15);
            color: #4deeff;
        }
}


@media (hover:none) {
    .client-card.mobile-active {
        transform: translateY(-6px);
        border-color: rgba(38,220,255,.45);
    }

        .client-card.mobile-active .client-bg {
            filter: brightness(.82) saturate(1.05);
        }

        .client-card.mobile-active .client-logo::before {
            opacity: 1;
        }
}


/*=========================================================
                    RESPONSIVE
=========================================================*/

@media(max-width:1200px) {
    .clients-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:992px) {
    .clients {
        padding: 80px 0;
    }

    .clients-grid {
        gap: 22px;
    }

    .client-card {
        min-height: 340px;
    }
}

@media(max-width:768px) {
    .clients {
        padding: 60px 0;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .client-card {
        min-height: auto;
        padding: 24px;
    }

    .client-logo {
        width: 82px;
        height: 82px;
    }

        .client-logo::before {
            width: 72px;
            height: 72px;
        }

        .client-logo img {
            max-width: 72px;
            max-height: 72px;
        }

    .client-title {
        font-size: 20px;
        min-height: auto;
    }

    .client-services span {
        font-size: 14px;
    }
}

/* performance */
.client-card,
.client-bg,
.client-logo {
    will-change: transform;
}
