/* ============================================
   CRIMSON PROTOCOL — Design System
   Kevin Mbugua | IT Technician
   ============================================ */

/* ── DARK THEME (default) ────────────────── */
:root {
    --bg:           #0a0a0a;
    --bg-surface:   #0e0e0e;
    --bg-card:      rgba(10, 10, 10, 0.60);
    --bg-titlebar:  rgba(14, 14, 14, 0.74);
    --bg-nav:       rgba(7, 7, 7, 0.97);

    --red:          #ff1f3a;
    --red-dim:      rgba(255, 31, 58, 0.08);
    --red-soft:     rgba(255, 31, 58, 0.14);
    --red-glow:     rgba(255, 31, 58, 0.28);
    --red-border:   rgba(255, 31, 58, 0.22);
    --red-faint:    rgba(255, 31, 58, 0.06);
    --red-tint:     rgba(255, 31, 58, 0.07);
    --red-line:     rgba(255, 31, 58, 0.15);

    --amber:        #ff8c42;
    --amber-dim:    rgba(255, 140, 66, 0.1);
    --amber-border: rgba(255, 140, 66, 0.2);
    --cyan:         #00d4ff;

    --text:         #c4c4c4;
    --text-bright:  #efefef;
    --text-sub:     #909090;
    --text-2:       #5a5a5a;
    --text-3:       #303030;
    --text-cmd:     #e0e0e0;

    --border:         rgba(255, 31, 58, 0.1);
    --border-hover:   rgba(255, 31, 58, 0.35);
    --shadow-card:    0 0 0 1px var(--red-faint), 0 4px 28px rgba(0, 0, 0, 0.85);
    --shadow-glow:    0 0 0 1px var(--red-border), 0 0 24px var(--red-dim), 0 8px 40px rgba(0, 0, 0, 0.9);

    --badge-complete-bg:     rgba(255, 255, 255, 0.02);
    --badge-complete-border: rgba(255, 255, 255, 0.05);

    --font-display: 'VT323', monospace;
    --font-body:    'JetBrains Mono', monospace;
    --font-label:   'Share Tech Mono', monospace;

    scrollbar-color: #2a1010 #0a0a0a;
    scrollbar-width: thin;
}

/* ── LIGHT THEME ─────────────────────────── */
[data-theme="light"] {
    --bg:           #faf7f2;
    --bg-surface:   #f2ece3;
    --bg-card:      rgba(235, 228, 217, 0.74);
    --bg-titlebar:  rgba(224, 216, 203, 0.80);
    --bg-nav:       rgba(250, 247, 242, 0.97);

    --red:          #c9162a;
    --red-dim:      rgba(201, 22, 42, 0.08);
    --red-soft:     rgba(201, 22, 42, 0.1);
    --red-glow:     rgba(201, 22, 42, 0.18);
    --red-border:   rgba(201, 22, 42, 0.2);
    --red-faint:    rgba(201, 22, 42, 0.07);
    --red-tint:     rgba(201, 22, 42, 0.06);
    --red-line:     rgba(201, 22, 42, 0.18);

    --amber:        #b85c1a;
    --amber-dim:    rgba(184, 92, 26, 0.1);
    --amber-border: rgba(184, 92, 26, 0.2);
    --cyan:         #007a99;

    --text:         #2a2520;
    --text-bright:  #100e0c;
    --text-sub:     #5a5248;
    --text-2:       #7a6e65;
    --text-3:       #b0a090;
    --text-cmd:     #1a1510;

    --border:         rgba(201, 22, 42, 0.12);
    --border-hover:   rgba(201, 22, 42, 0.3);
    --shadow-card:    0 0 0 1px var(--red-faint), 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow:    0 0 0 1px var(--red-border), 0 0 14px var(--red-dim), 0 8px 28px rgba(0, 0, 0, 0.13);

    --badge-complete-bg:     rgba(0, 0, 0, 0.03);
    --badge-complete-border: rgba(0, 0, 0, 0.08);

    scrollbar-color: #c0a898 #f2ece3;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
    transition: background 0.35s ease;
}

