/* ==========================================================================
   REYHAN.DEV — Neon Cybersecurity Command Center
   Professional · Modern · Futuristic (soft neon edition)
   ========================================================================== */

:root {
  /* Dark base yang lebih dalam & premium */
  --bg: #03070a;
  --bg-alt: #061014;
  --panel: rgba(8, 18, 22, 0.65);
  --panel-solid: #0a1418;
  --panel-hover: rgba(12, 26, 32, 0.78);

  /* Neon soft & refined */
  --cyan: #00e8d0;
  --cyan-dim: #0aa89a;
  --cyan-glow: rgba(0, 232, 208, 0.35);
  --cyan-soft: rgba(0, 232, 208, 0.12);
  --green: #3dff7a;
  --green-glow: rgba(61, 255, 122, 0.28);
  --purple: #a78bfa;
  --purple-glow: rgba(167, 139, 250, 0.25);
  --red: #ff5c5c;
  --yellow: #ffd166;

  --border: rgba(0, 232, 208, 0.12);
  --border-strong: rgba(0, 232, 208, 0.28);

  --text: #e6f7f4;
  --text-dim: #8fb0ab;
  --text-faint: #5a7a75;

  --font-display: 'Rajdhani', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --cut: 14px;
  --cut-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(0, 232, 208, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(167, 139, 250, 0.045), transparent 50%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

/* Soft vignette for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
}

h1, h2, h3, .logo, .nav-links a, .btn, .status-pill, .panel-label,
.status-name, .status-value, .term-name, .terminal-body, .bio-facts,
.badge, .footer-inner, .spec-label, .spec-value, .proc-head, .proc-name,
.proc-status, .mail-header h3, .skills-hint, .tag-list {
  font-family: var(--font-display);
}

.terminal-body, .bio-facts, .spec-label, .spec-value, .tag-list li,
.badge, .status-value, .proc-status {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #001512;
  padding: 0.75rem 1rem;
  z-index: 999;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Background layers ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 232, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 232, 208, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 15%, #000 30%, transparent 85%);
  opacity: 0.9;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.4;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ---------- Circuit spine ---------- */
.circuit-spine {
  position: absolute;
  top: 0;
  left: max(1.75rem, calc(50% - 610px));
  width: 1px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-strong) 0px, var(--border-strong) 5px,
    transparent 5px, transparent 14px
  );
  display: none;
}
@media (min-width: 1300px) {
  .circuit-spine { display: block; }
}
.circuit-spine .node {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  background: var(--bg);
  border: 1px solid var(--text-faint);
  border-radius: 50%;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.circuit-spine .node.active {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.spine-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 60px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  filter: drop-shadow(0 0 6px var(--cyan));
  animation: spineFlow 5s linear infinite;
}
@keyframes spineFlow {
  0% { top: -60px; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spine-pulse { animation: none; display: none; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shared components ---------- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px currentColor;
}
.dot-cyan { background: var(--cyan); color: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-green { background: var(--green); color: var(--green); box-shadow: 0 0 8px var(--green), 0 0 16px rgba(61, 255, 122, 0.25); }
.dot-purple { background: var(--purple); color: var(--purple); box-shadow: 0 0 8px var(--purple); }

.pulse {
  animation: softPulse 2.8s ease-in-out infinite;
}
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ---------- Buttons (soft neon glow) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #00e8d0 0%, #00c4b0 100%);
  color: #021210;
  border-color: rgba(0, 232, 208, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 232, 208, 0.12),
    0 4px 20px var(--cyan-glow);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(0, 232, 208, 0.35),
    0 8px 28px rgba(0, 232, 208, 0.45),
    0 0 40px rgba(0, 232, 208, 0.15);
}

.btn-ghost {
  background: rgba(0, 232, 208, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan-dim);
}
.btn-outline:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 232, 208, 0.35);
}

.btn-block { width: 100%; margin-top: 1.25rem; }
.btn-large { padding: 1rem 2.2rem; font-size: 0.95rem; margin-top: 1.5rem; }
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.8rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 232, 208, 0.07);
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: var(--text);
  flex-shrink: 0;
}
.logo-dot { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover {
  color: var(--cyan);
}
.nav-links a:hover::after { width: 100%; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(0, 232, 208, 0.03);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.hamburger:hover { border-color: var(--cyan); }
.hamburger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout helpers ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.5rem;
}
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 232, 208, 0.22);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.section-sub {
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.section-title + .bio-grid,
.section-title + .projects-grid,
.section-title + .mail-panel {
  margin-top: 2.5rem;
}
.section-sub + .proc-table {
  margin-top: 0;
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 1.25rem;
}
.panel-label.small { font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 4rem;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.hero-right {
  margin-top: 2.75rem;
}
.hero-inner::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  bottom: -1.5rem;
  left: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
  transform: skewX(-8deg);
}
@media (max-width: 900px) {
  .hero-inner::before { display: none; }
  .hero-right { margin-top: 0; }
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-title .accent {
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(0, 232, 208, 0.4);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--green);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.hero-desc {
  color: var(--text-dim);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 232, 208, 0.09) 12deg, transparent 40deg);
  border-radius: 50%;
  animation: radarSpin 8s linear infinite;
  pointer-events: none;
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-right::before { animation: none; display: none; }
}

