/* ==============================================
   CYBER LUX ANIMATIONS & EFFECTS
   From DESIGN_agents_platform_111125.md
   ============================================== */

/* Animated Gradient Background for All Pages */
@keyframes gradient-shift {
    0% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}

.cyber-gradient-bg {
    background: linear-gradient(135deg, 
        #0D0D0D 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #0f3460 75%,
        #0D0D0D 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Pulse Glow Animation for Active Elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(20, 241, 149, 0.3),
                    0 0 20px rgba(20, 241, 149, 0.2),
                    0 0 30px rgba(20, 241, 149, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(20, 241, 149, 0.5),
                    0 0 40px rgba(20, 241, 149, 0.3),
                    0 0 60px rgba(20, 241, 149, 0.2);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient Border Rotation for Featured Cards */
@keyframes gradient-border-rotate {
    0% {
        border-image-source: linear-gradient(0deg, 
            #14F195, #00D4AA, #9945FF, #14F195);
    }
    25% {
        border-image-source: linear-gradient(90deg, 
            #14F195, #00D4AA, #9945FF, #14F195);
    }
    50% {
        border-image-source: linear-gradient(180deg, 
            #14F195, #00D4AA, #9945FF, #14F195);
    }
    75% {
        border-image-source: linear-gradient(270deg, 
            #14F195, #00D4AA, #9945FF, #14F195);
    }
    100% {
        border-image-source: linear-gradient(360deg, 
            #14F195, #00D4AA, #9945FF, #14F195);
    }
}

.gradient-border-animated {
    border: 2px solid transparent;
    border-image-slice: 1;
    animation: gradient-border-rotate 4s linear infinite;
}

/* Processing/Loading Animation */
@keyframes pulse-processing {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.7; 
    }
}

.pulse-processing {
    animation: pulse-processing 1.5s ease-in-out infinite;
}

/* Progress Slide Animation for Indeterminate Progress */
@keyframes progress-slide {
    0% { 
        transform: translateX(-100%); 
    }
    100% { 
        transform: translateX(400%); 
    }
}

.progress-slide {
    animation: progress-slide 2s ease-in-out infinite;
}

/* Float Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Spin Animation for Loading Icons */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 2s linear infinite;
}

/* Neon Glow Text Effect */
@keyframes neon-glow-text {
    0%, 100% {
        text-shadow: 0 0 10px rgba(20, 241, 149, 0.5),
                     0 0 20px rgba(20, 241, 149, 0.3),
                     0 0 30px rgba(20, 241, 149, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(20, 241, 149, 0.8),
                     0 0 40px rgba(20, 241, 149, 0.5),
                     0 0 60px rgba(20, 241, 149, 0.3);
    }
}

.neon-glow-text {
    animation: neon-glow-text 2s ease-in-out infinite;
}

/* Shimmer Effect for Loading States */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Scale Up on Hover */
@keyframes scale-up {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.scale-up-hover:hover {
    animation: scale-up 0.3s ease forwards;
}

/* Slide In from Bottom */
@keyframes slide-in-bottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-bottom {
    animation: slide-in-bottom 0.5s ease-out;
}

/* Fade In */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 0.5s ease-in;
}

/* Bounce In */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounce-in 0.6s ease-out;
}

/* Cyber Scan Line Effect */
@keyframes scan-line {
    0% {
        top: 0%;
    }
    100% {
        top: 100%;
    }
}

.scan-line-effect {
    position: relative;
    overflow: hidden;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(20, 241, 149, 0.8), 
        transparent);
    animation: scan-line 3s linear infinite;
}

/* Glitch Effect for Special Elements */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.glitch-hover:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Particle Effect Background (Optional for Hero) */
@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -10px);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, 0);
        opacity: 0.9;
    }
    75% {
        transform: translate(10px, 10px);
        opacity: 0.6;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(20, 241, 149, 0.5);
    border-radius: 50%;
    animation: particle-float 6s ease-in-out infinite;
}

/* Typing Effect for Text */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #14F195;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #14F195;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Ripple Effect on Click */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20, 241, 149, 0.3);
    transform: translate(-50%, -50%);
}

.ripple-effect:active::after {
    width: 100px;
    height: 100px;
    animation: ripple 0.6s ease-out;
}

/* Utility Classes for Common Animations */
.transition-all {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.4);
}

/* Stagger Animation for Lists */
.stagger-item {
    animation: slide-in-bottom 0.5s ease-out;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }
.stagger-item:nth-child(7) { animation-delay: 0.7s; }
.stagger-item:nth-child(8) { animation-delay: 0.8s; }