body {
    font-family: var(--font-body);
    background: transparent;
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: color 0.25s ease;
}

/* CRT scanlines — dark mode only */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.045) 3px,
        rgba(0, 0, 0, 0.045) 4px
    );
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.35s ease;
}

/* Phosphor noise grain — dark mode only */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.022;
    pointer-events: none;
    z-index: 9998;
    transition: opacity 0.35s ease;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--text-bright); }

img { max-width: 100%; display: block; }

/* ── TYPOGRAPHY ──────────────────────────── */
h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.2;
}

h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.03em;
}

h2 {
    font-family: var(--font-label);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

h3 {
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
}

/* ── NAVIGATION ──────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: var(--font-label);
    font-size: 0.84rem;
    color: var(--red);
    letter-spacing: 0.04em;
    transition: color 0.2s, text-shadow 0.2s;
    white-space: nowrap;
    text-shadow: 0 0 12px var(--red-glow);
    flex: 1;
}
.nav-logo::before { content: '['; color: var(--text-3); }
.nav-logo::after  { content: ']'; color: var(--text-3); }
.nav-logo:hover   { color: var(--text-bright); text-shadow: none; }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.nav-links::after {
    content: '|';
    font-family: var(--font-label);
    font-size: 0.76rem;
    color: var(--text-2);
    padding: 0.45rem 0.4rem;
    letter-spacing: 0.06em;
}

.nav-links a {
    font-family: var(--font-label);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--text-3);
    padding: 0.45rem 0.75rem;
    position: relative;
    transition: color 0.2s;
    display: block;
    text-transform: uppercase;
}

.nav-links a::before {
    content: '|';
    font-size: 0.76rem;
    color: var(--text-2);
    margin-right: 0.45rem;
}

.nav-links a:hover { color: var(--text-2); }

.nav-links a.active {
    color: var(--red);
    text-shadow: 0 0 8px var(--red-glow);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-social {
    color: var(--text-3);
    display: flex;
    align-items: center;
    padding: 0.4rem;
    transition: color 0.2s;
}
.nav-social:hover { color: var(--red); }

/* ── THEME TOGGLE ────────────────────────── */
.theme-toggle {
    font-family: var(--font-label);
    font-size: 0.66rem;
    color: var(--text-2);
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    padding: 0.26rem 0.52rem;
    letter-spacing: 0.08em;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
    line-height: 1;
    white-space: nowrap;
}

.theme-toggle:hover {
    color: var(--red);
    border-color: var(--red-border);
    box-shadow: 0 0 10px var(--red-dim);
}

.theme-toggle .icon-dark  { display: inline; }
.theme-toggle .icon-light { display: none; }

[data-theme="light"] .theme-toggle .icon-dark  { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: inline; }

/* ── HAMBURGER ───────────────────────────── */
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 1rem;
    font-family: var(--font-label);
    cursor: pointer;
    padding: 0.3rem 0.55rem;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
}
.hamburger:hover {
    border-color: var(--red-border);
    color: var(--red);
}

@media (max-width: 768px) {
    .nav-inner {
        justify-content: space-between;
    }

    /* Hamburger: far left */
    .hamburger {
        display: block;
        order: 1;
    }

    /* Logo: pinned to center of the bar */
    .nav-logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Theme + GitHub: far right */
    .nav-right {
        order: 3;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0 1rem;
    }

    .nav-links::after { display: none; }

    .nav-links.open { display: flex; }

    .nav-links a {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
}

/* ── LAYOUT ──────────────────────────────── */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}

.section { margin-bottom: 4rem; }

