@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
    --bg-color: #05080a;
    --text-color: #a8d6e3; /* Soft cyan text */
    --card-bg: rgba(10, 15, 20, 0.9);
    --accent-color: #33ff00; /* Retro terminal green */
    --accent-dim: #1a6600;
    --border-color: #2f4f4f; /* Dark slate grey */
    --header-color: #e0f0f5;
    --highlight-color: #ff9900; /* Industrial orange */
    --scanline-color: rgba(0, 0, 0, 0.3);
    --crt-flicker: rgba(51, 255, 0, 0.02);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 24px;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    text-shadow: 0 0 2px rgba(168, 214, 227, 0.5); /* Slight phosphor bloom */
}

/* Space Background Container */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(circle at 50% 50%, #0d1218 0%, #020304 100%),
        repeating-linear-gradient(0deg, transparent 0, transparent 1px, rgba(51, 255, 0, 0.03) 2px);
}

/* CRT Grain Overlay */
.space-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Parallax Stars */
.stars-small, .stars-medium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Generate random stars using box-shadow (efficient way to do many particles) */
.stars-small {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        10vw 10vh #fff, 20vw 80vh #fff, 40vw 30vh #fff, 60vw 90vh #fff, 
        80vw 20vh #fff, 90vw 60vh #fff, 15vw 45vh #fff, 35vw 15vh #fff,
        55vw 75vh #fff, 75vw 35vh #fff, 5vw 95vh #fff, 95vw 5vh #fff,
        25vw 55vh #fff, 45vw 25vh #fff, 65vw 85vh #fff, 85vw 55vh #fff,
        12vw 68vh #fff, 38vw 42vh #fff, 52vw 18vh #fff, 78vw 92vh #fff,
        10vw 20vh #fff, 30vw 40vh #fff, 50vw 60vh #fff, 70vw 80vh #fff,
        90vw 10vh #fff, 20vw 90vh #fff, 40vw 10vh #fff, 60vw 30vh #fff;
    animation: starScrollSmall 100s linear infinite;
    opacity: 0.6;
}

.stars-medium {
    width: 4px;
    height: 4px;
    background: transparent;
    box-shadow: 
        15vw 15vh rgba(255,255,255,0.8), 65vw 25vh rgba(255,255,255,0.8),
        35vw 75vh rgba(255,255,255,0.8), 85vw 85vh rgba(255,255,255,0.8),
        45vw 45vh rgba(255,255,255,0.8), 95vw 15vh rgba(255,255,255,0.8),
        5vw 65vh rgba(255,255,255,0.8), 55vw 5vh rgba(255,255,255,0.8);
    animation: starScrollMedium 60s linear infinite;
    opacity: 0.8;
}

@keyframes starScrollSmall {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

@keyframes starScrollMedium {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

/* Pixel Art Comets */
.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    /* Pixel tail pointing top-right (opposite to movement) */
    box-shadow: 
        2px -2px 0 0 rgba(255, 255, 255, 0.8),
        4px -4px 0 0 rgba(255, 255, 255, 0.6),
        6px -6px 0 0 rgba(255, 255, 255, 0.4),
        8px -8px 0 0 rgba(255, 255, 255, 0.2);
    z-index: -1;
    opacity: 0;
}

.comet-1 {
    top: -10%;
    right: 10%;
    animation: cometMove 12s linear infinite;
    animation-delay: 2s;
}

.comet-2 {
    top: -10%;
    right: 40%;
    animation: cometMove 18s linear infinite;
    animation-delay: 8s;
}

.comet-3 {
    top: 20%;
    right: -5%;
    animation: cometMove 25s linear infinite;
    animation-delay: 15s;
}

@keyframes cometMove {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% {
        opacity: 1;
    }
    20% {
        opacity: 0;
        transform: translate(-120vh, 120vh);
    }
    100% {
        opacity: 0;
        transform: translate(-120vh, 120vh);
    }
}

/* 3D Pixel Art Black Hole - Bigger & More Complex */
.black-hole-container {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    z-index: -1;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: scale(1.2);
    animation: floatSpace 12s ease-in-out infinite alternate;
}

.event-horizon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background-color: #000;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 
        0 0 0 4px #000,
        0 0 20px 10px rgba(255, 152, 0, 0.6),
        0 0 60px 20px rgba(255, 87, 34, 0.4);
    animation: pulseHorizon 4s ease-in-out infinite alternate;
}

