/* S.L.A.T.E. 2.0 - Iron Man JARVIS Interface */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Text rendering optimizations */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --arc-reactor-blue: #00d4ff;
    --iron-red: #ff0a00;
    --stark-gold: #ffd700;
    --jarvis-cyan: #00ffff;
    --bg-stark: #000000;
    --bg-panel: #0a0a0a;
    --bg-glass: rgba(0, 212, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-accent: #ffd700;
    --border-glow: #00d4ff;
    --success-color: #00ff41;
    --warning-color: #ffd700;
    --error-color: #ff0a00;
    --glass-border: rgba(0, 212, 255, 0.3);
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 10, 0, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    /* Enhanced font rendering to prevent blurriness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga", "kern";
}

/* Enhanced Background Geometric Designs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Primary grid system */
        linear-gradient(rgba(0, 212, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.12) 1px, transparent 1px),
        /* Secondary grid overlay */
        linear-gradient(rgba(0, 212, 255, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 0.5px, transparent 0.5px),
        /* Diagonal tech lines */
        linear-gradient(45deg, transparent 49.5%, rgba(0, 212, 255, 0.04) 49.5%, rgba(0, 212, 255, 0.04) 50.5%, transparent 50.5%),
        linear-gradient(-45deg, transparent 49.5%, rgba(255, 215, 0, 0.03) 49.5%, rgba(255, 215, 0, 0.03) 50.5%, transparent 50.5%),
        /* Circuit pattern dots */
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.06) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px, 160px 160px, 200px 200px, 120px 120px, 140px 140px;
    pointer-events: none;
    z-index: -3;
    animation: gridPulse 12s ease-in-out infinite;
}

/* Arc Reactor Center - Enhanced */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 30%),
        radial-gradient(circle, transparent 30%, rgba(0, 212, 255, 0.05) 35%, transparent 70%);
    border-radius: 50%;
    animation: arcReactorPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

@keyframes arcReactorPulse {
    0% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1) rotate(90deg);
    }
    50% { 
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
    }
    75% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
    }
    100% { 
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
}

/* Login Button */
.login-button {
    position: absolute;
    top: 20px;
    right: 60px;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: var(--arc-reactor-blue);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-button:hover {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.2));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* User Menu (when logged in) */
