*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #02040a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.space-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #02040a;
    z-index: -5;
    overflow: hidden;
    perspective: 1000px;
}

.nebula-array {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.nebula-array.alpha {
    top: 15%;
    left: -10%;
    width: 65vw;
    height: 65vh;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 70%);
}

.stardust-parallax-field.tier-1 {
    position: absolute;
    width: 300%;
    height: 300%;
    background-image: 
        radial-gradient(1px 1px at 50px 120px, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 280px 400px, rgba(34, 211, 238, 0.8) 100%, transparent),
        radial-gradient(1px 1px at 600px 180px, rgba(168, 85, 247, 0.6) 100%, transparent);
    background-size: 800px 800px;
    opacity: 0.35;
}

.stardust-parallax-field.tier-2 {
    position: absolute;
    width: 300%;
    height: 300%;
    background-image: 
        radial-gradient(1.5px 1.5px at 140px 220px, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 450px 600px, rgba(236, 72, 153, 0.5) 100%, transparent);
    background-size: 600px 600px;
    opacity: 0.25;
}

.satellite-orbital-station {
    position: absolute;
    top: 10%;
    right: 12%;
    width: 260px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-25deg);
}

.sat-core {
    position: absolute;
    width: 24px;
    height: 50px;
    background-color: #0f172a;
    border: 2px solid #22d3ee;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
    z-index: 5;
    background-image: linear-gradient(to bottom, transparent 50%, #22d3ee 50%);
    background-size: 100% 10px;
}

.sat-wing-left {
    position: absolute;
    right: 144px;
    width: 90px;
    height: 48px;
    background-color: rgba(34, 211, 238, 0.15);
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.5) 2px, transparent 2px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.5) 2px, transparent 2px);
    background-size: 22px 16px;
    border: 2px solid #22d3ee;
    z-index: 4;
}

.sat-wing-right {
    position: absolute;
    left: 144px;
    width: 90px;
    height: 48px;
    background-color: rgba(34, 211, 238, 0.15);
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.5) 2px, transparent 2px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.5)2px, transparent 2px);
    background-size: 22px 16px;
    border: 2px solid #22d3ee;
    z-index: 4;
}

.sat-dish {
    position: absolute;
    bottom: 24px;
    width: 44px;
    height: 20px;
    background-color: #0f172a;
    border: 2px solid #22d3ee;
    border-radius: 50% 50% 10px 10px;
    box-shadow: 0 4px 10px rgba(34, 211, 238, 0.3);
    z-index: 6;
}

.sat-antenna {
    position: absolute;
    bottom: 6px;
    width: 2px;
    height: 22px;
    background-color: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
    z-index: 7;
}

.signal-wave {
    position: absolute;
    bottom: -15px;
    left: 42%;
    width: 6px;
    height: 6px;
    border: 2px solid #22d3ee;
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
}

.alien-mountain-range {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    background-color: #1445b8;
}

.backdrop-ridge {
    height: 18vh;
    opacity: 0.4;
    border-top: 1px solid #a855f7;
    clip-path: polygon(0% 80%, 12% 45%, 28% 65%, 45% 30%, 62% 70%, 78% 40%, 92% 55%, 100% 80%, 100% 100%, 0% 100%);
}

.foreground-peaks {
    height: 12vh;
    z-index: 2;
    border-top: 2px solid #22d3ee;
    box-shadow: 0 -5px 20px rgba(34, 211, 238, 0.15);
    clip-path: polygon(0% 90%, 8% 60%, 18% 40%, 32% 75%, 48% 35%, 60% 55%, 72% 30%, 85% 65%, 94% 45%, 100% 90%, 100% 100%, 0% 100%);
}


.surface-exploration-rover {
    position: absolute;
    bottom: 6vh;
    left: -150px;
    width: 110px;
    height: 65px;
    z-index: 3;
}

