/* ===================================
   OUR PARTNERS CAROUSEL SECTION
   Premium Smooth Scrolling Animation
   =================================== */

.partners-section {
    padding: 60px 0 50px 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(26, 60, 109, 0.22) 0%, transparent 45%),
        linear-gradient(135deg, 
            #e8eef5 0%, 
            rgba(212, 175, 55, 0.16) 15%,
            rgba(26, 60, 109, 0.15) 35%,
            rgba(212, 175, 55, 0.12) 50%,
            rgba(26, 60, 109, 0.15) 65%,
            rgba(212, 175, 55, 0.16) 85%,
            #e8eef5 100%
        );
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.3) 20%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.3) 80%, transparent 100%);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.partners-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(26, 60, 109, 0.3) 20%, rgba(26, 60, 109, 0.6) 50%, rgba(26, 60, 109, 0.3) 80%, transparent 100%);
    box-shadow: 0 -2px 10px rgba(26, 60, 109, 0.15);
}

/* Decorative geometric pattern overlay */
.partners-section .container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.partners-section .container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(26, 60, 109, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.partners-section .container {
    position: relative;
}

/* Header Styling */
.partners-header {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    z-index: 1;
}

.partners-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    background-size: 200% 100%;
    color: #1a3c6d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.4),
        0 8px 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.partners-badge i {
    font-size: 16px;
}

.partners-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(
        135deg,
        #1a3c6d 0%,
        #2d5a8f 20%,
        #d4af37 40%,
        #f4d03f 50%,
        #d4af37 60%,
        #2d5a8f 80%,
        #1a3c6d 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.partners-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Carousel Wrapper */
.partners-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    z-index: 1;
}

/* Gradient Fade Edges */
.partners-carousel-wrapper::before,
.partners-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(232, 238, 245, 1) 0%, 
        rgba(232, 238, 245, 0.8) 30%, 
        rgba(232, 238, 245, 0) 100%);
}

.partners-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(232, 238, 245, 1) 0%, 
        rgba(232, 238, 245, 0.8) 30%, 
        rgba(232, 238, 245, 0) 100%);
}

/* Carousel Container */
.partners-carousel {
    overflow: hidden;
    position: relative;
}

/* Partners Track - This moves */
.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scrollPartners 9s linear infinite;
    will-change: transform;
}

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

/* Smooth Left-to-Right Scrolling Animation */
@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Individual Partner Item */
.partner-item {
    flex-shrink: 0;
    width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(26, 60, 109, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.partner-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.2);
}

.partner-item:hover::before {
    opacity: 1;
}

/* Partner Logo */
.partner-logo {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
}

/* Alternative: Faster Scroll Speed */
@media (prefers-reduced-motion: no-preference) {
    .partners-track {
        animation-duration: 9s; /* Adjust for speed: lower = faster */
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
    
    .partners-carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #d4af37 #f0f0f0;
    }
    
    .partners-carousel-wrapper::-webkit-scrollbar {
        height: 6px;
    }
    
    .partners-carousel-wrapper::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .partners-carousel-wrapper::-webkit-scrollbar-thumb {
        background: #d4af37;
        border-radius: 3px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .partners-header h2 {
        font-size: 36px;
    }
    
    .partners-track {
        gap: 60px;
    }
    
    .partner-item {
        width: 240px;
        height: 120px;
    }
    
    .partner-logo {
        max-height: 75px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0 40px 0;
    }
    
    .partners-header {
        margin-bottom: 40px;
    }
    
    .partners-header h2 {
        font-size: 32px;
    }
    
    .partners-header p {
        font-size: 16px;
    }
    
    .partners-badge {
        font-size: 11px;
        padding: 10px 24px;
    }
    
    .partners-track {
        gap: 50px;
        animation-duration: 8s; /* Faster on mobile */
    }
    
    .partner-item {
        width: 200px;
        height: 100px;
        padding: 20px;
    }
    
    .partner-logo {
        max-height: 65px;
    }
    
    .partners-carousel-wrapper::before,
    .partners-carousel-wrapper::after {
        width: 80px;
    }
    
    /* Enable touch scrolling on mobile */
    .partners-carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .partners-carousel-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    /* Disable animation on mobile when scrolling */
    .partners-carousel:hover .partners-track,
    .partners-carousel-wrapper:active .partners-track {
        animation-play-state: paused;
    }
}

@media (max-width: 480px) {
    .partners-section {
        padding: 40px 0 35px 0;
    }
    
    .partners-header h2 {
        font-size: 28px;
    }
    
    .partners-header p {
        font-size: 15px;
    }
    
    .partners-track {
        gap: 40px;
        animation-duration: 6s; /* Even faster on small mobile */
    }
    
    .partner-item {
        width: 170px;
        height: 85px;
        padding: 15px;
    }
    
    .partner-logo {
        max-height: 55px;
    }
    
    .partners-carousel-wrapper::before,
    .partners-carousel-wrapper::after {
        width: 50px;
    }
    
    /* Enhanced touch scrolling on small mobile */
    .partners-carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

/* ===================================
   ALTERNATIVE STYLES (OPTIONAL)
   =================================== */

/* Option 1: Add subtle background pattern */
.partners-section.with-pattern {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.02) 10px,
            rgba(212, 175, 55, 0.02) 20px
        );
}

/* Option 2: Dark theme version */
.partners-section.dark-theme {
    background: linear-gradient(135deg, #1a3c6d 0%, #2d5a8f 100%);
}

.partners-section.dark-theme .partners-header h2,
.partners-section.dark-theme .partners-header p {
    color: #fff;
}

.partners-section.dark-theme .partner-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.partners-section.dark-theme .partner-logo {
    filter: grayscale(100%) brightness(2) opacity(0.8);
}

.partners-section.dark-theme .partner-item:hover .partner-logo {
    filter: grayscale(0%) brightness(1.2) opacity(1);
}

.partners-section.dark-theme .partners-carousel-wrapper::before {
    background: linear-gradient(to right, #1a3c6d, rgba(26, 60, 109, 0));
}

.partners-section.dark-theme .partners-carousel-wrapper::after {
    background: linear-gradient(to left, #2d5a8f, rgba(45, 90, 143, 0));
}
