/* ═══════════════════════════════════════════════
   JASON HITT — Terminal Green, Mission Control
   ═══════════════════════════════════════════════ */

:root {
  --bg-base:      #030c08;
  --surface-1:    #061510;
  --surface-2:    #0c1e18;
  --text-main:    #cdf4d8;
  --text-muted:   #8ab89e;
  --accent-primary:   #00e83c;
  --accent-secondary: #38d4ff;
  --border-soft:  rgba(0,232,60,0.3);
  --shadow-soft:  0 22px 55px rgba(0,8,4,0.65);
  --font-display: "Orbitron","Cinzel",serif;
  --font-body:    "Source Sans 3","Manrope",sans-serif;
  --font-mono:    "JetBrains Mono","Courier New",monospace;
}

/* ─── HERO ──────────────────────────────── */
.hero-jason {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 6rem; padding-bottom: 4rem;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,   rgba(0,232,60,0.06),  transparent 50%),
    radial-gradient(ellipse 40% 35% at 85% 10%,  rgba(56,212,255,0.08), transparent 35%),
    linear-gradient(180deg, #020a06 0%, #03100a 100%);
}

/* Dot grid overlay */
.hero-jason::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(56,212,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Horizontal scan line sweep */
#jasonCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* Classic scanlines overlay */
.scanline {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px,
    transparent 1px, transparent 4px
  );
}

.hero-jason .hero-inner { position: relative; z-index: 4; max-width: 80ch; }

.tech-headline {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 4.8rem);
  font-weight: 800; line-height: 1.08;
  color: #d0ffe0;
  text-shadow: 0 0 20px rgba(0,232,60,0.3);
}
.cursor {
  color: var(--accent-primary);
  margin-left: 0.2rem;
  animation: blinkCursor 1s steps(2,end) infinite;
}
@keyframes blinkCursor { 0%,45%{opacity:1} 46%,100%{opacity:0} }

.hero-tagline {
  margin-top: 1rem;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: 0.02em;
}

.hero-pill-row { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech-pill {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  border: 1px solid rgba(0,232,60,0.38);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: rgba(0,232,60,0.07);
  box-shadow: inset 0 0 0 1px rgba(0,232,60,0.12), 0 0 12px rgba(0,232,60,0.08);
  font-size: 0.82rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.tech-pill:hover {
  background: rgba(0,232,60,0.14);
  box-shadow: inset 0 0 0 1px rgba(0,232,60,0.25), 0 0 20px rgba(0,232,60,0.15);
}

/* ─── COMPUTING SECTION ─────────────────── */
.section-muted {
  background: linear-gradient(180deg,
    rgba(6,21,16,0.7) 0%,
    rgba(10,30,22,0.75) 100%
  );
  position: relative;
}
.section-muted::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(56,212,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.section-muted > .container { position: relative; z-index: 1; }

.services-grid-cyan .service-card {
  border-color: rgba(56,212,255,0.28);
  background: linear-gradient(145deg, rgba(5,15,22,0.9), rgba(8,24,32,0.88));
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.services-grid-cyan .service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56,212,255,0.5);
  box-shadow: 0 12px 36px rgba(56,212,255,0.1);
}
.services-grid-cyan .service-card h3 { color: #b0eeff; }

.tech-gallery .placeholder-img {
  background:
    linear-gradient(140deg, #060e14, #0d1e28),
    radial-gradient(circle at 80% 20%, rgba(56,212,255,0.14), transparent 38%);
}

/* ─── UI SHOWCASE ────────────────────────── */
.credits-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 2.2rem;
  padding: 0.9rem 1.4rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56,212,255,0.22);
  border-radius: 0.65rem;
  background: rgba(56,212,255,0.04);
}
.credit-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: rgba(56,212,255,0.5); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.18rem;
}
.credit-value { font-family: var(--font-mono); font-size: 0.82rem; color: #c0ffe0; }
.credit-value a { color: #38d4ff; text-decoration: underline; text-underline-offset: 3px; }
.credit-value a:hover { color: #90eeff; }
.credit-note { font-size: 0.72rem; color: rgba(192,255,224,0.45); }
.credit-divider { color: rgba(0,232,60,0.15); font-size: 1.4rem; font-weight: 100; }

.ui-showcase {
  border: 1px solid rgba(0,232,60,0.28);
  border-radius: 0.85rem;
  background: #010805;
  box-shadow: 0 0 0 1px rgba(0,232,60,0.05) inset, 0 0 80px rgba(0,232,60,0.07);
  overflow: hidden;
  margin-bottom: 2rem;
}

.ui-showcase-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(0,232,60,0.18);
  background: rgba(0,232,60,0.04);
  font-family: var(--font-mono);
  font-size: 0.76rem; color: rgba(0,232,60,0.65);
  letter-spacing: 0.08em;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0,232,60,0.8);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 8px rgba(0,232,60,0.7); }
  50%      { box-shadow: 0 0 18px rgba(0,232,60,1);  }
}

.badge-demo {
  margin-left: auto;
  border: 1px solid rgba(56,212,255,0.4);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  color: #9aeeff;
  background: rgba(56,212,255,0.08);
  font-size: 0.72rem;
}

.ui-screenshot-wrap { position: relative; }
.ui-screenshot {
  width: 100%; display: block;
  image-rendering: high-quality;
  filter: brightness(1.0) saturate(1.05) contrast(1.02);
  transition: filter 0.4s;
}
.ui-showcase:hover .ui-screenshot {
  filter: brightness(1.05) saturate(1.1) contrast(1.04);
}
/* Subtle scanline over screenshot for cohesion */
.ui-screenshot-wrap::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.008) 0px, rgba(255,255,255,0.008) 1px,
    transparent 1px, transparent 3px
  );
}

