/* ════════════════════════════════════════════════════════
   gaadt.net – Terminal Stylesheet
   Farbschema basiert auf dem gaadt.net Logo
   ════════════════════════════════════════════════════════ */

:root {
  --cyan:      #00d4ff;
  --cyan-dim:  #0088aa;
  --cyan-glow: rgba(0, 212, 255, 0.18);
  --green:     #39d353;
  --green-dim: #22882f;
  --white:     #d8e8e8;
  --muted:     #5a7a7a;
  --bg:        #000000;
  --bg2:       #000000;
  --border:    #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── CRT Scanline ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

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

/* ════════════════════════════════
   SPLASH SCREEN
════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.7s ease;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  max-width: min(340px, 72vw);
  animation: splashReveal 1s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes splashReveal {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.splash-glow-pulse {
  animation: splashReveal 1s cubic-bezier(0.16,1,0.3,1) forwards;
}

.splash-domain {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--cyan-dim);
  animation: fadeUp 0.6s ease 0.6s both;
}

.splash-loading {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.6s ease 0.9s both;
}

.splash-bar-track {
  width: min(280px, 55vw);
  height: 2px;
  background: #111;
}

.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  animation: barFill 3.1s linear 0.9s both;
}

@keyframes barFill { from { width: 0% } to { width: 100% } }

.splash-pct {
  font-size: 12px;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ════════════════════════════════
   BOOT SEQUENCE
════════════════════════════════ */
#boot {
  position: fixed;
  inset: 0;
  background: #000;
  padding: clamp(16px, 3vw, 36px);
  z-index: 1999;
  overflow: hidden;
  display: none;
  flex-direction: column;
  gap: 0;
}

#boot.active  { display: flex; }
#boot.fadeout { animation: fadeOutEl 0.5s ease forwards; }

@keyframes fadeOutEl { to { opacity: 0 } }

.bl {
  font-size: clamp(10px, 1.4vw, 13px);
  line-height: 1.75;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}
