﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00f0ff;
    --primary-purple: #b537ff;
    --primary-green: #00ff88;
    --primary-blue: #0088ff;
    --bg-dark: #0a0e1a;
    --bg-darker: #05070f;
    --bg-card: rgba(15, 20, 35, 0.8);
    --border-glow: rgba(0, 240, 255, 0.3);
    --text-primary: #e8f4f8;
    --text-secondary: #8b9cb6;
    --terminal-green: #00ff88;
    --danger-red: #ff4757;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: #000;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    perspective: 1500px;
}

/* 3D Scene Container */
.container-fluid {
    padding: 0;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

/* Animated 3D Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
    transform: rotateX(60deg) translateZ(-200px);
    transform-style: preserve-3d;
    opacity: 0.4;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) translateZ(-200px) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateZ(-200px) translateY(50px);
    }
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(181, 55, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 136, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

/* ========== LEFT PANEL - AI CORE (3D FLOATING) ========== */
.jarvis-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(5, 7, 15, 0.98) 100%);
    border-right: 1px solid var(--border-glow);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.8), inset -1px 0 20px rgba(0, 240, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(20px);
    transition: transform 0.3s ease-out;
}

    .jarvis-panel:hover {
        transform: translateZ(30px);
    }

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    background: rgba(10, 14, 26, 0.98);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(20px);
    transform: translateZ(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .terminal-btn:hover {
        transform: scale(1.2);
        filter: brightness(1.5);
    }

    .terminal-btn.close {
        background: #ff4757;
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.8), 0 0 20px rgba(255, 71, 87, 0.4);
    }

    .terminal-btn.minimize {
        background: #ffa502;
        box-shadow: 0 0 10px rgba(255, 165, 2, 0.8), 0 0 20px rgba(255, 165, 2, 0.4);
    }

    .terminal-btn.maximize {
        background: #00ff88;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.8), 0 0 20px rgba(0, 255, 136, 0.4);
    }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
}

    .terminal-title i {
        color: var(--primary-cyan);
        margin-right: 8px;
    }

/* 3D Holographic Orb */
.orb-container {
    position: relative;
    margin: 60px 0 40px 0;
    z-index: 2;
    transform-style: preserve-3d;
    transform: translateZ(50px);
    transition: transform 0.5s ease-out;
}

    .orb-container:hover {
        transform: translateZ(80px) scale(1.05);
    }

.orb-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse3D 4s ease-in-out infinite;
    filter: blur(40px);
    transform-style: preserve-3d;
}

@keyframes glowPulse3D {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1) translateZ(0);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15) translateZ(20px);
    }
}

.orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%), radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.5), rgba(0, 136, 255, 0.3), rgba(181, 55, 255, 0.2));
    position: relative;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8), 0 0 80px rgba(0, 240, 255, 0.6), 0 0 120px rgba(0, 240, 255, 0.4), inset 0 0 40px rgba(0, 240, 255, 0.4), inset 20px 20px 60px rgba(255, 255, 255, 0.1);
    animation: orbRotate3D 10s linear infinite, orbFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.orb-inner {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(20px);
    transform: translateZ(30px);
}

.orb-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.4);
    animation: ringPulse3D 2s ease-in-out infinite;
    transform-style: preserve-3d;
}

.orb-ring-2 {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 50%;
    border: 2px solid rgba(181, 55, 255, 0.3);
    animation: ringPulse3D 2s ease-in-out infinite 0.5s;
    transform-style: preserve-3d;
}

@keyframes orbRotate3D {
    from {
        transform: rotate(0deg) rotateY(0deg);
    }

    to {
        transform: rotate(360deg) rotateY(360deg);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-15px) translateZ(20px);
    }
}

@keyframes ringPulse3D {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1) translateZ(20px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15) translateZ(40px);
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scanMove3D 2s ease-in-out infinite;
    filter: blur(1px);
    box-shadow: 0 0 20px var(--primary-cyan);
}

@keyframes scanMove3D {
    0%, 100% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 3D Waveform */
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 70px;
    margin-bottom: 30px;
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

.wave-bar {
    width: 5px;
    background: linear-gradient(to top, var(--primary-cyan), var(--primary-purple));
    border-radius: 3px;
    animation: waveAnimation3D 1s ease-in-out infinite;
    box-shadow: 0 0 15px var(--primary-cyan), 0 0 30px rgba(0, 240, 255, 0.5);
    transform-style: preserve-3d;
}

    .wave-bar:nth-child(1) {
        animation-delay: 0s;
    }

    .wave-bar:nth-child(2) {
        animation-delay: 0.1s;
    }

    .wave-bar:nth-child(3) {
        animation-delay: 0.2s;
    }

    .wave-bar:nth-child(4) {
        animation-delay: 0.3s;
    }

    .wave-bar:nth-child(5) {
        animation-delay: 0.4s;
    }

    .wave-bar:nth-child(6) {
        animation-delay: 0.3s;
    }

    .wave-bar:nth-child(7) {
        animation-delay: 0.2s;
    }

    .wave-bar:nth-child(8) {
        animation-delay: 0.1s;
    }

@keyframes waveAnimation3D {
    0%, 100% {
        height: 15px;
        transform: translateZ(0);
    }

    50% {
        height: 55px;
        transform: translateZ(15px);
    }
}

/* Status with depth */
.status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    transform: translateZ(20px);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--terminal-green);
    box-shadow: 0 0 20px var(--terminal-green), 0 0 40px rgba(0, 255, 136, 0.5);
    animation: statusBlink3D 2s ease-in-out infinite;
}

