/* Revolutionary Animations - Unique & Cutting-Edge */

/* Liquid Morphing Text */
.liquid-text {
    position: relative;
    filter: url('#goo');
}

.liquid-text span {
    display: inline-block;
    animation: liquid-morph 4s ease-in-out infinite;
}

@keyframes liquid-morph {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    33% {
        transform: translateY(-5px) rotateZ(-3deg) scale(1.1);
    }
    66% {
        transform: translateY(3px) rotateZ(2deg) scale(0.95);
    }
}

/* Quantum Fade Effect */
.quantum-fade {
    animation: quantum 6s ease-in-out infinite;
}

@keyframes quantum {
    0%, 100% {
        opacity: 1;
        filter: blur(0);
        transform: translateZ(0);
    }
    25% {
        opacity: 0.8;
        filter: blur(1px);
        transform: translateZ(10px);
    }
    50% {
        opacity: 0.6;
        filter: blur(2px);
        transform: translateZ(-10px);
    }
    75% {
        opacity: 0.9;
        filter: blur(0.5px);
        transform: translateZ(5px);
    }
}

/* Holographic Effect */
.holographic {
    position: relative;
    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: holographic-shift 8s ease infinite;
}

@keyframes holographic-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dimensional Shift */
.dimension-shift {
    animation: dimensional 10s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes dimensional {
    0%, 100% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: perspective(1000px) rotateY(180deg) rotateX(10deg);
    }
    50% {
        transform: perspective(1000px) rotateY(360deg) rotateX(-10deg);
    }
    75% {
        transform: perspective(1000px) rotateY(180deg) rotateX(5deg);
    }
}

/* Neomorphic Pulse */
.neo-pulse {
    animation: neomorphic-pulse 3s ease-in-out infinite;
}

@keyframes neomorphic-pulse {
    0%, 100% {
        box-shadow: 
            12px 12px 24px rgba(44, 44, 46, 0.2),
            -12px -12px 24px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            6px 6px 12px rgba(44, 44, 46, 0.2),
            -6px -6px 12px rgba(255, 255, 255, 0.8);
    }
}

/* Magnetic Hover */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-hover:hover {
    animation: magnetic-pull 0.5s ease-out;
}

@keyframes magnetic-pull {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Aurora Borealis Background */
.aurora-bg {
    position: relative;
    overflow: hidden;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
}

.aurora-bg::before {
    background: radial-gradient(ellipse at center, 
        rgba(139, 111, 142, 0.3) 0%, 
        rgba(196, 169, 98, 0.2) 25%, 
        rgba(232, 220, 196, 0.1) 50%, 
        transparent 70%);
    animation: aurora-1 20s ease-in-out infinite;
}

.aurora-bg::after {
    background: radial-gradient(ellipse at center, 
        rgba(196, 169, 98, 0.3) 0%, 
        rgba(139, 111, 142, 0.2) 30%, 
        transparent 70%);
    animation: aurora-2 25s ease-in-out infinite;
}

@keyframes aurora-1 {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    33% { transform: rotate(60deg) translate(100px, -100px); }
    66% { transform: rotate(-60deg) translate(-100px, 100px); }
}

@keyframes aurora-2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
}

/* Prismatic Refraction */
.prismatic {
    position: relative;
}

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

.prismatic::before {
    color: rgba(196, 169, 98, 0.7);
    animation: prismatic-1 2s ease-in-out infinite;
    z-index: -1;
}

.prismatic::after {
    color: rgba(139, 111, 142, 0.7);
    animation: prismatic-2 2s ease-in-out infinite;
    z-index: -2;
}

@keyframes prismatic-1 {
    0%, 100% { transform: translate(0); }
    50% { transform: translate(2px, -2px); }
}

@keyframes prismatic-2 {
    0%, 100% { transform: translate(0); }
    50% { transform: translate(-2px, 2px); }
}