.bl.show { opacity: 1; }
.bl.ok   { color: var(--green); }
.bl.info { color: var(--white); }
.bl.cyan { color: var(--cyan); }
.bl.mute { color: #2a3a3a; }
.bl.warn { color: #ffaa00; }

.bl .ok-tag { color: var(--green); }
.bl .br-tag { color: var(--cyan); }
.bl .dim    { color: var(--muted); }

/* ════════════════════════════════
   MAIN TERMINAL
════════════════════════════════ */
#main {
  display: none;
  min-height: 100vh;
  padding: clamp(10px, 2vw, 24px);
  animation: fadeUp 0.5s ease forwards;
}

#main.active { display: block; }

.win {
  max-width: 1024px;
  margin: 0 auto;
}

/* ── Title Bar ── */
.titlebar {
  background: #000000;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dr  { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.dy  { background: #ffbd2e; box-shadow: 0 0 4px #ffbd2e; }
.dg  { background: #28ca41; box-shadow: 0 0 4px #28ca41; }

.tb-title {
  flex: 1;
  text-align: center;
  color: #2a4a5a;
  font-size: 12px;
}

/* ── Terminal Body ── */
.tbody {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  padding: clamp(16px, 3vw, 36px);
  min-height: calc(100vh - 80px);
}

/* ── Section ── */
.sec {
  margin-bottom: 52px;
  animation: secReveal 0.5s ease both;
}

@keyframes secReveal {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ── Prompt ── */
.pr {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 0;
}

.pu { color: var(--green);    font-size: 14px; }
.pa { color: #88bbcc;         font-size: 14px; }
.ph { color: var(--cyan-dim); font-size: 14px; }
.pc { color: #88bbcc;         font-size: 14px; }
.pp { color: #5599cc;         font-size: 14px; }
.px { color: var(--muted);    font-size: 14px; margin: 0 7px; }
.pm { color: var(--white);    font-size: 14px; }
.pf { color: #ffaa44;         font-size: 14px; margin-left: 7px; }

/* ── Output ── */
.out {
  border-left: 2px solid #0f2535;
  padding-left: 18px;
  margin-left: 6px;
}

/* ════════════════════════════════
   NEOFETCH
════════════════════════════════ */
.nf {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.nf-logo {
  max-width: clamp(80px, 12vw, 130px);
}

.nf-info { display: flex; flex-direction: column; gap: 3px; }

.nfr { font-size: 13px; line-height: 1.9; }
.nfk { color: var(--cyan); }
.nfs { color: #1a4a5a; margin: 0 6px; }
.nfv { color: var(--white); }

.swatches { display: flex; gap: 5px; margin-top: 10px; }
.sw { width: 16px; height: 16px; border-radius: 3px; }

/* ════════════════════════════════
   ABOUT / PROFIL
════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-wrap { display: flex; flex-direction: column; gap: 10px; }

.profile-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.profile-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--cyan-dim);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,212,255,0.12), inset 0 0 20px rgba(0,0,0,0.4);
}

.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.3s ease;
}
.profile-img:hover { filter: saturate(1.1) contrast(1.1); }

.profile-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #000000;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

/* CRT-Scanline über Profilbild */
.profile-scanline {
  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) 4px
  );
  pointer-events: none;
}

/* Pulsierender Cyan-Rahmen */
.profile-img-box::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--cyan);
  border-radius: 4px;
  opacity: 0;
  animation: framePulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes framePulse {
  0%,100% { opacity: 0; }
  50%     { opacity: 0.35; box-shadow: inset 0 0 12px rgba(0,212,255,0.15); }
}

.profile-meta { display: flex; flex-direction: column; gap: 2px; }
.pm-line { font-size: 12px; line-height: 1.8; color: var(--white); }

.about-text {
  font-size: 13px;
  line-height: 2;
  color: var(--white);
  padding-top: 4px;
}
.about-text .hl { color: var(--cyan); }
.about-text .gl { color: var(--green); }

/* ════════════════════════════════
   SKILLS
════════════════════════════════ */
.skill-group-title {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 4px;
}

.ski {
  font-size: 13px;
  color: var(--white);
  line-height: 1.9;
}

.ski::before {
  content: '▸ ';
  color: var(--cyan);
}

.ski:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border);
  margin: 0 12px;
  vertical-align: middle;
}

/* ════════════════════════════════
   PIE CHART – OS Usage
════════════════════════════════ */
.pie-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}

.pie-svg {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.15));
}

circle[stroke-width="36"] {
  transition: stroke-width 0.3s ease;
}
circle[stroke-width="36"]:hover { stroke-width: 42; }

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.pie-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.pie-label { color: var(--white); width: 72px; }
.pie-pct   { color: var(--muted); font-size: 12px; }
.cv-entry {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  background: rgba(0,212,255,0.03);
  border-radius: 0 4px 4px 0;
}

.cv-title { color: var(--cyan);   font-size: 13px; }
.cv-sub   { color: var(--green);  font-size: 12px; margin: 2px 0; }
.cv-date  { color: var(--muted);  font-size: 11px; }
.cv-desc  { color: var(--white);  font-size: 12px; margin-top: 8px; line-height: 1.8; }

/* ════════════════════════════════
   KONTAKT
════════════════════════════════ */
.ct { font-size: 13px; line-height: 2.2; }
.ct a { color: var(--cyan); text-decoration: none; }
.ct a:hover { text-shadow: 0 0 10px var(--cyan); }
.ct .lbl { color: var(--green); }
.ct .sep { color: var(--muted); margin: 0 8px; }

/* ════════════════════════════════
   INTERAKTIVE EINGABE
════════════════════════════════ */
.input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 40px;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

#cmd-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  flex: 1;
  min-width: 80px;
  caret-color: var(--cyan);
}

#cmd-output {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--white);
  min-height: 20px;
}

/* ── Cursor ── */
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0 } }

/* ════════════════════════════════
   SCROLLBAR
════════════════════════════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #0f2535; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 600px) {
  .nf { grid-template-columns: 1fr; }
  .nf-logo { max-width: 80px; }
  .skl { width: 120px; }
  .cv-entry { padding: 10px 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .profile-wrap { flex-direction: row; align-items: center; gap: 16px; }
  .profile-img-box { width: 90px; flex-shrink: 0; }
}
