/* ====== Wohlgemuth IT — Portfolio ====== */
:root {
  --bg:        #07090a;
  --bg-2:      #0c110f;
  --panel:     #0e1412;
  --panel-2:   #111815;
  --fg:        #cdd8d0;
  --fg-dim:    #8a978e;
  --muted:     #5d6c63;
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);
  --accent:    #3ddc84;
  --accent-dim: color-mix(in srgb, var(--accent) 55%, #07090a);
  --font:      'JetBrains Mono', ui-monospace, monospace;
  --glow:      0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #04130a; }

/* Matrix canvas — fixed behind everything */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
#matrix-canvas.boost { opacity: 0.55; }

/* Vignette so text stays readable over the rain */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 18%, transparent 0%, var(--bg) 78%),
    linear-gradient(var(--bg), transparent 12%, transparent 88%, var(--bg));
}

.app { position: relative; z-index: 2; }

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* ---- monospace UI primitives ---- */
.kw   { color: var(--accent); }
.dim  { color: var(--fg-dim); }
.mut  { color: var(--muted); }
.str  { color: #e6c07b; }      /* string yellow */
.num  { color: #d19a66; }
.comment { color: var(--muted); font-style: italic; }
.glow { text-shadow: var(--glow); }

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

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.04em;
}
.brand .logo {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  box-shadow: var(--glow);
}
.brand .dim { font-weight: 400; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--fg-dim); font-size: 13.5px; letter-spacing: 0.02em; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav .status {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg-dim); font-size: 13px;
}
.nav .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 1 } 50%{ opacity: 0.35 } }
@media (max-width: 720px) { .nav a:not(.status){ display:none } }

.gerflag {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(
    to bottom,
    #000000 0 33.33%,    /* Schwarz */
    #dd0000 33.33% 66.66%, /* Rot */
    #ffce00 66.66% 100%   /* Gold */
  );
  box-shadow: 0 0 8px rgba(221, 0, 0, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: 1 } 50%{ opacity: 0.35 } }
@media (max-width: 720px) { .nav a:not(.status){ display:none } }

/* ===== Sections ===== */
section { padding: clamp(56px, 9vw, 110px) 0; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: "//"; color: var(--muted); }

/* ===== Hero ===== */
.hero { padding-top: clamp(46px, 7vw, 84px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px){ .hero-grid{ grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  margin: 12px 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--accent); text-shadow: var(--glow); }
.hero .roles {
  font-size: clamp(15px, 2vw, 20px);
  color: var(--fg-dim);
  margin: 0 0 26px;
}
.hero .roles .sep { color: var(--muted); margin: 0 8px; }
.hero p.lede {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--fg);
  max-width: 46ch;
  margin: 0 0 30px;
}
.hero .prompt-line { color: var(--fg-dim); font-size: 14px; }
.hero .prompt-line .caret {
  display: inline-block; width: 9px; height: 1.05em;
  background: var(--accent); margin-left: 2px;
  transform: translateY(2px);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 8px;
  font-family: var(--font); font-size: 14px;
  border: 1px solid var(--line-2); color: var(--fg);
  background: var(--panel); cursor: pointer;
  transition: all 0.16s ease; text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--accent); color: #04130a; border-color: var(--accent);
  box-shadow: var(--glow); font-weight: 600;
}
.btn.primary:hover { color: #04130a; filter: brightness(1.08); }

/* ===== Terminal window chrome ===== */
.term {
  background: linear-gradient(var(--panel), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.term-bar .lights { display: flex; gap: 7px; }
.term-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar .lights i:nth-child(1){ background:#ff5f57; }
.term-bar .lights i:nth-child(2){ background:#febc2e; }
.term-bar .lights i:nth-child(3){ background:#28c840; }
.term-bar .title {
  flex: 1; text-align: center; color: var(--muted); font-size: 12.5px;
  letter-spacing: 0.02em;
}
.term-body { padding: 20px 20px 22px; font-size: 13.5px; line-height: 1.75; }

/* neofetch card */
.neofetch { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.neofetch .k { color: var(--accent); }
.neofetch .userline { grid-column: 1 / -1; color: var(--accent); }
.neofetch .rule { grid-column: 1 / -1; color: var(--muted); }
.neofetch .swatches { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 8px; }
.neofetch .swatches i { width: 22px; height: 12px; display: block; border-radius: 2px; }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.skill {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.skill:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); transform: translateY(-2px); }
.skill .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.skill .name { font-weight: 700; font-size: 16px; }
.skill .pct { color: var(--accent); font-size: 13px; }
.skill .bar {
  font-size: 15px; letter-spacing: 1px; margin: 10px 0 12px;
  color: var(--accent); text-shadow: var(--glow);
}
.skill .bar .empty { color: var(--muted); text-shadow: none; }
.skill .desc { color: var(--fg-dim); font-size: 13.5px; line-height: 1.6; margin: 0; }
.skill .tags { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.skill .tag {
  font-size: 11.5px; color: var(--fg-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 9px;
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0; font-weight: 800; letter-spacing: -0.01em;
}
.section-head .meta { color: var(--muted); font-size: 13px; }

/* ===== Interactive console ===== */
.console-wrap .term { max-width: 100%; }
.console {
  height: 440px;
  overflow-y: auto;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.7;
  cursor: text;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.console::-webkit-scrollbar { width: 9px; }
.console::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.console .row { white-space: pre-wrap; word-break: break-word; }
.console .ps-prompt { color: var(--accent); }
.console .ps-path { color: #6fb3ff; }
.console .err { color: #ff6b6b; }
.console .ok  { color: var(--accent); }
.console .head { color: var(--accent); font-weight: 700; }
.console .table-k { color: var(--fg); display: inline-block; min-width: 20ch; }
.console .table-v { color: var(--fg-dim); }
.console .hint { color: var(--muted); }

.cmdline { display: flex; align-items: baseline; position: relative; flex-wrap: wrap; }
.cmdline .typed { color: var(--fg); white-space: pre-wrap; }
.cmdline .cursor {
  display: inline-block; width: 8px; height: 1.05em;
  background: var(--accent); transform: translateY(2px);
  animation: blink 1.05s steps(1) infinite;
}
.cmdline input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; padding: 0; margin: 0;
  font-family: inherit; font-size: inherit;
}
.console .quickcmds { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.console .quickcmds button {
  font-family: var(--font); font-size: 12px;
  color: var(--fg-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: all 0.15s;
}
.console .quickcmds button:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted); font-size: 13px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--accent); }

/* loading screen */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--accent);
  display: grid; place-content: center;
  font-family: var(--font); font-size: 14px;
  transition: opacity 0.5s ease;
}
