/* =================================================================
   Partners/Logos Section - Professional Styles
   Real logos with grayscale-to-color effect
   ================================================================= */

/* Partners Section */
.partners-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.partners-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners-section .section-title {
    font-family: 'Romantice', serif;
    font-size: 3rem;
    color: #1D1C1C;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.partners-section .section-subtitle {
    font-size: 1.1rem;
    color: #6A6254;
    max-width: 600px;
    margin: 0 auto;
}

/* Partners Slider Container */
.partners-slider {
    position: relative;
    margin-top: 50px;
    overflow: hidden;
    padding: 20px 0;
}

/* Fade effect on edges */
.partners-slider::before,
.partners-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(90deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0) 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(270deg, 
        rgba(248, 249, 250, 1) 0%, 
        rgba(248, 249, 250, 0) 100%);
}

/* Partners Track - Infinite Scroll */
.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-partners 30s linear infinite;
    will-change: transform;
}

.partners-track:hover {
    animation-play-state: paused;
}

/* Partner Logo Card */
.partner-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(29, 28, 28, 0.02) 0%, 
        rgba(224, 220, 209, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Logo Image Styles */
.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.08);
}

/* Animation Keyframes */
@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculate based on: (logo width + gap) * number of logos */
        /* 180px + 60px = 240px per logo */
        /* For 8 logos: 240px * 8 = 1920px */
        transform: translateX(calc(-240px * 8));
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .partners-section {
        padding: 80px 20px;
    }
    
    .partners-section .section-title {
        font-size: 2.5rem;
    }
    
    .partner-logo {
        width: 140px;
        height: 90px;
        padding: 15px;
    }
    
    .partners-track {
        gap: 40px;
    }
    
    @keyframes scroll-partners {
        100% {
            transform: translateX(calc(-180px * 8));
        }
    }
    
    .partners-slider::before,
    .partners-slider::after {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 20px;
    }
    
    .partners-section .section-title {
        font-size: 2rem;
    }
    
    .partners-section .section-subtitle {
        font-size: 1rem;
    }
    
    .partner-logo {
        width: 120px;
        height: 80px;
        padding: 12px;
    }
    
    .partners-track {
        gap: 30px;
    }
    
    @keyframes scroll-partners {
        100% {
            transform: translateX(calc(-150px * 8));
        }
    }
    
    .partners-slider::before,
    .partners-slider::after {
        width: 80px;
    }
}

@media (max-width: 576px) {
    .partners-section {
        padding: 50px 15px;
    }
    
    .partners-section .section-title {
        font-size: 1.8rem;
    }
    
    .partner-logo {
        width: 100px;
        height: 70px;
        padding: 10px;
    }
    
    .partners-track {
        gap: 20px;
    }
    
    @keyframes scroll-partners {
        100% {
            transform: translateX(calc(-120px * 8));
        }
    }
    
    .partners-slider::before,
    .partners-slider::after {
        width: 60px;
    }
}

/* Loading State for Images */
.partner-logo img[src=""],
.partner-logo img:not([src]) {
    display: none;
}

.partner-logo img {
    background: linear-gradient(90deg, 
        rgba(224, 220, 209, 0.1) 0%, 
        rgba(224, 220, 209, 0.2) 50%, 
        rgba(224, 220, 209, 0.1) 100%);
    background-size: 200% 100%;
}

/* Optional: Add subtle pulse animation for better UX */
@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.partner-logo:nth-child(even):hover img {
    animation: pulse 2s ease-in-out infinite;
}
