﻿/* ─── Client Marquee Styles ────────────────────────────────────────────────── */

.marquee-section {
    padding: 3rem 0;
    width: 100%;
    background-color: #e1ebf3;
}

.marquee-label {
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.12em;
    /*text-transform: uppercase;*/
    color: #111111;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Track with left/right fade edges */
.marquee-track {
    overflow: hidden;
    position: relative;
 padding:10px;
}

    .marquee-track::before,
    .marquee-track::after {
        content: '';
        position: absolute;
        top: 0;
        width: 100px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .marquee-track::before {
        left: 0;
        background: linear-gradient(to right, #ffffff, transparent);
    }

    .marquee-track::after {
        right: 0;
        background: linear-gradient(to left, #ffffff, transparent);
    }

/* Scrolling strip — doubled in markup for seamless loop */
.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}

    .marquee-inner:hover {
        animation-play-state: paused;
    }

/* Individual logo card */
.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 172px;
    height: 76px;
    margin: 0 14px;
    border-radius: 12px;
    border: 1px solid #b9d4e9;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07), 0 4px 8px rgba(0,0,0,0.07), 0 8px 16px rgba(0,0,0,0.07), 0 16px 32px rgba(0,0,0,0.07), 0 32px 64px rgba(0,0,0,0.07);
}

    .logo-card:hover {
        border-color: #c8c8c8;
        transform: translateY(-2px);
    }

/* Fallback: initials badge + client name */
.logo-inner {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    width: 100%;
}

.initials-badge {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.client-name {
    font-size: 13px;
    font-weight: 500;
    color: #111111;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Logo image — lazy loaded ──────────────────────────────────────────────── */

.logo-img-only {
    max-width: 140px;
    max-height: 52px;
    object-fit: contain;
    display: block;
    margin: auto;
    /* Hidden until fully loaded — JS removes this class */
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .logo-img-only.loaded {
        opacity: 1;
    }

/* ─── Skeleton shimmer (shown while image is loading) ───────────────────────── */

.logo-skeleton {
    width: 110px;
    height: 36px;
    border-radius: 6px;
    background: #f0f0f0;
    background-image: linear-gradient( 90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px );
    background-size: 200px 100%;
    animation: shimmer 1.4s infinite linear;
    position: absolute;
}

    /* Skeleton is hidden once image loads — toggled by JS */
    .logo-skeleton.hidden {
        display: none;
    }

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

/* ─── Scroll animation ──────────────────────────────────────────────────────── */

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
