/* ===================================
   PARTNERS LOGOS SECTION - MODERN B2B
   =================================== */

.partners-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}

/* Scrolling Container */
.partners-scroll {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 64px;
    animation: scroll-partners 45s linear infinite;
    width: fit-content;
}

/* Pause animation on hover */
.partners-track:hover {
    animation-play-state: paused;
}

/* Partner Logo */
.partner-logo {
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.partner-logo:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Real Logo Image */
.logo-img {
    width: 180px;
    height: 80px;
    object-fit: contain;
    filter: opacity(0.85);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.logo-img:hover {
    filter: opacity(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Fallback for logos that don't load */
.logo-fallback {
    width: 180px;
    height: 80px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-fallback:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Scroll Animation */
@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats */
.stat-item {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
}

.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .partners-section {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }

    .partners-track {
        gap: 56px;
        animation-duration: 35s;
    }

    .logo-img,
    .logo-fallback {
        width: 160px;
        height: 72px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
    }

    .partners-scroll {
        padding: 16px 0;
    }

    .partners-track {
        gap: 40px;
        animation-duration: 28s;
    }

    .logo-img,
    .logo-fallback {
        width: 130px;
        height: 60px;
        padding: 12px;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 14px;
    }

    /* Stack trust metrics on mobile */
    .partners-section .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Adjust header text for mobile */
    .partners-section h2 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .partners-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .partners-scroll {
        padding: 12px 0;
    }

    .partners-track {
        gap: 32px;
        animation-duration: 22s;
    }

    .logo-img,
    .logo-fallback {
        width: 110px;
        height: 50px;
        padding: 10px;
        border-radius: 8px;
    }

    .logo-text {
        font-size: 12px;
    }

    /* Smaller header on very small screens */
    .partners-section h2 {
        font-size: 1.5rem;
    }

    .partners-section p {
        font-size: 0.875rem;
    }

    /* Reduce stat text size */
    .stat-item .text-3xl {
        font-size: 1.75rem;
    }

    .stat-item .text-sm {
        font-size: 0.75rem;
    }
}

/* Performance Optimizations */
.partners-track {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }

    .partner-logo:hover,
    .logo-fallback:hover,
    .stat-item:hover {
        transform: none;
    }

    .logo-img {
        transition: none;
    }
}