:root {
    --bg-color: #050505;
    --text-color: #33ff00;
    --text-dim: #1a8000;
    --highlight: #bfff00;
    --link-color: #00ffff;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
}

#crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    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));
    background-size: 100% 4px, 6px 100%;
    z-index: 100;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

#crt-reflections {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 90;
    pointer-events: none;
    /* Soft, rounded blurred gradients simulating screen glare/reflection */
    background: 
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 10%, rgba(255, 255, 255, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

#scanline {
    width: 100%;
    height: 100px;
    z-index: 95;
    position: fixed;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(51,255,0,0.1) 10%, rgba(0,0,0,0) 100%);
    opacity: 0.3;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { top: -100px; }
    100% { top: 110%; }
}

@keyframes flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

#terminal {
    height: 100%;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    text-shadow: 0 0 5px var(--text-color);
}

#output {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.output-line {
    margin-bottom: 12px;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.cmd-echo {
    color: var(--text-dim);
    margin-top: 20px;
}

.system-msg {
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.2rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-color);
    text-shadow: 0 0 5px var(--link-color);
    transition: background-color 0.2s, color 0.2s;
}

a:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
}

img {
    max-width: 100%;
    border: 1px solid var(--text-color);
    filter: sepia(1) hue-rotate(90deg) saturate(3) brightness(0.8) contrast(1.2);
    margin: 15px 0;
    display: block;
}

pre {
    background: rgba(0, 255, 0, 0.05) !important;
    border: 1px dashed var(--text-dim) !important;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
}

code {
    color: var(--highlight) !important;
}

#input-line {
    display: flex;
    margin-top: 15px;
    padding-bottom: 30px;
}

#prompt {
    margin-right: 15px;
    font-weight: bold;
}

#cmd {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    text-shadow: 0 0 5px var(--text-color);
    caret-color: var(--text-color);
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #000; border-left: 1px solid var(--text-dim); }
::-webkit-scrollbar-thumb { background: var(--text-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--text-color); }

.blog-content {
    background: rgba(0, 255, 0, 0.05);
    border: 1px dashed var(--text-dim);
    padding: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    max-width: 100%;
}

.blog-content h1, .blog-content h2, .blog-content h3 {
    color: var(--highlight);
    border-bottom: 1px solid var(--text-dim);
    padding-bottom: 5px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery img {
    margin: 0;
}

@media screen and (max-width: 768px) {
    body, html {
        font-size: 13.5px; /* Reduced by 25% */
    }
    #terminal {
        padding: 15px;
    }
    #input-line {
        padding-bottom: 15px;
    }
    .blog-content {
        padding: 15px;
    }
}
.crt-signal-loss {
    animation: crt-signal-loss-anim 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes crt-signal-loss-anim {
    0% { transform: skewX(0deg) scale(1); filter: blur(0px) hue-rotate(0deg) contrast(1); }
    10% { transform: skewX(20deg) scale(1.02); filter: blur(2px) hue-rotate(90deg) contrast(1.5); opacity: 0.8; }
    20% { transform: skewX(-20deg) scale(0.98) translateY(10px); filter: blur(4px) hue-rotate(-90deg) contrast(2); opacity: 0.6; }
    30% { transform: skewX(10deg) scale(1.05) translateY(-5px); filter: blur(1px) hue-rotate(45deg) contrast(1.2); opacity: 0.9; }
    40% { transform: skewX(-5deg) scale(0.95); filter: blur(3px) hue-rotate(-45deg) contrast(1.8); opacity: 0.7; }
    50% { transform: skewX(0deg) scale(1) translateY(0); filter: blur(0px) hue-rotate(0deg) contrast(1); opacity: 1; }
    60% { transform: translateY(5px); }
    70% { transform: translateY(-5px); }
    80% { transform: translateY(2px); }
    90% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

