/* --- Clients Section --- */
.recilens-clients-section {
    padding: 100px 5%;
    background-color: var(--recilens-bg-dark, #0a0a1a);
}

.recilens-clients-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recilens-clients-header {
    text-align: center;
    margin-bottom: 60px;
}

.recilens-clients-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--recilens-text-light, #e0e0ff);
    margin-bottom: 15px;
}

.recilens-clients-subtitle {
    font-size: 1.1rem;
    color: var(--recilens-text-medium, #a0a0c0);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Logo Scroller / Grid --- */
.recilens-clients-logo-wrapper {
    width: 100%;
}

.recilens-clients-scroller {
    width: 100%;
}

.recilens-clients-scroller-inner {
    display: flex;
    justify-content: center; /* Center items if not scrolling */
    flex-wrap: wrap; /* Allow wrapping for non-scrolling view */
    gap: 40px;
}

/* Styles for when scrolling is active */
.recilens-clients-scroller.is-scrolling {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.recilens-clients-scroller.is-scrolling .recilens-clients-scroller-inner {
    width: max-content;
    flex-wrap: nowrap; /* Prevent wrapping when scrolling */
    justify-content: flex-start;
    animation: recilens_client_scroll 60s linear infinite;
}

/* --- Individual Logo Item --- */
.recilens-client-logo-item {
    position: relative;
    height: 120px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.recilens-client-logo-item img {
    max-height: 100%;
    max-width: 100%;
    filter: brightness(0.7) grayscale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.recilens-client-logo-item:hover img {
    filter: brightness(1) grayscale(0);
    transform: scale(1.1);
}

/* Name overlay on hover */
.recilens-client-name-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 600;
    padding: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.recilens-client-logo-item:hover .recilens-client-name-overlay {
    opacity: 1;
    transform: translateY(0);
}

@keyframes recilens_client_scroll {
    to {
        transform: translateX(calc(-50% - 20px)); /* Half the width minus half the gap */
    }
}
