:root {
    --bg-color: #1e1e1e;
    --terminal-bg: rgba(0, 0, 0, 0.8);
    --text-color: #f0f0f0;
    --prompt-color: #50fa7b;
    --link-color: #bd93f9;
    --error-color: #ff5555;
    --success-color: #50fa7b;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --quantum-glow: #00ff88;
    --neural-pulse: #ff00cc;
    --blockchain-accent: #ffaa00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Fira Code', 'Consolas', monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terminal {
    background-color: var(--terminal-bg);
    width: 100%;
    max-width: 900px;
    height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(80, 250, 123, 0.07), 0 0 80px rgba(80, 250, 123, 0.04);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

/* CRT Scanline Effect */
.terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.4) 0px,
            rgba(0, 0, 0, 0.4) 1px,
            transparent 1px,
            transparent 4px
        ),
        radial-gradient(
            ellipse at center,
            transparent 30%,
            rgba(0, 0, 0, 0.6) 100%
        );
    pointer-events: none;
    z-index: 10;
    border-radius: 10px;
}

/* Moving scanline band */
.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.06) 48%,
        rgba(0, 0, 0, 0.25) 52%,
        transparent 58%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 11;
    border-radius: 10px;
    animation: crt-band 4s linear infinite;
}

@keyframes crt-band {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}

@keyframes crt-flicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 1; }
    46% { opacity: 0.88; }
    48% { opacity: 1; }
    70% { opacity: 1; }
    71% { opacity: 0.91; }
    72% { opacity: 1; }
}

.terminal-body {
    animation: crt-flicker 3s infinite;
}

.terminal-header {
    background-color: rgba(45, 45, 45, 0.8);
    padding: 10px;
    display: flex;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.button:hover {
    opacity: 0.8;
}

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.title {
    color: #999;
    font-size: 14px;
}

.terminal-body {
    padding: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 #1e1e1e;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.input-line {
    display: flex;
    margin: 10px 0;
}

.prompt {
    color: var(--prompt-color);
    margin-right: 10px;
    white-space: nowrap;
    text-shadow: 0 0 5px var(--prompt-color), 0 0 20px var(--prompt-color);
}

#commandInput {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
    text-shadow: 0 0 4px var(--text-color);
    caret-color: var(--prompt-color);
}

.response {
    margin: 10px 0 16px 0;
    line-height: 1.4;
}

.response-title {
    color: var(--prompt-color);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-shadow: 0 0 5px var(--prompt-color), 0 0 15px var(--prompt-color);
}

.response-subtitle {
    color: var(--text-color);
    opacity: 0.9;
    font-weight: bold;
    margin: 12px 0 4px 0;
}

.response-date {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9em;
    font-style: italic;
}

.response-content {
    margin-left: 16px;
}

.response-list {
    margin: 4px 0 8px 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.response-section {
    margin-bottom: 16px;
}

pre.response {
    margin: 10px 0 16px 16px;
    white-space: pre-wrap;
}

a {
    color: var(--text-color);
    text-decoration: none;
    border: none;
    position: relative;
    padding: 0 2px;
    transition: all 0.2s ease;
    text-shadow: 0 0 4px var(--link-color);
}

a:hover {
    background-color: var(--text-color);
    color: var(--terminal-bg);
    text-shadow: none;
}

.error {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color), 0 0 15px var(--error-color);
}

.success {
    color: var(--success-color);
    text-shadow: 0 0 5px var(--success-color), 0 0 15px var(--success-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    font-family: inherit;
    line-height: 1.6;
}

.contact-item .label {
    color: var(--prompt-color);
    margin-right: 8px;
    min-width: 80px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    border: none;
    position: relative;
    padding: 0 2px;
}

.contact-item a:hover {
    background-color: var(--text-color);
    color: var(--terminal-bg);
}

.copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 12px;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 3px;
}

.copy-icon:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.copy-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--text-color);
}

.copy-feedback {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s;
    font-style: italic;
}

.copy-feedback.show {
    opacity: 1;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-color);
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.hologram-effect {
    position: relative;
    transform-style: preserve-3d;
    animation: hologramFloat 6s ease-in-out infinite;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

@keyframes hologramFloat {
    0%, 100% { transform: translateY(0) rotateZ(0.5deg); }
    50% { transform: translateY(-20px) rotateZ(-0.5deg); }
}

.terminal-3d {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2),
                0 0 70px rgba(255, 0, 255, 0.2);
}

