/* ============================================
   TECHNOLOGY PARTNERS SECTION
   ============================================ */

.technology-partners-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    background: #06036d;
    overflow: hidden;
}

/* Grid Pattern Overlay */
.tech-partners-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(242, 129, 32, 0.05) 25%, rgba(242, 129, 32, 0.05) 26%, transparent 27%, transparent 74%, rgba(242, 129, 32, 0.05) 75%, rgba(242, 129, 32, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(242, 129, 32, 0.05) 25%, rgba(242, 129, 32, 0.05) 26%, transparent 27%, transparent 74%, rgba(242, 129, 32, 0.05) 75%, rgba(242, 129, 32, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Diagonal Grid Pattern Alternative */
.tech-partners-diagonal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(242, 129, 32, 0.1) 10px,
            rgba(242, 129, 32, 0.1) 11px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(242, 129, 32, 0.1) 10px,
            rgba(242, 129, 32, 0.1) 11px
        );
    pointer-events: none;
    z-index: 1;
}

/* Container */
.tech-partners-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    z-index: 2;
}

/* Section Header */
.tech-partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-partners-heading {
    font-size: 52px;
    font-weight: 800;
    text-transform: uppercase;
    color: #f28120;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

/* Heading Underline */
.tech-partners-underline {
    width: 120px;
    height: 4px;
    background: #f28120;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(242, 129, 32, 0.5);
}

/* Logos Grid */
.tech-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 60px;
}

/* Logo Item */
.tech-partner-item {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(242, 129, 32, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Hover Background Glow */
.tech-partner-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(242, 129, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.tech-partner-item:hover::before {
    width: 300px;
    height: 300px;
}

/* Logo Image Container */
.tech-partner-logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Logo Image */
.tech-partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.tech-partner-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(242, 129, 32, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(242, 129, 32, 0.2);
}

.tech-partner-item:hover .tech-partner-logo {
    filter: grayscale(0%) brightness(1) invert(0);
    opacity: 1;
    transform: scale(1.05);
}

/* Logo Placeholder (if no image) */
.tech-partner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f28120;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 20px;
}

.tech-partner-placeholder-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.tech-partner-placeholder-text {
    opacity: 0.7;
}

/* Optional: Auto-scroll Animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-partners-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.tech-partners-slider-track {
    display: flex;
    gap: 40px;
    animation: scrollLogos 30s linear infinite;
    will-change: transform;
}

.tech-partners-slider-track:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tech-partners-heading {
        font-size: 44px;
    }
    
    .tech-partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
    
    .tech-partner-item {
        max-width: 240px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .technology-partners-section {
        padding: 80px 0;
    }
    
    .tech-partners-container {
        padding: 0 20px;
    }
    
    .tech-partners-heading {
        font-size: 36px;
        letter-spacing: 1px;
    }
    
    .tech-partners-underline {
        width: 100px;
        height: 3px;
    }
    
    .tech-partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 25px;
        margin-top: 40px;
    }
    
    .tech-partner-item {
        max-width: 200px;
        height: 100px;
        padding: 15px;
    }
    
    .tech-partners-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .technology-partners-section {
        padding: 60px 0;
    }
    
    .tech-partners-heading {
        font-size: 28px;
    }
    
    .tech-partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }
    
    .tech-partner-item {
        max-width: 160px;
        height: 80px;
        padding: 10px;
    }
    
    .tech-partner-item:hover {
        transform: translateY(-4px) scale(1.03);
    }
}

/* Loading State */
.tech-partner-logo[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-partner-logo.loaded {
    opacity: 0.7;
}

/* Accessibility */
.tech-partner-item:focus {
    outline: 2px solid #f28120;
    outline-offset: 4px;
}

.tech-partner-item:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .technology-partners-section {
        background: white;
        color: black;
    }
    
    .tech-partner-logo {
        filter: none;
        opacity: 1;
    }
}
