/* Text Rotator Animation */
.text-rotator {
    display: inline-block;
    position: relative;
    height: 1.6em;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 500px;
}

.text-rotator-word {
    display: block;
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: rotateWord 12s infinite;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-rotator-word:nth-child(1) {
    animation-delay: 0s;
}

.text-rotator-word:nth-child(2) {
    animation-delay: 3s;
}

.text-rotator-word:nth-child(3) {
    animation-delay: 6s;
}

.text-rotator-word:nth-child(4) {
    animation-delay: 9s;
}

@keyframes rotateWord {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    2% {
        opacity: 1;
        transform: translateY(0);
    }

    23% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .text-rotator {
        height: 1.4em;
        min-width: 280px;
    }
}