/* Removed external font import to avoid loading issues */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00ff88;
    --neon-pink: #ff0088;
    --neon-blue: #0088ff;
    --neon-purple: #8800ff;
    --neon-yellow: #ffff00;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --terminal-bg: rgba(0, 20, 20, 0.95);
}

body {
    background: var(--bg-dark);
    color: var(--neon-cyan);
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    overflow-x: hidden;
    cursor: default;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 3s ease-in-out infinite alternate;
    box-shadow: 0 0 6px currentColor;
}

.star.reactive {
    transition: all 0.3s ease;
}

.waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        var(--neon-blue) 25%,
        transparent 50%,
        var(--neon-purple) 75%,
        transparent 100%
    );
    border-radius: 50%;
    animation: wave-flow 20s linear infinite;
    opacity: 0.1;
}

.planet-system {
    position: fixed;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 2;
}

.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 20px currentColor;
}

.planet.core {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, var(--neon-pink), #ff0044, #330011);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-core 4s ease-in-out infinite;
    box-shadow: 
        0 0 30px var(--neon-pink),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 2px rgba(0, 255, 136, 0.3);
}

.orbit::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dotted rgba(0, 255, 136, 0.2);
    border-radius: 50%;
}

.orbit-1 {
    width: 160px;
    height: 160px;
    animation: rotate-orbit 18s linear infinite;
    border-color: var(--neon-cyan);
}

.orbit-2 {
    width: 240px;
    height: 240px;
    animation: rotate-orbit 28s linear infinite reverse;
    border-color: var(--neon-blue);
}

.orbit-3 {
    width: 320px;
    height: 320px;
    animation: rotate-orbit 38s linear infinite;
    border-color: var(--neon-purple);
}

.orbit-4 {
    width: 400px;
    height: 400px;
    animation: rotate-orbit 48s linear infinite reverse;
    border-color: var(--neon-yellow);
}

.orbit-5 {
    width: 480px;
    height: 480px;
    animation: rotate-orbit 58s linear infinite;
    border-color: var(--neon-pink);
}

.satellite-1 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, var(--neon-cyan), #006644);
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-glow 3s ease-in-out infinite alternate;
}

.satellite-2 {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, var(--neon-blue), #002266);
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-glow 4s ease-in-out infinite alternate;
}

.satellite-3 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--neon-purple), #220066);
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-glow 3.5s ease-in-out infinite alternate;
}

.satellite-4 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, var(--neon-yellow), #666600);
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-glow 2.5s ease-in-out infinite alternate;
}

.satellite-5 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--neon-pink), #660022);
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    animation: satellite-glow 4.5s ease-in-out infinite alternate;
}

.main-content {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.glitch-container {
    margin-bottom: 3rem;
}

.title {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor;
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch::before {
    color: var(--neon-pink);
    animation: glitch-1 0.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--neon-blue);
    animation: glitch-2 0.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 
        0 0 20px var(--neon-cyan),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
    margin-bottom: 2rem;
}

.terminal-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
}

.terminal-title {
    font-weight: 500;
    color: var(--neon-cyan);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.minimize { background: var(--neon-yellow); }
.control.maximize { background: var(--neon-cyan); }
.control.close { background: var(--neon-pink); }

.terminal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    opacity: 0;
    animation: fade-in 0.8s ease forwards;
    margin-bottom: 8px;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }
.delay-4 { animation-delay: 4s; }

.prompt {
    color: var(--neon-cyan);
    margin-right: 8px;
}

.typing-text {
    animation: typing 2s steps(30) forwards;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.status-ok { color: var(--neon-cyan); margin-right: 8px; }
.status-info { color: var(--neon-blue); margin-right: 8px; }
.status-warn { color: var(--neon-yellow); margin-right: 8px; }

.email-link {
    color: var(--neon-pink);
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px currentColor;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--neon-cyan);
}

.footer-info {
    width: 100%;
    max-width: 600px;
}

.system-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.8;
    flex-wrap: wrap;
    gap: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    color: var(--neon-blue);
}

