/* ============================================================
   Atomquark — "Our Clients" section (light, on-brand grid)
   ============================================================ */

.cl-mod-section {
    position: relative;
    padding: 56px 0 64px;
    background:
        radial-gradient(circle at 12% 12%, rgba(6, 182, 212, 0.10) 0%, transparent 38%),
        radial-gradient(circle at 88% 88%, rgba(139, 92, 246, 0.10) 0%, transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    overflow: hidden;
    isolation: isolate;
}

.cl-mod-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.cl-mod-section > .container { position: relative; z-index: 1; }

/* ----- Header ----- */
.cl-mod-header {
    text-align: center;
    margin-bottom: 8px;  /* tight gap to marquee */
}

.cl-mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.13), rgba(139, 92, 246, 0.13));
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 999px;
    color: #4f46e5;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cl-mod-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 12px #06b6d4;
}

.cl-mod-title {
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    background: linear-gradient(135deg, #0f172a 0%, #4f46e5 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.cl-mod-subtitle {
    font-size: 13.5px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----- Stats strip ----- */
.cl-mod-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 760px;
    margin: 0 auto 36px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 32px -16px rgba(79, 70, 229, 0.25);
}

.cl-mod-stats__item {
    text-align: center;
    padding: 4px 6px;
    border-right: 1px solid rgba(79, 70, 229, 0.10);
}
.cl-mod-stats__item:last-child { border-right: none; }

.cl-mod-stats__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 4px;
}

.cl-mod-stats__label {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================
   Sliding marquee — logos float, no card containers
   ============================================================ */
.cl-mod-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 4px 0 0;  /* no top gap above the marquee */
    /* Fade out at the edges so logos appear/disappear gracefully */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.cl-mod-marquee__track {
    display: flex;
    align-items: stretch;
    gap: 56px;
    width: max-content;
    animation: cl-mod-slide 36s linear infinite;
}

.cl-mod-marquee:hover .cl-mod-marquee__track {
    animation-play-state: paused;
}

@keyframes cl-mod-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }  /* duplicates -> seamless loop */
}

/* Single logo item — no card chrome, just logo + name + industry */
.cl-mod-item {
    flex: 0 0 auto;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease;
}

.cl-mod-item:hover { transform: translateY(-4px); }

/* Logo area — fixed height keeps every logo on the same horizontal line */
.cl-mod-item__logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cl-mod-item__logo::after {
    /* Soft cyan/violet glow halo behind logo — appears on hover */
    content: "";
    position: absolute;
    inset: -10px -16px;
    background: radial-gradient(ellipse, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.cl-mod-item:hover .cl-mod-item__logo::after { opacity: 1; }

.cl-mod-item__logo img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    /* Logos default to slight grey + soft, brighten on hover */
    filter: grayscale(0.35) opacity(0.78);
    transition: filter 0.35s ease;
}

.cl-mod-item:hover .cl-mod-item__logo img {
    filter: grayscale(0) opacity(1);
}

/* Text-style logo (for clients without an image asset) */
.cl-mod-item__logo-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.35s ease;
}

.cl-mod-item__logo-text i {
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.35s ease;
}

.cl-mod-item:hover .cl-mod-item__logo-text {
    background: linear-gradient(135deg, #06b6d4, #4f46e5, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cl-mod-item:hover .cl-mod-item__logo-text i {
    color: #4f46e5;
}

/* Tiny gradient accent underline between logo and labels */
.cl-mod-item__accent {
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #22d3ee, #4f46e5, #8b5cf6);
    opacity: 0.5;
    transition: width 0.35s ease, opacity 0.35s ease;
}

.cl-mod-item:hover .cl-mod-item__accent {
    width: 56px;
    opacity: 1;
}

/* Name + industry labels */
.cl-mod-item__name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.1px;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.cl-mod-item__industry {
    font-size: 10.5px;
    color: #64748b;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
    transition: color 0.35s ease;
}

.cl-mod-item:hover .cl-mod-item__industry { color: #4f46e5; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cl-mod-marquee__track { animation: none; }
}

/* ----- "View all case studies" CTA below grid ----- */
.cl-mod-cta-wrap {
    text-align: center;
    margin-top: 32px;
}

.cl-mod-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #4f46e5;
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cl-mod-cta:hover {
    background: linear-gradient(135deg, #22d3ee, #4f46e5);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.45);
}

.cl-mod-cta i { font-size: 11px; transition: transform 0.25s ease; }
.cl-mod-cta:hover i { transform: translateX(4px); }

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .cl-mod-stats { grid-template-columns: repeat(2, 1fr); }
    .cl-mod-stats__item:nth-child(2n) { border-right: none; }
    .cl-mod-stats__item:nth-child(-n+2) { border-bottom: 1px solid rgba(79, 70, 229, 0.10); padding-bottom: 12px; }
    .cl-mod-stats__item:nth-child(n+3) { padding-top: 12px; }
    .cl-mod-marquee__track { gap: 40px; animation-duration: 28s; }
    .cl-mod-item { min-width: 170px; }
}

@media (max-width: 575.98px) {
    .cl-mod-section { padding: 44px 0 50px; }
    .cl-mod-marquee__track { gap: 28px; animation-duration: 22s; }
    .cl-mod-item { min-width: 150px; }
    .cl-mod-item__logo img { max-width: 130px; }
}
