/* ==========================
   OUR CLIENTS SECTION STYLES
=========================== */
.clients {
    background-color: var(--bg-white);
    padding: 4rem 0;
}

.clients-section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem 2rem;
    align-items: center;
    margin-top: 3rem;
}

.client-logo-item {
    text-align: center;
    transition: transform 0.3s ease; /* For hover scale on the item itself */
}

.client-logo-item:hover {
    transform: scale(1.08); /* Scale the whole item on hover */
}

.client-logo-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    opacity: 0.85; /* CORRECTED: Value between 0 and 1 */
    filter: brightness(115%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    /* filter: grayscale(100%); */
}

.client-logo-item img:hover {
    opacity: 1;
    /* filter: grayscale(0%); */
}

/* --- Logo Animations --- */
@keyframes logoFloatHorizontal1 { /* Moves left and back */
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

@keyframes logoFloatHorizontal2 { /* Moves right and back */
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes logoFloatVertical { /* Moves up and back */
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes logoBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-12px) scale(1.03); }
    60% { transform: translateY(-6px) scale(0.99); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.client-logo-item.anim-float-h-left img {
    animation: logoFloatHorizontal1 5s ease-in-out infinite;
}
.client-logo-item.anim-float-v-up img {
    animation: logoFloatVertical 4s ease-in-out infinite 0.4s; /* Staggered delay */
}
.client-logo-item.anim-bounce-1 img {
    animation: logoBounce 3.5s ease-in-out infinite 0.8s; /* Staggered delay */
}
.client-logo-item.anim-float-h-right img {
    animation: logoFloatHorizontal2 5s ease-in-out infinite 1.2s; /* Staggered delay */
}
.client-logo-item.anim-pulse img {
    animation: logoPulse 3s ease-in-out infinite 1.6s; /* Staggered delay */
}
.client-logo-item.anim-bounce-2 img {
    animation: logoBounce 3.5s ease-in-out infinite 2s; /* Staggered delay, same bounce */
}

/* END OUR CLIENTS SECTION STYLES */