/* BrainyTech - Happy Clients Infinite Carousel */
/* Modern auto-scrolling client showcase with CL theme */

/* Clients Section */
.partnersSection {
    padding: 80px 0;
    overflow: hidden;
}

/* Carousel Wrapper */
.clientsCarouselWrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 48px;
    position: relative;
    padding: 20px 0;
}

/* Fade edges for smooth appearance */
.clientsCarouselWrapper::before,
.clientsCarouselWrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clientsCarouselWrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-background), transparent);
}

.clientsCarouselWrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-background), transparent);
}

/* Carousel Container - Auto Scroll */
.clientsCarousel {
    display: flex;
    gap: 24px;
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.clientsCarousel:hover {
    animation-play-state: paused;
}

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

/* Client Card - Equal Size */
.clientCard {
    flex: 0 0 280px;
    height: 200px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .clientCard {
    background: linear-gradient(135deg, rgba(14, 31, 64, 0.85), rgba(7, 15, 32, 0.9));
    border: 1px solid rgba(30, 58, 138, 0.4);
    box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.12);
}

/* Decorative gradient accent */
.clientCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clientCard:hover::before {
    opacity: 1;
}

/* Card Inner Container */
.clientCardInner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    position: relative;
    z-index: 1;
}

/* Client Icon */
.clientIcon {
    font-size: 56px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.clientCard:hover .clientIcon {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Client Name */
.clientName {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: var(--color-text);
    transition: all 0.3s ease;
}

[data-theme="dark"] .clientName {
    color: #f1f5f9;
}

.clientCard:hover .clientName {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .clientCard:hover .clientName {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.clientCard:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .clientCard:hover {
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Technologies Section */
.technologiesSection {
    padding: 80px 0;
}

.techGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.techCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .techCard {
    background: linear-gradient(135deg, rgba(14, 31, 64, 0.9), rgba(7, 15, 32, 0.95));
    border: 1px solid rgba(30, 58, 138, 0.35);
    box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.15);
}

.techCard:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

[data-theme="dark"] .techCard:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
}

.techCard .techIcon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
    transition: all 0.3s ease;
}

[data-theme="dark"] .techCard .techIcon {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.techCard:hover .techIcon {
    background: linear-gradient(135deg, #1e3a8a, #1e3a8a);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

[data-theme="dark"] .techCard:hover .techIcon {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.5);
}

.techCard .techIcon svg {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
}

.techName {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

[data-theme="dark"] .techName {
    color: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .clientCard {
        flex: 0 0 240px;
        height: 180px;
    }

    .clientIcon {
        font-size: 48px;
    }

    .clientName {
        font-size: 18px;
    }

    .techGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partnersSection {
        padding: 60px 0;
    }

    .clientCard {
        flex: 0 0 200px;
        height: 160px;
    }

    .clientCardInner {
        padding: 24px;
        gap: 12px;
    }

    .clientIcon {
        font-size: 40px;
    }

    .clientName {
        font-size: 16px;
    }

    .clientsCarouselWrapper::before,
    .clientsCarouselWrapper::after {
        width: 50px;
    }

    .techGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clientCard {
        flex: 0 0 180px;
        height: 140px;
    }

    .clientIcon {
        font-size: 36px;
    }

    .clientName {
        font-size: 14px;
    }

    .techGrid {
        grid-template-columns: 1fr;
    }
}
