/* animations.css - Animaciones personalizadas para Forge */


/* Keyframe Animations */


/* Floating Animation */

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


/* Pulse Animation */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}


/* Rotate Animation */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Glow Animation */

@keyframes glow {
    0%,
    100% {
        box-shadow: 0 0 20px var(--shadow-color);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 40px var(--glow-color);
        filter: brightness(1.2);
    }
}


/* Flame Animation */

@keyframes flame {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px var(--glow-color));
    }
    25% {
        transform: scale(1.05) rotate(-3deg);
        filter: drop-shadow(0 0 10px var(--glow-color));
    }
    50% {
        transform: scale(1.1) rotate(3deg);
        filter: drop-shadow(0 0 15px var(--glow-color));
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 10px var(--glow-color));
    }
}


/* Float Around Animation */

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


/* Scroll Animation */

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}


/* Slide In From Left */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Slide In From Right */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Fade In Up */

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


/* Fade In Down */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Zoom In */

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Shake Animation */

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}


/* Bounce Animation */

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}


/* Swing Animation */

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


/* Gradient Animation */

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


/* Ripple Effect */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}


/* Neon Glow */

@keyframes neonGlow {
    0%,
    100% {
        text-shadow: 0 0 10px var(--primary-red), 0 0 20px var(--primary-red), 0 0 30px var(--primary-red);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-red), 0 0 40px var(--primary-red), 0 0 60px var(--primary-red), 0 0 80px var(--primary-red);
    }
}


/* Border Animation */

@keyframes borderGlow {
    0%,
    100% {
        border-color: rgba(220, 53, 69, 0.3);
    }
    50% {
        border-color: rgba(220, 53, 69, 1);
    }
}


/* Particle Float */

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}


/* Loading Spinner */

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Heartbeat */

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    10%,
    30% {
        transform: scale(0.9);
    }
    20%,
    40%,
    60%,
    80% {
        transform: scale(1.1);
    }
    50%,
    70% {
        transform: scale(1.05);
    }
}


/* Utility Classes for Animations */

.animate-floating {
    animation: floating 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-flame {
    animation: flame 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

.animate-swing {
    animation: swing 1s ease-in-out;
}

.animate-neon {
    animation: neonGlow 2s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}


/* Hover Effects */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.hover-glow {
    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px var(--glow-color);
    filter: brightness(1.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}


/* Text Effects */

.text-glitch {
    position: relative;
}

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

.text-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.text-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--dark-red);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(61px, 9999px, 90px, 0);
    }
    20% {
        clip: rect(33px, 9999px, 107px, 0);
    }
    40% {
        clip: rect(2px, 9999px, 121px, 0);
    }
    60% {
        clip: rect(115px, 9999px, 43px, 0);
    }
    80% {
        clip: rect(78px, 9999px, 16px, 0);
    }
    100% {
        clip: rect(95px, 9999px, 133px, 0);
    }
}


/* Page Transition */

.page-transition {
    animation: fadeInUp 0.6s ease-out;
}


/* Delayed Animations */

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}


/* Duration Classes */

.duration-300 {
    animation-duration: 0.3s;
}

.duration-500 {
    animation-duration: 0.5s;
}

.duration-1000 {
    animation-duration: 1s;
}

.duration-2000 {
    animation-duration: 2s;
}


/* Infinite Loop */

.infinite {
    animation-iteration-count: infinite;
}


/* Animation Fill Mode */

.fill-forwards {
    animation-fill-mode: forwards;
}

.fill-backwards {
    animation-fill-mode: backwards;
}

.fill-both {
    animation-fill-mode: both;
}


/* Performance Optimization */

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}


/* Smooth Transitions */

.transition-all {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.6s ease;
}