.text-block {
    color: #C1C0D8;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.8);
    width: auto;
    margin: 0 auto;
    padding: 8px 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.text-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 635px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    display: block;
    height: 24px;
    width: auto;
    min-width: 400px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    display: block;
    height: 24px;
    width: auto;
    min-width: 400px;
    overflow: hidden;
}

.text-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.flip-dynamic {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 24px;
    position: relative;
}

.flip-dynamic li {
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    width: 100%;
    letter-spacing: 0.2px;
    opacity: 0;
    text-align: center;
    color: #C1C0D8;
    animation: slideUp 44s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Remove all existing keyframes and use this single definition */
@keyframes slideUp {
    0%, 4.5% {
        transform: translateY(24px);
        opacity: 0;
        visibility: hidden;
    }
    5%, 9.5% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    10%, 100% {
        transform: translateY(-24px);
        opacity: 0;
        visibility: hidden;
    }
}

/* Updated animation delays with proper spacing */
.flip-dynamic li:nth-child(1) { animation-delay: 0s; }
.flip-dynamic li:nth-child(2) { animation-delay: 2.2s; }
.flip-dynamic li:nth-child(3) { animation-delay: 4.4s; }
.flip-dynamic li:nth-child(4) { animation-delay: 6.6s; }
.flip-dynamic li:nth-child(5) { animation-delay: 8.8s; }
.flip-dynamic li:nth-child(6) { animation-delay: 11s; }
.flip-dynamic li:nth-child(7) { animation-delay: 13.2s; }
.flip-dynamic li:nth-child(8) { animation-delay: 15.4s; }
.flip-dynamic li:nth-child(9) { animation-delay: 17.6s; }
.flip-dynamic li:nth-child(10) { animation-delay: 19.8s; }
.flip-dynamic li:nth-child(11) { animation-delay: 22s; }
.flip-dynamic li:nth-child(12) { animation-delay: 24.2s; }
.flip-dynamic li:nth-child(13) { animation-delay: 26.4s; }
.flip-dynamic li:nth-child(14) { animation-delay: 28.6s; }
.flip-dynamic li:nth-child(15) { animation-delay: 30.8s; }
.flip-dynamic li:nth-child(16) { animation-delay: 33s; }
.flip-dynamic li:nth-child(17) { animation-delay: 35.2s; }
.flip-dynamic li:nth-child(18) { animation-delay: 37.4s; }
.flip-dynamic li:nth-child(19) { animation-delay: 39.6s; }
.flip-dynamic li:nth-child(20) { animation-delay: 41.8s; }

// Remove the first @keyframes slideUp definition and keep only this one
@keyframes slideUp {
    0% {
        transform: translateY(60px);
        opacity: 0;
        visibility: hidden;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    80% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    90%, 100% {
        transform: translateY(-60px);
        opacity: 0;
        visibility: hidden;
    }
}

/* Performance optimizations */
.flip-dynamic {
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    perspective: 1000px;
}

/* Pause animation on hover */
.carousel-wrapper:hover .flip-dynamic li {
    animation-play-state: paused;
}
