/* GSAP-specific animations will be handled in JS */

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Circuit Line Animation */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--neon-blue));
    height: 2px;
    width: 100%;
    opacity: 0;
}

.circuit-line.vertical {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--neon-blue));
}

@keyframes circuit-flow {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-purple);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-blue);
    animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }
    20% {
        clip: rect(12px, 9999px, 65px, 0);
    }
    40% {
        clip: rect(62px, 9999px, 135px, 0);
    }
    60% {
        clip: rect(42px, 9999px, 85px, 0);
    }
    80% {
        clip: rect(72px, 9999px, 125px, 0);
    }
    100% {
        clip: rect(32px, 9999px, 55px, 0);
    }
}

@keyframes glitch-2 {
    0% {
        clip: rect(12px, 9999px, 75px, 0);
    }
    20% {
        clip: rect(62px, 9999px, 25px, 0);
    }
    40% {
        clip: rect(42px, 9999px, 85px, 0);
    }
    60% {
        clip: rect(22px, 9999px, 45px, 0);
    }
    80% {
        clip: rect(52px, 9999px, 95px, 0);
    }
    100% {
        clip: rect(32px, 9999px, 65px, 0);
    }
}

/* Pulse Effect */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Slide In Animation */
.slide-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rotate Animation */
.rotate-3d {
    animation: rotate3d 10s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotate3d {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }
    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    text-shadow: 0 0 5px var(--neon-blue);
    transform: translateY(-100%);
    animation: matrix-fall 5s linear infinite;
}

@keyframes matrix-fall {
    to {
        transform: translateY(100vh);
    }
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px var(--neon-blue),
                0 0 30px var(--neon-purple),
                0 0 45px var(--cyber-green);
    transform: scale(1.05);
}

/* Loading Spinner */
.cyber-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--neon-blue);
    border-right-color: var(--neon-purple);
    border-radius: 50%;
    animation: cyber-spin 1s linear infinite;
}

@keyframes cyber-spin {
    to {
        transform: rotate(360deg);
    }
} 