@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

:root {
    --neon-green: #00ff41;
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-yellow: #ffff00;
    --dark-bg: #0a0a0a;
    --terminal-bg: rgba(0, 0, 0, 0.95);
}

body {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: var(--dark-bg);
    color: var(--neon-green);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Cyber Space Background */
.cyber-space {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}

.energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 65, 0.1) 2px, rgba(0, 255, 65, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.1) 2px, rgba(0, 255, 255, 0.1) 4px);
    animation: wave-pulse 3s ease-in-out infinite;
}

@keyframes wave-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

.code-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.code-char {
    position: absolute;
    color: var(--neon-green);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
    animation: code-fall linear infinite;
    opacity: 0.6;
}

@keyframes code-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.hologram-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 255, 65, 0.03) 1px,
        rgba(0, 255, 65, 0.03) 2px
    );
    animation: hologram-flicker 0.1s infinite;
}

@keyframes hologram-flicker {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0);
    }
    25% {
        opacity: 0.3;
        transform: translateX(-1px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(0);
    }
    75% {
        opacity: 0.4;
        transform: translateX(1px);
    }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    gap: 30px;
}

/* Hack Terminal */
.hack-terminal {
    background: var(--terminal-bg);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.5),
        0 0 60px rgba(0, 255, 65, 0.3),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
    min-width: 700px;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.hack-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    animation: terminal-scan 4s infinite;
}

@keyframes terminal-scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.terminal-top {
    background: rgba(0, 255, 65, 0.1);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

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

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control-btn.close {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.control-btn.minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.control-btn.maximize {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
}

.terminal-title {
    color: var(--neon-green);
    font-size: 0.9rem;
    text-shadow: 0 0 10px var(--neon-green);
    font-weight: bold;
}

.terminal-content {
    padding: 30px;
}

.command-line {
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    font-weight: bold;
}

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

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

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

.output {
    margin-bottom: 40px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.output-line {
    color: rgba(0, 255, 65, 0.8);
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    animation: type-in 0.5s ease-in;
}

.output-line.success {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

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

/* Glitch Container */
.glitch-container {
    margin: 40px 0;
    text-align: center;
}

.main-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.text-line {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green),
        0 0 40px var(--neon-green),
        0 0 70px var(--neon-green);
    animation: text-glow 2s ease-in-out infinite alternate,
               text-glitch 3s infinite;
    letter-spacing: 0.2em;
    position: relative;
}

.text-line.dots {
    font-size: 4rem;
    animation: dots-blink 1.5s infinite;
}

@keyframes text-glow {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1.3);
        transform: scale(1.02);
    }
}

@keyframes text-glitch {
    0%, 100% {
        transform: translate(0) skew(0deg);
    }
    20% {
        transform: translate(-2px, 2px) skew(1deg);
    }
    40% {
        transform: translate(-2px, -2px) skew(-1deg);
    }
    60% {
        transform: translate(2px, 2px) skew(1deg);
    }
    80% {
        transform: translate(2px, -2px) skew(-1deg);
    }
}

@keyframes dots-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

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

.text-line::before {
    color: var(--neon-pink);
    text-shadow: 
        -3px 0 var(--neon-pink),
        0 0 20px var(--neon-pink);
    animation: glitch-1 2s infinite;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.text-line::after {
    color: var(--neon-cyan);
    text-shadow: 
        3px 0 var(--neon-cyan),
        0 0 20px var(--neon-cyan);
    animation: glitch-2 2s infinite;
    z-index: -1;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(3px, -3px);
    }
    40% {
        transform: translate(3px, 3px);
    }
    60% {
        transform: translate(-3px, -3px);
    }
    80% {
        transform: translate(-3px, 3px);
    }
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 255, 65, 0.05);
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    margin-top: 30px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.status-label {
    font-size: 0.7rem;
    color: rgba(0, 255, 65, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.status-value {
    font-size: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    font-weight: bold;
}

.status-value.active {
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Side Panels */
.side-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: var(--terminal-bg);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    width: 200px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

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

@keyframes panel-scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.panel-header {
    color: var(--neon-green);
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-green);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 10px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-stream {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--neon-green),
        transparent
    );
    box-shadow: 0 0 10px var(--neon-green);
    animation: stream-flow 2s linear infinite;
}

@keyframes stream-flow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.network-node {
    width: 100%;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.network-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.5), transparent);
    animation: node-pulse 2s infinite;
}

@keyframes node-pulse {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Overlays */
.scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--neon-green),
        transparent
    );
    box-shadow: 
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    z-index: 100;
    animation: scan-down 4s linear infinite;
    pointer-events: none;
}

@keyframes scan-down {
    0% {
        top: 0;
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        top: 100%;
        opacity: 1;
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    z-index: 5;
    pointer-events: none;
    animation: noise-flicker 0.2s infinite;
}

@keyframes noise-flicker {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .hack-terminal {
        min-width: 90%;
    }
    
    .side-panels {
        flex-direction: row;
        width: 100%;
    }
    
    .panel {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .text-line {
        font-size: 3rem;
    }
    
    .text-line.dots {
        font-size: 2.5rem;
    }
    
    .side-panels {
        flex-direction: column;
    }
    
    .panel {
        width: 100%;
    }
}