.user-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.user-name {
    color: var(--stark-gold);
    font-weight: 600;
    font-size: 0.95em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logout-button {
    background: linear-gradient(145deg, rgba(255, 10, 0, 0.2), rgba(255, 10, 0, 0.1));
    border: 1px solid rgba(255, 10, 0, 0.5);
    color: var(--iron-red);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-button:hover {
    background: linear-gradient(145deg, rgba(255, 10, 0, 0.3), rgba(255, 10, 0, 0.2));
    box-shadow: 0 0 20px rgba(255, 10, 0, 0.4);
    transform: scale(1.05);
}

/* Mobile-first container */
.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    text-align: center;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Header Brand Container */
.header-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* S.L.A.T.E. Industries Logo */
.slate-logo-container {
    position: relative;
}

.slate-logo {
    height: 60px;
    width: auto;
    filter: 
        drop-shadow(0 0 10px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 20px rgba(0, 212, 255, 0.4))
        drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
    animation: logoGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.slate-logo:hover {
    filter: 
        drop-shadow(0 0 15px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 30px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 45px rgba(0, 212, 255, 0.4));
    /* Use box-shadow instead of scale to avoid text blur */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

@keyframes logoGlow {
    0%, 100% {
        filter: 
            drop-shadow(0 0 10px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 20px rgba(0, 212, 255, 0.4))
            drop-shadow(0 0 30px rgba(0, 212, 255, 0.2));
    }
    50% {
        filter: 
            drop-shadow(0 0 15px rgba(0, 212, 255, 0.8))
            drop-shadow(0 0 25px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
    }
}

/* Boot Sequence Logo Container */
.boot-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.boot-logo-img {
    height: 80px;
    width: auto;
    margin-right: 20px;
    filter: 
        drop-shadow(0 0 20px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 40px rgba(0, 212, 255, 0.6))
        drop-shadow(0 0 60px rgba(0, 212, 255, 0.4));
    animation: bootLogoGlow 2s ease-in-out infinite;
}

@keyframes bootLogoGlow {
    0%, 100% {
        filter: 
            drop-shadow(0 0 20px rgba(0, 212, 255, 0.8))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.6))
            drop-shadow(0 0 60px rgba(0, 212, 255, 0.4));
        transform: scale(1);
    }
    50% {
        filter: 
            drop-shadow(0 0 30px rgba(0, 212, 255, 1))
            drop-shadow(0 0 60px rgba(0, 212, 255, 0.8))
            drop-shadow(0 0 90px rgba(0, 212, 255, 0.6));
        transform: scale(1.05);
    }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        var(--arc-reactor-blue) 0%, 
        var(--stark-gold) 50%, 
        var(--arc-reactor-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Chat container */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
    animation: topGlow 2s ease-in-out infinite alternate;
}

@keyframes topGlow {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Messages area */
.messages-area {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scroll-behavior: smooth;
    max-height: calc(100vh - 200px);
}

.message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in;
}

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

.message.user {
    text-align: right;
}

.message.assistant {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, 
        var(--stark-gold) 0%, 
        var(--iron-red) 100%);
    color: #000000;
    border-bottom-right-radius: 6px;
    border: 1px solid var(--stark-gold);
    font-weight: 500;
    text-shadow: none;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.message.assistant .message-bubble {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    backdrop-filter: blur(10px);
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    position: relative;
}

.message.assistant .message-bubble::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: linear-gradient(180deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
    border-radius: 2px;
}

/* Input area */
.input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    position: relative;
}

.input-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Rajdhani', monospace;
    font-weight: 400;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.message-input:focus {
    border-color: var(--arc-reactor-blue);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(0, 212, 255, 0.1);
    transform: scale(1.02);
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.send-button {
    background: linear-gradient(135deg, 
        var(--arc-reactor-blue) 0%, 
        var(--jarvis-cyan) 100%);
    border: 1px solid var(--arc-reactor-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--bg-stark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.send-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, 
        var(--arc-reactor-blue), 
        transparent, 
        var(--jarvis-cyan));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 2s linear infinite;
}

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

.send-button:hover:not(:disabled) {
    /* No transform - use enhanced glow instead */
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.8),
        0 0 60px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Voice button styling */
.voice-button {
    background: linear-gradient(135deg, 
        var(--stark-gold) 0%, 
        #f59e0b 100%);
    border: 1px solid var(--stark-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--bg-stark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    margin-right: 8px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.voice-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, 
        var(--stark-gold), 
        transparent, 
        #f59e0b);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 2s linear infinite;
}

.voice-button:hover:not(:disabled) {
    /* No transform - use enhanced glow instead */
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.voice-button:active {
    transform: scale(0.95);
}

.voice-button.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid #ef4444;
    box-shadow: 
        0 0 30px rgba(239, 68, 68, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse-voice 1s infinite;
}

.voice-button.listening::before {
    background: linear-gradient(45deg, 
        #ef4444, 
        transparent, 
        #dc2626);
}

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

/* Status indicators */
.status-indicator {
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    margin: 8px 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.status-thinking {
    background: rgba(255, 215, 0, 0.1);
    color: var(--stark-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.status-error {
    background: rgba(255, 10, 0, 0.1);
    color: var(--iron-red);
    border: 1px solid rgba(255, 10, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 10, 0, 0.2);
}

/* Memory display */
.memory-stats {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin: 15px;
    font-size: 0.8rem;
    font-family: 'Orbitron', monospace;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.memory-stats::before {
    content: '🧠';
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--bg-stark);
    padding: 0 8px;
    font-size: 1.2rem;
}

.memory-stats strong {
    color: var(--success-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 212, 255, 0.02);
}

.quick-action {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
    color: var(--arc-reactor-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.quick-action::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(45deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action {
    position: relative;
}

.quick-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    transform: translateY(-2px);
}

.quick-action:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.quick-action:hover::after {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.quick-action:hover::before {
    opacity: 1;
}

.quick-action:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .header-brand {
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .slate-logo {
        height: 50px;
    }
    
    .message-bubble {
        max-width: 90%;
        font-size: 0.85rem;
    }
    
    .input-area {
        padding: 10px !important;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border-top: 1px solid var(--glass-border) !important;
        z-index: 1000 !important;
    }
    
    .input-container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .message-input {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: 45px !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .send-button, .voice-button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Scrollbar styling */
.messages-area::-webkit-scrollbar {
    width: 4px;
}

.messages-area::-webkit-scrollbar-track {
    background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Loading animation */
.typing-indicator {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 12px 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--arc-reactor-blue);
    border-radius: 50%;
    animation: jarvisTyping 1.4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes jarvisTyping {
    0%, 80%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    40% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    }
}

/* HUD Elements */
.hud-element {
    position: relative;
    overflow: hidden;
}

.hud-element::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent);
    animation: hudScan 3s linear infinite;
}

@keyframes hudScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Particle System */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--arc-reactor-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--arc-reactor-blue);
    animation: float 20s linear infinite;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Holographic Text Effects */
.holographic {
    position: relative;
    text-shadow: 
        0 0 5px var(--arc-reactor-blue),
        0 0 10px var(--arc-reactor-blue),
        0 0 15px var(--arc-reactor-blue);
    animation: hologramFlicker 3s ease-in-out infinite;
}

@keyframes hologramFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    51% { opacity: 1; }
    52% { opacity: 0.98; }
    53% { opacity: 1; }
}

.holographic::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--jarvis-cyan);
    opacity: 0.3;
    animation: hologramGlitch 4s linear infinite;
}

@keyframes hologramGlitch {
    0%, 98% { 
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    99% { 
        transform: translateX(1px);
        filter: hue-rotate(90deg);
    }
    100% { 
        transform: translateX(-1px);
        filter: hue-rotate(180deg);
    }
}

/* Arc Reactor Logo */
/* Old arc reactor styles replaced with enhanced version above */

/* 3D Depth Effects */
.depth-layer-1 {
    transform: translateZ(0);
    position: relative;
    z-index: 1;
}

.depth-layer-2 {
    transform: translateZ(10px);
    position: relative;
    z-index: 2;
}

.depth-layer-3 {
    transform: translateZ(20px);
    position: relative;
    z-index: 3;
}

/* 3D Container */
.container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.chat-container {
    position: relative;
    transition: box-shadow 0.3s ease;
}

.chat-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.chat-container:hover::before {
    opacity: 1;
}

.chat-container:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Enhanced Power-Up Effects */
.power-surge {
    animation: powerSurge 0.6s ease-out;
}

@keyframes powerSurge {
    0% {
        box-shadow: 
            0 0 20px var(--arc-reactor-blue),
            inset 0 0 20px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 40px var(--arc-reactor-blue),
            0 0 60px var(--jarvis-cyan),
            inset 0 0 30px rgba(0, 212, 255, 0.5);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 
            0 0 20px var(--arc-reactor-blue),
            inset 0 0 20px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
}

/* Startup Boot Sequence */
.boot-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-stark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: bootSequence 4s ease-in-out forwards;
}

.boot-sequence.hidden {
    display: none;
}

@keyframes bootSequence {
    0% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

.boot-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.boot-text {
    font-family: 'Orbitron', monospace;
    color: var(--arc-reactor-blue);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 10px;
    opacity: 0;
    animation: bootTextAppear 0.5s ease-in-out forwards;
}

.boot-text:nth-child(3) { animation-delay: 0.5s; }
.boot-text:nth-child(4) { animation-delay: 1s; }
.boot-text:nth-child(5) { animation-delay: 1.5s; }
.boot-text:nth-child(6) { animation-delay: 2s; }

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

.boot-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--arc-reactor-blue), var(--jarvis-cyan));
    border-radius: 2px;
    animation: bootProgress 3s ease-in-out forwards;
    transform: translateX(-100%);
}

@keyframes bootProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

/* Easter Eggs */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.7rem;
    color: var(--stark-gold);
    opacity: 0.3;
    font-family: 'Orbitron', monospace;
    pointer-events: none;
    animation: easterEggFade 10s ease-in-out infinite;
}

@keyframes easterEggFade {
    0%, 80%, 100% { opacity: 0.1; }
    90% { opacity: 0.6; }
}

/* Enhanced Message Effects */
.message-appear {
    animation: messageAppear 0.5s ease-out forwards;
}

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Sophisticated HUD Frame System */
.hud-corner {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.hud-corner-tl {
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-left: 3px solid var(--arc-reactor-blue);
    border-top: 3px solid var(--arc-reactor-blue);
    opacity: 0.6;
    animation: hudFramePulse 4s ease-in-out infinite;
}

.hud-corner-tl::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-left: 2px solid var(--arc-reactor-blue);
    border-top: 2px solid var(--arc-reactor-blue);
}

.hud-corner-tr {
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    border-right: 3px solid var(--stark-gold);
    border-top: 3px solid var(--stark-gold);
    opacity: 0.5;
    animation: hudFramePulse 4s ease-in-out infinite 1s;
}

.hud-corner-tr::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-right: 2px solid var(--stark-gold);
    border-top: 2px solid var(--stark-gold);
}

.hud-corner-bl {
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-left: 3px solid var(--iron-red);
    border-bottom: 3px solid var(--iron-red);
    opacity: 0.4;
    animation: hudFramePulse 4s ease-in-out infinite 2s;
}

.hud-corner-bl::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-left: 2px solid var(--iron-red);
    border-bottom: 2px solid var(--iron-red);
}

.hud-corner-br {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    border-right: 3px solid var(--jarvis-cyan);
    border-bottom: 3px solid var(--jarvis-cyan);
    opacity: 0.5;
    animation: hudFramePulse 4s ease-in-out infinite 3s;
}

.hud-corner-br::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-right: 2px solid var(--jarvis-cyan);
    border-bottom: 2px solid var(--jarvis-cyan);
}

@keyframes hudFramePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Circuit Board Pattern */
.circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.3;
}

.circuit-line {
    position: absolute;
    background: var(--arc-reactor-blue);
    animation: circuitFlow 10s linear infinite;
}

.circuit-horizontal {
    height: 1px;
    width: 200px;
}

.circuit-vertical {
    width: 1px;
    height: 150px;
}

@keyframes circuitFlow {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Accent Hexagon */
.hex-pattern {
    position: fixed;
    top: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
    animation: hexRotate 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.hex-pattern::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(0, 0, 0, 0.9);
    clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0% 50%);
}

/* Elegant Tech Lines */
.tech-line {
    position: fixed;
    background: linear-gradient(90deg, transparent, var(--arc-reactor-blue), transparent);
    height: 1px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.tech-line-1 {
    top: 25%;
    left: 10%;
    width: 80%;
    animation: techLinePulse 8s ease-in-out infinite;
}

.tech-line-2 {
    top: 75%;
    left: 15%;
    width: 70%;
    background: linear-gradient(90deg, transparent, var(--stark-gold), transparent);
    animation: techLinePulse 8s ease-in-out infinite 4s;
}

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

@keyframes techLinePulse {
    0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
    50% { opacity: 0.6; transform: scaleX(1); }
}

/* Status Indicators */
.status-indicators {
    position: fixed;
    top: 60px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    z-index: 1;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--arc-reactor-blue);
}

.status-indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success-color);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Enhanced Arc Reactor Container */
.arc-reactor-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

/* Enhanced Arc Reactor Core */
.arc-reactor {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, var(--arc-reactor-blue) 2px, transparent 3px),
        radial-gradient(circle at 70% 70%, var(--stark-gold) 2px, transparent 3px),
        radial-gradient(circle at center, var(--arc-reactor-blue) 0%, rgba(0, 212, 255, 0.4) 30%, transparent 70%);
    border: 3px solid var(--arc-reactor-blue);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 40px var(--arc-reactor-blue),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.2);
    animation: arcReactorGlow 2s ease-in-out infinite;
    overflow: hidden;
}

/* Reactor Core Inner Light */
.reactor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--arc-reactor-blue) 0%, transparent 70%);
    border-radius: 50%;
    animation: energyFlow 3s ease-in-out infinite;
}