/* ---------- Terminal ---------- */
.terminal-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 30px rgba(0, 232, 208, 0.08),
    inset 0 0 40px rgba(0, 232, 208, 0.025);
  overflow: hidden;
}

/* Soft corner accents */
.terminal-panel::before,
.terminal-panel::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.terminal-panel::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  filter: drop-shadow(0 0 4px rgba(0, 232, 208, 0.5));
  border-top-left-radius: 2px;
}
.terminal-panel::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  filter: drop-shadow(0 0 4px rgba(0, 232, 208, 0.5));
  border-bottom-right-radius: 2px;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}
.term-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: softPulse 2.8s ease-in-out infinite;
  flex-shrink: 0;
}
.term-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.term-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  height: 10px;
}
.term-bars i {
  display: block;
  width: 3px;
  background: var(--cyan-dim);
  border-radius: 1px;
  animation: barPulse 1.6s ease-in-out infinite;
}
.term-bars i:nth-child(1) { height: 4px; animation-delay: 0s; }
.term-bars i:nth-child(2) { height: 7px; animation-delay: 0.15s; }
.term-bars i:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.term-bars i:nth-child(4) { height: 6px; animation-delay: 0.45s; }
@keyframes barPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .term-bars i { animation: none; opacity: 0.8; }
}

