/* ========================================
   CLIENTS SECTION - "TRUSTED BY"
   ======================================== */

/* Main Clients Section */
.clients-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--deep-navy) 100%);
    position: relative;
    overflow: hidden;
}

/* Wrapper for infinite scroll effect */
.clients-section .container {
    position: relative;
    z-index: 1;
    overflow: hidden;
    max-width: 100%;
    padding: 0;
}

.clients-section .section-title,
.clients-section .clients-subtitle {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Clients Subtitle */
.clients-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Clients Grid - Sliding Animation Container */
.clients-grid {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 0;
    animation: slideLeft 30s linear infinite;
    width: max-content;
}

/* Pause animation on hover */
.clients-grid:hover {
    animation-play-state: paused;
}

/* Sliding Left Animation */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Individual Client Logo Container */
.client-logo {
    position: relative;
    height: 120px;
    min-width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(7, 7, 29, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

/* Lemon-Green Glow Effect Background */
.client-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 148, 0.15) 0%,
        rgba(0, 255, 148, 0.08) 30%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
    transform: scale(0.5);
    z-index: 0;
}

/* Animated Border Glow */
.client-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 148, 0) 0%,
        rgba(0, 255, 148, 0.6) 50%,
        rgba(0, 255, 148, 0) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Client Logo Image */
.client-logo img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Hover Effects */
.client-logo:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(7, 7, 29, 0.7);
    border-color: rgba(0, 255, 148, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 148, 0.2),
        inset 0 0 20px rgba(0, 255, 148, 0.1);
}

.client-logo:hover::before {
    opacity: 1;
    transform: scale(1);
}

.client-logo:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

.client-logo:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.1);
    drop-shadow: 0 0 20px rgba(0, 255, 148, 0.4);
}

/* Border Glow Animation */
@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Pulsing Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(0, 255, 148, 0.2),
            inset 0 0 20px rgba(0, 255, 148, 0.1);
    }
    50% {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(0, 255, 148, 0.4),
            inset 0 0 30px rgba(0, 255, 148, 0.2);
    }
}

.client-logo:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Staggered Animation removed for sliding effect */
.client-logo {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clients-grid {
        gap: 2rem;
        animation: slideLeft 25s linear infinite;
    }
    
    .client-logo {
        height: 110px;
        min-width: 180px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .clients-grid {
        gap: 1.5rem;
        animation: slideLeft 20s linear infinite;
    }
    
    .client-logo {
        height: 100px;
        min-width: 160px;
        padding: 1.2rem;
    }
    
    .clients-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        gap: 1.2rem;
        animation: slideLeft 15s linear infinite;
    }
    
    .client-logo {
        height: 90px;
        min-width: 140px;
        padding: 1rem;
    }
    
    .clients-subtitle {
        font-size: 0.95rem;
    }
}