/* Quantum Computing Styles */
.quantum-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 1px solid var(--quantum-glow);
    box-shadow: 0 0 20px var(--quantum-glow);
}

.quantum-gate {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid var(--quantum-glow);
    border-radius: 4px;
    color: var(--quantum-glow);
    background: rgba(0, 255, 136, 0.1);
}

/* Neural Interface Styles */
.neural-active {
    border: 2px solid var(--neural-pulse);
    animation: neural-pulse 1.5s infinite;
}

@keyframes neural-pulse {
    0% { box-shadow: 0 0 5px var(--neural-pulse); }
    50% { box-shadow: 0 0 20px var(--neural-pulse); }
    100% { box-shadow: 0 0 5px var(--neural-pulse); }
}

.neural-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 0, 204, 0.2);
    border: 1px solid var(--neural-pulse);
    color: var(--neural-pulse);
    font-size: 12px;
}

/* Blockchain Styles */
.nft-card {
    border: 1px solid var(--blockchain-accent);
    padding: 15px;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
}

.nft-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.blockchain-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--blockchain-accent);
    border-radius: 4px;
    color: var(--blockchain-accent);
    font-size: 12px;
    margin: 5px 0;
}

/* Neofetch */
.neofetch {
    margin: 10px 0 16px 0;
    line-height: 1.4;
}

.neofetch-logo {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 15px var(--neon-blue);
}

.neofetch-header {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--prompt-color), 0 0 15px var(--prompt-color);
}

.neofetch-separator {
    color: var(--text-color);
    opacity: 0.5;
}

.neofetch-label {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 3px var(--prompt-color);
}

/* Easter Eggs Menu */
.ee-container {
    margin: 10px 0;
}

.ee-item {
    padding: 4px 8px;
    cursor: pointer;
}

.ee-selected {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-shadow: none;
}

.ee-hint {
    margin: 10px 0;
}

.ee-hint-title {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--prompt-color);
    margin-bottom: 4px;
}

.ee-hint-line {
    color: var(--text-color);
    opacity: 0.8;
    margin-left: 8px;
}

/* Tetris Game */
.tetris-game {
    margin: 10px 0;
}

.tetris-header {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--prompt-color);
    margin-bottom: 4px;
}

.tetris-board {
    line-height: 1.1;
    margin: 0;
}

.tetris-border {
    color: var(--text-color);
    opacity: 0.4;
}

.tetris-label {
    color: var(--prompt-color);
    text-shadow: 0 0 3px var(--prompt-color);
}

.tetris-i { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue); }
.tetris-o { color: #ffbd2e; text-shadow: 0 0 5px #ffbd2e; }
.tetris-t { color: #bd93f9; text-shadow: 0 0 5px #bd93f9; }
.tetris-s { color: var(--success-color); text-shadow: 0 0 5px var(--success-color); }
.tetris-z { color: var(--error-color); text-shadow: 0 0 5px var(--error-color); }
.tetris-l { color: #ffaa00; text-shadow: 0 0 5px #ffaa00; }
.tetris-j { color: #ff79c6; text-shadow: 0 0 5px #ff79c6; }

.tetris-ghost {
    color: var(--text-color);
    opacity: 0.15;
}

.tetris-info {
    color: var(--text-color);
    opacity: 0.5;
    margin-top: 4px;
    font-size: 0.9em;
}

.tetris-final-score {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color);
}

/* Snake Game */
.snake-game {
    margin: 10px 0;
}

.snake-header {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--prompt-color);
    margin-bottom: 4px;
}

.snake-board {
    line-height: 1.1;
    margin: 0;
}

.snake-border {
    color: var(--text-color);
    opacity: 0.4;
}

.snake-head {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}

.snake-body {
    color: var(--prompt-color);
}

.snake-food {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color);
    animation: food-pulse 0.5s infinite alternate;
}

@keyframes food-pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.snake-info {
    color: var(--text-color);
    opacity: 0.5;
    margin-top: 4px;
    font-size: 0.9em;
}

.snake-final-score {
    color: var(--error-color);
    text-shadow: 0 0 5px var(--error-color);
}

/* Sudo Easter Egg */
.sudo-line {
    color: var(--text-color);
    opacity: 0.8;
}

.sudo-verify {
    color: var(--success-color);
    text-shadow: 0 0 5px var(--success-color);
}

.sudo-pitch {
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.sudo-headline {
    color: var(--prompt-color);
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 5px var(--prompt-color), 0 0 20px var(--prompt-color);
}

.sudo-arrow {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.sudo-project {
    color: var(--prompt-color);
    font-weight: bold;
    text-shadow: 0 0 3px var(--prompt-color);
}

.sudo-cta {
    color: var(--neon-blue);
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-blue), 0 0 15px var(--neon-blue);
}

/* rm -rf / Meltdown */
.rm-line {
    color: var(--error-color);
    text-shadow: 0 0 3px var(--error-color);
}

.rm-nuke {
    font-weight: bold;
    text-shadow: 0 0 5px var(--error-color), 0 0 15px var(--error-color), 0 0 30px var(--error-color);
}

.rm-glitch {
    color: #fff;
    font-size: 1.3em;
    text-align: center;
    padding-top: 30%;
    text-shadow: 2px 0 var(--error-color), -2px 0 var(--neon-blue);
    animation: glitch-jitter 0.1s infinite;
}

@keyframes glitch-jitter {
    0% { transform: translate(0, 0) skewX(0deg); }
    25% { transform: translate(-3px, 2px) skewX(3deg); }
    50% { transform: translate(3px, -1px) skewX(-2deg); }
    75% { transform: translate(-2px, -3px) skewX(1deg); }
    100% { transform: translate(2px, 3px) skewX(-3deg); }
}

.meltdown-shake {
    animation: shake 0.08s infinite !important;
}

@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-6px, 4px) rotate(-0.5deg); }
    50% { transform: translate(6px, -3px) rotate(0.5deg); }
    75% { transform: translate(-4px, -6px) rotate(-0.3deg); }
    100% { transform: translate(4px, 6px) rotate(0.3deg); }
}