.terminal-body {
  padding: 1.3rem 1.45rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  min-height: 200px;
}
.terminal-body .line {
  margin-bottom: 0.55rem;
  white-space: pre-wrap;
}
.terminal-body .prompt {
  color: var(--cyan);
  margin-right: 0.4rem;
}
.terminal-body .ok { color: var(--green); }
.terminal-body .cmd { color: var(--purple); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.terminal-large .terminal-body {
  min-height: 260px;
}

/* ---------- Status panel ---------- */
.status-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.status-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.status-panel:hover {
  border-color: rgba(0, 232, 208, 0.28);
  box-shadow: 0 0 28px var(--cyan-soft);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.6rem 0;
}
.status-name { color: var(--text-dim); }
.status-value {
  margin-left: auto;
  color: var(--green);
}

/* ---------- Bio / Skills ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.bio-card, .skills-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.bio-card:hover, .skills-card:hover {
  border-color: rgba(0, 232, 208, 0.32);
  background: var(--panel-hover);
  box-shadow:
    0 0 0 1px rgba(0, 232, 208, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 32px var(--cyan-soft);
}
.bio-facts {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.bio-facts > div {
  display: flex;
  gap: 0.75rem;
}
.bio-facts dt { color: var(--text-faint); min-width: 80px; }
.bio-facts dd { color: var(--cyan); }
.bio-text {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  max-width: 52ch;
}

.skills-hint {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.skills-net {
  width: 100%;
  height: auto;
  overflow: visible;
}
.skills-net .net-lines line {
  stroke: var(--border-strong);
  stroke-width: 1;
  transition: stroke 0.25s var(--ease), stroke-width 0.25s var(--ease);
}
.skills-net .net-node {
  cursor: default;
}
.skills-net .net-node circle {
  fill: var(--panel-solid);
  stroke: var(--cyan-dim);
  stroke-width: 1.4;
  transition: stroke 0.25s var(--ease), filter 0.25s var(--ease), fill 0.25s var(--ease);
}
.skills-net .net-node text {
  fill: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-anchor: middle;
  transition: fill 0.25s var(--ease);
}
.skills-net .net-node.hub circle {
  fill: rgba(0, 232, 208, 0.08);
  stroke: var(--cyan);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(0, 232, 208, 0.45));
}
.skills-net .net-node.hub text {
  fill: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}
.skills-net .net-node:hover circle,
.skills-net .net-node:focus circle {
  stroke: var(--green);
  filter: drop-shadow(0 0 8px rgba(61, 255, 122, 0.5));
}
.skills-net .net-node:hover text {
  fill: var(--text);
}

/* ---------- Games — process table ---------- */
.proc-table {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.proc-table:hover {
  border-color: rgba(0, 232, 208, 0.28);
  box-shadow: 0 0 28px var(--cyan-soft);
}
.proc-head {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr auto;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.2);
}
.proc-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.25s var(--ease);
}
.proc-row:last-child { border-bottom: none; }

.proc-row::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(0, 232, 208, 0.1), transparent);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.proc-row:hover {
  background: rgba(0, 232, 208, 0.035);
}
.proc-row:hover::before {
  left: 120%;
}

.proc-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}
.game-icon { font-size: 1.05rem; }
.proc-desc {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge-online {
  color: var(--green);
  border-color: rgba(61, 255, 122, 0.35);
  background: rgba(61, 255, 122, 0.07);
  box-shadow: 0 0 12px rgba(61, 255, 122, 0.12);
}
.badge-offline {
  color: var(--text-faint);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.1), transparent);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.project-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--panel-hover);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 30px var(--purple-glow);
}
.project-card:hover::before { left: 120%; }
.project-card h3 {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.project-card:hover .tag-list li {
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--text);
}

/* ---------- Mail server ---------- */
.mail-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.07);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.mail-panel:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 32px var(--purple-glow);
}
.mail-panel::before,
.mail-panel::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.mail-panel::before {
  top: 0; left: 0;
  border-top: 2px solid var(--purple);
  border-left: 2px solid var(--purple);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.5));
}
.mail-panel::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--purple);
  border-right: 2px solid var(--purple);
  filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.5));
}
.mail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.mail-header h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
}
.mail-desc {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.mail-specs {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.mail-spec {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s var(--ease);
}
.mail-spec:hover {
  border-color: rgba(167, 139, 250, 0.3);
}
.spec-label { color: var(--purple); }
.spec-value { color: var(--text-dim); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-built { color: var(--text-faint); }
.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a {
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--cyan); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bio-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: flex; }
  .proc-head { display: none; }
  .proc-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name status"
      "desc desc"
      "action action";
    row-gap: 0.5rem;
  }
  .proc-name { grid-area: name; }
  .proc-status { grid-area: status; justify-self: end; }
  .proc-desc { grid-area: desc; }
  .proc-action { grid-area: action; }
  .proc-action .btn { width: 100%; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 7, 10, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Smartphone */
@media (max-width: 600px) {
  .section { padding: 3.5rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .status-grid { grid-template-columns: 1fr; }
  .status-pill { display: none; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .mail-header { flex-wrap: wrap; }
}
