/* ── Variables ── */
:root {
  --bg:         #0a0e0a;
  --bg2:        #0d120d;
  --panel:      #0f1a0f;
  --border:     #1a2e1a;
  --green:      #00ff88;
  --green2:     #00cc66;
  --green-dim:  #007744;
  --green-glow: #00ff8840;
  --cyan:       #00e5cc;
  --yellow:     #e3b341;
  --red:        #ff5555;
  --blue:       #79c0ff;
  --text:       #cdd9e5;
  --muted:      #4a5a4a;
  --muted2:     #2a3a2a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* ── Links (base) ── */
a {
  color: var(--cyan);
  text-decoration: none;
}

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

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 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;
  z-index: 1000;
  will-change: transform;
}

/* CRT vignette */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 999;
  will-change: transform;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 2px; }

/* ── Layout ── */
.shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ── Window Chrome ── */
.window {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(0,255,136,0.04), 0 0 80px rgba(0,0,0,0.6);
  background: var(--panel);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.window-body {
  padding: 20px 24px 24px;
}

/* ── Hero ── */
.hero {
  padding: 32px 0 16px;
  position: relative;
}

.boot-sequence { margin-bottom: 24px; }

.boot-line {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0;
  animation: fadein 0.1s forwards;
}

.boot-line.ok::after   { content: ' [OK]';   color: var(--green2); }
.boot-line.warn::after { content: ' [WARN]'; color: var(--yellow); }

/* Boot sequence delays */
.boot-line:nth-child(1) { animation-delay: 0.1s; }
.boot-line:nth-child(2) { animation-delay: 0.3s; }
.boot-line:nth-child(3) { animation-delay: 0.5s; }
.boot-line:nth-child(4) { animation-delay: 0.7s; }
.boot-line:nth-child(5) { animation-delay: 0.9s; }
.boot-line:nth-child(6) { animation-delay: 1.1s; }
.boot-line:nth-child(7) { animation-delay: 1.3s; }

.ascii-name {
  font-size: clamp(7px, 1.4vw, 12px);
  line-height: 1.2;
  color: var(--green);
  white-space: pre;
  margin: 16px 0 8px;
  opacity: 0;
  overflow-x: auto;
  will-change: filter, opacity;
  animation: fadein 0.4s 1.8s forwards, glow-pulse 4s 2.5s ease-in-out infinite;
}

.tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadein 0.4s 2.2s forwards;
}

/* ── Contact Bar ── */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  opacity: 0;
  animation: fadein 0.4s 2.5s forwards;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
  border-color: var(--green2);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,136,0.1);
}

.contact-item .label { color: var(--muted); margin-right: 2px; }

/* ── Prompt Line ── */
.prompt-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  opacity: 0;
  animation: fadein 0.2s 2.4s forwards;
}

.ps1 { color: var(--green2); font-weight: 700; }
.ps1 .user { color: var(--cyan); }
.ps1 .host { color: var(--green); }
.ps1 .path { color: var(--blue); }
.ps1 .sep  { color: var(--muted); }

.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--green);
  vertical-align: middle;
  will-change: opacity;
  animation: blink 1s step-start infinite;
  box-shadow: 0 0 8px var(--green);
}

/* ── Stats ── */
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 100px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  text-align: center;
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
  display: block;
}

.stat-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section-cmd   { color: var(--green2); font-size: 11px; font-weight: 700; }
.section-title { color: var(--green); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.section-line  { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ── Summary ── */
.summary-text {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.8;
  border-left: 2px solid var(--green-dim);
  padding-left: 16px;
  margin: 0;
}

.summary-text em { color: var(--cyan); font-style: normal; }

/* ── Jobs ── */
.job {
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 20px rgba(0,255,136,0.04);
}

.job::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green2), transparent);
  border-radius: 6px 0 0 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.job:hover::before { opacity: 1; }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.job-company {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.job-role {
  font-size: 11px;
  color: var(--cyan);
  margin-top: 2px;
}

.job-date {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.job-date .badge {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  text-align: center;
  margin-bottom: 3px;
  font-size: 10px;
}

.job ul {
  list-style: none;
  padding: 0;
}

.job ul li {
  font-size: 12px;
  color: #a0b0a0;
  margin-bottom: 5px;
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}

.job ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green-dim);
}

.job ul li strong { color: var(--text); font-weight: 500; }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.tag {
  font-size: 10px;
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green2);
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  transition: background 0.15s, box-shadow 0.15s;
}

.tag:hover {
  background: rgba(0,255,136,0.06);
  box-shadow: 0 0 8px rgba(0,255,136,0.12);
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: var(--text);
  transition: border-color 0.2s;
}

.cert:hover { border-color: var(--green-dim); }

.cert-icon {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
}

/* ── Writing & Projects ── */
.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.links-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  min-width: 56px;
  text-align: center;
  border: 1px solid;
}

.badge-medium  { color: #cdd9e5; border-color: #444; background: #222; }
.badge-github  { color: var(--text); border-color: var(--border); background: var(--bg2); }
.badge-youtube { color: #ff5555; border-color: #55221a; background: #200d0d; }

.links-list a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

.links-list a:hover { color: var(--green); text-decoration: underline; }

/* ── Footer ── */
.footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-left  { color: var(--muted); font-size: 11px; }
.footer-right { color: var(--green-dim); font-size: 10px; letter-spacing: 1px; }

/* ── Animations ── */
@keyframes fadein  { from { opacity: 0; }                    to { opacity: 1; } }
@keyframes blink   { 50% { opacity: 0; } }
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,255,136,0.3)); }
  50%      { filter: drop-shadow(0 0 14px rgba(0,255,136,0.65)); }
}

/* Window fade-in helpers (used inline on windows) */
.window-anim-1 { animation: fadein 0.4s 2.6s both; }
.window-anim-2 { animation: fadein 0.4s 2.9s both; }
.window-anim-3 { animation: fadein 0.4s 3.1s both; }
.window-anim-4 { animation: fadein 0.4s 3.2s both; }
.window-anim-5 { animation: fadein 0.4s 3.3s both; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .ascii-name { font-size: 5px; }
  .stats { flex-direction: column; }
  .job-header { flex-direction: column; }
  .certs-grid { grid-template-columns: 1fr; }
}