/* ── TERMINAL WINDOW CHROME ──────────────── */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--red-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.terminal-titlebar {
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    min-height: 34px;
    transition: background 0.35s ease;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-close { background: #ff5f57; }
.dot-min   { background: #ffbd2e; }
.dot-max   { background: #28c840; }

.terminal-title {
    font-family: var(--font-label);
    font-size: 0.7rem;
    color: var(--text-2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.terminal-body {
    padding: 1.5rem 2rem 2rem;
}

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

/* ── SECTION TITLES ──────────────────────── */
.section-title {
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-cmd);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.section-title::before {
    content: '$';
    color: var(--red);
    font-family: var(--font-label);
    font-size: 0.85rem;
    text-shadow: 0 0 8px var(--red-glow);
    flex-shrink: 0;
}

/* Horizontal rule after text */
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 0.25rem;
}

/* Terminal cursor on section command text */
.section-cmd {
    display: inline-flex;
    align-items: center;
}

.section-cmd::after,
.page-header .subtitle::after {
    content: '▌';
    color: var(--red);
    margin-left: 3px;
    animation: blink 1.1s step-end infinite;
    font-size: 0.88em;
    opacity: 0.85;
}

/* ── PAGE HEADER ────────────────────────── */
.page-header {
    padding: 3rem 0 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6rem);
    color: var(--red);
    text-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(255, 31, 58, 0.07);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.page-header h1::before {
    content: '$ ';
    font-size: 0.45em;
    color: var(--text-3);
    vertical-align: middle;
    letter-spacing: 0;
}

.page-header .subtitle {
    font-family: var(--font-label);
    font-size: 0.67rem;
    letter-spacing: 0.2em;
    color: var(--text);
}

/* ── HERO ────────────────────────────────── */
.hero {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.hero .terminal-window {
    position: relative;
}

/* Split hero layout: text left, portrait right */
.hero .terminal-body {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.hero-body-pad {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem 2rem;
}

/* ── HERO PORTRAIT ───────────────────────── */
.hero-portrait {
    flex-shrink: 0;
    width: 320px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease 0.15s;
}

.hero-portrait.visible { opacity: 1; }

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.88);
    mix-blend-mode: screen;
}

/* Left-edge vignette — softens the transition further */
.hero-portrait-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,  rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.35) 28%, transparent 60%),
        linear-gradient(to bottom, transparent 62%, rgba(10,10,10,0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

/* CRT scanlines over portrait */
.hero-portrait-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.07) 2px,
        rgba(0, 0, 0, 0.07) 3px
    );
    pointer-events: none;
    z-index: 2;
}

/* [sys.id] corner label — mirrors homelab [sys.visual] */
.hero-portrait::before {
    content: '[sys.id]';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--font-label);
    font-size: 0.47rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.28);
    z-index: 4;
    pointer-events: none;
}

/* Rain canvas injected by JS */
.hero-portrait-rain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* Light theme */
[data-theme="light"] .hero-portrait-img {
    mix-blend-mode: normal;
    filter: brightness(0.82);
}

[data-theme="light"] .hero-portrait-vignette {
    background:
        linear-gradient(to right,  rgba(235,228,217,0.92) 0%, rgba(235,228,217,0.50) 28%, transparent 60%),
        linear-gradient(to bottom, transparent 62%, rgba(235,228,217,0.52) 100%);
}

[data-theme="light"] .hero-portrait::before {
    color: rgba(0, 0, 0, 0.28);
}

/* Mobile: portrait becomes a header strip above the text */
@media (max-width: 768px) {
    .hero .terminal-body {
        flex-direction: column-reverse;
    }

    .hero-portrait {
        width: 100%;
        height: 190px;
        flex-shrink: 0;
    }

    .hero-portrait-img {
        object-position: center 18%;
    }

    .hero-portrait-vignette {
        background:
            linear-gradient(to bottom, transparent 38%, rgba(10,10,10,0.96) 100%),
            linear-gradient(to right,  rgba(10,10,10,0.25) 0%, transparent 30%, rgba(10,10,10,0.25) 100%);
    }

    [data-theme="light"] .hero-portrait-vignette {
        background:
            linear-gradient(to bottom, transparent 38%, rgba(235,228,217,0.96) 100%),
            linear-gradient(to right,  rgba(235,228,217,0.25) 0%, transparent 30%, rgba(235,228,217,0.25) 100%);
    }

    .hero-portrait::before {
        top: auto;
        bottom: 0.75rem;
    }
}

