/* ==================== Brand Marquee - Integrated into Hero ==================== */

.brands-marquee-section {
    width: calc(100% - 30px);
    max-width: 2200px;
    position: relative;
    background-color: #ffffff;
    padding: 20px 0;
    margin: 60px auto 0;
    overflow: hidden;
    border-radius: 12px;
}

.brands-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.brands-track {
    display: flex;
    animation: scroll-infinite 40s linear infinite;
    width: max-content;
}

/* Gradient fade at edges for smooth effect with better blur - Notion style */
.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    min-width: 200px;
    max-width: 500px;
    z-index: 10;
    pointer-events: none;
}



.brands-track img {
    height: 61px;
    width: auto;
    margin: 0 40px;
    opacity: 0.7;
    filter: grayscale(100%) brightness(0.9);
    transition: all 0.3s ease;
}


/* Seamless infinite scroll animation */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Animation controlled via JavaScript Web Animations API for smooth transitions */

/* Responsive adjustments */
@media (max-width: 768px) {
    .brands-track img {
        height: 44px;
        margin: 0 35px;
    }
    
    .brands-marquee-section {
        width: calc(100% - 40px);
        padding: 22px 0;
        margin-top: 40px;
    }
    
    .brands-marquee::before,
    .brands-marquee::after {
        width: 30%;
        min-width: 150px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .brands-track img {
        height: 40px;
        margin: 0 25px;
    }
    
    .brands-marquee-section {
        width: calc(100% - 30px);
        padding: 17px 0;
        margin-top: 30px;
    }
    
    .brands-marquee::before,
    .brands-marquee::after {
        width: 35%;
        min-width: 120px;
        max-width: 250px;
    }
}

/* Performance optimization */
.brands-marquee {
    will-change: transform;
}

.brands-track {
    will-change: transform;
}