/* Particle Explosion */
.particle-explosion {
    position: relative;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.particle-explosion:hover .particle {
    animation: explode 1s ease-out;
}

@keyframes explode {
    0% {
        transform: translate(0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(1);
        opacity: 0;
    }
}

/* Cyber Glitch */
.cyber-glitch {
    position: relative;
    animation: cyber-flicker 10s linear infinite;
}

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

.cyber-glitch::before {
    animation: cyber-glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.cyber-glitch::after {
    animation: cyber-glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: var(--primary-color);
    z-index: -2;
}

@keyframes cyber-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    92.02% { opacity: 0.8; }
    93% { opacity: 1; }
}

@keyframes cyber-glitch-1 {
    0%, 100% {
        clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
        transform: translate(0);
    }
    20% {
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
        transform: translate(-2px);
    }
    40% {
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
        transform: translate(2px);
    }
    60% {
        clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
        transform: translate(-3px);
    }
    80% {
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        transform: translate(3px);
    }
}

@keyframes cyber-glitch-2 {
    0%, 100% {
        clip-path: polygon(0 85%, 100% 85%, 100% 80%, 0 80%);
        transform: translate(0);
    }
    20% {
        clip-path: polygon(0 66%, 100% 66%, 100% 55%, 0 55%);
        transform: translate(2px);
    }
    40% {
        clip-path: polygon(0 43%, 100% 43%, 100% 35%, 0 35%);
        transform: translate(-2px);
    }
    60% {
        clip-path: polygon(0 25%, 100% 25%, 100% 15%, 0 15%);
        transform: translate(3px);
    }
    80% {
        clip-path: polygon(0 10%, 100% 10%, 100% 0%, 0 0%);
        transform: translate(-3px);
    }
}

/* Crystallize Effect */
.crystallize {
    animation: crystal-form 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes crystal-form {
    0%, 100% {
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
        transform: rotate(0deg) scale(1);
    }
    25% {
        clip-path: polygon(50% 0%, 100% 35%, 82% 100%, 18% 100%, 0% 35%);
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        clip-path: polygon(50% 0%, 85% 23%, 100% 50%, 85% 77%, 50% 100%, 15% 77%, 0% 50%, 15% 23%);
        transform: rotate(180deg) scale(1);
    }
    75% {
        clip-path: polygon(37% 0%, 63% 0%, 100% 37%, 100% 63%, 63% 100%, 37% 100%, 0% 63%, 0% 37%);
        transform: rotate(270deg) scale(0.9);
    }
}

/* DNA Helix */
.dna-helix {
    animation: helix-rotate 10s linear infinite;
    transform-style: preserve-3d;
}

@keyframes helix-rotate {
    0% {
        transform: perspective(500px) rotateY(0deg) rotateX(15deg);
    }
    100% {
        transform: perspective(500px) rotateY(360deg) rotateX(15deg);
    }
}

/* Vortex Spin */
.vortex {
    animation: vortex-spin 20s ease-in-out infinite;
}

@keyframes vortex-spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: rotate(180deg) scale(1.2);
        filter: hue-rotate(90deg);
    }
    50% {
        transform: rotate(360deg) scale(1);
        filter: hue-rotate(180deg);
    }
    75% {
        transform: rotate(540deg) scale(0.8);
        filter: hue-rotate(270deg);
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: relative;
    overflow: hidden;
}

.matrix-rain::before {
    content: '10101010101010101010101010101010';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: matrix-fall 5s linear infinite;
    font-family: monospace;
    font-size: 20px;
    opacity: 0.1;
}

@keyframes matrix-fall {
    to {
        top: 100%;
    }
}

/* Kinetic Typography */
.kinetic-text span {
    display: inline-block;
    animation: kinetic-bounce 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes kinetic-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    20% {
        transform: translateY(-20px) rotate(-5deg) scale(1.1);
    }
    40% {
        transform: translateY(10px) rotate(3deg) scale(0.9);
    }
    60% {
        transform: translateY(-10px) rotate(-3deg) scale(1.05);
    }
    80% {
        transform: translateY(5px) rotate(2deg) scale(0.95);
    }
}

/* Infinity Loop */
.infinity-loop {
    animation: infinity-path 10s ease-in-out infinite;
}

@keyframes infinity-path {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, -30px);
    }
    50% {
        transform: translate(0, 0);
    }
    75% {
        transform: translate(-50px, -30px);
    }
}

/* Organic Blob */
.organic-blob {
    animation: blob-morph 20s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 40% 60% 30%;
        transform: rotate(180deg) scale(1);
    }
    75% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        transform: rotate(270deg) scale(0.9);
    }
}

/* Reactive Shadows */
.reactive-shadow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reactive-shadow:hover {
    animation: shadow-dance 1s ease-in-out;
}

@keyframes shadow-dance {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(139, 111, 142, 0.3),
            0 0 0 rgba(196, 169, 98, 0);
    }
    50% {
        box-shadow: 
            0 5px 15px rgba(139, 111, 142, 0.1),
            0 20px 40px rgba(196, 169, 98, 0.3);
    }
}