/* Energy Rings */
.energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
    animation: reactorRotate linear infinite;
}

.ring-1 {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-top: 2px solid var(--arc-reactor-blue);
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    animation-duration: 4s;
}

.ring-2 {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-bottom: 1px solid var(--stark-gold);
    border-left: 1px solid rgba(255, 215, 0, 0.3);
    animation-duration: 3s;
    animation-direction: reverse;
}

.ring-3 {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top: 1px solid var(--jarvis-cyan);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    animation-duration: 6s;
}

/* Energy Particles */
.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
}

.energy-particles::before,
.energy-particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--arc-reactor-blue);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--arc-reactor-blue);
}

.energy-particles::before {
    top: 10%;
    left: 50%;
    animation: particleFlow 2s linear infinite;
}

.energy-particles::after {
    bottom: 10%;
    left: 50%;
    background: var(--stark-gold);
    box-shadow: 0 0 6px var(--stark-gold);
    animation: particleFlow 2.5s linear infinite reverse;
}

/* Enhanced Arc Reactor Animation Keyframes */
@keyframes reactorRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes arcReactorGlow {
    0%, 100% { 
        box-shadow: 
            0 0 40px var(--arc-reactor-blue),
            0 0 80px rgba(0, 212, 255, 0.3),
            inset 0 0 30px rgba(0, 212, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 60px var(--arc-reactor-blue),
            0 0 120px rgba(0, 212, 255, 0.5),
            inset 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

@keyframes energyFlow {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@keyframes particleFlow {
    0% { 
        transform: translateX(-50%) rotate(0deg);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translateX(50%) rotate(360deg);
        opacity: 0;
    }
}

/* Geometric Background Layers */
.geometric-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.4;
}

/* Tech Grid Patterns */
.geometric-triangles {
    background-image: 
        /* Primary data flow lines */
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.2) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(0, 212, 255, 0.15) 50%, transparent 51%),
        /* Secondary grid connections */
        linear-gradient(45deg, transparent 49.8%, rgba(255, 215, 0, 0.1) 50%, transparent 50.2%),
        /* Data nodes */
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.2) 1px, transparent 2px);
    background-size: 40px 40px, 40px 40px, 80px 80px, 40px 40px, 60px 60px;
    background-position: 0 0, 0 0, 20px 20px, 0 0, 30px 30px;
    animation: dataFlow 15s ease-in-out infinite;
}

