.brands-grid-section {
    background-color: #1a1a1a;
    padding: 0;
    padding-top: 30px;
    padding-bottom: 30px;
    overflow: hidden;
}

.brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.brands-slider::before,
.brands-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-slider::before {
    left: 0;
    background: linear-gradient(to right, #151515 0%, rgba(11, 11, 11, 0) 100%);
}

.brands-slider::after {
    right: 0;
    background: linear-gradient(to left, #151515 0%, rgba(11, 11, 11, 0) 100%);
}

.brands-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 20px;
}

.brand-item {
    background-color: #161616;
    border-radius: 12px;
    height: 120px;
    width: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.brand-item img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    opacity: 0.9;
    filter: none !important;
    -webkit-filter: grayscale(0) !important;
    transition: all 0.4s ease;
}

.brand-item:hover {
    background-color: #1a1a1a;
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.brand-item:hover img {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

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

@media (max-width: 767px) {
    .brand-item {
        width: 180px;
        height: 100px;
    }
}
