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

:root {
    --neon-green: #00ff41;
    --neon-blue: #00d4ff;
    --neon-pink: #ff0080;
    --matrix-green: #00ff00;
    --terminal-green: #0f0;
    --dark-bg: #000;
    --dark-grey: #111;
    --light-grey: #333;
}

body {
    font-family: 'Rajdhani', monospace;
    background: var(--dark-bg);
    color: var(--neon-green);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%),
        linear-gradient(180deg, transparent 98%, rgba(0, 255, 65, 0.03) 100%);
    background-size: 20px 20px;
    z-index: -2;
    animation: matrix-scroll 20s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 65, 0.02) 50%
    );
    background-size: 100% 4px;
    z-index: -1;
    animation: scanline 0.1s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
}

.glitch {
    position: relative;
    animation: glitch-main 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitch-main {
    0%, 95% { transform: translate(0); }
    97% { transform: translate(-2px, 2px); }
    98% { transform: translate(2px, -2px); }
    99% { transform: translate(-1px, 1px); }
}

@keyframes glitch-1 {
    0%, 90% { transform: translate(0); }
    91% { transform: translate(-2px, -2px); }
    92% { transform: translate(2px, 2px); }
    93% { transform: translate(-1px, 1px); }
    94% { transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 85% { transform: translate(0); }
    86% { transform: translate(2px, 2px); }
    87% { transform: translate(-2px, -2px); }
    88% { transform: translate(1px, -1px); }
    89% { transform: translate(-1px, 1px); }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: var(--dark-grey);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--neon-green);
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca3f; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    color: var(--neon-green);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

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

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

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

.prompt {
    color: var(--neon-blue);
    margin-right: 10px;
}

.command {
    color: var(--neon-green);
}

.output {
    color: #ccc;
}

.status-ok {
    color: var(--terminal-green);
    font-weight: bold;
    text-shadow: 0 0 5px var(--terminal-green);
}

.typing-animation {
    border-right: 2px solid var(--neon-green);
    animation: typing 3s steps(30) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
}

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

@keyframes blink {
    50% { border-color: transparent; }
}

.glitch-container {
    text-align: center;
    margin: 40px 0;
}

.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--neon-green);
    position: relative;
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green);
    animation: pulse 2s infinite;
}

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

.glitch-text::before {
    animation: glitch-wave 0.6s infinite;
    color: var(--neon-blue);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-wave 0.6s infinite reverse;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitch-wave {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(2px, -2px); }
    30% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    90% { transform: translate(-2px, 1px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.data-stream {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--neon-green),
        transparent
    );
    animation: stream 2s infinite;
}

.stream-line:nth-child(2) { animation-delay: 0.4s; }
.stream-line:nth-child(3) { animation-delay: 0.8s; }
.stream-line:nth-child(4) { animation-delay: 1.2s; }
.stream-line:nth-child(5) { animation-delay: 1.6s; }

@keyframes stream {
    0%, 100% { 
        opacity: 0;
        transform: scaleY(0);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1);
    }
}

.footer {
    margin-top: auto;
    padding: 20px 0;
}

.system-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.system-info span {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 5px 10px;
    border-radius: 3px;
    background: rgba(0, 212, 255, 0.1);
}

.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    opacity: 0.7;
    box-shadow: 0 0 10px var(--neon-green);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .data-stream {
        display: none;
    }
    
    .system-info {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .terminal-window {
        max-width: 100%;
    }
}