/* ======= قسم عملاؤنا ======= */
.clients-section {
    padding: 80px 40px;
    padding-bottom: 10rem;
    text-align: center;
    overflow: hidden;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0px;
}

.clients-section .section-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    margin-top: 0%;
}

.clients-carousel {
    position: relative;
    left: -50%;
    transform: translateX(50%);
    width: 100vw;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--standard-shadow);
    padding: 20px 0;
}

.clients-track {
    display: flex;
    width: max-content;
    gap: 5rem;
    animation: scroll-infinite 45s linear infinite;
}

.clients-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    flex-shrink: 0;
}

.clients-track img:hover {
    filter: grayscale(0%);
}

.clients-carousel:hover .clients-track {
    animation-play-state: paused;
}

/* تعريف الحركة الأفقية المحسنة للحلقة اللانهائية */
@keyframes scroll-infinite {
    0% {
        transform: translateX(40%);
    }

    100% {
        transform: translateX(-10%);
    }
}

/* إضافة تأثير fade للحواف */
.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(31, 31, 31, 1), transparent);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(31, 31, 31, 1), transparent);
}

/* ✨ تحسين للاستجابة */
@media (max-width: 1200px) {
    .clients-section .section-title {
        font-size: 3rem;
    }

    .clients-track img {
        height: 50px;
    }

    .clients-track {
        gap: 4rem;
    }
}

/* شاشات الموبايل */
@media (max-width: 768px) {
    .clients-section {
        padding-bottom: 5rem;
    }

    .clients-section .section-title {
        font-size: 2rem;
        margin-bottom: 8%;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .clients-track img {
        height: 40px;
    }

    .clients-track {
        gap: 3rem;
        animation-duration: 25s;
        /* حركة أبطأ قليلاً على الموبايل */
    }

    .clients-carousel::before,
    .clients-carousel::after {
        width: 50px;
    }
}