/* ==== Base Styles ==== */
.partners-section {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* ==== Floating Particles ==== */
.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--color);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    left: var(--left);
    animation: float 8s infinite ease-in-out;
    animation-delay: var(--delay);
    opacity: 0.6;
    filter: blur(1px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* ==== Gradient Overlay ==== */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

/* ==== Section Header ==== */
.section-header {
    position: relative;
    z-index: 2;
}

.partners-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.title-word {
    display: inline-block;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.title-word-1 {
    animation-delay: 0.1s;
}

.title-word-2 {
    animation-delay: 0.3s;
}

.title-word-3 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partners-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-top: 15px;
    animation: fadeIn 1s 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==== Logo Carousel ==== */
.partners-carousel {
    width: 100%;
    /* overflow: hidden; */
    position: relative;
    z-index: 2;
    margin-top: 40px;
}

.logos-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.logo-card {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.logo-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.5s ease;
}

.logo-card:hover .logo-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.logo-hover-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(255, 0, 150, 0.1),
            rgba(0, 200, 255, 0.1));
    opacity: 0;
    transition: all 0.5s ease;
}

.logo-card:hover .logo-hover-effect {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-180px * 6));
    }
}

/* ==== Responsive Adjustments ==== */
@media (max-width: 992px) {
    .partners-title {
        font-size: 2.8rem;
    }

    .logo-card {
        width: 150px;
        height: 80px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-150px * 6));
        }
    }
}

@media (max-width: 768px) {
    .partners-title {
        font-size: 2.2rem;
    }

    .logo-card {
        width: 120px;
        height: 70px;
        padding: 15px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-120px * 6));
        }
    }
}

@media (max-width: 576px) {
    .partners-title {
        font-size: 1.8rem;
    }

    .logo-card {
        width: 100px;
        height: 60px;
        padding: 10px;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-100px * 6));
        }
    }
}