/* src/css/animations.css */
/* Scroll Animation Classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.project-panel:hover {
    animation: none;
}

/* Glitch Effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-active {
    animation: glitch var(--anim-glitch) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gallery item glitch hover effect */
.gallery-item:hover {
    animation: glitch var(--anim-glitch) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RGB Split Text Effect */
@keyframes rgb-split {
    0% { text-shadow: 0 0 0 var(--neon-cyan); }
    25% { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-light-blue); }
    50% { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-light-blue); }
    75% { text-shadow: 2px 0 var(--neon-purple), -2px 0 var(--neon-orange); }
    100% { text-shadow: 0 0 0 var(--neon-cyan); }
}

.glitch-text {
    animation: rgb-split var(--anim-glitch) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Neon Border Cycling */
@keyframes border-cycle {
    0% { border-color: var(--neon-purple); }
    25% { border-color: var(--neon-pink); }
    50% { border-color: var(--neon-purple); }
    75% { border-color: var(--neon-pink); }
    100% { border-color: var(--neon-purple); }
}

.project-panel {
    animation: float var(--anim-float) ease-in-out infinite,
               border-cycle var(--anim-glow) linear infinite;
}

/* Rain Animation */
@keyframes rain {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 10px;
    background: linear-gradient(transparent, var(--neon-cyan));
    opacity: 0.3;
    animation: rain 3s linear infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .project-panel {
        animation: none;
    }

    .glitch-active,
    .glitch-text {
        animation: none;
    }

    .hero-background {
        transform: none !important;
    }

    .rain-drop {
        display: none;
    }

    .gallery-item:hover {
        animation: none;
    }
}

/* Mobile Animation Reduction */
@media (max-width: 768px) {
    @keyframes float-mobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }

    .project-panel {
        animation-name: float-mobile, border-cycle;
        animation-duration: var(--anim-float), var(--anim-glow);
    }

    .rain-drop {
        opacity: 0.15;
    }
}

/* Tablet breakpoint - reduced parallax speed */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-background {
        /* Parallax speed will be adjusted in JS with 0.3 rate instead of 0.5 */
    }
}