/* Ambient crimson glow above hero window */
.hero .terminal-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 31, 58, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    padding: 1.25rem 0 1rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-content.visible { opacity: 1; }

.hero-label {
    font-family: var(--font-label);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--text-2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-label::before { content: '#'; color: var(--text-3); }


@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--red-glow); }
    50%      { opacity: 0.35; box-shadow: none; }
}

/* Hero name with glitch-on-hover */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 14vw, 10rem);
    line-height: 0.85;
    letter-spacing: 0.02em;
    color: var(--red);
    text-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(255, 31, 58, 0.08);
    margin-bottom: 1.25rem;
    cursor: default;
    display: inline-block;
}

.hero-name:hover {
    animation: glitch 0.5s steps(1) 1;
}

@keyframes glitch {
    0%   { text-shadow: 0 0 40px var(--red-glow); transform: none; clip-path: none; }
    12%  { text-shadow: -3px 0 #00ffff, 3px 0 #ff00cc, 0 0 40px var(--red-glow); transform: translateX(2px); }
    24%  { text-shadow: 3px 0 #00ffff, -3px 0 #ff00cc, 0 0 60px var(--red-glow); transform: translateX(-3px) skewX(-1deg); }
    37%  { text-shadow: -2px 0 #ff00cc, 2px 0 #00ffff, 0 0 40px var(--red-glow); transform: translateX(1px); }
    50%  { text-shadow: 0 0 40px var(--red-glow); transform: none; }
    62%  { text-shadow: -1px 0 #00ffff, 1px 0 #ff1f3a; transform: translateX(-1px); }
    75%  { text-shadow: 0 0 40px var(--red-glow); transform: none; }
    87%  { text-shadow: 2px 0 #ff00cc, 0 0 40px var(--red-glow); transform: translateX(1px); }
    100% { text-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(255, 31, 58, 0.08); transform: none; }
}

.hero-title {
    font-family: var(--font-label);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--text-2);
    margin-bottom: 1.1rem;
}


.hero-title span {
    color: var(--red);
    margin: 0 0.3em;
}

.hero-summary {
    color: var(--text);
    font-size: 0.86rem;
    max-width: 560px;
    line-height: 1.9;
}

.hero-summary + .hero-summary {
    margin-top: 1rem;
}

/* ── HERO QUOTE ──────────────────────────── */
.hero-quote {
    margin-top: 2rem;
    max-width: 560px;
    border: 1px solid var(--red-line);
    border-radius: 3px;
    padding: 0.9rem 1.2rem 0.85rem;
    background: var(--red-faint);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}

/* CRT scanlines revealed on hover */
.hero-quote::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 31, 58, 0.018) 3px,
        rgba(255, 31, 58, 0.018) 4px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-quote:hover {
    border-color: var(--red-border);
    background: var(--red-dim);
}

.hero-quote:hover::after { opacity: 1; }

/* Dim terminal command line above the output */
.hero-quote-cmd {
    font-family: var(--font-label);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    opacity: 0.42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-quote-prompt {
    color: var(--red);
    margin-right: 0.1em;
}

.hero-quote-command { color: var(--text-2); }

.hero-quote-str { color: var(--amber); }

/* The echoed output — the actual quote */
.hero-quote-output {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

/* Signed attribution */
.hero-quote-attr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3em;
    font-family: var(--font-label);
    font-size: 0.59rem;
    letter-spacing: 0.14em;
    color: var(--text-sub);
    font-style: normal;
    text-transform: uppercase;
}

.hero-quote-dash { color: var(--red); opacity: 0.7; }

.hero-quote-emoji {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(255, 140, 66, 0.3));
    transition: filter 0.22s, transform 0.22s;
}

.hero-quote:hover .hero-quote-emoji {
    filter: drop-shadow(0 0 8px rgba(255, 140, 66, 0.65));
    transform: rotate(-10deg) scale(1.2);
}

[data-theme="light"] .hero-quote::after {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(201, 22, 42, 0.025) 3px,
        rgba(201, 22, 42, 0.025) 4px
    );
}

/* ── NAV RESUME BUTTON ───────────────────── */
.nav-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-family: var(--font-label);
    font-size: 0.63rem;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 2px;
    padding: 0.28rem 0.58rem;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-resume:hover {
    color: var(--red);
    background: transparent;
    box-shadow: 0 0 14px var(--red-dim);
}
[data-theme="light"] .nav-resume:hover {
    box-shadow: 0 0 8px rgba(201,22,42,0.22);
}

/* On mobile, move to dropdown — hide from nav-right */
.nav-resume-mobile-li { display: none; }

@media (max-width: 768px) {
    .nav-resume { display: none; }
    .nav-resume-mobile-li { display: block; }
    .nav-resume-mobile-li a         { color: var(--red) !important; }
    .nav-resume-mobile-li a::before { content: '↓' !important; color: var(--red) !important; }
}

/* ── BLURB ───────────────────────────────── */
.blurb {
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.9;
    max-width: 560px;
}

/* ── SKILLS / TAGS ───────────────────────── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-label);
    font-size: 0.68rem;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid var(--red-border);
    padding: 0.22rem 0.55rem;
    border-radius: 2px;
    letter-spacing: 0.04em;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.tag::before { content: '['; color: var(--text-3); margin-right: 0.1em; }
.tag::after  { content: ']'; color: var(--text-3); margin-left: 0.1em; }

.tag:hover {
    background: var(--red-soft);
    box-shadow: 0 0 10px var(--red-dim);
    color: var(--text-bright);
}

[data-theme="light"] .tag:hover {
    box-shadow: 0 0 8px var(--red-dim);
    color: var(--red);
}

/* ── EXPERIENCE TIMELINE ─────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline.timeline-compact {
    gap: 0.75rem;
}

.timeline-item {
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    border-left: 2px solid var(--red-line);
    border-radius: 0 4px 4px 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item:hover {
    background: var(--red-tint);
    border-left-color: var(--red);
    box-shadow: inset 0 0 24px rgba(255, 31, 58, 0.04);
}

[data-theme="light"] .timeline-item:hover {
    box-shadow: none;
}

.timeline-item::before {
    content: '●';
    position: absolute;
    left: -0.58rem;
    top: 0.05rem;
    color: var(--text-3);
    font-size: 0.9rem;
    background: var(--bg);
    padding: 0 2px;
    line-height: 1.5;
    transition: color 0.2s, text-shadow 0.2s, background 0.35s ease;
}

.timeline-item:first-child::before {
    color: var(--red);
    text-shadow: 0 0 8px var(--red-glow);
    animation: pulse 2.4s ease-in-out infinite;
}

.timeline-item:hover::before { color: var(--red); }

.timeline-date {
    font-family: var(--font-label);
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-role {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.1rem;
}

.timeline-company {
    font-family: var(--font-label);
    font-size: 0.7rem;
    color: var(--cyan);
    margin-bottom: 0.9rem;
    letter-spacing: 0.04em;
}

.timeline-company::before {
    content: '@';
    color: var(--text-3);
    margin-right: 0.15em;
}

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-list li {
    color: var(--text);
    font-size: 0.84rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.7;
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* Sub-bullets nested inside .timeline-list items */
.timeline-sublist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.timeline-sublist li {
    color: var(--text-sub);
    font-size: 0.8rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.65;
}

.timeline-sublist li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-3);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ── CARDS ───────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s, background 0.35s ease;
}