@keyframes statusBlink3D {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.status-text {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 1), 0 0 40px rgba(0, 240, 255, 0.5);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

/* 3D Mic Button */
.mic-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.2), transparent 70%), rgba(0, 240, 255, 0.08);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 2.4rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.1), inset 10px 10px 40px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
    transform-style: preserve-3d;
    transform: translateZ(40px);
}

.mic-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    opacity: 0;
    animation: ripple3D 2s ease-out infinite;
}

    .mic-ripple:nth-child(2) {
        animation-delay: 1s;
    }

@keyframes ripple3D {
    0% {
        transform: scale(1) translateZ(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6) translateZ(30px);
        opacity: 0;
    }
}

.mic-button:hover {
    background: rgba(0, 240, 255, 0.18);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 240, 255, 0.8), inset 0 0 40px rgba(0, 240, 255, 0.2);
    transform: translateZ(60px) scale(1.08);
}

.mic-button.active {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 240, 255, 1), 0 0 100px rgba(0, 240, 255, 0.8), inset 0 0 50px rgba(0, 240, 255, 0.4);
    animation: micPulse3D 1.5s ease-in-out infinite;
}

@keyframes micPulse3D {
    0%, 100% {
        transform: translateZ(60px) scale(1);
    }

    50% {
        transform: translateZ(70px) scale(1.12);
    }
}

/* 3D Voice Controls */
.voice-controls {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    transform: translateZ(25px);
    transform-style: preserve-3d;
    margin-left:-330px;
}

.voice-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.1);
    font-size: 1.2rem;
    transform-style: preserve-3d;
}

    .voice-btn:hover {
        transform: translateY(-5px) translateZ(15px) scale(1.08);
        background: rgba(0, 240, 255, 0.18);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.7);
    }

    .voice-btn:active {
        transform: translateZ(5px) scale(0.95);
    }

    .voice-btn.danger {
        background: rgba(255, 71, 87, 0.08);
        border-color: var(--danger-red);
        color: var(--danger-red);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 71, 87, 0.4);
    }

        .voice-btn.danger:hover {
            background: rgba(255, 71, 87, 0.18);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 71, 87, 0.7);
        }

/* 3D Glass Stats Panel */
.system-stats {
    position: absolute;
    bottom: 30px;
    left: 70%;
    transform: translateX(-50%) translateZ(30px);
    display: flex;
    gap: 30px;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(181, 55, 255, 0.05) 100%), rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 30px rgba(0, 240, 255, 0.05);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

    .system-stats:hover {
        transform: translateX(-50%) translateZ(50px) scale(1.02);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.4);
    }

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 0.95rem;
    color: var(--primary-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.stat-online {
    color: var(--terminal-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

/* ========== RIGHT PANEL - 3D FLOATING CHAT ========== */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(10px);
}

.chat-bg-video {
    position: fixed;
    top: 0;
    right: 0;
    width: 55vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    filter: hue-rotate(180deg) blur(2px);
}

.chat-bg-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 55vw;
    height: 100vh;
    z-index: 1;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.97) 0%, rgba(15, 20, 35, 0.95) 100%);
    pointer-events: none;
}

.chat-panel > *:not(.chat-bg-video):not(.chat-bg-overlay) {
    position: relative;
    z-index: 2;
}

