/* Brands Section - Smooth Animation */
.brands-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    border: 2px solid rgba(253,126,20,0.2);
}

.brands-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 30px;
    animation: scrollBrands 40s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    width: max-content;
    will-change: transform;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.brand-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(253,126,20,0.25) !important;
    border-color: #fd7e14 !important;
}

.brand-item img {
    max-width: 130px;
    max-height: 80px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

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

@keyframes scrollBrands {
    0% { 
        transform: translate3d(0, 0, 0); 
    }
    100% { 
        transform: translate3d(-50%, 0, 0); 
    }
}

/* Pause animation on hover for better UX */
.brands-section:hover .brand-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
