/* ============================================
   NEXIROX — Brands Bar Section Styles (Improved)
   ============================================ */

.nx-brands {
    padding: 3rem 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.nx-brands::before,
.nx-brands::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.nx-brands::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.nx-brands::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.nx-brands__track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
    animation: scroll-brands 30s linear infinite;
    will-change: transform;
}

.nx-brands__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 60px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nx-brands__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-brands__item:hover img {
    filter: grayscale(0) brightness(1) !important;
    transform: scale(1.1);
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nx-brands {
        padding: 2rem 0;
    }

    .nx-brands__track {
        gap: 2rem;
    }

    .nx-brands__item {
        min-width: 100px;
        height: 50px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nx-brands {
        padding: 1.5rem 0;
    }

    .nx-brands::before,
    .nx-brands::after {
        width: 50px;
    }

    .nx-brands__track {
        gap: 1.5rem;
    }

    .nx-brands__item {
        min-width: 80px;
        height: 40px;
        font-size: 0.7rem;
    }
}