.card:hover {
    border-color: var(--red-border);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ── PROJECT CARDS ───────────────────────── */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Project cards override the default .card padding to make room for
   the embedded titlebar; padding lives on .project-card-body instead. */
.card.project-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.project-card-header {
    background: var(--bg-titlebar);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    transition: background 0.35s ease;
}

.project-card-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.project-card-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.project-card-dots span:nth-child(1) { background: #ff5f57; }
.project-card-dots span:nth-child(2) { background: #ffbd2e; }
.project-card-dots span:nth-child(3) { background: #28c840; }

.project-card-filename {
    font-family: var(--font-label);
    font-size: 0.68rem;
    color: var(--text);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}

.project-card-filename::before {
    content: '~/projects/';
    color: var(--text-sub);
}

.project-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.project-card .project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.project-card h3 {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-bright);
}

.badge {
    font-family: var(--font-label);
    font-size: 0.58rem;
    padding: 0.14rem 0.44rem;
    border-radius: 2px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.badge-active {
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid var(--red-border);
}

.badge-complete {
    color: var(--text-3);
    background: var(--badge-complete-bg);
    border: 1px solid var(--badge-complete-border);
}

.badge-progress {
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid var(--amber-border);
}

.project-card p {
    color: var(--text);
    font-size: 0.83rem;
    line-height: 1.7;
    flex: 1;
}

.project-card .tags { margin-top: auto; }

.project-link {
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s, gap 0.2s;
    margin-top: 0.25rem;
}

.project-link::before { content: '$ '; color: var(--text-3); font-size: 0.8em; }
.project-link::after  { content: '→'; transition: transform 0.2s; }
.project-link:hover::after { transform: translateX(4px); }
.project-link:hover { color: var(--text-bright); }

/* ── CONTACT ─────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    min-width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-dim);
    border: 1px solid var(--red-border);
    border-radius: 3px;
    flex-shrink: 0;
    color: var(--red);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.contact-label {
    font-family: var(--font-label);
    font-size: 0.58rem;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.2rem;
}

.contact-label::before { content: '# '; color: var(--text-2); }

.contact-value {
    font-size: 0.86rem;
    color: var(--text);
    font-family: var(--font-body);
}

.contact-value a {
    color: var(--text);
    transition: color 0.2s;
}

.contact-value a:hover { color: var(--red); }

/* ── MAP ─────────────────────────────────── */
.map-container {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

/* Red overlay tint on map in dark mode */
.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red-faint);
    pointer-events: none;
    z-index: 1;
    transition: background 0.35s ease;
}

[data-theme="light"] .map-container::after {
    background: transparent;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 380px;
    filter: grayscale(100%) invert(1) brightness(0.48) contrast(1.35);
    opacity: 0.8;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

[data-theme="light"] .map-container iframe {
    filter: grayscale(25%) sepia(8%);
    opacity: 0.95;
}

/* ── PAGE HEADER ─────────────────────────── */
.page-header {
    padding: 3rem 0 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 6rem);
    color: var(--red);
    text-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(255, 31, 58, 0.07);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.page-header h1::before {
    content: '$ ';
    font-size: 0.45em;
    color: var(--text-3);
    vertical-align: middle;
    letter-spacing: 0;
}

.page-header .subtitle {
    font-family: var(--font-label);
    font-size: 0.67rem;
    letter-spacing: 0.2em;
    color: var(--text);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-sub);
    font-family: var(--font-label);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    transition: border-color 0.35s ease;
    position: relative;
    z-index: 1;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-social-link {
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 3px;
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.footer-social-link:hover {
    color: var(--red);
    border-color: var(--red-border);
    box-shadow: 0 0 12px var(--red-dim);
}

.footer p::before {
    content: '# ';
    color: var(--text-sub);
}

/* ── LIGHTBOX ────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--red-border);
    color: var(--red);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(255, 31, 58, 0.15);
    border-color: var(--red);
    color: #fff;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    max-width: 96vw;
    max-height: 92vh;
    padding: 0 3.5rem;
    gap: 0;
}

.lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,31,58,0.08), 0 0 60px rgba(0,0,0,0.95), 0 0 40px rgba(255,31,58,0.07);
    max-width: calc(96vw - 7rem);
    max-height: 88vh;
}

.lightbox-img {
    display: block;
    max-width: calc(96vw - 7rem);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.18s ease;
}

.lightbox-img.fading { opacity: 0; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--red-border);
    color: var(--red);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 2px;
    font-family: var(--font-label);
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 31, 58, 0.15);
    border-color: var(--red);
    color: #fff;
}

.lightbox-nav--prev { left: 0; }
.lightbox-nav--next { right: 0; }

.lightbox-nav[hidden] { display: none; }

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: var(--font-label);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

/* ── SCREENSHOT VIEWER ───────────────────── */
.project-screenshot {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #000;
    border-bottom: 1px solid var(--border);
    cursor: zoom-in;
    flex-shrink: 0;
}

.screenshot-track {
    display: flex;
    height: 100%;
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.screenshot-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.screenshot-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: filter 0.3s ease, transform 0.4s ease;
    filter: brightness(0.88) saturate(0.92) contrast(1.03);
}

.project-screenshot:hover .screenshot-slide img {
    filter: brightness(0.98) saturate(1.0) contrast(1.0);
    transform: scale(1.01);
}

/* CRT scanline overlay */
.screenshot-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.13) 2px,
        rgba(0, 0, 0, 0.13) 4px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-screenshot:hover .screenshot-scanlines {
    opacity: 1;
}

/* Chromatic red vignette on hover */
.screenshot-glitch {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 31, 58, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 31, 58, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
    mix-blend-mode: screen;
}

.project-screenshot:hover .screenshot-glitch {
    opacity: 1;
}

/* Corner label */
.screenshot-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-family: var(--font-label);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 31, 58, 0.2);
    z-index: 4;
    text-transform: uppercase;
    pointer-events: none;
}

/* Prev / next arrows */
.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 31, 58, 0.3);
    color: var(--red);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 5;
    border-radius: 2px;
    font-family: var(--font-label);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0;
}