.rover-chasis {
    position: absolute;
    bottom: 18px;
    width: 80px;
    height: 25px;
    background-color: #090d16;
    border: 2px solid #ffb703;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

.rover-sensor-most {
    position: absolute;
    top: 5px;
    left: 55px;
    width: 4px;
    height: 20px;
    background-color: #ffb703;
}

.rover-optic-eye {
    position: absolute;
    top: -6px;
    left: -4px;
    width: 10px;
    height: 10px;
    background-color: #ff0055;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0055;
}

.wheel {
    position: absolute;
    bottom: 0px;
    width: 16px;
    height: 16px;
    background-color: #02040a;
    border: 2px dashed #ffb703;
    border-radius: 50%;
}
.wheel.wh-1 { left: 6px; }
.wheel.wh-2 { left: 32px; }
.wheel.wh-3 { left: 58px; }

.rover-status-bubble {
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: monospace;
    font-size: 10px;
    color: #22d3ee;
    background-color: rgba(15, 23, 42, 0.85);
    padding: 2px 6px;
    border: 1px solid #22d3ee;
    border-radius: 3px;
    white-space: nowrap;
}

.jarvis-container {
    width: 90%;
    max-width: 650px;
    height: 85vh;
    background: rgba(10, 25, 47, 0.65);
    border: 2px solid #1f4068;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.15), inset 0 0 15px rgba(102, 252, 241, 0.05);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #1f4068;
    padding-bottom: 10px;
}

h1 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #66fcf1;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.arc-reactor {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px dashed #66fcf1;
    margin: 0 auto 10px;
    box-shadow: 0 0 12px #66fcf1;
}

.arc-reactor.listening {
    border-color: #ff0055;
    box-shadow: 0 0 20px #ff0055;
}

.status {
    font-size: 0.8rem;
    color: #4e9f3d;
    margin-top: 5px;
    letter-spacing: 2px;
}

.chat-display {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #1f4068;
    background: rgba(5, 11, 20, 0.8);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 6px;
    max-width: 85%;
    line-height: 1.4;
    font-size: 0.9rem;
}

.system-msg {
    background: rgba(31, 64, 104, 0.4);
    align-self: flex-start;
    border-left: 3px solid #66fcf1;
    color: #e2fdfb;
}

.user-msg {
    background: rgba(102, 252, 241, 0.1);
    align-self: flex-end;
    border-right: 3px solid #ff0055;
    color: #fff0f5;
    text-align: right;
}

.input-area {
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    background: rgba(5, 11, 20, 0.9);
    border: 1px solid #1f4068;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    outline: none;
}

#userInput:focus {
    border-color: #66fcf1;
    box-shadow: 0 0 8px rgba(102, 252, 241, 0.3);
}

button {
    background: transparent;
    color: #66fcf1;
    border: 1px solid #66fcf1;
    padding: 0 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

button:hover {
    background: #66fcf1;
    color: #050b14;
    box-shadow: 0 0 10px #66fcf1;
}

#micBtn {
    border-color: #ff0055;
    color: #ff0055;
}

#micBtn:hover {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 10px #ff0055;
}

.nebula-array.alpha     { animation: slowPulseNebulaA 240s ease-in-out infinite alternate; }
.nebula-array.beta      { animation: slowPulseNebulaB 283s ease-in-out infinite alternate; }
.stardust-parallax-field.tier-1 { animation: hyperSlowDriftSpaceA 179s linear infinite; }
.stardust-parallax-field.tier-2 { animation: hyperSlowDriftSpaceB 223s linear infinite reverse; }

.signal-wave.ring-1     { animation: transmitPulseWave 4.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite; }
.signal-wave.ring-2     { animation: transmitPulseWave 4.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite; animation-delay: 2.25s;}

.surface-exploration-rover       { animation: roverLongExpedition 203s linear infinite; }
.wheel          { animation: wheelSpinTreads 3.5s linear infinite; }
.rover-optic-eye        { animation: opticLensFlicker 1.8s ease-in-out infinite alternate; }
.arc-reactor        { animation: spin 4s linear infinite; }

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

@keyframes slowPulseNebulaA {
    0%{transform: translate(0px, 0px) scale(1.0); }
    33%{transform: translate(60px, 40px) scale(1.15); }
    66%{transform: translate(-40px, 80px) scale(0.90); }
    100%{transform: translate(20px, -30px) scale(1.05); }
}

@keyframes slowPulseNebulaB {
    0% {transform: translate(0px, 0px) scale(1.0); }
    50% {transform: translate(-80px, -50px) scale(1.2); }
    100% {transform: translate(50px, 30px) scale(0.85); }
}

@keyframes hyperSlowDriftSpaceA {
    from { transform: translate(0, 0); }
    to { transform: translate(-400px, -400px); }
}

@keyframes hyperSlowDriftSpaceB {
    from { transform: translate(0, 0); }
    to { transform: translate(-300px, 300px); }
}

