/* =========================================================
   CLIENTS SECTION
   ========================================================= */

.cyber-clients-section {
    padding: 60px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.clients-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible;
}


/* =========================================================
   HEADER
   ========================================================= */

.clients-header {
    text-align: center;
    margin-bottom: 30px;
}

.cyber-clients-section .sub-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(147, 51, 234, 0.12);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #c084fc;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cyber-clients-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #38bdf8 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cyber-clients-section .section-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}


/* =========================================================
   CLIENT SLIDER
   ========================================================= */

.clients-grid {
    display: flex;

    /*
     * IMPORTANT:
     * Native horizontal scrolling.
     */
    overflow-x: auto;
    overflow-y: hidden;

    /*
     * Smooth mouse-wheel / touchpad movement.
     */
    scroll-behavior: smooth;

    /*
     * Hide scrollbar visually.
     */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /*
     * Prevent cards from wrapping.
     */
    flex-wrap: nowrap;

    /*
     * Gap between cards.
     */
    gap: 24px;

    /*
     * Extra right space so the last card
     * doesn't touch the edge.
     */
    padding: 10px 0 18px;

    /*
     * Native horizontal scrolling.
     */
    cursor: grab;

    /*
     * Prevent text selection while dragging.
     */
    user-select: none;
    -webkit-user-select: none;

    /*
     * Allow vertical page scrolling while
     * still allowing horizontal touch scrolling.
     */
    touch-action: pan-y;

    /*
     * IMPORTANT:
     * Do NOT use width:max-content here.
     */
    width: 100%;
}

/* Hide Chrome/Safari scrollbar */
.clients-grid::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   DRAG STATE
   ========================================================= */

.clients-grid.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}


/* =========================================================
   DESKTOP CARD
   ========================================================= */

/*
 * Container max width = 1280px
 *
 * We want:
 *
 * 6 full cards + half of 7th card
 *
 * Available card space:
 *
 * 1280px
 * - 6 gaps of 24px
 * = 1136px
 *
 * / 6.5
 * = approximately 174.77px
 */

.client-card {
    flex: 0 0 calc(
        (100% - 144px) / 6.5
    );

    position: relative;

    background: rgba(
        15,
        11,
        26,
        0.8
    );

    border: 1px solid rgba(
        147,
        51,
        234,
        0.25
    );

    border-radius: 16px;

    padding: 18px;

    text-decoration: none;

    backdrop-filter: blur(12px);

    display: flex;
    flex-direction: column;

    gap: 16px;

    box-sizing: border-box;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.client-card:hover {
    transform: translateY(-5px);

    border-color: #38bdf8;

    box-shadow:
        0 10px 30px -10px
        rgba(
            56,
            189,
            248,
            0.3
        );
}


/* =========================================================
   LOGO
   ========================================================= */

.client-logo-wrapper {
    height: 70px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    box-sizing: border-box;

    background: #ffffff !important;

    border: 1px solid rgba(
        255,
        255,
        255,
        0.2
    );

    border-radius: 12px;

    box-shadow:
        inset 0 0 10px
        rgba(
            0,
            0,
            0,
            0.05
        );

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.client-logo {
    max-height: 100%;
    max-width: 100%;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter: none !important;

    transition:
        transform 0.3s ease;
}

.client-card:hover .client-logo-wrapper {
    border-color: #38bdf8 !important;

    box-shadow:
        0 0 20px
        rgba(
            56,
            189,
            248,
            0.25
        ),

        inset 0 0 10px
        rgba(
            56,
            189,
            248,
            0.08
        );

    transform: scale(1.02);
}

.client-card:hover .client-logo {
    transform: scale(1.03);
}


/* =========================================================
   CLIENT DETAILS
   ========================================================= */

.client-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.client-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.industry-tag {
    font-size: 0.75rem;
    color: #38bdf8;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   PAGINATION DOTS
   ========================================================= */

.clients-pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 20px;

    min-height: 22px;
}

.clients-pagination button {
    width: 7px;
    height: 7px;

    padding: 0;
    margin: 0;

    border: 0;

    border-radius: 50%;

    background: #475569;

    cursor: pointer;

    flex: 0 0 auto;

    transition:
        width 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.clients-pagination button:hover {
    transform: scale(1.25);
}

.clients-pagination button.active {
    width: 22px;

    border-radius: 10px;

    background: #38bdf8;
}


/* =========================================================
   REMOVE ARROWS
   ========================================================= */

.clients-prev,
.clients-next,
#clientsPrev,
#clientsNext {
    display: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .clients-grid {
        gap: 20px;
    }

    /*
     * 5.5 cards visible
     */
    .client-card {
        flex-basis: calc(
            (100% - 100px) / 5.5
        );
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 992px) {

    .cyber-clients-section {
        padding: 60px 20px;
    }

    .cyber-clients-section .section-title {
        font-size: 2rem;
    }

    .clients-grid {
        gap: 20px;
    }

    /*
     * 3.5 cards visible
     */
    .client-card {
        flex-basis: calc(
            (100% - 60px) / 3.5
        );

        padding: 16px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .cyber-clients-section {
        padding: 45px 20px;
    }

    .clients-header {
        margin-bottom: 25px;
    }

    .cyber-clients-section .section-title {
        font-size: 1.5rem;
    }

    .cyber-clients-section .section-subtitle {
        font-size: 0.85rem;
    }

    .cyber-clients-section .sub-badge {
        font-size: 0.65rem;
    }

    .clients-grid {
        gap: 14px;

        /*
         * 1.5 cards visible
         */
        overflow-x: auto;
    }

    .client-card {
        flex-basis: calc(
            (100% - 14px) / 1.5
        );

        min-width: 0;

        padding: 14px;

        border-radius: 14px;

        gap: 10px;
    }

    .client-logo-wrapper {
        height: 60px;
    }

    .client-name {
        font-size: 0.85rem;
    }

    .industry-tag {
        font-size: 0.7rem;
    }

    .clients-pagination {
        margin-top: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .clients-grid {
        gap: 12px;
    }

    .client-card {
        flex-basis: calc(
            (100% - 12px) / 1.3
        );
    }

    .client-logo-wrapper {
        height: 58px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .clients-grid {
        scroll-behavior: auto;
    }

    .client-card {
        transition: none;
    }
}