.ui-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: rgba(160,255,180,0.5);
  letter-spacing: 0.06em;
  padding: 0.65rem 1.2rem;
  border-top: 1px solid rgba(0,232,60,0.1);
}

/* ─── FEATURE CARDS ──────────────────────── */
.feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 1.2rem; }
.feature-card {
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0,232,60,0.22);
  background: linear-gradient(140deg, rgba(4,12,8,0.9), rgba(6,18,12,0.88));
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(0,232,60,0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(0,232,60,0.45);
  box-shadow: inset 0 0 0 1px rgba(0,232,60,0.1), 0 8px 28px rgba(0,232,60,0.08);
  transform: translateY(-3px);
}
.feature-icon {
  font-family: var(--font-mono); font-size: 0.7rem;
  min-width: 54px; padding: 0.2rem 0.4rem;
  border: 1px solid rgba(56,212,255,0.4); border-radius: 999px;
  color: #a0f0ff; background: rgba(56,212,255,0.07);
  text-align: center;
}
.feature-card h3 { color: #cdf4d8; font-size: clamp(0.95rem,1.3vw,1.1rem); }

/* ─── TECH STACK ─────────────────────────── */
.tech-stack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tech-stack-item {
  padding: 0.9rem 1rem; border-radius: 0.7rem;
  border: 1px solid rgba(56,212,255,0.2);
  background: linear-gradient(140deg, rgba(3,10,8,0.92), rgba(7,18,14,0.88));
  display: grid; gap: 0.55rem;
  transition: border-color 0.3s;
}
.tech-stack-item:hover { border-color: rgba(56,212,255,0.4); }
.tech-stack-item span { font-family: var(--font-mono); color: #b0f0e0; font-size: 0.9rem; }
.tech-stack-item i {
  display: block; height: 7px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,232,60,0.9) 0%, rgba(56,212,255,0.85) 65%, rgba(255,180,60,0.8) 100%);
  box-shadow: 0 0 10px rgba(56,212,255,0.25);
}