.stat-value {
    color: var(--neon-cyan);
    font-weight: 500;
}

.status-active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px currentColor;
}

.command-interface {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 500px;
    background: var(--terminal-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.command-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
    font-size: 12px;
}

.command-title {
    color: var(--neon-cyan);
    font-weight: bold;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    text-shadow: 0 0 10px currentColor;
}

.command-body {
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.command-body.collapsed {
    max-height: 0;
    overflow: hidden;
}

.command-output {
    padding: 15px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
}

.output-line {
    margin-bottom: 8px;
    word-wrap: break-word;
}

.system-msg { color: var(--neon-cyan); }
.info-msg { color: var(--neon-blue); }
.success-msg { color: var(--neon-cyan); }
.error-msg { color: var(--neon-pink); }
.warning-msg { color: var(--neon-yellow); }
.data-msg { color: var(--neon-purple); }

.command-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.command-prompt {
    color: var(--neon-cyan);
    margin-right: 8px;
    font-weight: bold;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-family: inherit;
    font-size: 12px;
    outline: none;
    caret-color: transparent;
}

.input-cursor {
    color: var(--neon-cyan);
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
}

.encrypting {
    animation: encrypt-text 0.5s ease-in-out;
}

.decrypting {
    animation: decrypt-text 0.8s ease-in-out;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 255, 136, 0.03) 50%,
        transparent 100%
    );
    animation: glitch-scan 3s linear infinite;
}

/* Animations */
@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes pulse-core {
    0%, 100% { 
        box-shadow: 
            0 0 30px var(--neon-pink),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 
            0 0 50px var(--neon-pink), 
            0 0 80px var(--neon-pink),
            inset 0 0 30px rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes satellite-glow {
    0% { 
        box-shadow: 0 0 10px currentColor;
        transform: translateX(-50%) scale(1);
    }
    100% { 
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes rotate-orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes glow-pulse {
    0% { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor; }
    100% { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor; }
}

@keyframes glitch-1 {
    0%, 100% { opacity: 0; }
    10% { opacity: 1; transform: translateX(-2px); }
    20% { opacity: 0; }
}

@keyframes glitch-2 {
    0%, 100% { opacity: 0; }
    15% { opacity: 1; transform: translateX(2px); }
    25% { opacity: 0; }
}

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

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glitch-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes encrypt-text {
    0% { filter: blur(0px); }
    25% { filter: blur(2px); transform: skew(2deg); }
    50% { filter: blur(4px); transform: skew(-1deg); }
    75% { filter: blur(2px); transform: skew(1deg); }
    100% { filter: blur(0px); transform: skew(0deg); }
}

@keyframes decrypt-text {
    0% { 
        filter: blur(4px) brightness(0.5); 
        transform: scale(1.1) skew(3deg);
        color: var(--neon-pink);
    }
    25% { 
        filter: blur(3px) brightness(0.7); 
        transform: scale(1.05) skew(-2deg);
        color: var(--neon-yellow);
    }
    50% { 
        filter: blur(2px) brightness(0.9); 
        transform: scale(1.02) skew(1deg);
        color: var(--neon-blue);
    }
    75% { 
        filter: blur(1px) brightness(1.1); 
        transform: scale(1.01) skew(-0.5deg);
        color: var(--neon-cyan);
    }
    100% { 
        filter: blur(0px) brightness(1); 
        transform: scale(1) skew(0deg);
        color: var(--neon-cyan);
    }
}

@keyframes ping {
    0% { 
        transform: translate(-50%, -50%) scale(0); 
        opacity: 1; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3); 
        opacity: 0; 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .planet-system {
        right: 10px;
        transform: translateY(-50%) scale(0.5);
        width: 300px;
        height: 300px;
    }
    
    .terminal {
        margin: 0 10px;
    }
    
    .system-stats {
        justify-content: center;
        gap: 8px;
    }
    
    .command-interface {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }
    
    .command-output {
        max-height: 120px;
    }
}

@media (max-width: 1200px) {
    .planet-system {
        right: 20px;
        transform: translateY(-50%) scale(0.8);
    }
}