/* PARTNERS MARQUEE SECTION */

.partners {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(0, 177, 225, 0.05) 0%, var(--bg-color) 70%);
}

.partners-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.partners-floating-shape {
    position: absolute;
    opacity: 0.4;
    animation: partners-float 15s infinite ease-in-out;
}

.partners-shape-1 {
    width: 120px;
    height: 120px;
    background: var(--gradient-1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.partners-shape-2 {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    top: 70%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 16s;
}

.partners-shape-3 {
    width: 100px;
    height: 100px;
    background: var(--gradient-3);
    border-radius: 20px;
    transform: rotate(45deg);
    bottom: 25%;
    left: 5%;
    animation-delay: -8s;
    animation-duration: 14s;
}

.partners-shape-4 {
    width: 60px;
    height: 60px;
    background: var(--gradient-4);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 40%;
    right: 5%;
    animation-delay: -2s;
    animation-duration: 18s;
}

@keyframes partners-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -30px) rotate(120deg) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 40px) rotate(240deg) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(-20px, -40px) rotate(300deg) scale(1.1);
        opacity: 0.5;
    }
}

.partners-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.partners-eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.partners-header h2 {
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.partners-highlight {
    color: var(--primary-color);
    background: linear-gradient(135deg, #00b1e1 0%, #ff9201 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.partners-header p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Marquee Container */
.marquee-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 2rem;
}

.scroll-left {
    animation: scroll-left 40s linear infinite;
}

.scroll-right {
    animation: scroll-right 40s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* Partner Card */
.marquee-track .partner-card {
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 146, 1, 0.15), rgba(0, 177, 225, 0.15));
    border: 1px solid rgba(255, 146, 1, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(5px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

body:not(.dark-mode) .marquee-track .partner-card {
    background: linear-gradient(135deg, rgba(255, 146, 1, 0.25), rgba(0, 177, 225, 0.25));
    border-color: rgba(255, 146, 1, 0.4);
}

.marquee-track .partner-card img {
    max-width: 80%;
    max-height: 60%;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
    object-fit: contain;
}

.marquee-track .partner-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 177, 225, 0.3), rgba(255, 146, 1, 0.3));
    border-color: rgba(0, 177, 225, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0, 177, 225, 0.4);
}

body:not(.dark-mode) .marquee-track .partner-card:hover {
    background: linear-gradient(135deg, rgba(0, 177, 225, 0.35), rgba(255, 146, 1, 0.35));
    border-color: rgba(0, 177, 225, 0.7);
}

.marquee-track .partner-card:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.marquee-track .partner-card:nth-child(odd):hover {
    background: linear-gradient(135deg, rgba(0, 177, 225, 0.3), rgba(255, 146, 1, 0.3));
    border-color: #00b1e1;
    box-shadow: 0 0 20px rgba(0, 177, 225, 0.4);
}

.marquee-track .partner-card:nth-child(even):hover {
    background: linear-gradient(135deg, rgba(255, 146, 1, 0.3), rgba(0, 177, 225, 0.3));
    border-color: #ff9201;
    box-shadow: 0 0 20px rgba(255, 146, 1, 0.4);
}

/* Animations */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

[dir="rtl"] .scroll-left {
    animation-name: scroll-right;
}

[dir="rtl"] .scroll-right {
    animation-name: scroll-left;
}

/* Small Mobiles (320px - 480px) */
@media (max-width: 480px) {
    .partners { padding: 4rem 0; }
    .partners-header { margin-bottom: 3rem; }
    .marquee-track .partner-card { width: 140px; height: 70px; }
    .marquee-track { gap: 1rem; }
    .marquee-wrapper { gap: 1.5rem; }
    .scroll-left, .scroll-right { animation-duration: 25s; }
}

/* Medium Mobiles (481px - 600px) */
@media (min-width: 481px) and (max-width: 600px) {
    .marquee-track .partner-card { width: 160px; height: 80px; }
    .scroll-left, .scroll-right { animation-duration: 30s; }
}

/* Large Mobiles (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .marquee-track .partner-card { width: 180px; height: 90px; }
    .scroll-left, .scroll-right { animation-duration: 35s; }
}

/* Small Tablets (769px - 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .marquee-track .partner-card { width: 200px; height: 100px; }
}

/* Medium Tablets (901px - 1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
    .marquee-track .partner-card { width: 220px; height: 110px; }
}

/* Large Tablets (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .marquee-track .partner-card { width: 240px; height: 120px; }
}

/* Small Laptops (1281px - 1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
    .marquee-track .partner-card { width: 250px; height: 125px; }
}

/* Medium Laptops (1441px - 1600px) */
@media (min-width: 1441px) and (max-width: 1600px) {
    .marquee-track .partner-card { width: 260px; height: 130px; }
}

/* Large Laptops / Small Monitors (1601px - 1920px) */
@media (min-width: 1601px) and (max-width: 1920px) {
    .marquee-track .partner-card { width: 280px; height: 140px; }
    .scroll-left, .scroll-right { animation-duration: 50s; }
}

/* Medium Monitors (1921px - 2560px) */
@media (min-width: 1921px) and (max-width: 2560px) {
    .marquee-track .partner-card { width: 300px; height: 150px; }
    .scroll-left, .scroll-right { animation-duration: 55s; }
}

/* Large Monitors (2561px - 3440px) */
@media (min-width: 2561px) and (max-width: 3440px) {
    .marquee-track .partner-card { width: 350px; height: 175px; }
    .scroll-left, .scroll-right { animation-duration: 60s; }
}

/* 49" Odyssey OLED G9 (3441px - 5120px) */
@media (min-width: 3441px) and (max-width: 5120px) {
    .marquee-track .partner-card { width: 400px; height: 200px; }
    .scroll-left, .scroll-right { animation-duration: 70s; }
    .marquee-track { gap: 3rem; }
    .marquee-wrapper { gap: 3rem; }
}

/* 57" Odyssey Neo G9 (5121px+) */
@media (min-width: 5121px) {
    .marquee-track .partner-card { width: 450px; height: 225px; }
    .scroll-left, .scroll-right { animation-duration: 80s; }
    .marquee-track { gap: 4rem; }
    .marquee-wrapper { gap: 4rem; }
}

/* Vertical Monitors (Portrait) */
@media (orientation: portrait) and (min-width: 1080px) {
    .marquee-track .partner-card { width: 180px; height: 90px; }
    .scroll-left, .scroll-right { animation-duration: 35s; }
}

/* Horizontal Monitors (Landscape) - Ultrawide optimization */
@media (orientation: landscape) and (min-aspect-ratio: 21/9) {
    .marquee-track { gap: 2.5rem; }
    .marquee-wrapper { gap: 2.5rem; }
}
