/* Advanced Text Effects CSS */

/* Holographic Text Effect */
.holographic-text {
    background: linear-gradient(
        45deg,
        #ff0080, #ff8c00, #40e0d0, #ff0080
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 50%;
        filter: hue-rotate(90deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(180deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(270deg);
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: #fff;
    font-weight: bold;
    animation: glitchMain 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitchBefore 3s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-text::after {
    animation: glitchAfter 2s infinite;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitchMain {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
    0%, 100% { transform: translate(0); }
    15% { transform: translate(-3px, -2px); }
    30% { transform: translate(3px, 2px); }
    45% { transform: translate(-2px, 3px); }
    60% { transform: translate(2px, -3px); }
    75% { transform: translate(-3px, 2px); }
}

@keyframes glitchAfter {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 3px); }
    25% { transform: translate(-2px, -3px); }
    40% { transform: translate(3px, -2px); }
    55% { transform: translate(-3px, 2px); }
    70% { transform: translate(2px, -2px); }
    85% { transform: translate(-2px, 3px); }
}

/* Neon Glow Text */
.neon-text {
    color: #fff;
    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff,
        0 0 20px #00ffff,
        0 0 35px #00ffff,
        0 0 40px #00ffff;
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 20px #00ffff,
            0 0 35px #00ffff,
            0 0 40px #00ffff;
    }
    50% {
        text-shadow:
            0 0 2px #00ffff,
            0 0 5px #00ffff,
            0 0 8px #00ffff,
            0 0 12px #00ffff,
            0 0 18px #00ffff,
            0 0 25px #00ffff;
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #fff;
    white-space: nowrap;
    animation: 
        typewriter 4s steps(40, end),
        blinkCursor 0.75s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: #fff; }
}

/* 3D Text Effect */
.text-3d {
    color: #fff;
    text-shadow:
        1px 1px 0 #ccc,
        2px 2px 0 #c9c9c9,
        3px 3px 0 #bbb,
        4px 4px 0 #b9b9b9,
        5px 5px 0 #aaa,
        6px 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        1px 1px 3px rgba(0,0,0,.3),
        3px 3px 5px rgba(0,0,0,.2),
        5px 5px 10px rgba(0,0,0,.25);
    transform: perspective(500px) rotateX(15deg);
    animation: text3DFloat 3s ease-in-out infinite;
}

@keyframes text3DFloat {
    0%, 100% {
        transform: perspective(500px) rotateX(15deg) translateY(0);
    }
    50% {
        transform: perspective(500px) rotateX(15deg) translateY(-10px);
    }
}

/* Liquid Text Effect */
.liquid-text {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: liquidFlow 4s ease-in-out infinite;
    filter: blur(0.5px);
}

@keyframes liquidFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: blur(0.5px) contrast(1);
    }
    25% {
        background-position: 100% 50%;
        filter: blur(1px) contrast(1.2);
    }
    50% {
        background-position: 100% 100%;
        filter: blur(0.8px) contrast(1.1);
    }
    75% {
        background-position: 0% 100%;
        filter: blur(0.3px) contrast(1.3);
    }
}

/* Fire Text Effect */
.fire-text {
    color: #ff6b35;
    text-shadow:
        0 0 5px #ff6b35,
        0 0 10px #ff6b35,
        0 0 15px #ff6b35,
        0 0 20px #ff4500,
        0 0 35px #ff4500,
        0 0 40px #ff4500,
        0 0 50px #ff4500,
        0 0 75px #ff4500;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% {
        text-shadow:
            0 0 5px #ff6b35,
            0 0 10px #ff6b35,
            0 0 15px #ff6b35,
            0 0 20px #ff4500,
            0 0 35px #ff4500,
            0 0 40px #ff4500,
            0 0 50px #ff4500,
            0 0 75px #ff4500;
    }
    100% {
        text-shadow:
            0 0 2px #ff6b35,
            0 0 5px #ff6b35,
            0 0 8px #ff6b35,
            0 0 12px #ff4500,
            0 0 18px #ff4500,
            0 0 25px #ff4500,
            0 0 30px #ff4500,
            0 0 40px #ff4500;
    }
}

/* Matrix Text Effect */
.matrix-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00;
    animation: matrixRain 2s linear infinite;
    position: relative;
    overflow: hidden;
}

.matrix-text::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    animation: matrixScan 3s linear infinite;
}

@keyframes matrixRain {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}

@keyframes matrixScan {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* Cyberpunk Text Effect */
.cyberpunk-text {
    color: #ff00ff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    animation: cyberpunkGlow 2s ease-in-out infinite;
}

.cyberpunk-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 255, 0.4),
        transparent
    );
    animation: cyberpunkSweep 3s linear infinite;
}

@keyframes cyberpunkGlow {
    0%, 100% {
        text-shadow:
            0 0 5px #ff00ff,
            0 0 10px #ff00ff,
            0 0 15px #ff00ff,
            0 0 20px #ff00ff;
        filter: hue-rotate(0deg);
    }
    50% {
        text-shadow:
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            0 0 30px #ff00ff,
            0 0 40px #ff00ff;
        filter: hue-rotate(90deg);
    }
}

@keyframes cyberpunkSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Retro Wave Text */
.retro-wave-text {
    background: linear-gradient(
        45deg,
        #ff006e,
        #8338ec,
        #3a86ff,
        #06ffa5,
        #ffbe0b
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: retroWave 4s ease-in-out infinite;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes retroWave {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1);
    }
    25% {
        background-position: 100% 50%;
        filter: hue-rotate(90deg) saturate(1.2);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(180deg) saturate(1.4);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(270deg) saturate(1.1);
    }
}

/* Responsive Text Effects */
@media (max-width: 768px) {
    .holographic-text,
    .glitch-text,
    .neon-text,
    .fire-text,
    .cyberpunk-text,
    .retro-wave-text {
        font-size: 0.8em;
    }
    
    .text-3d {
        text-shadow:
            1px 1px 0 #ccc,
            2px 2px 0 #c9c9c9,
            3px 3px 0 #bbb,
            4px 4px 1px rgba(0,0,0,.1);
    }
}

/* Text Animation Utilities */
.text-fade-in {
    animation: textFadeIn 1s ease-in-out;
}

.text-slide-up {
    animation: textSlideUp 0.8s ease-out;
}

.text-bounce-in {
    animation: textBounceIn 1.2s ease-out;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes textBounceIn {
    0% {
        transform: scale(0.3) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(0);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}