.black-hole-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    z-index: 5;
    transform-style: preserve-3d;
}

.black-hole-disk.outer {
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%) rotateX(75deg);
    background: 
        repeating-radial-gradient(
            transparent 0, 
            transparent 60px, 
            rgba(255, 87, 34, 0.8) 60px, 
            rgba(255, 87, 34, 0.8) 70px,
            rgba(198, 40, 40, 0.6) 70px,
            rgba(198, 40, 40, 0.6) 80px,
            transparent 80px,
            transparent 100%
        );
    box-shadow: 
        0 0 30px rgba(255, 87, 34, 0.4);
    animation: spinDisk 15s linear infinite;
}

.black-hole-disk.inner {
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%) rotateX(75deg);
    background: 
        repeating-radial-gradient(
            transparent 0, 
            transparent 50px, 
            rgba(255, 235, 59, 0.9) 50px, 
            rgba(255, 235, 59, 0.9) 60px,
            rgba(255, 152, 0, 0.8) 60px,
            rgba(255, 152, 0, 0.8) 70px,
            transparent 70px,
            transparent 100%
        );
    box-shadow: 
        0 0 20px rgba(255, 235, 59, 0.6);
    animation: spinDisk 8s linear infinite reverse;
}

/* Pixel texture for disks */
.black-hole-disk::after {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(0,0,0,0.3) 50%),
        linear-gradient(transparent 50%, rgba(0,0,0,0.3) 50%);
    background-size: 4px 4px;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes spinDisk {
    0% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

@keyframes pulseHorizon {
    0% { box-shadow: 0 0 0 4px #000, 0 0 20px 10px rgba(255, 152, 0, 0.6), 0 0 60px 20px rgba(255, 87, 34, 0.4); }
    100% { box-shadow: 0 0 0 4px #000, 0 0 30px 15px rgba(255, 152, 0, 0.8), 0 0 80px 30px rgba(255, 87, 34, 0.6); }
}

@keyframes floatSpace {
    0% { transform: scale(1.2) translateY(0); }
    100% { transform: scale(1.2) translateY(-30px); }
}

@keyframes planetFloat {
    0% { transform: scale(3) translateY(0); }
    100% { transform: scale(3) translateY(-20px); }
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    animation: flicker 0.15s infinite;
}

.scanlines::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.95; }
    20% { opacity: 0.99; }
    25% { opacity: 0.95; }
    30% { opacity: 0.9; }
    35% { opacity: 0.96; }
    40% { opacity: 0.98; }
    45% { opacity: 0.95; }
    50% { opacity: 0.99; }
    55% { opacity: 0.93; }
    60% { opacity: 0.9; }
    65% { opacity: 0.96; }
    70% { opacity: 1; }
    75% { opacity: 0.97; }
    80% { opacity: 0.95; }
    85% { opacity: 0.9; }
    90% { opacity: 0.96; }
    95% { opacity: 0.99; }
    100% { opacity: 0.94; }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Header Section */
header {
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: left;
    border-bottom: 4px solid var(--border-color);
    padding-bottom: 20px;
    position: relative;
}

h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: var(--header-color);
    margin: 0 0 15px 0;
    text-shadow: 4px 4px 0px #000;
    display: inline-block;
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 5px;
    box-shadow: 0 0 10px var(--accent-color);
}

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

.subtitle {
    font-size: 26px;
    color: var(--accent-color);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 15px;
    border: 2px solid transparent;
    padding: 5px 10px;
    transition: all 0.2s;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

nav a:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 4px 4px 0 #000;
    border: 2px solid #fff;
    transform: translate(-2px, -2px);
}

.btn-filled {
    background-color: var(--accent-dim);
    color: #fff !important;
    border: 2px solid var(--accent-color);
    animation: pulseBtn 2s infinite;
}

.btn-filled:hover {
    background-color: var(--highlight-color) !important;
    border-color: #fff !important;
    animation: none;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(100, 216, 203, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(100, 216, 203, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 216, 203, 0); }
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.chat-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.chat-window {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 70vh;
    background-color: #0c0c0c;
    border: 4px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    transform: scale(1);
    transition: transform 0.3s;
    overflow: hidden;
}

.chat-modal.hidden .chat-window {
    transform: scale(0.9);
}

/* Robot Sidebar */
.robot-sidebar {
    width: 250px;
    background-color: #111;
    border-right: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.robot-status {
    margin-top: 90px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(51, 255, 0, 0.05);
    border: 1px solid var(--accent-dim);
    box-shadow: 0 0 10px rgba(51, 255, 0, 0.1);
    text-shadow: 0 0 5px var(--accent-color);
}

.status-light {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-color);
    animation: blink 2s infinite;
}

/* Pixel Art Robot CSS */
.pixel-robot {
    position: relative;
    transform: scale(4);
    image-rendering: pixelated;
    top: -20px;
}

.robot-head {
    width: 20px;
    height: 16px;
    background-color: #a8d6e3;
    border: 1px solid #000;
    position: relative;
    z-index: 2;
    box-shadow: inset -2px -2px 0 rgba(0,0,0,0.2);
}

.robot-antenna {
    width: 2px;
    height: 6px;
    background-color: #555;
    position: absolute;
    top: -6px;
    left: 9px;
}

.robot-antenna::before {
    content: "";
    width: 4px;
    height: 4px;
    background-color: var(--highlight-color);
    position: absolute;
    top: -4px;
    left: -1px;
    animation: blink 1s infinite;
}

.robot-face {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}

.robot-eye {
    width: 4px;
    height: 4px;
    background-color: #000;
    margin: 0 2px;
    position: relative;
}

.robot-eye::after {
    content: "";
    width: 1px;
    height: 1px;
    background-color: #fff;
    position: absolute;
    top: 1px;
    left: 1px;
}

.robot-mouth {
    width: 10px;
    height: 2px;
    background-color: #000;
    margin-top: 2px;
}

.robot-neck {
    width: 8px;
    height: 2px;
    background-color: #555;
    margin: 0 auto;
}

.robot-torso {
    width: 16px;
    height: 14px;
    background-color: #a8d6e3;
    border: 1px solid #000;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-screen {
    width: 10px;
    height: 6px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heartbeat {
    width: 8px;
    height: 2px;
    background-color: var(--accent-color);
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { width: 2px; opacity: 0.5; }
    50% { width: 8px; opacity: 1; }
}

.robot-arm {
    width: 4px;
    height: 12px;
    background-color: #888;
    position: absolute;
    top: 20px;
    border: 1px solid #000;
}

.robot-arm.left {
    left: -6px;
    transform-origin: top center;
    animation: waveLeft 3s infinite ease-in-out;
}

.robot-arm.right {
    right: -6px;
    transform-origin: top center;
    animation: waveRight 4s infinite ease-in-out;
}

@keyframes waveLeft {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
}

@keyframes waveRight {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Chat Main Area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #05080a;
}

.chat-header {
    background-color: var(--border-color);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
}

.close-btn {
    background: #ff5f56;
    border: 2px solid #000;
    color: #000;
    font-family: 'Press Start 2P', cursive;
    cursor: pointer;
    font-size: 10px;
    padding: 4px 8px;
}

.close-btn:hover {
    background: #ffbd2e;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'VT323', monospace;
    font-size: 20px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    position: relative;
    line-height: 1.4;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ai-message {
    align-self: flex-start;
    background-color: var(--border-color);
    color: #fff;
    border-left: 4px solid var(--accent-color);
}

.user-message {
    align-self: flex-end;
    background-color: var(--accent-dim);
    color: #fff;
    border-right: 4px solid var(--highlight-color);
    text-align: right;
}

.chat-input-container {
    padding: 15px;
    background-color: #0c0c0c;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background-color: #000;
    border: 2px solid var(--border-color);
    color: #fff;
    padding: 10px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    outline: none;
}

#chat-input:focus {
    border-color: var(--accent-color);
}

.send-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    font-family: 'Press Start 2P', cursive;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

.send-btn:hover {
    background-color: #fff;
}

/* Mobile Responsive */
@media (max-width: 700px) {
    .chat-window {
        flex-direction: column;
        height: 90vh;
        width: 95%;
    }
    
    .robot-sidebar {
        width: 100%;
        height: 100px;
        flex-direction: row;
        border-right: none;
        border-bottom: 4px solid var(--border-color);
        justify-content: space-around;
    }
    
    .robot-status {
        margin-top: 0;
    }
    
    .pixel-robot {
        transform: scale(3);
    }
}

/* Headings */
.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--highlight-color);
    margin-top: 60px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    
    /* Scroll Reveal */
    animation: revealTitle linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}

/* Terminal Loader */
.terminal-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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



.scan-text {
    color: var(--highlight-color);
    font-family: 'VT323', monospace;
}


@keyframes revealTitle {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title::before {
    content: "►";
    margin-right: 15px;
    color: var(--accent-color);
    animation: bounceRight 1s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Retro Card Style - Hardware Panel */
.card {
    background-color: var(--card-bg);
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    box-shadow: none;
    backdrop-filter: blur(2px);
    
    /* Chamfered corners via clip-path */
    clip-path: polygon(
        10px 0, 100% 0, 
        100% calc(100% - 10px), calc(100% - 10px) 100%, 
        0 100%, 0 10px
    );
    
    /* Scroll Reveal Animation REMOVED due to visibility issues */
    opacity: 1;
}

/* Panel decorative details */
.card::before {
    content: "PANEL_ID: " attr(data-panel-id) " // SYS.OK";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: var(--border-color);
    letter-spacing: 1px;
    font-family: 'VT323', monospace;
    opacity: 0.7;
}

.card::after {
    /* Corner brackets */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border: 1px solid transparent;
    
    background: 
        linear-gradient(to right, var(--accent-dim) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--accent-dim) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--accent-dim) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--accent-dim) 2px, transparent 2px) 100% 100%;
    
    background-size: 10px 10px;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.card:hover {
    border-color: var(--accent-color);
    transition: border-color 0.3s;
}

.card:hover::after {
    opacity: 1;
    background-image: 
        linear-gradient(to right, var(--accent-color) 2px, transparent 2px),
        linear-gradient(to bottom, var(--accent-color) 2px, transparent 2px),
        linear-gradient(to left, var(--accent-color) 2px, transparent 2px),
        linear-gradient(to top, var(--accent-color) 2px, transparent 2px);
}

.card p {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Skills Grid */
#skills .card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-item {
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 10px;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item .label {
    color: var(--highlight-color);
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 #000;
}

/* Experience Section */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 4px solid var(--border-color);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.card-header h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.date {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: bold;
    background: #000;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
}

ul.pixel-list {
    margin: 15px 0;
    padding-left: 25px;
    list-style: none;
}

ul.pixel-list li {
    margin-bottom: 8px;
    position: relative;
}

ul.pixel-list li::before {
    content: ">>";
    color: var(--highlight-color);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    position: absolute;
    left: -25px;
    top: 14px;
}

/* Footer */
footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 4px solid var(--border-color);
    text-align: center;
    font-size: 20px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border: 4px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .card-header {
        flex-direction: column;
    }
    
    .date {
        margin-top: 10px;
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
    }
    
    .black-hole-container {
        right: -50px;
        top: 5%;
        animation: floatSpaceMobile 10s ease-in-out infinite alternate;
    }
}

@keyframes floatSpaceMobile {
    0% { transform: scale(0.5) translateY(0); }
    100% { transform: scale(0.5) translateY(-20px); }
}



/* Markdown Content Styling */
.message-content p {
    margin: 0 0 10px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content code {
    font-family: 'VT323', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 2px;
    color: var(--accent-color);
}

.message-content pre {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 10px 0;
}

.message-content pre code {
    background-color: transparent;
    padding: 0;
    color: #e0f0f5;
}

.message-content ul, .message-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 5px;
}

.message-content a {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--highlight-color);
}

.message-content a:hover {
    color: #fff;
    background-color: var(--highlight-color);
}
