/* ============================================
   daKI.tech Agent.ur - Advanced Animations
   Additional Animations & Effects
   ============================================ */

/* ============================================
   Particle System Animation
   ============================================ */

.neon-particles::before,
.neon-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: particle-float 15s linear infinite;
}

.neon-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.neon-particles::after {
    top: 60%;
    left: 80%;
    animation-delay: 7s;
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100vh) scale(0);
        opacity: 0;
    }
}

/* ============================================
   Text Shimmer Effect
   ============================================ */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, 
        var(--neon-cyan) 0%, 
        var(--neon-pink) 50%, 
        var(--neon-cyan) 100%);
    background-size: 1000px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* ============================================
   Loading Animation
   ============================================ */

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 255, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   Glow Pulse Animation
   ============================================ */

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.3),
            0 0 30px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.8),
            0 0 40px rgba(0, 255, 255, 0.6),
            0 0 60px rgba(0, 255, 255, 0.4);
    }
}

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

/* ============================================
   Scanline Effect
   ============================================ */

.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 255, 0.05) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ============================================
   Hologram Effect
   ============================================ */

.hologram {
    position: relative;
    animation: hologram-flicker 0.15s infinite;
}

.hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: hologram-scan 2s linear infinite;
    pointer-events: none;
}

@keyframes hologram-flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

@keyframes hologram-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ============================================
   Digital Rain Effect (Matrix Style)
   ============================================ */

.digital-rain {
    position: relative;
    overflow: hidden;
}

.digital-rain::after {
    content: '01010101010101010101010101010101010101010101';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
    opacity: 0.3;
    line-height: 1.2;
    white-space: pre-wrap;
    word-break: break-all;
    animation: digital-rain-fall 10s linear infinite;
    pointer-events: none;
}

@keyframes digital-rain-fall {
    0% { 
        top: -100%;
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% { 
        top: 100%;
        opacity: 0;
    }
}

/* ============================================
   Circuit Board Lines
   ============================================ */

.circuit-lines {
    position: relative;
}

.circuit-lines::before,
.circuit-lines::after {
    content: '';
    position: absolute;
    background: var(--neon-cyan);
    opacity: 0.2;
}

.circuit-lines::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    animation: circuit-h 3s ease-in-out infinite;
}

.circuit-lines::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    animation: circuit-v 3s ease-in-out infinite;
}

@keyframes circuit-h {
    0%, 100% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
}

@keyframes circuit-v {
    0%, 100% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
}

/* ============================================
   Neon Border Animation
   ============================================ */

.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(45deg, var(--neon-cyan), var(--neon-pink)) border-box;
}

.neon-border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(45deg, var(--neon-cyan), var(--neon-pink), var(--neon-cyan)) border-box;
    background-size: 200% 200%;
    animation: neon-border-rotate 3s linear infinite;
}

@keyframes neon-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   Typewriter Effect
   ============================================ */

.typewriter {
    overflow: hidden;
    border-right: 0.15em solid var(--neon-cyan);
    white-space: nowrap;
    letter-spacing: 0.15em;
    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(--neon-cyan); }
}

/* ============================================
   Floating Elements
   ============================================ */

.float-1 {
    animation: float-1 6s ease-in-out infinite;
}

.float-2 {
    animation: float-2 8s ease-in-out infinite;
}

.float-3 {
    animation: float-3 10s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    33% { transform: translateY(-25px) translateX(-15px) rotate(5deg); }
    66% { transform: translateY(-15px) translateX(15px) rotate(-5deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ============================================
   Data Stream Effect
   ============================================ */

.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-cyan) 50%, 
        transparent 100%);
    animation: data-stream 2s linear infinite;
}

@keyframes data-stream {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   Energy Pulse
   ============================================ */

.energy-pulse {
    position: relative;
}

.energy-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.3) 0%,
        transparent 70%
    );
    animation: energy-pulse 2s ease-out infinite;
}

@keyframes energy-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ============================================
   Fade In Animations
   ============================================ */

.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-down {
    animation: fadeInDown 1s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

/* ============================================
   Scale Animations
   ============================================ */

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   Rotate Animations
   ============================================ */

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

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

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

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

/* ============================================
   Slide Animations
   ============================================ */

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

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

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

/* ============================================
   Bounce Animation
   ============================================ */

.bounce {
    animation: bounce 2s infinite;
}

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

/* ============================================
   Shake Animation
   ============================================ */

.shake {
    animation: shake 0.5s ease;
}

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

/* ============================================
   Flip Animation
   ============================================ */

.flip {
    animation: flip 1s ease;
}

@keyframes flip {
    0% { transform: perspective(400px) rotateY(0); }
    100% { transform: perspective(400px) rotateY(360deg); }
}

/* ============================================
   Wave Animation
   ============================================ */

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

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

/* ============================================
   Heartbeat Animation
   ============================================ */

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.95); }
}

/* ============================================
   Delay Classes
   ============================================ */

.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; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ============================================
   Duration Classes
   ============================================ */

.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.5s; }
.duration-slow { animation-duration: 1s; }
.duration-slower { animation-duration: 2s; }

/* ============================================
   Visibility Animation Classes
   ============================================ */

.hidden {
    opacity: 0;
    visibility: hidden;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}