/**
 * Çözüm ortakları — modern marquee (glass, edge fade, renkli logolar)
 */

.landing-page3.partner-marquee {
    position: absolute;
    top: calc(180vh + 1rem);
    left: 100px;
    right: 0;
    width: auto;
    height: auto;
    min-height: 112px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    box-sizing: border-box;
}

.partner-marquee__glass {
    position: relative;
    width: 100%;
    max-width: calc(100vw - 140px);
    margin: 0 auto;
    padding: 18px 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(12, 18, 28, 0.45) 45%,
        rgba(8, 14, 22, 0.55) 100%
    );
    backdrop-filter: blur(20px) saturate(1.55);
    -webkit-backdrop-filter: blur(20px) saturate(1.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(1, 177, 175, 0.08);
    overflow: hidden;
}

.partner-marquee__glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 70% 120% at 50% -30%,
        rgba(45, 212, 210, 0.12),
        transparent 55%
    );
    pointer-events: none;
    z-index: 0;
}

.partner-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(48px, 8vw, 120px);
    z-index: 3;
    pointer-events: none;
}

.partner-marquee__fade--left {
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 12, 20, 0.95) 0%,
        rgba(8, 12, 20, 0.6) 40%,
        transparent 100%
    );
}

.partner-marquee__fade--right {
    right: 0;
    background: linear-gradient(
        270deg,
        rgba(8, 12, 20, 0.95) 0%,
        rgba(8, 12, 20, 0.6) 40%,
        transparent 100%
    );
}

.partner-marquee .slider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    min-height: 72px;
    margin: 0;
    overflow: hidden;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
}

.partner-marquee .slide-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    max-width: none !important;
    gap: 0;
    animation: partner-marquee-scroll 50s linear infinite !important;
    will-change: transform;
}

.partner-marquee .slide-track:hover {
    animation-play-state: paused;
}

.partner-marquee .slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    width: auto;
    min-width: 160px;
    padding: 0 28px;
    box-sizing: border-box;
}

.partner-marquee .slide__card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 10px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.partner-marquee .slide:hover .slide__card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(45, 212, 210, 0.35);
    box-shadow:
        0 0 24px rgba(1, 177, 175, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1.02);
}

.partner-marquee .slide img {
    display: block;
    max-height: 44px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: none;
    opacity: 1;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
        opacity 0.35s ease;
}

.partner-marquee .slide:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

@keyframes partner-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

body.light-mode .partner-marquee__glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(240, 245, 250, 0.9) 100%
    );
    border-color: rgba(1, 177, 175, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .partner-marquee__fade--left {
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.98), transparent);
}

body.light-mode .partner-marquee__fade--right {
    background: linear-gradient(270deg, rgba(248, 250, 252, 0.98), transparent);
}

@media (min-width: 992px) {
    .landing-page3.partner-marquee {
        left: 100px !important;
    }
}

/* Ana sayfa: ortaklar ile çözümler bitişik */
.page-content:has(.partner-marquee) .landing-page3.partner-marquee + .service-wrapper {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

@media (max-width: 991px) {
    .landing-page3.partner-marquee {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 12px 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .partner-marquee__glass {
        max-width: 100%;
        padding: 14px 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(20px) saturate(1.35) !important;
        -webkit-backdrop-filter: blur(20px) saturate(1.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 8px 24px rgba(0, 0, 0, 0.22) !important;
    }

    .partner-marquee__glass::before {
        opacity: 0.35;
    }

    .partner-marquee__fade--left {
        background: linear-gradient(
            90deg,
            rgba(8, 12, 20, 0.88) 0%,
            rgba(8, 12, 20, 0.35) 45%,
            transparent 100%
        ) !important;
    }

    .partner-marquee__fade--right {
        background: linear-gradient(
            270deg,
            rgba(8, 12, 20, 0.88) 0%,
            rgba(8, 12, 20, 0.35) 45%,
            transparent 100%
        ) !important;
    }

    .partner-marquee .slide {
        min-width: 130px;
        padding: 0 16px;
        height: 64px;
    }

    .partner-marquee .slide img {
        max-height: 40px;
        max-width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee .slide-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        gap: 12px;
        padding: 8px 12px;
    }

}
