/* Supported Languages Section */
.supported-languages {
    padding: 4rem 0;
    background: white;
    overflow: hidden;
}

.languages-carousel {
    margin-top: 2rem;
    position: relative;
}

.languages-carousel::before,
.languages-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.languages-carousel::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.languages-carousel::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.languages-carousel .carousel-container {
    overflow: hidden;
    white-space: nowrap;
}

.languages-carousel .carousel-track {
    display: inline-flex;
    gap: 1.5rem;
    animation: scrollLanguages 40s linear infinite;
    padding: 1rem 0;
}

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

@keyframes scrollLanguages {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move left by half the width (since content is duplicated) */
        transform: translateX(-50%);
    }
}

.language-item {
    flex: 0 0 auto;
    background: #FDF8F5;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
    min-width: 140px; /* Ensure minimum width */
}

.language-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.3);
    background: white;
}

.language-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.language-name {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 1rem;
    white-space: nowrap; /* Prevent text wrapping */
}


