/* ============================================
   COMPANIES CAROUSEL
   ============================================ */

.experience-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.experience-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.experience-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.experience-header p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.experience-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0.3rem 0 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Carousel Container */
.companies-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    padding: 1.5rem 0;
}

.companies-carousel-track {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.companies-carousel-track:hover {
    animation-play-state: paused;
}

.company-logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
}

.company-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s ease;
}

/* Larger logos for specific companies */
.company-logo-item img[alt="Claro Pay"],
.company-logo-item img[alt="PagBank"],
.company-logo-item img[alt="Montevergine"],
.company-logo-item img[alt="CDF"],
.company-logo-item img[alt="Data Mundo"] {
    transform: scale(1.3);
}

.company-logo-item:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Keep hover scale for larger logos */
.company-logo-item:hover img[alt="Claro Pay"],
.company-logo-item:hover img[alt="PagBank"],
.company-logo-item:hover img[alt="Montevergine"],
.company-logo-item:hover img[alt="CDF"],
.company-logo-item:hover img[alt="Data Mundo"] {
    transform: scale(1.3) translateY(-2px);
}

/* Animation for infinite scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gradient Fade Edges */
.companies-carousel-wrapper::before,
.companies-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.companies-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.companies-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-section {
        padding: 3rem 1rem;
    }

    .experience-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .company-logo-item {
        width: 140px;
        height: 70px;
        padding: 1rem;
    }

    .companies-carousel-track {
        gap: 2rem;
    }

    .companies-carousel-wrapper::before,
    .companies-carousel-wrapper::after {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .experience-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .company-logo-item {
        width: 120px;
        height: 60px;
    }
}
