/**
 * Pure Luxury Velvet Client Marquees with Spotlight Aurora
 * Inspired by Stripe, Linear, and Vercel design aesthetics
 */

.client-logos-section {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #00333d 0%, #00222a 50%, #00171d 100%);
    padding: 110px 0 100px;
    overflow: hidden;
    color: #eef5f4;
    border-top: 1px solid rgba(0, 255, 178, 0.12);
    border-bottom: 1px solid rgba(0, 255, 178, 0.12);
}

/* Subtle ambient background glow */
.client-aurora-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 178, 0.08) 0%, rgba(0, 44, 53, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Section Header */
.client-logos-header {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

/* Luxury Eyebrow */
.client-luxury-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 178, 0.05);
    border: 1px solid rgba(0, 255, 178, 0.22);
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 22px;
}

.client-luxury-eyebrow .eyebrow-spark {
    color: #00ffb2;
    font-size: 13px;
    line-height: 1;
    animation: sparkPulse 2.5s infinite ease-in-out;
}

@keyframes sparkPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.25); }
}

.client-luxury-eyebrow .eyebrow-text {
    font-family: var(--wp--preset--font-family--syne), "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #00ffb2;
    text-transform: uppercase;
}

.client-logos-title {
    font-family: var(--wp--preset--font-family--syne), "Syne", sans-serif;
    font-size: clamp(30px, 4.8vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.client-logos-subtitle {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.6;
    color: rgba(238, 245, 244, 0.72);
    max-width: 740px;
    margin: 0 auto 36px;
}

/* Minimalist Sector Filter Pills */
.client-filter-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.client-filter-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(238, 245, 244, 0.75);
    font-family: var(--wp--preset--font-family--syne), "Syne", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.client-filter-pill:hover {
    background: rgba(0, 255, 178, 0.1);
    border-color: rgba(0, 255, 178, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.client-filter-pill.is-active {
    background: #00ffb2;
    border-color: #00ffb2;
    color: #00222a;
    box-shadow: 0 4px 18px rgba(0, 255, 178, 0.4);
}

.client-filter-pill .pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
}

.client-filter-pill.is-active .pill-count {
    background: rgba(0, 34, 42, 0.2);
    color: #00222a;
}

/* ========================================================
   VELVET MARQUEE STAGE
   ======================================================== */
.client-velvet-stage {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 15px 0 25px;
}

/* Deep Horizon Gradient Fades (Left & Right) */
.velvet-edge-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}

.velvet-edge-left {
    left: 0;
    background: linear-gradient(to right, #00171d 0%, rgba(0, 23, 29, 0.85) 40%, rgba(0, 23, 29, 0) 100%);
}

.velvet-edge-right {
    right: 0;
    background: linear-gradient(to left, #00171d 0%, rgba(0, 23, 29, 0.85) 40%, rgba(0, 23, 29, 0) 100%);
}

/* Interactive Cursor Spotlight Aurora */
.client-cursor-spotlight {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 178, 0.16) 0%, rgba(218, 255, 8, 0.05) 45%, transparent 70%);
    transition: opacity 0.4s ease;
}

/* Rows & Tracks */
.client-marquee-row {
    display: flex;
    overflow: visible;
    user-select: none;
    padding: 16px 0;
    margin-bottom: 2px;
    position: relative;
    z-index: 3;
    transition: z-index 0.2s ease;
}

.client-marquee-row:hover {
    z-index: 15;
}

.client-marquee-row:last-child {
    margin-bottom: 0;
}

.client-marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    will-change: transform;
}

.marquee-direction-left .client-marquee-track {
    animation: velvetDriftLeft 38s linear infinite;
}

.marquee-direction-right .client-marquee-track {
    animation: velvetDriftRight 44s linear infinite;
}

.client-marquee-row[data-speed="35"] .client-marquee-track {
    animation-duration: 34s;
}

.client-marquee-row:hover .client-marquee-track {
    animation-play-state: paused;
}

@keyframes velvetDriftLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes velvetDriftRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ========================================================
   THE VELVET CARD
   ======================================================== */
.client-velvet-card {
    position: relative;
    flex: 0 0 auto;
    width: 220px;
    height: 102px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                background 0.35s ease, 
                border-color 0.35s ease, 
                box-shadow 0.35s ease,
                opacity 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-glass-sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.client-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.client-logo-media {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    max-height: 42px;
    width: 100%;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.65;
    filter: grayscale(100%) brightness(1.28) contrast(0.9);
}

.client-logo-media svg {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    height: auto;
    display: block;
}

.client-logo-media img.client-img-logo {
    max-width: 100%;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Outcome Tag Badge (Reveals on Hover) */
.client-outcome-tag {
    position: absolute;
    bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: #00222a;
    color: #00ffb2;
    border: 1px solid rgba(0, 255, 178, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Hover Elevation & Brand Color Bloom */
.client-velvet-card:hover {
    background: rgba(0, 48, 58, 0.85);
    border-color: #00ffb2;
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 255, 178, 0.25), 0 0 20px rgba(0, 255, 178, 0.12);
    z-index: 25;
}

.client-velvet-card:hover .client-logo-media {
    opacity: 1;
    filter: none;
    transform: translateY(-8px) scale(1.04);
}

.client-velvet-card:hover .client-outcome-tag {
    opacity: 1;
    transform: translateY(0);
}

/* Sector Filter States */
.client-velvet-card.is-dimmed {
    opacity: 0.16;
    filter: grayscale(100%) opacity(0.25);
    pointer-events: none;
    transform: scale(0.96);
}

.client-velvet-card.is-highlighted {
    border-color: rgba(0, 255, 178, 0.6);
    background: rgba(0, 255, 178, 0.08);
}

/* ========================================================
   BOTTOM ACTION BAND
   ======================================================== */
.client-logos-footer {
    position: relative;
    z-index: 2;
    margin-top: 55px;
}

.client-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    background: linear-gradient(135deg, rgba(0, 46, 56, 0.75) 0%, rgba(0, 28, 35, 0.85) 100%);
    border: 1px solid rgba(0, 255, 178, 0.18);
    border-radius: 18px;
    padding: 28px 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.footer-card-copy h4 {
    font-family: var(--wp--preset--font-family--syne), "Syne", sans-serif;
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
}

.footer-card-copy p {
    font-size: 14px;
    color: rgba(238, 245, 244, 0.7);
    margin: 0;
}

.footer-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.figma-button--primary {
    background: #00ffb2 !important;
    color: #00222a !important;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: 1px solid #00ffb2;
}

.figma-button--primary:hover {
    background: #DAFF08 !important;
    border-color: #DAFF08 !important;
    color: #00222a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 255, 8, 0.3);
}

.figma-button--ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.25s ease;
}

.figma-button--ghost:hover {
    background: rgba(0, 255, 178, 0.12) !important;
    border-color: #00ffb2 !important;
    color: #00ffb2 !important;
    transform: translateY(-2px);
}

/* ========================================================
   RESPONSIVE QUERIES
   ======================================================== */
@media (max-width: 992px) {
    .client-logos-section {
        padding: 70px 0 60px;
    }

    .client-footer-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-card-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .velvet-edge-fade {
        width: 70px;
    }

    .client-velvet-card {
        width: 175px;
        height: 80px;
        padding: 12px 14px;
    }
}
