#logo-scroll {
    background-color: #1f1f1f;
    padding-bottom: 80px;
    padding-top: 0px;
    overflow: hidden;
}

#logo-scroll .logo-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#logo-scroll .logo-scroll-container::before,
#logo-scroll .logo-scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 10;
    pointer-events: none;
}

#logo-scroll .logo-scroll-container::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(31, 31, 31, 1) 0%,
        rgba(31, 31, 31, 1) 25%,
        rgba(31, 31, 31, 0.95) 30%,
        rgba(31, 31, 31, 0.9) 35%,
        rgba(31, 31, 31, 0.8) 40%,
        rgba(31, 31, 31, 0.65) 45%,
        rgba(31, 31, 31, 0.5) 50%,
        rgba(31, 31, 31, 0.35) 55%,
        rgba(31, 31, 31, 0.2) 60%,
        rgba(31, 31, 31, 0.1) 70%,
        rgba(31, 31, 31, 0.05) 80%,
        rgba(31, 31, 31, 0) 100%
    );
}

#logo-scroll .logo-scroll-container::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(31, 31, 31, 1) 0%,
        rgba(31, 31, 31, 1) 25%,
        rgba(31, 31, 31, 0.95) 30%,
        rgba(31, 31, 31, 0.9) 35%,
        rgba(31, 31, 31, 0.8) 40%,
        rgba(31, 31, 31, 0.65) 45%,
        rgba(31, 31, 31, 0.5) 50%,
        rgba(31, 31, 31, 0.35) 55%,
        rgba(31, 31, 31, 0.2) 60%,
        rgba(31, 31, 31, 0.1) 70%,
        rgba(31, 31, 31, 0.05) 80%,
        rgba(31, 31, 31, 0) 100%
    );
}

#logo-scroll .logo-scroll-track {
    display: flex;
    gap: 80px;
    animation: scroll-logos 30s linear infinite;
    white-space: nowrap;
    align-items: center;
    width: max-content;
}

#logo-scroll .logo-img {
    height: 60px;
    margin: 10px 30px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

#logo-scroll .logo-img:hover {
    opacity: 1;
}

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

@media (max-width: 768px) {
    #logo-scroll {
        padding: 60px 0;
    }

    #logo-scroll .logo-scroll-track {
        gap: 40px;
        animation-duration: 40s;
    }

    #logo-scroll .logo-img {
        height: 40px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #logo-scroll {
        padding: 40px 0;
    }

    #logo-scroll .logo-scroll-track {
        gap: 20px;
        animation-duration: 40s;
    }

    #logo-scroll .logo-img {
        height: 30px;
        max-width: 240px;
    }
}