.meltdown-black {
    background: #000 !important;
    box-shadow: none !important;
}

.meltdown-black .terminal-header,
.meltdown-black .terminal-body {
    opacity: 0;
}

.meltdown-black::before,
.meltdown-black::after {
    opacity: 0 !important;
}

.meltdown-recover .terminal-header,
.meltdown-recover .terminal-body {
    animation: recover-flicker 1.5s ease-out;
}

@keyframes recover-flicker {
    0% { opacity: 0; }
    5% { opacity: 0.6; }
    10% { opacity: 0; }
    20% { opacity: 0.4; }
    25% { opacity: 0; }
    35% { opacity: 0.8; }
    40% { opacity: 0.2; }
    50% { opacity: 0.9; }
    55% { opacity: 0.3; }
    65% { opacity: 1; }
    70% { opacity: 0.6; }
    80% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { opacity: 1; }
}

.rm-restored {
    color: var(--success-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--success-color), 0 0 20px var(--success-color);
}

/* Git Log */
.git-log {
    margin: 10px 0 16px 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.gl-line {
    margin: 0;
}

.gl-year {
    color: #e5a50a;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(229, 165, 10, 0.5);
}

.gl-head {
    color: var(--success-color);
    font-weight: bold;
    text-shadow: 0 0 5px var(--success-color);
}

.gl-snake {
    cursor: pointer;
    color: var(--neon-blue);
    text-shadow: 0 0 4px var(--neon-blue);
}

.gl-yc {
    color: #FF6600;
    font-weight: bold;
    text-shadow: 0 0 5px #FF6600, 0 0 15px #FF6600, 0 0 30px #FF6600;
}

.gl-inline-img {
    height: 3em;
    vertical-align: middle;
}

/* Boot Sequence */
.boot-header {
    color: var(--prompt-color);
    font-weight: bold;
}

.boot-text {
    color: var(--text-color);
    opacity: 0.7;
}

.boot-check {
    color: var(--text-color);
    opacity: 0.8;
}

.boot-ok {
    color: var(--success-color);
    font-weight: bold;
}

.boot-ascii {
    color: var(--prompt-color);
    margin: 16px 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--prompt-color), 0 0 20px var(--prompt-color), 0 0 40px var(--prompt-color);
}

.boot-tagline {
    color: var(--text-color);
    opacity: 0.6;
    text-align: center;
    margin-bottom: 16px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal {
        height: 90vh;
    }

    .terminal-header {
        padding: 8px;
    }

    .button {
        width: 10px;
        height: 10px;
    }

    .title {
        font-size: 12px;
    }

    .terminal-body {
        padding: 10px;
        font-size: 14px;
    }
}