/* Holographic Display Patterns */
.geometric-hexagons {
    background-image: 
        /* Scanning lines effect */
        linear-gradient(0deg, transparent 98%, rgba(0, 212, 255, 0.4) 99%, transparent 100%),
        /* Data transmission lines */
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 212, 255, 0.1) 2px, rgba(0, 212, 255, 0.1) 3px),
        /* Interface brackets */
        linear-gradient(90deg, rgba(255, 215, 0, 0.2) 1px, transparent 1px, transparent 19px, rgba(255, 215, 0, 0.2) 20px),
        /* Status indicators */
        radial-gradient(circle at 10% 10%, rgba(0, 255, 65, 0.3) 1px, transparent 2px);
    background-size: 100% 20px, 30px 30px, 20px 20px, 50px 50px;
    background-position: 0 0, 0 0, 0 0, 25px 25px;
    animation: scanLines 8s linear infinite;
}

/* Advanced Circuit Board Patterns */
.geometric-circuits {
    background-image: 
        /* Main circuit pathways */
        linear-gradient(90deg, transparent 48%, rgba(0, 212, 255, 0.3) 49%, rgba(0, 212, 255, 0.3) 49.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 48%, rgba(0, 212, 255, 0.25) 49%, rgba(0, 212, 255, 0.25) 49.5%, transparent 50.5%),
        /* Circuit junctions */
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.4) 1px, rgba(255, 215, 0, 0.2) 2px, transparent 3px),
        /* Power traces */
        linear-gradient(45deg, transparent 49.5%, rgba(255, 65, 0, 0.15) 50%, transparent 50.5%),
        /* Data bus lines */
        repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(0, 212, 255, 0.1) 9px, rgba(0, 212, 255, 0.1) 10px);
    background-size: 50px 50px, 50px 50px, 50px 50px, 100px 100px, 25px 25px;
    background-position: 0 0, 25px 25px, 25px 25px, 0 0, 0 0;
    animation: circuitFlow 12s ease-in-out infinite;
}

