/* Typing animation */
@keyframes typing {
    from { 
        width: 0;
        visibility: visible;
    }
    to { 
        width: 100%;
        visibility: visible;
    }
}

@keyframes matrix-color {
    0% { 
        color: #ff0080;
        text-shadow: 0 0 2px #ff0080;
    }
    20% { 
        color: #00ff80;
        text-shadow: 0 0 2px #00ff80;
    }
    40% { 
        color: #8000ff;
        text-shadow: 0 0 2px #8000ff;
    }
    60% { 
        color: #ff8000;
        text-shadow: 0 0 2px #ff8000;
    }
    80% { 
        color: #0080ff;
        text-shadow: 0 0 2px #0080ff;
    }
    100% { 
        color: #ff0080;
        text-shadow: 0 0 2px #ff0080;
    }
}

@keyframes blink-caret {
    0% { border-color: #ff0080; }
    50% { border-color: transparent; }
    100% { border-color: transparent; }
}

/* Cloud Animations */
@keyframes cloudFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-5px) scale(1.02);
    }
}

@keyframes cloudPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Retro Glow Animation */
@keyframes retroGlow {
    0%, 100% {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
    }
}

/* Star Animations */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hide any sparkle elements */
.sparkle {
    display: none !important;
}

/* Shooting Star Animation */
@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-100px);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(300px) translateY(100px);
    }
}

/* Magic Dust Animation */
@keyframes magicDust {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) translateX(5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) translateX(15px) scale(0.5);
    }
}

/* CRT Scanline Effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Matrix-Style Color Cycling for Individual Characters */
@keyframes matrix-color {
    0% {
        color: #ff0080; /* Pink */
        text-shadow: 0 0 2px #ff0080, 0 0 4px #ff0080;
    }
    16.66% {
        color: #00ff80; /* Green */
        text-shadow: 0 0 2px #00ff80, 0 0 4px #00ff80;
    }
    33.33% {
        color: #8000ff; /* Purple */
        text-shadow: 0 0 2px #8000ff, 0 0 4px #8000ff;
    }
    50% {
        color: #ff8000; /* Orange */
        text-shadow: 0 0 2px #ff8000, 0 0 4px #ff8000;
    }
    66.66% {
        color: #0080ff; /* Blue */
        text-shadow: 0 0 2px #0080ff, 0 0 4px #0080ff;
    }
    83.33% {
        color: #ffff00; /* Yellow */
        text-shadow: 0 0 2px #ffff00, 0 0 4px #ffff00;
    }
    100% {
        color: #ff0080; /* Back to Pink */
        text-shadow: 0 0 2px #ff0080, 0 0 4px #ff0080;
    }
}