@keyframes transmitPulseWave {
    0% { width: 10px; height: 10px; opacity: 0; box-shadow: 0 0 0px rgba(34, 211, 238, 0); }
    10% { opacity: 0.8; box-shadow: 0 0 10px rgba(34, 211, 238, 0.4); }
    100% { width: 350px; height: 350px; opacity: 0; transform: translate(-50%, 150px); box-shadow: 0 0 40px rgba(34, 211, 238, 0); }
}

@keyframes roverLongExpedition {
    0% { left: -150px; transform: rotate(2deg); }
    5% { transform: translateY(0px) rotate(0deg); }
    15% { transform: translateY(-3px) rotate(-3deg); }
    25% { transform: translateY(2px) rotate(4deg); }
    45% { transform: translateY(-5px) rotate(-2deg); }
    50% { left: 105vw; transform: scaleX(1); }
    51% { transform: scaleX(-1); }
    55% { transform: translateY(3px) rotate(2deg); }
    75% { transform: translateY(-4px) rotate(-3deg); }
    95% { transform: translateY(1px) rotate(0deg); }
    100% { left: -150px; transform: scaleX(-1); }
}

@keyframes wheelSpinTreads { from { transform: rotate(0deg); } to { transform: rotate(360deg); }}
@keyframes opticLensFlicker { 0% { opacity: 0.4; box-shadow: 0 0 4px #ff0055;} 100% { opacity: 1.0; box-shadow: 0 0 14px #ff0055, 0 0 25px #ff0055;} }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1f4068; border-radius: 4px;}

.nebula-array.beta {
    bottom: -20%;
    right: -10%;
    width: 75vw;
    height: 75vh;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, transparent 75%);
}

.jarvis-container, .chat-display, #userInput, button {
    border-radius: 0px !important;
}

h1 {
    color: #ff6b35 !important;
    text-shadow: 0 0 12px rgba(255, 107, 53, 0.4) !important;
}

.jarvis-container {
    border: 3px solid #ff6b35 !important;

    box-shadow: 6px 6px 0px rgba(255, 0, 85, 0.3) !important;
}

button {
    color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}
button:hover {
    background: #ff6b35 !important;
    color: #000000 !important;
}

.space-viewport {
    background-color: #110729 !important;
}

.nebula-array.alpha {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.25) 0%, transparent 70%) !important;
}
.nebula-array.beta {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.20) 0%, transparent 75%) !important;
}

.planetary-force-field {
    position: fixed;
    bottom: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 35vh;
    border-top: 3px solid rgba(102, 252, 241, 0.4);
    border-radius: 50% 50% 0 0;
    background: radial-gradient(farthest-side at top, rgba(102, 252, 241, 0.05), transparent);
    z-index: -2;
    pointer-events: none;

    animation: atmosphericShieldHum 4s ease-in-out infinite alternate;
}

.cosmic-comet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;

    box-shadow: 
        0 0 20px #ff0055,
        -15px -15px 15px rgba(255, 0, 85, 0.6),
        -30px -30px 30px rgba(168, 85, 247, 0.4);
    z-index: 0;
    pointer-events: none;
}

.cosmic-comet.comet-alpha {
    top: -50px;
    left: 20%;
    animation: cometImpactAlpha 7s cubic-bezier(0.4, 0, 1, 1) infinite;
}

.cosmic-comet.comet-beta {
    top: -50px;
    left: 70%;
    animation: cometImpactBeta 11s cubic-bezier(0.4, 0, 1, 1) infinite;
    animation-delay: 3.5s;
}

@keyframes atmosphericShieldHum {
    0% { opacity: 0.6; box-shadow: 0 -5px 15px rgba(102, 252, 241, 0.2); }
    100% { opacity: 0.9; box-shadow: 0 -12px 30px rgba(102, 252, 241, 0.4); }
}

@keyframes cometImpactAlpha {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    45% {
        transform: translate(15vw, 68vh) scale(1.2);
        opacity: 1;
        background-color: #ff0055;
        box-shadow: 0 0 40px #ff0055, 0 0 80px #a855f7;
    }

    47%, 100% {
        transform: translate(15vw, 68vh) scale(0);
        opacity: 0;
    }
}

@keyframes cometImpactBeta {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-20vw, 70vh) scale(1.3);
        opacity: 1;
        background-color: #ffb703;
        box-shadow: 0 0 40px #ffb703, 0 0 80px #ff0055;
    }
    52%, 100% {
        transform: translate(-20vw, 70vh) scale(0);
        opacity: 0;
    }
}