/* ============================================
   PREMIUM TECH ECOSYSTEM ("THE ARSENAL")
   ============================================ */
.section-tech-ecosystem {
    padding: 60px 0 120px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Subtle grid background */
.tech-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.tech-ecosystem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
}

.tech-ecosystem-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.tech-ecosystem-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

/* Glass container for the marquee */
.tech-showcase-container {
    position: relative;
    max-width: min(1400px, 100%);
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 50px 0;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* Fade masks on edges */
.tech-showcase-container::before,
.tech-showcase-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.tech-showcase-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), transparent);
}

.tech-showcase-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), transparent);
}

/* Dual-row container */
.tech-rows-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-row {
    display: flex;
    gap: 80px;
    width: max-content;
}

/* Row 1: scroll left */
.tech-row-1 {
    animation: techScrollLeft 50s linear infinite;
}

/* Row 2: scroll right */
.tech-row-2 {
    animation: techScrollRight 50s linear infinite;
}

.tech-logo-premium {
    height: 56px;
    width: auto;
    filter: grayscale(100%) opacity(0.4);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.tech-logo-premium:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15) translateY(-4px);
}

@keyframes techScrollLeft {
    0% {
        transform: translateX(0);
    }

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

@keyframes techScrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.tech-showcase-container:hover .tech-row {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .tech-row,
    .tech-scroll-left,
    .tech-scroll-right {
        animation: none !important;
        transform: none !important;
    }

    .tech-rows-wrapper {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        max-width: 100%;
    }

    .tech-row {
        width: max-content;
        max-width: none;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .section-tech-ecosystem {
        padding: 80px 0 100px;
    }

    .tech-ecosystem-title {
        font-size: 2rem;
    }

    .tech-showcase-container {
        border-radius: 16px;
        padding: 40px 0;
    }

    .tech-showcase-container::before,
    .tech-showcase-container::after {
        width: 48px;
    }

    .tech-row {
        gap: 60px;
    }

    .tech-logo-premium {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .tech-showcase-container::before,
    .tech-showcase-container::after {
        width: 28px;
    }

    .tech-row {
        gap: 40px;
    }
}