.clients-section {
    position: relative;
    padding: 100px 0 20px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(227, 6, 19, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 6, 19, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.3;
    pointer-events: none;
}

.clients-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clients-header {
    text-align: center;
    margin-bottom: 70px;
}

.clients-header h6 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E30613;
    margin-bottom: 12px;
}

.clients-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    letter-spacing: -0.3px;
}

.clients-header p {
    font-size: 1.05rem;
    color: #666666;
    max-width: 650px;
    margin: 18px auto 0;
    line-height: 1.7;
}

.clients-carousel {
    width: min(100%, 1160px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 0 20px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, 
        transparent 0%, 
        black 12%, 
        black 88%, 
        transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, 
        transparent 0%, 
        black 12%, 
        black 88%, 
        transparent 100%);
    position: relative;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    backdrop-filter: blur(1px);
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(250, 250, 250, 1) 0%, 
        rgba(250, 250, 250, 0.8) 40%,
        rgba(250, 250, 250, 0) 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(250, 250, 250, 1) 0%, 
        rgba(250, 250, 250, 0.8) 40%,
        rgba(250, 250, 250, 0) 100%);
}

.clients-carousel.owl-carousel {
    display: flex;
    width: min(100%, 1160px);
    max-width: 1160px;
    margin: 0 auto;
}

.clients-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: clientsMarquee var(--marquee-duration, 30s) linear infinite;
    will-change: transform;
}

.clients-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.clients-carousel .owl-stage {
    display: flex;
    width: max-content;
}

.clients-carousel::before,
.clients-carousel::after {
    width: 110px;
    background-color: rgba(17, 19, 24, 0.9);
}

@keyframes clientsMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--marquee-offset, 0px)));
    }
}

.client-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 190px;
    width: 190px;
    min-height: 120px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: visible;
}

.client-item:hover {
    transform: scale(1.08);
}

.client-logo {
    position: relative;
    z-index: 2;
    max-width: 180px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    filter: none;
    transition: all 0.4s ease;
}

.client-item:hover .client-logo {
    filter: none;
    transform: scale(1.05);
}

.clients-trust-message {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e7;
}

.clients-trust-message p {
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    margin: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.clients-trust-message span {
    color: #E30613;
    font-weight: 800;
}

.clients-cta {
    text-align: center;
    margin-top: 45px;
}

.clients-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #E30613;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: 2px solid #E30613;
}

.clients-cta-link:hover {
    background: transparent;
    color: #E30613;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.2);
}

.clients-cta-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.owl-theme .owl-controls {
    display: none;
}

@media (max-width: 768px) {
    .clients-section {
        padding: 60px 0;
    }

    .clients-header h2 {
        font-size: 2rem;
    }

    .clients-header p {
        font-size: 0.95rem;
    }

    .client-item {
        flex-basis: 160px;
        width: 160px;
        min-height: 110px;
        padding: 12px;
    }

    .client-logo {
        max-width: 150px;
        max-height: 90px;
    }

    .clients-trust-message p {
        font-size: 1rem;
    }

    .clients-cta-link {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .clients-header h2 {
        font-size: 1.5rem;
    }

    .client-item {
        flex-basis: 140px;
        width: 140px;
        min-height: 95px;
        padding: 10px;
    }

    .client-logo {
        max-width: 130px;
        max-height: 80px;
    }

    .clients-cta-link {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .clients-cta-link svg {
        width: 16px;
        height: 16px;
    }
}
