*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0F1117;
  --surface:    #161B27;
  --surface2:   #1C2333;
  --border:     #2A3347;
  --border2:    #374357;
  --text:       #CDD6F4;
  --muted:      #6C7A96;
  --dim:        #3D4F6E;
  --accent:     #89DCEB;
  --accent2:    #A6E3A1;
  --accent3:    #F38BA8;
  --accent4:    #FAB387;
  --accent5:    #CBA6F7;
  --prompt:     #A6E3A1;
  --cmd:        #89DCEB;
  --error:      #F38BA8;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(137,220,235,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137,220,235,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.window {
  display: flex;
  flex-direction: column;
  width: min(900px, calc(100vw - 40px));
  height: min(640px, calc(100vh - 40px));
  margin: auto;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(137,220,235,.05),
    0 4px 12px rgba(0,0,0,.4),
    0 24px 64px rgba(0,0,0,.5),
    0 0 80px rgba(137,220,235,.03);
  overflow: hidden;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  user-select: none;
}

.dots { display: flex; gap: 7px; align-items: center; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot-red    { background: #FF5F57; box-shadow: 0 0 6px rgba(255,95,87,.45); }
.dot-yellow { background: #FEBC2E; box-shadow: 0 0 6px rgba(254,188,46,.45); }
.dot-green  { background: #28C840; box-shadow: 0 0 6px rgba(40,200,64,.45); }

.titlebar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.tb-avatar {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent5));
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #0F1117; font-weight: 700;
}
.titlebar-text { font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 7px var(--accent2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.terminal {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 12px;
  scroll-behavior: smooth;
}
.terminal::-webkit-scrollbar { width: 5px; }
.terminal::-webkit-scrollbar-track { background: transparent; }
.terminal::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Banner ── */
.ascii-art {
  color: var(--accent);
  font-size: 10.5px;
  line-height: 1.25;
  white-space: pre;
  text-shadow: 0 0 24px rgba(137,220,235,.45);
  opacity: 0;
  animation: fadeIn .5s .1s ease forwards;
}
.banner-name {
  font-size: 17px; font-weight: 600;
  color: var(--text); letter-spacing: .05em;
  margin-top: 8px;
  opacity: 0; transform: translateX(-8px);
  animation: slideIn .45s .65s ease forwards;
}
.banner-role {
  font-size: 11.5px; color: var(--muted);
  margin-top: 2px;
  opacity: 0; transform: translateX(-8px);
  animation: slideIn .45s .8s ease forwards;
}
.banner-badges {
  display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap;
  opacity: 0; transform: translateX(-8px);
  animation: slideIn .45s .95s ease forwards;
}
.badge {
  font-size: 10px; padding: 2px 9px;
  border-radius: 20px; border: 1px solid; letter-spacing: .04em;
}
.badge-cyan  { color: var(--accent);  border-color: rgba(137,220,235,.3); background: rgba(137,220,235,.07); }
.badge-green { color: var(--accent2); border-color: rgba(166,227,161,.3); background: rgba(166,227,161,.07); }
.badge-mauve { color: var(--accent5); border-color: rgba(203,166,247,.3); background: rgba(203,166,247,.07); }

@keyframes fadeIn  { to { opacity: 1; } }
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* ── Lines ── */
.output { white-space: pre-wrap; word-break: break-word; margin-bottom: 1px; }
.output.gap { height: 8px; }
.output-block {
  opacity: 0; transform: translateY(3px);
  animation: lineIn .14s ease forwards;
}
.boot-line { opacity: 0; animation: fadeIn .3s ease forwards; }
@keyframes lineIn { to { opacity:1; transform:none; } }

/* ── Colors ── */
.c-accent { color: var(--accent); }
.c-green  { color: var(--accent2); }
.c-rose   { color: var(--accent3); }
.c-peach  { color: var(--accent4); }
.c-mauve  { color: var(--accent5); }
.c-muted  { color: var(--muted); }
.c-dim    { color: var(--dim); }
.c-error  { color: var(--error); }
.c-cmd    { color: var(--cmd); }
.c-bold   { font-weight: 600; }
.c-italic { font-style: italic; }

/* ── Tech tag ── */
.tech-tag {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  margin: 1px 2px;
  border: 1px solid rgba(137,220,235,.22);
  color: var(--accent);
  background: rgba(137,220,235,.06);
  vertical-align: middle;
}

/* ── Section header ── */
.sec-head {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 2px;
}
.sec-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

/* ── Project card ── */
.proj-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 12px;
  margin: 3px 0 7px;
  background: var(--surface2);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(4px);
  animation: lineIn .2s ease forwards;
  transition: border-color .15s, box-shadow .15s;
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent5));
  border-radius: 8px 0 0 8px;
}
.proj-card:hover {
  border-color: var(--border2);
  box-shadow: 0 0 20px rgba(137,220,235,.05);
}

/* ── Exp card ── */
.exp-card {
  border-left: 2px solid var(--border2);
  padding: 5px 0 5px 14px;
  margin: 2px 0 10px;
  opacity: 0; animation: lineIn .2s ease forwards;
}
.exp-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(166,227,161,.5);
  margin-right: 6px; vertical-align: middle;
}

/* ── Contact row ── */
.contact-row {
  display: flex; align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 0; animation: lineIn .15s ease forwards;
}
.contact-key { color: var(--muted); min-width: 100px; font-size: 12px; }
.contact-val { color: var(--accent4); font-size: 12.5px; }

/* ── Input ── */
.input-area {
  border-top: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}
.input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
}
.prompt-label {
  white-space: nowrap; font-size: 13px;
  display: flex; align-items: center; gap: 0;
}
.p-user { color: var(--accent2); font-weight: 600; }
.p-at   { color: var(--muted); }
.p-host { color: var(--accent); font-weight: 600; }
.p-path { color: var(--accent5); }
.p-sign { color: var(--muted); margin-left: 4px; }

#cmd-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px; color: var(--text); caret-color: var(--accent);
}
#cmd-input::placeholder { color: var(--dim); }

/* ── Hints ── */
.hints {
  display: flex; gap: 5px; flex-wrap: wrap;
  padding: 0 20px 12px; background: var(--surface2);
}
.hint-chip {
  font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 2px 10px; cursor: pointer;
  transition: all .14s; background: var(--surface);
  font-family: 'JetBrains Mono', monospace; letter-spacing: .03em;
}
.hint-chip:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(137,220,235,.07);
  box-shadow: 0 0 10px rgba(137,220,235,.1);
}

/* Scanlines */
.window::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.035) 2px, rgba(0,0,0,.035) 4px
  );
  pointer-events: none; border-radius: 14px; z-index: 100;
}
