/* Liquid Typography System */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

.liquid-text {
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, var(--primary-holo), var(--secondary-holo), var(--accent-neural));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-flow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--primary-holo));
}

@keyframes liquid-flow {
    0%, 100% { 
        background-position: 0% 50%; 
        transform: skewX(0deg);
    }
    25% { 
        background-position: 100% 50%; 
        transform: skewX(2deg);
    }
    50% { 
        background-position: 100% 100%; 
        transform: skewX(0deg);
    }
    75% { 
        background-position: 0% 100%; 
        transform: skewX(-2deg);
    }
}

.liquid-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, 
        var(--primary-holo), 
        var(--secondary-holo), 
        var(--accent-neural), 
        var(--quantum-gold),
        var(--primary-holo)
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquid-title-flow 6s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.liquid-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    -webkit-background-clip: text;
    background-clip: text;
    animation: liquid-shimmer 3s linear infinite;
    pointer-events: none;
}

@keyframes liquid-title-flow {
    0%, 100% { 
        background-position: 0% 50%; 
        transform: perspective(500px) rotateX(0deg) rotateY(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 100% 50%; 
        transform: perspective(500px) rotateX(5deg) rotateY(2deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 100% 100%; 
        transform: perspective(500px) rotateX(0deg) rotateY(0deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 0% 100%; 
        transform: perspective(500px) rotateX(-5deg) rotateY(-2deg);
        filter: hue-rotate(270deg);
    }
}

@keyframes liquid-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.holographic-text {
    font-size: 1.2rem;
    text-align: center;
    color: var(--primary-holo);
    position: relative;
    font-family: 'Space Mono', monospace;
    animation: holographic-float 4s ease-in-out infinite;
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

@keyframes holographic-float {
    0%, 100% { 
        transform: translateY(0px); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px); 
        opacity: 1;
    }
}

.liquid-text:hover {
    animation-duration: 1s;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--primary-holo)) brightness(1.2);
}

.deformable-text {
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deformable-text:hover {
    animation: text-deform 0.8s ease-in-out;
}

@keyframes text-deform {
    0% { transform: scaleX(1) scaleY(1) skewX(0deg); }
    25% { transform: scaleX(1.1) scaleY(0.9) skewX(5deg); }
    50% { transform: scaleX(0.9) scaleY(1.1) skewX(-3deg); }
    75% { transform: scaleX(1.05) scaleY(0.95) skewX(2deg); }
    100% { transform: scaleX(1) scaleY(1) skewX(0deg); }
}

.neural-text {
    font-family: 'Space Mono', monospace;
    position: relative;
    overflow: hidden;
}

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

@keyframes neural-scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.quantum-text {
    position: relative;
    color: var(--quantum-gold);
    font-family: 'Orbitron', monospace;
    animation: quantum-flicker 2s ease-in-out infinite;
}

.quantum-text::after {
    content: attr(data-quantum);
    position: absolute;
    top: 0;
    left: 2px;
    color: var(--secondary-holo);
    opacity: 0.7;
    animation: quantum-shadow 2s ease-in-out infinite reverse;
}

@keyframes quantum-flicker {
    0%, 100% { 
        opacity: 1; 
        transform: translateX(0px); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateX(1px); 
    }
}

@keyframes quantum-shadow {
    0%, 100% { 
        opacity: 0.7; 
        transform: translateX(0px); 
    }
    50% { 
        opacity: 0.3; 
        transform: translateX(-1px); 
    }
}

.morphing-text {
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.morphing-text .char {
    display: inline-block;
    transition: all 0.3s ease;
    animation: char-morph 4s ease-in-out infinite;
}

.morphing-text .char:nth-child(odd) {
    animation-delay: 0.1s;
}

.morphing-text .char:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes char-morph {
    0%, 100% { 
        transform: rotateY(0deg) rotateX(0deg) scale(1); 
    }
    25% { 
        transform: rotateY(180deg) rotateX(45deg) scale(1.1); 
    }
    50% { 
        transform: rotateY(360deg) rotateX(90deg) scale(0.9); 
    }
    75% { 
        transform: rotateY(540deg) rotateX(135deg) scale(1.05); 
    }
}

.emotional-text {
    position: relative;
    font-family: 'Space Mono', monospace;
    transition: all 0.5s ease;
}

.emotional-text.joy {
    color: var(--quantum-gold);
    animation: joy-bounce 1.5s ease-in-out infinite;
}

.emotional-text.calm {
    color: var(--plasma-blue);
    animation: calm-flow 3s ease-in-out infinite;
}

.emotional-text.excited {
    color: var(--secondary-holo);
    animation: excitement-shake 0.5s ease-in-out infinite;
}

.emotional-text.focused {
    color: var(--accent-neural);
    animation: focus-pulse 2s ease-in-out infinite;
}

@keyframes joy-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes calm-flow {
    0%, 100% { transform: rotateZ(0deg); }
    50% { transform: rotateZ(1deg); }
}

@keyframes excitement-shake {
    0%, 100% { transform: translateX(0px); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes focus-pulse {
    0%, 100% { 
        text-shadow: 0 0 5px currentColor; 
        transform: scale(1); 
    }
    50% { 
        text-shadow: 0 0 15px currentColor; 
        transform: scale(1.02); 
    }
}

.adaptive-font {
    font-family: 'Orbitron', monospace;
    transition: all 1s ease;
}

.adaptive-font.morning {
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--quantum-gold);
}

.adaptive-font.afternoon {
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-holo);
}

.adaptive-font.evening {
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--secondary-holo);
}

.adaptive-font.night {
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--cosmic-purple);
}

@media (max-width: 768px) {
    .liquid-title {
        font-size: 2rem;
    }
    
    .holographic-text {
        font-size: 1rem;
    }
    
    .liquid-text {
        font-size: 0.9rem;
    }
    
    .morphing-text .char {
        animation-duration: 6s;
    }
    
    .adaptive-font.morning,
    .adaptive-font.afternoon,
    .adaptive-font.evening,
    .adaptive-font.night {
        letter-spacing: 1px;
    }
}