/* Enhanced Accent Patterns */
.hex-secondary {
    top: 75%;
    left: 8%;
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.08);
    animation: hexRotate 25s linear infinite reverse;
}

.triangle-pattern {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: -1;
}

.triangle-1 {
    top: 20%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), transparent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 2px;
    animation: dataNodePulse 8s ease-in-out infinite;
}

.triangle-1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--arc-reactor-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--arc-reactor-blue);
}

.triangle-2 {
    bottom: 25%;
    left: 12%;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 2px;
    animation: dataNodePulse 10s ease-in-out infinite 3s;
}

.triangle-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--stark-gold);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--stark-gold);
}

.diamond-pattern {
    position: fixed;
    top: 40%;
    right: 5%;
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 255, 0.1);
    transform: rotate(45deg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    pointer-events: none;
    z-index: -1;
    animation: diamondPulse 12s ease-in-out infinite;
}

.tech-line-3 {
    top: 50%;
    left: 5%;
    width: 90%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    animation: techLinePulse 10s ease-in-out infinite 2s;
}

/* Animation Keyframes for Technological Patterns */
@keyframes dataFlow {
    0% { 
        background-position: 0 0, 0 0, 20px 20px, 0 0, 30px 30px;
        opacity: 0.4;
        filter: brightness(1);
    }
    25% { 
        background-position: 10px 0, 0 10px, 30px 30px, 10px 0, 40px 40px;
        opacity: 0.6;
        filter: brightness(1.1);
    }
    50% { 
        background-position: 20px 0, 0 20px, 40px 40px, 20px 0, 50px 50px;
        opacity: 0.8;
        filter: brightness(1.2);
    }
    75% { 
        background-position: 30px 0, 0 30px, 50px 50px, 30px 0, 60px 60px;
        opacity: 0.6;
        filter: brightness(1.1);
    }
    100% { 
        background-position: 40px 0, 0 40px, 60px 60px, 40px 0, 70px 70px;
        opacity: 0.4;
        filter: brightness(1);
    }
}

