/* 
 * Terminal-style stylesheet
 */

:root {
    --bg: #0a0a0a;
    --text: #33ff33;
    --text-dim: #1a991a;
    --text-bright: #66ff66;
    --comment: #666;
    --link: #33ff33;
    --link-hover: #66ff66;
}

/* Alternative: Amber terminal
:root {
    --bg: #0a0a0a;
    --text: #ffb000;
    --text-dim: #996600;
    --text-bright: #ffcc00;
    --comment: #666;
    --link: #ffb000;
    --link-hover: #ffcc00;
}
*/

* {
    box-sizing: border-box;
}

html {
    font-size: 20px;
}

body {
    font-family: "VT323", monospace;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 2rem 1rem;
}

/* Scanline effect - optional, comment out if too much */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
}

main {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    margin-bottom: 1.5rem;
}

.ascii-cube {
    color: var(--text);
    font-size: 0.65rem;
    line-height: 1;
    margin: 0 0 1rem 0;
    white-space: pre;
    letter-spacing: 0.1em;
    height: 14.5rem;
    overflow: hidden;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

h1::before {
    content: "$ whoami";
    display: block;
    color: var(--comment);
    margin-bottom: 0.25rem;
}

.tagline {
    margin: 0.5rem 0 0 0;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* Sections */
section {
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 0.875rem;
    font-weight: normal;
    margin: 0 0 0.5rem 0;
    color: var(--comment);
}

h2::before {
    content: "# ";
}

p {
    margin: 0 0 0.75rem 0;
}

/* Prompt style for paragraphs */
.prompt::before {
    content: "> ";
    color: var(--text-dim);
}

/* Lists */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

strong {
    color: var(--text-bright);
    font-weight: normal;
}

/* Links section */
.links li::before {
    content: "$";
}

/* Links */
a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

a::before {
    content: "[";
    color: var(--text-dim);
}

a::after {
    content: "]";
    color: var(--text-dim);
}

/* Footer */
footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--comment);
    color: var(--comment);
    font-size: 0.75rem;
}

footer p {
    margin: 0;
}

footer p::before {
    content: "// ";
}

/* Blinking cursor */
.cursor::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

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

/* CRT flicker effect */
body {
    animation: flicker 0.1s infinite;
}

@keyframes flicker {
    0% { opacity: 0.95; }
    5% { opacity: 0.85; }
    10% { opacity: 0.92; }
    15% { opacity: 0.88; }
    20% { opacity: 1; }
    25% { opacity: 0.82; }
    30% { opacity: 0.95; }
    35% { opacity: 0.9; }
    40% { opacity: 0.85; }
    45% { opacity: 0.97; }
    50% { opacity: 0.8; }
    55% { opacity: 0.95; }
    60% { opacity: 0.75; }
    65% { opacity: 0.92; }
    70% { opacity: 0.98; }
    75% { opacity: 0.84; }
    80% { opacity: 1; }
    85% { opacity: 0.87; }
    90% { opacity: 0.93; }
    95% { opacity: 0.78; }
    100% { opacity: 0.95; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

/* Selection */
::selection {
    background: var(--text);
    color: var(--bg);
}

/* Responsive */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding: 1rem;
    }

    .ascii-cube {
        font-size: 0.5rem;
        height: 10rem;
    }
}
