/* ===================================
   REFERENTIES SECTIE - SCROLLING MARQUEE
   =================================== */

.references-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.references-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 101, 0, 0.3) 50%, 
        transparent 100%
    );
}

.references-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.references-section .section-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.references-section .section-subtitle {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Marquee Wrapper */
.references-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* Gradient fade edges */
.references-marquee-wrapper::before,
.references-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.references-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
}

.references-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* Marquee Track - Scrolling container */
.references-marquee-track {
    display: flex;
    gap: 100px;
    animation: marquee 60s linear infinite;
    width: fit-content;
    will-change: transform;
}

.references-marquee-track:hover {
    animation-play-state: paused;
}

/* Individual logo items */
.reference-marquee-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.reference-marquee-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 101, 0, 0.15);
}

.reference-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.reference-marquee-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Fallback voor partners zonder logo */
.reference-text-fallback {
    font-size: 1em;
    font-weight: 600;
    color: #666;
    text-align: center;
    padding: 10px;
    transition: color 0.3s ease;
}

.reference-marquee-item:hover .reference-text-fallback {
    color: #f56500;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* CTA onder de marquee */
.references-cta {
    text-align: center;
    margin-top: 50px;
}

.references-note {
    font-size: 1.1em;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .references-marquee-track {
        gap: 80px;
        animation-duration: 50s;
    }
    
    .reference-marquee-item {
        width: 180px;
        height: 90px;
        padding: 15px;
    }
    
    .references-marquee-wrapper::before,
    .references-marquee-wrapper::after {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .references-section {
        padding: 60px 20px;
    }
    
    .references-section .section-title {
        font-size: 2em;
    }
    
    .references-section .section-subtitle {
        font-size: 1em;
    }
    
    .references-marquee-track {
        gap: 60px;
        animation-duration: 40s;
    }
    
    .reference-marquee-item {
        width: 150px;
        height: 80px;
        padding: 12px;
    }
    
    .references-marquee-wrapper::before,
    .references-marquee-wrapper::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .references-marquee-track {
        gap: 40px;
        animation-duration: 30s;
    }
    
    .reference-marquee-item {
        width: 120px;
        height: 70px;
        padding: 10px;
    }
    
    .references-marquee-wrapper::before,
    .references-marquee-wrapper::after {
        width: 40px;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .references-marquee-track {
        animation: none;
    }
    
    .references-marquee-track {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

/* GPU acceleration */
.references-marquee-track {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
