/* INDUSTRY PARTNERS SECTION */
.industry-partners {
    width: 100%;
    background-color: #FFFFFF;
    padding: 4rem 0; /* Increased vertical height for prominence */
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color); /* Subtle separation */
}

.industry-partners-header {
    text-align: center;
    margin-bottom: 2rem;
}

.industry-partners-header p {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.industry-partners__track-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
    /* Edge fade effect */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.industry-partners__track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.logo-set {
    display: flex;
    align-items: center;
    gap: 5rem; /* Base gap for desktop */
    padding-right: 5rem; /* Gap between set 1 and set 2 */
}

.industry-partners__track:hover {
    animation-play-state: paused;
}

.industry-partners__track img {
    height: 40px; /* Increased consistent visual height */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.industry-partners__track img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        /* Move left by exactly half the track width (one full set of logos plus one gap) */
        /* Wait, gap calculation in flexbox means the total width is slightly tricky.
           The easiest way is to wrap the original set in a container and the duplicate in a container, 
           or calculate -50%. */
        transform: translate3d(-50%, 0, 0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .industry-partners__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .industry-partners__track-wrapper {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }
    
    /* Hide the duplicate set if reduced motion is enabled */
    .industry-partners__track .duplicate-set {
        display: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .industry-partners {
        padding: 3rem 0;
    }
    .logo-set {
        gap: 4rem;
        padding-right: 4rem;
    }
    .industry-partners__track img {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .industry-partners {
        padding: 2.5rem 0;
    }
    .industry-partners-header {
        margin-bottom: 1.5rem;
    }
    .logo-set {
        gap: 3rem;
        padding-right: 3rem;
    }
    .industry-partners__track img {
        height: 28px;
    }
}
