/* animations.css - Animaciones avanzadas para Teknovate */

/* ===========================
   Animaciones de Partículas
   =========================== */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* ===========================
   Efecto Glitch para Logo
   =========================== */
.logo-text:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: none;
    }
    20% {
        text-shadow: 
            2px 2px 0 var(--secondary-color),
            -2px -2px 0 var(--accent-color);
    }
    40% {
        text-shadow: 
            -2px 2px 0 var(--secondary-color),
            2px -2px 0 var(--accent-color);
    }
    60% {
        text-shadow: 
            2px -2px 0 var(--secondary-color),
            -2px 2px 0 var(--accent-color);
    }
}

/* ===========================
   Animación de Gradiente
   =========================== */
.gradient-animated {
    background: linear-gradient(270deg, #0066cc, #00d4ff, #0066cc);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
}

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

/* ===========================
   Efecto Ripple
   =========================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* ===========================
   Animación de Tarjetas 3D
   =========================== */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(-5deg) translateZ(20px);
}

/* ===========================
   Efecto Parallax
   =========================== */
.parallax-element {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Animación de Texto Typing
   =========================== */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* ===========================
   Blob Animation
   =========================== */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.7;
    animation: blob-morph 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    33% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
        transform: rotate(60deg);
    }
    66% {
        border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%;
        transform: rotate(-60deg);
    }
}

/* ===========================
   Hover Effects
   =========================== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.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) scale(1.05);
}

/* ===========================
   Shimmer Effect
   =========================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: right 0.5s;
}

.shimmer:hover::after {
    right: 100%;
}

/* ===========================
   Pulse Animation
   =========================== */
.pulse {
    animation: pulse-scale 2s ease-in-out infinite;
}

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

/* ===========================
   Bounce Animation
   =========================== */
.bounce {
    animation: bounce 2s ease-in-out infinite;
}

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

/* ===========================
   Slide Animations
   =========================== */
.slide-in-left {
    animation: slide-in-left 0.5s ease-out;
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slide-in-right 0.5s ease-out;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===========================
   Zoom Animations
   =========================== */
.zoom-in {
    animation: zoom-in 0.5s ease-out;
}

@keyframes zoom-in {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-out {
    animation: zoom-out 0.5s ease-out;
}

@keyframes zoom-out {
    from {
        transform: scale(1.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   Shake Animation
   =========================== */
.shake {
    animation: shake 0.5s ease-in-out;
}

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

/* ===========================
   Glow Effect
   =========================== */
.glow {
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 
        0 0 20px rgba(0, 102, 204, 0.5),
        0 0 40px rgba(0, 102, 204, 0.3),
        0 0 60px rgba(0, 102, 204, 0.1);
}

/* ===========================
   Morphing Background
   =========================== */
.morph-bg {
    background: linear-gradient(45deg, #0066cc, #00d4ff, #ff6b35);
    background-size: 300% 300%;
    animation: morph-gradient 15s ease infinite;
}

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

/* ===========================
   Text Effects
   =========================== */
.text-shadow-pop {
    transition: all 0.3s ease;
}

.text-shadow-pop:hover {
    text-shadow: 
        1px 1px 0 var(--primary-color),
        2px 2px 0 var(--primary-dark),
        3px 3px 0 var(--primary-light),
        4px 4px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ===========================
   Loading Dots
   =========================== */
.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: loading-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   Reveal Animations
   =========================== */
.reveal {
    position: relative;
    overflow: hidden;
}

.reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: reveal-slide 1s ease-out forwards;
}

@keyframes reveal-slide {
    0% {
        left: -100%;
    }
    50% {
        left: 0;
    }
    100% {
        left: 100%;
    }
}

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

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

/* ===========================
   Neon Effect
   =========================== */
.neon {
    color: var(--primary-color);
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--primary-light);
    animation: neon-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}