.screenshot-nav:hover {
    background: rgba(255, 31, 58, 0.18);
    border-color: var(--red);
    color: #fff;
}

.screenshot-nav--prev { left: 0.5rem; }
.screenshot-nav--next { right: 0.5rem; }

.project-screenshot:hover .screenshot-nav {
    opacity: 1;
}

/* Dot indicators */
.screenshot-dots {
    position: absolute;
    bottom: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.screenshot-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.screenshot-dot.active {
    background: var(--red);
    border-color: rgba(255, 31, 58, 0.6);
    transform: scale(1.3);
    box-shadow: 0 0 6px var(--red-glow);
}

/* Light theme adjustments */
[data-theme="light"] .screenshot-scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
}

[data-theme="light"] .screenshot-glitch {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(201, 22, 42, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(201, 22, 42, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .screenshot-nav {
    background: rgba(250, 247, 242, 0.8);
    border-color: rgba(201, 22, 42, 0.25);
    color: var(--red);
}

[data-theme="light"] .screenshot-nav:hover {
    background: rgba(201, 22, 42, 0.1);
}

[data-theme="light"] .screenshot-label {
    color: rgba(30, 20, 15, 0.55);
    background: rgba(250, 247, 242, 0.7);
    border-color: rgba(201, 22, 42, 0.15);
}

/* ── TAG ICON LAYOUT ─────────────────────── */
.project-link-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.project-link:hover .project-link-icon { opacity: 1; }

/* ── SKILL TAG ICONS ─────────────────────── */
.tag-icon {
    font-size: 1em;
    margin-right: 0.28em;
    opacity: 0.68;
    display: inline-block;
    vertical-align: -0.08em;
    filter: drop-shadow(0 0 2px rgba(255, 140, 66, 0.12));
    transition: opacity 0.2s, filter 0.2s;
    line-height: 1;
}

.tag:hover .tag-icon {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 140, 66, 0.55));
}

[data-theme="light"] .tag-icon {
    filter: none;
    opacity: 0.6;
}

[data-theme="light"] .tag:hover .tag-icon {
    opacity: 0.9;
}


/* ── CODE-RAIN CANVAS ────────────────────── */
.code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── HOMELAB BODY LAYOUT ─────────────────── */
.homelab-body-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.homelab-body-wrap .timeline {
    flex: 1;
    min-width: 0;
}

/* ── HOMELAB BACKDROP PANEL ─────────────── */
.homelab-backdrop {
    flex-shrink: 0;
    width: 280px;
    border: none;
    outline: none;
    border-radius: 3px;
    overflow: hidden;
    cursor: zoom-in;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    padding: 0;
    position: relative;
    display: block;
    transition: box-shadow 0.4s ease;
}

.homelab-backdrop:hover {
    box-shadow:
        inset 0 0 40px rgba(255, 31, 58, 0.20),
        0 0 0 1px rgba(255, 31, 58, 0.18),
        0 0 28px rgba(255, 31, 58, 0.18);
}

.homelab-backdrop::before {
    content: '[sys.visual]';
    position: absolute;
    top: 0.5rem;
    left: 0.55rem;
    font-family: var(--font-label);
    font-size: 0.47rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.28);
    z-index: 4;
    pointer-events: none;
}