/* ─── CTA ────────────────────────────────── */
.cta-jason {
  border-color: rgba(0,232,60,0.32);
  background: linear-gradient(140deg, rgba(3,10,8,0.97), rgba(8,18,14,0.96));
}
.cta-jason .btn-primary {
  background: linear-gradient(120deg, #a0ffb8, #00e83c);
  color: #041a0a;
}

.system-disclaimer {
  margin-top: 1rem;
  border-left: 3px solid rgba(56,212,255,0.6);
  padding: 0.5rem 0 0.5rem 0.9rem;
  color: rgba(128,210,160,0.8);
  font-family: var(--font-mono); font-size: 0.82rem;
}

/* portrait */
#about-jason .portrait-placeholder {
  background: linear-gradient(145deg, #060e10, #0a2218 56%, #0e5540);
}

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px)  { .feature-grid, .tech-stack-grid { grid-template-columns: 1fr; } .badge-demo { margin-left: 0; } }

/* ═══ TERMINAL WINDOW ═══ */
.terminal-window {
  border: 1px solid rgba(0,232,60,0.35);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #010a05;
  box-shadow:
    0 0 0 1px rgba(0,232,60,0.06) inset,
    0 0 60px rgba(0,232,60,0.08),
    0 20px 60px rgba(0,0,0,0.6);
  font-family: var(--font-mono);
}
.terminal-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0.85rem; height: 2rem;
  background: #0a1a0e;
  border-bottom: 1px solid rgba(0,232,60,0.18);
  font-family: var(--font-mono); font-size: 0.72rem;
}
.terminal-body {
  padding: 1.1rem 1.4rem;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  color: rgba(0,232,60,0.85);
  font-size: 0.82rem;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,232,60,0.25) transparent;
}
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0,232,60,0.2); border-radius: 2px; }
.term-line { display: block; opacity: 0; animation: termFadeIn 0.08s forwards; }
@keyframes termFadeIn { to { opacity: 1; } }
.term-prompt { color: rgba(0,232,60,0.6); }
.term-cmd    { color: rgba(56,212,255,0.9); }
.term-ok     { color: rgba(0,232,60,1); }
.term-warn   { color: rgba(254,188,46,0.9); }
.term-info   { color: rgba(160,200,255,0.7); }
.term-dim    { color: rgba(0,232,60,0.35); }
.term-err    { color: rgba(255,80,60,0.9); }
.term-cursor { display: inline-block; width: 7px; height: 1em; background: rgba(0,232,60,0.8); animation: blinkCursor 1s steps(2,end) infinite; vertical-align: text-bottom; }

/* ═══ SYS STATS ═══ */
.sys-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.sys-stat-card {
  border: 1px solid rgba(0,232,60,0.2);
  border-radius: 0.75rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(145deg, rgba(3,12,8,0.95), rgba(6,18,12,0.9));
  font-family: var(--font-mono);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.sys-stat-card:hover {
  border-color: rgba(0,232,60,0.4);
  box-shadow: 0 0 30px rgba(0,232,60,0.07);
}
.sys-stat-label {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(56,212,255,0.55); margin-bottom: 0.35rem;
}
.sys-stat-value {
  font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 700;
  color: #c0ffe0; margin-bottom: 0.5rem; line-height: 1;
}
.sys-stat-bar {
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.06); margin-bottom: 0.5rem; overflow: hidden;
}
.sys-stat-fill {
  height: 100%; border-radius: 999px;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px rgba(0,232,60,0.4);
}
.sys-stat-sub {
  font-size: 0.68rem; color: rgba(138,184,158,0.45); letter-spacing: 0.04em;
}

/* ═══ NETWORK GRAPH ═══ */
.network-graph-wrap {
  position: relative;
  border: 1px solid rgba(0,232,60,0.18);
  border-radius: 0.85rem;
  background: #010a05;
  overflow: hidden;
  height: 200px;
}
#netGraph {
  width: 100%; height: 100%; display: block;
}
.netgraph-label {
  position: absolute; bottom: 0.6rem; left: 1rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  color: rgba(56,212,255,0.35); letter-spacing: 0.12em;
}

@media(max-width:900px) { .sys-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:500px) { .sys-stats-grid { grid-template-columns: 1fr; } }
