/* Enhanced Partners Section Styles */
.partners-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .partners-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
        background-size: 20px 20px;
        pointer-events: none;
    }

/* .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
} */

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.whychooseus-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.highlight-text {
    color: #007bff;
}

.partners-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

.brands-container {
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 15px 15px;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 10;
}

    .carousel-btn:hover {
        background: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    }

/* Brands Carousel Container */
.brands-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    height: 280px;
    position: relative;
}

/* Main Brands Grid */
#brandsGrid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Brand Rows */
.brand-row {
    display: flex;
    gap: 20px;
    height: 120px;
    position: relative;
    will-change: transform;
}

.brand-row-inner {
    display: flex;
    gap: 20px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Top row moves left */
.top-row .brand-row-inner {
    animation-name: scrollLeft;
    animation-duration: 30s;
}

/* Bottom row moves right */
.bottom-row .brand-row-inner {
    animation-name: scrollRight;
    animation-duration: 30s;
}

/* Keyframe animations */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Brand Items */
.brand-item {
    flex: 0 0 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 15px;
    border: 2px solid transparent;
}

    .brand-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #007bff;
    }

.brand-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .brand-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.brand-item:hover .brand-logo img {
    transform: scale(1.05);
}

.demo-brand {
    font-weight: 600;
    color: #333;
    text-align: center;
    font-size: 14px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .carousel-dot.active {
        background: #007bff;
        transform: scale(1.2);
    }

    .carousel-dot:hover {
        background: #0056b3;
    }

/* Pause animation on hover */
.carousel-wrapper:hover .brand-row-inner {
    animation-play-state: paused;
}

/* Speed control classes */
.speed-slow .brand-row-inner {
    animation-duration: 45s !important;
}

.speed-fast .brand-row-inner {
    animation-duration: 20s !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-item {
        flex: 0 0 150px;
        height: 100px;
        padding: 10px;
    }

    .brand-row {
        gap: 15px;
        height: 100px;
    }

    .brand-row-inner {
        gap: 15px;
    }

    .brands-carousel {
        height: 240px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
    }

    .partners-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .brand-item {
        flex: 0 0 120px;
        height: 80px;
        padding: 8px;
    }

    .brand-row {
        gap: 10px;
        height: 80px;
    }

    .brand-row-inner {
        gap: 10px;
    }

    .brands-carousel {
        height: 200px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-wrapper {
        gap: 12px;
    }

    .whychooseus-section-title {
        font-size: 2rem;
    }
}