.homelab-backdrop::after {
    content: '⤢  expand';
    position: absolute;
    bottom: 0.55rem;
    right: 0.6rem;
    font-family: var(--font-label);
    font-size: 0.45rem;
    letter-spacing: 0.12em;
    color: rgba(255, 31, 58, 0);
    z-index: 4;
    pointer-events: none;
    transition: color 0.22s ease;
}

.homelab-backdrop:hover::after {
    color: rgba(255, 31, 58, 0.75);
}

.homelab-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    opacity: 0.88;
    filter: brightness(0.82) saturate(1.15);
    transition: opacity 0.45s ease, filter 0.45s ease, transform 0.5s ease;
    transform: scale(1.0);
}

.homelab-backdrop:hover .homelab-backdrop-img {
    opacity: 1.0;
    filter: brightness(1.0) saturate(1.4) contrast(1.05);
    transform: scale(1.04);
}

/* Rain canvas rendered on top of the homelab image */
.homelab-rain-canvas {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.homelab-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 3px
    );
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .homelab-backdrop:hover {
    box-shadow:
        inset 0 0 32px rgba(201, 22, 42, 0.14),
        0 0 0 1px rgba(201, 22, 42, 0.18),
        0 0 20px rgba(201, 22, 42, 0.12);
}

[data-theme="light"] .homelab-backdrop-img {
    opacity: 0.88;
    filter: brightness(0.88) saturate(1.1);
}

[data-theme="light"] .homelab-backdrop:hover .homelab-backdrop-img {
    opacity: 1.0;
    filter: brightness(1.0) saturate(1.25) contrast(1.03);
    transform: scale(1.04);
}

[data-theme="light"] .homelab-backdrop::before {
    color: rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .homelab-backdrop::after {
    color: rgba(201, 22, 42, 0);
}

[data-theme="light"] .homelab-backdrop:hover::after {
    color: rgba(201, 22, 42, 0.65);
}

@media (max-width: 640px) {
    .homelab-body-wrap {
        flex-direction: column;
    }

    .homelab-backdrop {
        width: 100%;
        height: 160px;
    }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (min-width: 768px) {
    .container      { padding: 3rem 2.5rem 6rem; }
    .hero           { padding-top: 3rem; }
    .terminal-body  { padding: 2rem 2.5rem 2.5rem; }
    .hero-body-pad  { padding: 2rem 2.5rem 2.5rem; }
}
