/* Partners & Clients Marquee Section Styles */
.partners-clients-section {
    position: relative;
    padding: 80px 0;
    background-color: #0c0c0c;
    color: #fff;
    overflow: hidden;
}

/* Background Elements */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-bg .grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
}

.section-bg .glow-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-bg .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.section-bg .orb-1 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 0, 0, 0.1);
    animation: orbFloat 16s ease-in-out infinite alternate;
}

.section-bg .orb-2 {
    bottom: 15%;
    left: 5%;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 0, 0, 0.08);
    animation: orbFloat 14s ease-in-out infinite;
}

.section-bg .circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-bg .circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.3), transparent);
    height: 1px;
}

.section-bg .line-1 {
    top: 30%;
    left: 0;
    width: 100%;
    animation: circuitGlow 7s infinite alternate;
}

.section-bg .line-2 {
    top: 70%;
    left: 0;
    width: 100%;
    animation: circuitGlow 9s infinite alternate-reverse;
}

.section-bg .circuit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    animation: nodeFlash 4s infinite;
}

.section-bg .node-1 {
    top: 30%;
    left: 25%;
    animation-delay: 0.5s;
}

.section-bg .node-2 {
    top: 70%;
    right: 35%;
    animation-delay: 1.5s;
}

/* Section Shared Styles */
.partners-section, .clients-section {
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

.partners-section .container, .clients-section .container {
    margin-bottom: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.section-header .highlight-text {
    color: #ff0000;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

/* Marquee Container */
.marquee-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #0c0c0c, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #0c0c0c, transparent);
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

/* Animation timing for each marquee */
.partners-marquee .marquee-track {
    animation: marqueeLeft 40s linear infinite;
}

.clients-marquee .marquee-track {
    animation: marqueeRight 40s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    padding: 0 30px;
}

/* Partner and Client Logo Styling */
.partner-logo, .client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.7), rgba(15, 15, 15, 0.9));
    border-radius: 12px;
    padding: 25px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo::before, .client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.partner-logo:hover, .client-logo:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
}

.partner-logo:hover::before, .client-logo:hover::before {
    left: 100%;
}

.partner-logo img, .client-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
}

.partner-logo:hover img, .client-logo:hover img {
    filter: brightness(1.1) contrast(1.2);
}

.partner-info, .client-info {
    text-align: center;
    width: 100%;
}

.partner-info h4, .client-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.partner-info p, .client-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations */
@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(calc(-100% / 2));
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(15px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes circuitGlow {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.1;
    }
}

@keyframes nodeFlash {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .partner-logo, .client-logo {
        width: 200px;
        height: 200px;
        padding: 20px;
    }
    
    .partner-logo img, .client-logo img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .partner-logo, .client-logo {
        width: 180px;
        height: 180px;
        padding: 15px;
    }
    
    .partner-logo img, .client-logo img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .partners-marquee .marquee-track,
    .clients-marquee .marquee-track {
        animation-duration: 30s;
    }
}

@media (max-width: 768px) {
    .partners-clients-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .marquee-item {
        padding: 0 20px;
    }
    
    .partner-logo, .client-logo {
        width: 160px;
        height: 160px;
    }
    
    .partner-logo img, .client-logo img {
        width: 70px;
        height: 70px;
    }
    
    .partners-marquee .marquee-track,
    .clients-marquee .marquee-track {
        animation-duration: 25s;
    }
}

@media (max-width: 576px) {
    .partner-logo, .client-logo {
        width: 140px;
        height: 140px;
        padding: 12px;
    }
    
    .partner-logo img, .client-logo img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .partner-info h4, .client-info h4 {
        font-size: 0.9rem;
    }
    
    .partner-info p, .client-info p {
        font-size: 0.75rem;
    }
    
    .partners-marquee .marquee-track,
    .clients-marquee .marquee-track {
        animation-duration: 20s;
    }
} 