@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.text-scroll {
    width: 100%;
    overflow: hidden;
    padding: 8px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Light variant (Blue background with white text) */
.text-scroll--light {
    background-color: #3FC7F2;
    color: #FFFFFF;
}

/* Dark variant (Dark on Light) */
.text-scroll--dark {
    background-color: #FAFAFA;
    color: #292D32;
}

.text-scroll__container {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
}

.text-scroll__wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    white-space: nowrap;
    will-change: transform;
    padding: 16px 0;
}

.text-scroll__item {
    display: flex;
    align-items: center;
    gap: 80px;
    font-size: 40px;
    line-height: 1.5;
    font-weight: 400;
    flex-shrink: 0;
}

.text-scroll__text {
    flex-shrink: 0;
    text-transform: uppercase;
}

.text-scroll__star {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Hide scrollbar */
.text-scroll__container::-webkit-scrollbar {
    display: none;
}

.text-scroll__container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animation direction modifiers */
.text-scroll--left .text-scroll__wrapper {
    animation: scrollLeft 20s linear infinite;
}

.text-scroll--right .text-scroll__wrapper {
    animation: scrollRight 20s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
} 