.brands-section {
    padding: 150px 0 100px;
    overflow: hidden;
}

.brands-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--tertiary-color);
    text-align: center;
    margin-bottom: 40px;
}

.brands-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 20px;
    direction: ltr;
    background: var(--white-color);
    box-shadow: 0 40px 70px rgba(11, 170, 241, 0.3);
    border-radius: 32px;
}

.brands-track {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    padding: 20px;
}

.brand-item:hover {
    transform: translateY(-4px);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-140px * 7 - 80px * 7));
    }
}

@media (max-width: 1400px) {
    .brands-conatiner {
        padding: 0 32px;
    }
}

@media (max-width: 1200px) {
    .brands-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .brands-section {
        padding: 120px 0 100px;
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    .brands-section {
        padding: 100px 0 100px;
        overflow: hidden;
    }

    .brands-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {

    .brands-section {
        padding: 90px 0 100px;
        overflow: hidden;
    }

    .brands-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .brands-track {
        gap: 10px;
    }

    .brand-item {
        width: 130px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .brands-conatiner {
        padding: 0;
    }

    .brands-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .brand-item {
        width: 120px;
        height: 80px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .brands-section {
        padding: 80px 0 100px;
    }

    .brand-item {
        width: 100px;
        height: 60px;
        padding: 10px;
    }

    .brands-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .brands-slider {
        border-radius: 24px;
    }

    .brands-track {
        gap: 0px;
    }
}

@media (max-width: 390px) {
    .brands-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .brand-item {
        width: 80px;
        height: 56px;
        padding: 10px;
    }
}