/* Clients Carousel Styles */
.clients-carousel {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

.clients-carousel .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.clients-carousel .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.clients-carousel .section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.clients-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clients-track-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    gap: 3rem;
    animation: scroll-left 15s linear infinite;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.clients-track:active {
    cursor: grabbing;
}

/* Pause animation on hover */
.clients-carousel-wrapper:hover .clients-track {
    animation-play-state: paused;
}

/* Manual scroll buttons */
.carousel-nav-btn {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn i {
    font-size: 1.2rem;
}

.client-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 120px;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.client-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.client-logo-link:hover {
    opacity: 0.8;
}

.client-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo-item:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animation for right-to-left scrolling */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

/* RTL Support */
[dir="rtl"] .clients-track {
    animation: scroll-right 15s linear infinite;
}

[dir="rtl"] .clients-carousel-wrapper:hover .clients-track {
    animation-play-state: paused;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(33.333%);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .client-logo-item {
        width: 180px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .clients-carousel {
        padding: 3rem 0;
    }

    .clients-carousel .section-header h2 {
        font-size: 2rem;
    }

    .clients-track {
        gap: 2rem;
        animation-duration: 12s;
    }

    .client-logo-item {
        width: 150px;
        height: 90px;
        padding: 0.75rem;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .client-logo-item {
        width: 120px;
        height: 80px;
        padding: 0.5rem;
    }

    .clients-track {
        gap: 1.5rem;
        animation-duration: 10s;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }

    .carousel-nav-btn i {
        font-size: 0.9rem;
    }
}

