@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&display=swap');

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #0a0a0a;
    --green: #33ff33;
    --green-dim: #1a8c1a;
    --green-glow: rgba(51, 255, 51, 0.15);
    --white: #d4d4d4;
    --yellow: #cccc00;
    --cyan: #00cccc;
    --red: #cc3333;
    --comment: #555555;
    --bg-dark: #0d0d0d;
    --bg-mid: #111;
}

/* ─── Base / Desktop background ─────────────────────────────── */
html,
body {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-dark);
    overflow: hidden;
}

/* CRT phosphor background */
body {
    background:
        radial-gradient(ellipse at 40% 30%, #0a1a0a 0%, #050d05 50%, #020702 100%);
    position: relative;
}

/* Scanlines overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.18) 3px,
        rgba(0, 0, 0, 0.18) 4px
    );
}

/* Vignette edges */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* ─── Desktop area ───────────────────────────────────────────── */
.desktop {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    padding: 28px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    overflow: hidden;
}

/* ─── H1 Title ───────────────────────────────────────── */
.h1 {
    font-family: "Bitcount Prop Single", system-ui;
    font-weight: 400;
    font-style: normal;
    color: #e8ffe8;
    letter-spacing: 4px;
    font-size: 64px;
    margin: 0;
    text-shadow:
        0 0 8px rgba(51, 255, 51, 0.9),
        0 0 24px rgba(51, 255, 51, 0.5),
        0 0 60px rgba(51, 255, 51, 0.2);
    animation: phosphor-pulse 4s ease-in-out infinite;
    line-height: 1;
}

@keyframes phosphor-pulse {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(51, 255, 51, 0.9),
            0 0 24px rgba(51, 255, 51, 0.5),
            0 0 60px rgba(51, 255, 51, 0.2);
    }
    50% {
        text-shadow:
            0 0 6px rgba(51, 255, 51, 0.7),
            0 0 18px rgba(51, 255, 51, 0.35),
            0 0 45px rgba(51, 255, 51, 0.12);
    }
}

/* ─── Desktop icons area ─────────────────────────────────────── */
.desktop-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 25px;
    cursor: pointer;
    flex-wrap: wrap;
}

/* ─── Icon container ───────────────────────────────────────── */

.icon-container {
    width: 100px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
}

/* ─── Terminal icon ───────────────────────────────────────── */

.icon {
    height: auto;
    width: 50px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.icon:hover {
    transform: scale(1.08);
    background: rgba(51, 255, 51, 0.08);
    border-color: rgba(51, 255, 51, 0.25);
    box-shadow: 0 0 14px rgba(51, 255, 51, 0.15);
}

.icon > img {
    height: auto;
    width: 100%;
    display: block;
}

.icon-label {
    font-size: 15px;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.8);
    user-select: none;
    white-space: nowrap;
}

/* ─── Terminal icon ───────────────────────────────────────── */

.wordle-icon > img{
    border-radius: 8px;
}

/* ─── Gato & asciiart ───────────────────────────────────────── */
.gato {
    position: fixed;
    bottom: 16px;
    right: 20px;
    width: 110px;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.7));
    image-rendering: pixelated;
}

.ascii-art {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 8px;
    color: var(--white);
}

.aliencat {
    font-size: 9px !important;
}

/* ─── Terminal window ───────────────────────────────────────── */
.terminal-window {
    width: 100%;
    max-width: 780px;
    background: var(--black);
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow:
        0 0 0 1px #1a1a1a,
        0 0 30px rgba(51, 255, 51, 0.08),
        0 0 80px rgba(0, 0, 0, 0.9),
        0 20px 60px rgba(0, 0, 0, 0.8);
}

/* ─── Title bar ─────────────────────────────────────────────── */
.titlebar {
    background: #181818;
    border-bottom: 1px solid #2a2a2a;
    padding: 8px 12px;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titlebar-text {
    font-size: 15px;
    color: var(--comment);
    letter-spacing: 0.5px;
}

/* ─── Close button ─────────────────────────────────────────────── */
.close-button {
    width: 14px;
    height: 14px;
    background-color: #cc3333;
    color: rgba(0,0,0,0.7);
    font-size: 9px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.1s;
    flex-shrink: 0;
}

.close-button:hover {
    background-color: #ff4444;
}

/* ─── Terminal body ─────────────────────────────────────────── */
.terminal-body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    line-height: 1.5;
}

/* ─── Prompt line ───────────────────────────────────────────── */
.prompt-line {
    font-size: 15px;
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
}

.pu { color: var(--yellow); }
.ps { color: var(--white); }
.pp { color: var(--yellow); }
.pd {
    color: var(--yellow);
    margin-left: 1px;
    margin-right: 10px;
}
.cmd {
    color: var(--white);
    font-size: 15px;
}

/* ─── Output blocks ─────────────────────────────────────────── */
.shell-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.output {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.output-name {
    font-size: 15px;
    color: var(--green);
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* ─── Project entries ───────────────────────────────────────── */
.project-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--green-dim);
    padding-left: 12px;
}

.entry-label {
    font-size: 20px;
    color: var(--cyan);
    font-weight: bold;
}

.entry-meta,
.entry-links {
    font-size: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.meta-key {
    color: var(--comment);
    white-space: pre;
}

.meta-val {
    color: var(--white);
}

/* ─── Links ─────────────────────────────────────────────────── */
.lnk-demo,
.lnk-repo {
    text-decoration: none;
    font-size: 14px;
}

.lnk-demo { color: var(--yellow); }
.lnk-demo:hover { color: #ffff66; }
.lnk-repo { color: var(--green); }
.lnk-repo:hover { color: #66ff66; }

/* ─── Blinking cursor ───────────────────────────────────────── */
.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--white);
    vertical-align: bottom;
    animation: blink 1s infinite;
}

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

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
    .h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .gato {
        width: 80px;
        bottom: 10px;
        right: 10px;
    }

    .terminal-body {
        padding: 14px 14px 20px;
    }

    .prompt-line,
    .cmd,
    .output-name,
    .entry-label,
    .entry-meta,
    .entry-links,
    .meta-val,
    .lnk-demo,
    .lnk-repo {
        font-size: 15px;
    }
}