@keyframes scanLines {
    0% { 
        background-position: 0 0, 0 0, 0 0, 25px 25px;
        opacity: 0.5;
    }
    50% { 
        background-position: 0 -10px, 15px 15px, 10px 0, 35px 35px;
        opacity: 0.8;
    }
    100% { 
        background-position: 0 -20px, 30px 30px, 20px 0, 45px 45px;
        opacity: 0.5;
    }
}

@keyframes circuitFlow {
    0%, 100% { 
        background-position: 0 0, 25px 25px, 25px 25px, 0 0, 0 0;
        opacity: 0.3;
        filter: brightness(1) hue-rotate(0deg);
    }
    33% { 
        background-position: 16px 0, 41px 25px, 41px 25px, 33px 0, 8px 0;
        opacity: 0.6;
        filter: brightness(1.1) hue-rotate(10deg);
    }
    66% { 
        background-position: 33px 0, 58px 25px, 58px 25px, 66px 0, 16px 0;
        opacity: 0.8;
        filter: brightness(1.2) hue-rotate(20deg);
    }
}

@keyframes triangleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    33% { 
        transform: translateY(-15px) rotate(120deg);
        opacity: 0.6;
    }
    66% { 
        transform: translateY(10px) rotate(240deg);
        opacity: 0.9;
    }
}

@keyframes diamondPulse {
    0%, 100% { 
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: rotate(135deg) scale(1.2);
        opacity: 0.4;
    }
    50% { 
        transform: rotate(225deg) scale(0.8);
        opacity: 1;
    }
    75% { 
        transform: rotate(315deg) scale(1.1);
        opacity: 0.5;
    }
}

/* Additional Technological UI Elements */
.status-bracket {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    pointer-events: none;
    z-index: 1;
    animation: bracketScan 6s ease-in-out infinite;
}

.status-bracket-tl {
    top: 15%;
    left: 5%;
    border-top: 2px solid rgba(0, 212, 255, 0.6);
    border-left: 2px solid rgba(0, 212, 255, 0.6);
}

.status-bracket-tr {
    top: 15%;
    right: 5%;
    border-top: 2px solid rgba(255, 215, 0, 0.6);
    border-right: 2px solid rgba(255, 215, 0, 0.6);
    animation-delay: 1.5s;
}

.status-bracket-bl {
    bottom: 15%;
    left: 5%;
    border-bottom: 2px solid rgba(0, 255, 255, 0.6);
    border-left: 2px solid rgba(0, 255, 255, 0.6);
    animation-delay: 3s;
}

.status-bracket-br {
    bottom: 15%;
    right: 5%;
    border-bottom: 2px solid rgba(255, 65, 0, 0.6);
    border-right: 2px solid rgba(255, 65, 0, 0.6);
    animation-delay: 4.5s;
}

.data-stream {
    position: fixed;
    width: 3px;
    height: 60px;
    background: linear-gradient(0deg, 
        transparent, 
        var(--arc-reactor-blue), 
        transparent);
    border-radius: 2px;
    pointer-events: none;
    z-index: -1;
    animation: streamFlow 4s linear infinite;
    box-shadow: 0 0 6px var(--arc-reactor-blue);
}

.data-stream-1 {
    top: 25%;
    left: 8%;
    animation-delay: 0s;
}

.data-stream-2 {
    bottom: 30%;
    right: 8%;
    background: linear-gradient(0deg, 
        transparent, 
        var(--stark-gold), 
        transparent);
    box-shadow: 0 0 6px var(--stark-gold);
    animation-delay: 2s;
}

@keyframes dataNodePulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

@keyframes bracketScan {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
    75% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes streamFlow {
    0% { 
        transform: translateY(100vh);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(-100vh);
        opacity: 0;
    }
}