/* Keyframe Animations */

/* Typewriter Effect */
@keyframes typewriter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Neon Glow Effect */
@keyframes glow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Portrait Glow */
@keyframes portrait-glow {
    0% {
        box-shadow: 
            0 0 30px rgba(233, 68, 68, 0.3),
            0 0 60px rgba(0, 168, 232, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 
            0 0 50px rgba(233, 68, 68, 0.5),
            0 0 100px rgba(0, 168, 232, 0.3);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

/* Removed - simplified title effects */

/* Title Glow (Legacy) */
@keyframes title-glow {
    0% {
        text-shadow: 
            0 0 20px rgba(233, 68, 68, 0.5),
            0 0 40px rgba(233, 68, 68, 0.3);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(233, 68, 68, 0.8),
            0 0 60px rgba(233, 68, 68, 0.5),
            0 0 90px rgba(233, 68, 68, 0.3);
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor Blink */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Parallax Effect */
@keyframes parallax {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-20px);
    }
}

/* Button Hover Glow */
@keyframes button-glow {
    0% {
        box-shadow: 0 0 5px rgba(233, 68, 68, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(233, 68, 68, 0.6);
    }
}

/* Matrix Rain Effect */
@keyframes matrix-rain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Breathing Effect */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Scan Line Effect */
@keyframes scan-line {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* 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);
    }
}

/* Pulse Effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide In from Bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide In from Top */
@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate Glow */
@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Background Pulse */
@keyframes background-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Advanced Icon Animations */
@keyframes icon-pulse-advanced {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    33% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    66% {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

@keyframes icon-symbol-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(1deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-border-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

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

@keyframes bg-float {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
    }
    25% {
        transform: translateX(20px) translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateX(-10px) translateY(15px) scale(0.98);
    }
    75% {
        transform: translateX(-20px) translateY(-5px) scale(1.01);
    }
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Neon Particle Animations */
@keyframes particle-float-1 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}

@keyframes particle-float-2 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(-30px); opacity: 0; }
}

@keyframes particle-float-3 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(15px); opacity: 0; }
}

@keyframes particle-float-4 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(-25px); opacity: 0; }
}

@keyframes particle-float-5 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(35px); opacity: 0; }
}

@keyframes particle-float-6 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    14% { opacity: 1; }
    86% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(-20px); opacity: 0; }
}

@keyframes particle-float-7 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    7% { opacity: 1; }
    93% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(25px); opacity: 0; }
}

@keyframes particle-float-8 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    11% { opacity: 1; }
    89% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(-15px); opacity: 0; }
}

@keyframes particle-float-9 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    9% { opacity: 1; }
    91% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
}

@keyframes particle-float-10 {
    0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
    13% { opacity: 1; }
    87% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(-10px); opacity: 0; }
}

/* Neon Line Animations */
@keyframes line-float-vertical {
    0% { 
        transform: translateY(100vh); 
        opacity: 0; 
    }
    5% { 
        opacity: 1; 
    }
    95% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-200px); 
        opacity: 0; 
    }
}

@keyframes line-float-vertical-reverse {
    0% { 
        transform: translateY(-200px); 
        opacity: 0; 
    }
    5% { 
        opacity: 1; 
    }
    95% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh); 
        opacity: 0; 
    }
}

/* Grid Shift Animation */
@keyframes grid-shift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Removed - replaced with intense neon animations */

/* Removed - simplified background effects */

/* Removed - simplified background effects */

/* Removed - simplified background effects */

/* Character Section Animations */
@keyframes section-title-glow {
    0%, 100% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 1),
            0 0 80px rgba(255, 215, 0, 0.6),
            0 0 120px rgba(255, 215, 0, 0.3);
    }
}

@keyframes portrait-pulse {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.02);
        border-color: rgba(255, 215, 0, 0.5);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

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

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

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

@keyframes hologram-flicker {
    0%, 100% {
        opacity: 0.3;
        border-color: rgba(0, 255, 255, 0.3);
    }
    25% {
        opacity: 0.6;
        border-color: rgba(0, 255, 255, 0.6);
    }
    50% {
        opacity: 0.2;
        border-color: rgba(0, 255, 255, 0.2);
    }
    75% {
        opacity: 0.8;
        border-color: rgba(0, 255, 255, 0.8);
    }
}

@keyframes warning-pulse {
    0%, 100% {
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 100, 100, 0.8) 50%, 
            transparent 100%);
    }
    50% {
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 100, 100, 1) 50%, 
            transparent 100%);
    }
}

@keyframes warning-icon-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.8));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(255, 100, 100, 1));
    }
}

/* Demo Section Animations */
@keyframes status-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes avatar-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
        border-color: rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        border-color: rgba(255, 215, 0, 0.6);
    }
}

@keyframes typing-dot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes emotion-pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

@keyframes metric-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

@keyframes wave-animate {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
    }
}

@keyframes voice-button-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes voice-indicator-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

/* Access Section Animations */
@keyframes platform-icon-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
}

@keyframes limited-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 100, 100, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 100, 100, 0.5);
    }
}

/* Icon Border Pulse */
@keyframes icon-border-pulse {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
}

/* Removed - simplified background effects */

/* Apply animations to elements */

/* Rain overlay animation */
.rain-overlay {
    animation: rain 3s linear infinite;
}

/* Neon glow animation */
.neon-glow {
    animation: glow 4s ease-in-out infinite alternate;
}

/* Portrait breathing effect */
.saber-portrait {
    animation: portrait-glow 3s ease-in-out infinite alternate;
}

/* Title glow effect */
.hero-title {
    animation: title-glow 2s ease-in-out infinite alternate;
}

/* Subheadline fade in */
.subheadline {
    animation: fadeIn 2s ease-in-out 1s forwards;
}

/* Cursor blink */
.cursor {
    animation: blink 1s infinite;
}

/* Button hover effects */
.cta-button:hover {
    animation: button-glow 0.3s ease-in-out;
}

/* Info drawer slide in */
.info-drawer.show {
    animation: slideInBottom 0.5s ease-out;
}

/* Matrix rain effect for background */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.matrix-rain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.1) 50%, transparent 100%);
    animation: matrix-rain 8s linear infinite;
}

/* Scan line effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(233, 68, 68, 0.8) 50%, transparent 100%);
    animation: scan-line 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Glitch effect for special moments */
.glitch {
    animation: glitch 0.3s ease-in-out;
}

/* Pulse effect for important elements */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer effect for premium elements */
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* Rotating glow for special effects */
.rotate-glow {
    animation: rotate-glow 10s linear infinite;
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High performance animations */
@media (max-width: 768px) {
    .rain-overlay {
        animation-duration: 4s;
    }
    
    .neon-glow {
        animation-duration: 6s;
    }
    
    .portrait-glow {
        animation-duration: 4s;
    }
} 