/* 3D Chat Header */
.chat-header {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateZ(15px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .header-left i {
        color: var(--primary-cyan);
        font-size: 1.2rem;
    }

.chat-header h3 {
    color: var(--primary-cyan);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.header-path {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.clear-btn {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: var(--danger-red);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

    .clear-btn:hover {
        background: rgba(255, 71, 87, 0.2);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 71, 87, 0.5);
        transform: translateY(-3px) translateZ(10px);
    }

/* 3D Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform-style: preserve-3d;
}

    .chat-container::-webkit-scrollbar {
        width: 12px;
    }

    .chat-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.4);
        border-radius: 6px;
    }

    .chat-container::-webkit-scrollbar-thumb {
        background: rgba(0, 240, 255, 0.4);
        border-radius: 6px;
        border: 2px solid rgba(0, 0, 0, 0.4);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    }

        .chat-container::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 240, 255, 0.6);
        }

/* 3D Floating Messages */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    animation: messageSlide3D 0.5s ease-out;
    transform-style: preserve-3d;
}

@keyframes messageSlide3D {
    from {
        opacity: 0;
        transform: translateX(-30px) translateZ(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

.message.user {
    align-items: flex-end;
}

    .message.user .message-bubble {
        animation: messageSlideRight3D 0.5s ease-out;
    }

@keyframes messageSlideRight3D {
    from {
        opacity: 0;
        transform: translateX(30px) translateZ(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.message-user {
    color: var(--primary-cyan);
    font-weight: 600;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.message-bubble {
    max-width: 80%;
    padding: 18px 24px;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
    position: relative;
    border: 1px solid var(--border-glow);
    line-height: 1.7;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

    .message-bubble:hover {
        transform: translateZ(10px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
    }

.message.user .message-bubble {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.2) 0%, rgba(0, 136, 255, 0.1) 100%), rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 136, 255, 0.5);
    color: var(--text-primary);
    border-top-right-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 136, 255, 0.1);
}

.message.jarvis .message-bubble {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0.06) 100%), rgba(0, 0, 0, 0.4);
    border-color: var(--border-glow);
    color: var(--text-primary);
    border-top-left-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.08);
}

.prompt-symbol {
    color: var(--terminal-green);
    margin-right: 8px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.message-text {
    display: inline;
}

/* 3D Code Blocks */
.code-block {
    margin-top: 12px;
    padding: 18px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform: translateZ(5px);
}

    .code-block code {
        font-family: 'Fira Code', 'Courier New', monospace;
        color: var(--terminal-green);
        white-space: pre;
        display: block;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    }

/* 3D Chat Input */
.chat-input-container {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateZ(10px);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(0, 240, 255, 0.04) 100%), rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    padding: 4px 4px 4px 15px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
    transform-style: preserve-3d;
}

    .input-wrapper:focus-within {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 240, 255, 0.08) 100%), rgba(0, 0, 0, 0.5);
        border-color: var(--primary-cyan);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.4), inset 0 0 30px rgba(0, 240, 255, 0.1);
        transform: translateZ(10px);
    }

.input-prompt {
    color: var(--terminal-green);
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 12px 10px;
}

    .chat-input:focus {
        outline: none;
    }

    .chat-input::placeholder {
        color: var(--text-secondary);
        opacity: 0.6;
    }

.send-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 240, 255, 0.1) 100%), rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.3);
    transform-style: preserve-3d;
}

    .send-btn:hover {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(0, 240, 255, 0.2) 100%), rgba(0, 0, 0, 0.5);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.6);
        transform: translateY(-3px) translateZ(15px);
    }

    .send-btn:active {
        transform: translateZ(5px) scale(0.95);
    }

/* Chat Footer */
.chat-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.chat-footer-line {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

    .chat-footer-line i {
        color: var(--primary-cyan);
        margin-right: 5px;
    }

.chat-footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

    .chat-footer-copy a {
        color: var(--primary-cyan);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .chat-footer-copy a:hover {
            text-decoration: underline;
            text-shadow: 0 0 15px rgba(0, 240, 255, 0.8);
        }

/* Parallax Effect on Mouse Move */
@media (hover: hover) {
    body {
        transition: transform 0.1s ease-out;
    }
}

.code-block {
    background: #0f172a;
    color: #e5e7eb;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
}

    .code-block code {
        white-space: pre;
    }


/* Responsive 3D Design */
@media (max-width: 1200px) {
    .jarvis-panel {
        flex: 0 0 40%;
    }
}

@media (max-width: 992px) {
    body {
        perspective: 1000px;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .jarvis-panel {
        position: relative;
        height: auto;
        min-height: 100vh;
        flex: 1;
        transform: translateZ(0);
    }

    .chat-panel {
        min-height: 100vh;
        transform: translateZ(0);
    }

    .chat-bg-video {
        width: 100vw;
    }

    .chat-bg-overlay {
        width: 100vw;
    }

    .system-stats {
        position: relative;
        margin-top: 30px;
        transform: translateX(-50%);
    }

    .orb-container {
        transform: translateZ(0);
    }

    .mic-button {
        transform: translateZ(0);
    }
}

@media (max-width: 768px) {
    .orb {
        width: 150px;
        height: 150px;
    }

    .orb-glow {
        width: 240px;
        height: 240px;
    }

    .mic-button {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .voice-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .message-bubble {
        max-width: 90%;
    }

    .chat-header h3 {
        font-size: 0.9rem;
    }

    .header-path {
        display: none;
    }

    .system-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* Reduce 3D effects on mobile for performance */
    .jarvis-panel,
    .chat-panel,
    .orb-container,
    .mic-button,
    .message-bubble,
    .input-wrapper,
    .send-btn {
        transform: translateZ(0) !important;
    }
}
