/* ================================================================
   SHAIK MUZAHID PORTFOLIO — OBSIDIAN + AMBER
   style.css
   ================================================================ */

/* ── Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Core palette */
  --obsidian:       #080708;
  --void:           #0c0b0d;
  --surface:        #111013;
  --card:           #181619;
  --card-raise:     #1e1b1f;
  --border:         rgba(255,170,0,0.10);
  --border-bright:  rgba(255,170,0,0.35);
  --border-subtle:  rgba(255,255,255,0.05);

  /* Amber spectrum */
  --amber:          #ffaa00;
  --amber-bright:   #ffcc44;
  --amber-deep:     #cc8800;
  --amber-glow:     rgba(255,170,0,0.12);
  --amber-glow-md:  rgba(255,170,0,0.22);
  --amber-glow-str: rgba(255,170,0,0.40);

  /* Text */
  --white:          #f5f0e8;
  --muted:          #6b6070;
  --muted-bright:   #9a8fa0;

  /* Accents */
  --warm-white:     rgba(245,240,232,0.85);
  --ember:          #ff6b35;

  /* Typography */
  --font-display:   'Playfair Display', serif;
  --font-sans:      'Space Grotesk', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Sizing */
  --nav-h:          64px;
  --radius:         2px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Noise grain overlay ───────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--amber-deep); border-radius: 2px; }

/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--amber), 0 0 20px var(--amber-glow-md);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(255,170,0,0.45);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
body.cursor-hover .cursor-dot  { width: 12px; height: 12px; }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: var(--amber); }

/* ================================================================
   PROGRESS NAV BAR
   ================================================================ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-bright));
  z-index: 600;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--amber-glow-str);
}

nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: rgba(8,7,8,0.82);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo-pipe {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.nav-logo-pipe span {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: logoPulse 1.8s ease infinite;
}
.nav-logo-pipe span:nth-child(2) { animation-delay: 0.3s; background: var(--amber-bright); }
.nav-logo-pipe span:nth-child(3) { animation-delay: 0.6s; background: var(--amber-deep); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-bright);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-contact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--border-bright);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-contact:hover {
  background: var(--amber-glow);
  box-shadow: 0 0 20px var(--amber-glow-md);
}

.nav-resume {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--amber);
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-resume:hover {
  background: var(--amber-bright);
  box-shadow: 0 0 24px var(--amber-glow-str);
}

/* ================================================================
   PARTICLE CANVAS (global background)
   ================================================================ */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
section {
  position: relative;
  z-index: 2;
  padding: 9rem 5rem;
}
.section-inner { max-width: 1300px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0.3;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--amber);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ================================================================
   HERO
   ================================================================ */
#home {  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5rem;
  padding-top: calc(var(--nav-h) + 2rem);
  position: relative;
  overflow: hidden;
}

/* Radial ambient glow behind hero */
/* #hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 70%;
  transform: translate(-50%, -50%);
  width: 80vw; height: 80vh;
  background: radial-gradient(ellipse, rgba(255,170,0,0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
} */

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFade 0.8s ease 0.4s forwards;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  animation: ambientPulse 2s ease infinite;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: heroFade 0.9s ease 0.6s forwards;
}
.hero-name .n1 { display: block; color: var(--white); }
.hero-name .n2 {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,170,0,0.6);
  position: relative;
}
.hero-name .n2::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  color: var(--amber);
  clip-path: inset(0 100% 0 0);
  animation: textReveal 1.2s ease 1.2s forwards;
  filter: drop-shadow(0 0 30px rgba(255,170,0,0.5));
}

.hero-role-wrap {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: var(--muted-bright);
  margin-bottom: 1.8rem;
  height: 1.6em;
  opacity: 0;
  animation: heroFade 0.8s ease 0.8s forwards;
}
.hero-role-prefix { color: var(--amber); margin-right: 0.4em; }
#hero-typewriter { color: var(--white); }
.cursor-blink {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--amber);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,240,232,0.6);
  max-width: 560px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: heroFade 0.8s ease 1s forwards;
}
.hero-tagline strong { color: var(--white); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFade 0.8s ease 1.2s forwards;
}

.btn-amber {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--amber);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.btn-amber::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-amber:hover { background: var(--amber-bright); box-shadow: 0 0 40px var(--amber-glow-str); }
.btn-amber:hover::before { left: 100%; }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--border-bright);
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}
.btn-ghost:hover {
  background: var(--amber-glow);
  box-shadow: 0 0 24px var(--amber-glow-md);
  border-color: var(--amber);
}

/* Hero right side — floating code blocks */
/* ── Geo canvas (replaces code blocks) ── */
.hero-geo-wrap {
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 340px;
  height: 340px;
  opacity: 0;
  animation: heroFade 1.2s ease 1.2s forwards;
}

#geo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 3rem; left: 5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: heroFade 1s ease 1.6s forwards;
}
.hero-scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40%;
  height: 100%;
  background: var(--amber-bright);
  animation: scanLine 2s linear infinite;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ================================================================
   ABOUT
   ================================================================ */
#about { background: var(--void); }

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(245,240,232,0.65);
  font-weight: 300;
  margin-bottom: 1.6rem;
}
.about-body p strong { color: var(--white); font-weight: 500; }
.about-body p em { color: var(--amber); font-style: normal; font-weight: 500; }

.about-origin {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--surface);
  border-left: 3px solid var(--amber);
  position: relative;
  overflow: hidden;
}
.about-origin::before {
  content: '"';
  position: absolute;
  top: -1rem; left: 1rem;
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(255,170,0,0.06);
  line-height: 1;
  pointer-events: none;
}
.about-origin p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--warm-white);
  line-height: 1.7;
  margin: 0;
}

/* Terminal card */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--amber);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(255,170,0,0.04);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,170,0,0.05);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot-r { background: #ff5f57; }
.t-dot-y { background: #febc2e; }
.t-dot-g { background: #28c840; }
.t-filename {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-bright);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
}
.t-line { display: block; }
.t-prompt { color: var(--amber); }
.t-key    { color: #bd93f9; }
.t-str    { color: #a8e6a3; }
.t-num    { color: var(--amber-bright); }
.t-cmt    { color: #454050; }
.t-cmd    { color: var(--white); }

/* Achievements */
.achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.ach-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.ach-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,170,0,0.05), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.ach-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(255,170,0,0.08); }
.ach-card:hover::after { opacity: 1; }
.ach-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.ach-title { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.ach-desc  { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-bright); line-height: 1.5; }

/* ================================================================
   STATS BAR
   ================================================================ */
#stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.stats-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1300px;
  margin: 0 auto;
}
.stat-item {
  padding: 3.5rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,170,0,0.03); }
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  box-shadow: 0 0 8px var(--amber);
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(255,170,0,0.4));
  display: block;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-bright);
  line-height: 1.5;
}

/* ================================================================
   SKILLS — CIRCUIT BOARD
   ================================================================ */
#skills { background: var(--obsidian); padding-top: 3rem; padding-bottom: 5rem; }

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.skills-intro p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
  margin-top: 1rem;
}
.skills-intro .hint {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

/* ── Pipeline Dropdown ── */
.pipeline-select-wrapper {
  margin-top: 1.4rem;
}
.pipeline-select-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
  margin-bottom: 0.55rem;
}
.pipeline-select-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 280px;
}
.pipeline-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8,7,8,0.85);
  border: 1px solid rgba(255,170,0,0.35);
  border-left: 3px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.pipeline-select:hover,
.pipeline-select:focus {
  border-color: rgba(255,170,0,0.7);
  background: rgba(255,170,0,0.06);
  box-shadow: 0 0 12px rgba(255,170,0,0.18), inset 0 0 6px rgba(255,170,0,0.05);
}
.pipeline-select option {
  background: #0e0c0e;
  color: var(--amber);
}
.pipeline-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0.7;
}

/* Circuit Board Canvas */
#circuit-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 580px;
  display: block;
  cursor: none;
}

/* ======================================================
   CIRCUIT LABELS + SPACING
====================================================== */

#circuit-canvas {
  min-height: 720px;   /* gives breathing space */
}

.circuit-labels {
  position: relative;
  pointer-events: none;
  font-family: var(--font-mono);
}

.label-era {
  position: absolute;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
}

/* LEFT ERA */
.label-rbi {
  left: 6%;
  top: 10%;
}

/* RESO TOP RIGHT */
.label-reso {
  right: 18%;
  top: 4%;
}

/* RETS MID RIGHT */
.label-rets {
  right: 18%;
  top: 42%;
}

/* MAPPING SYNC PIPELINE LABEL */
.label-sync {
  right: 6%;
  top: 28%;
  color: var(--amber-bright);
}


/* Skill info panel (on hover) */
.skill-info-panel {
  margin-top: 1.2rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--amber);
  min-height: 80px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(6px);
}
.skill-info-panel.show { opacity: 1; transform: translateY(0); }
.sip-name { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; color: var(--amber); margin-bottom: 0.3rem; }
.sip-cat  { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-bright); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; display: none; }
.sip-desc { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(245,240,232,0.65); line-height: 1.6; }

/* ================================================================
   JOURNEY — GROWTH CURVE GRAPH
   ================================================================ */
#journey { background: var(--void); overflow: visible; padding-top: 7rem; }

.journey-intro { max-width: 700px; margin-bottom: 2rem; }
.journey-intro p { font-size: 1.05rem; line-height: 1.8; color: rgba(245,240,232,0.6); font-weight: 300; margin-top: 1.5rem; }

/* Graph wrapper */
.growth-graph-wrapper {
  width: 100%;
}

.growth-graph-container {
  position: relative;
  width: 100%;
  user-select: none;
}

/* SVG canvas */
#growth-svg {
  width: 100%;
  height: 420px;
  display: block;
  overflow: visible;
}

/* ── Tooltip Cards ────────────────────────────────────────────── */
.gc-tooltip {
  position: absolute;
  width: 320px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.gc-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gc-tooltip-inner {
  background: var(--card);
  border: 1px solid rgba(255,170,0,0.25);
  border-top: 2px solid var(--amber);
  padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(255,170,0,0.06);
  max-height: 330px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--amber-deep) transparent;
}
.gc-tooltip-inner::-webkit-scrollbar { width: 3px; }
.gc-tooltip-inner::-webkit-scrollbar-thumb { background: var(--amber-deep); border-radius: 2px; }

/* Connector line drawn by JS (SVG element inside #growth-svg, class gc-connector) */
.gc-connector {
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Mobile: tap mode */
@media (max-width: 768px) {
  #growth-svg { height: 280px; }
  .gc-tooltip {
    position: static !important;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    display: none;
    margin-top: 1.5rem;
  }
  .gc-tooltip.mobile-show { display: block; }
  .gc-tooltip-inner { max-height: none; }
}

.sp-era {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.sp-company {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-bright);
  margin-bottom: 0.5rem;
}
.sp-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.sp-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sp-tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted-bright);
  background: rgba(255,170,0,0.06);
  border: 1px solid rgba(255,170,0,0.15);
  padding: 0.25rem 0.65rem;
  transition: all 0.2s;
}
.sp-tag:hover { color: var(--amber); border-color: var(--amber); }

.sp-metrics {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.sp-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sp-metric-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.sp-metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  box-shadow: 0 0 6px rgba(255,170,0,0.4);
  width: 0;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.sp-metric-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--muted-bright);
  min-width: 100px;
  text-align: right;
}
.sp-metric-label span { color: var(--amber); font-weight: 600; }

/* "Currently" badge */
.sp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.sp-status-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: ambientPulse 1.5s ease infinite;
}

/* ================================================================
   CONTACT
   ================================================================ */
#contact { background: var(--obsidian); padding: 9rem 5rem 12rem; }

.contact-lede {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(245,240,232,0.6);
  font-weight: 300;
}

.contact-cta-btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--amber);
  border: none;
  padding: 1.4rem 3.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  position: relative;
  overflow: hidden;
}
.contact-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-200%);
  transition: transform 0.6s ease;
}
.contact-cta-btn:hover {
  background: var(--amber-bright);
  box-shadow: 0 0 50px var(--amber-glow-str);
  transform: translateY(-3px);
}
.contact-cta-btn:hover::after { transform: translateX(200%); }

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 4rem auto 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.contact-options.show {
  opacity: 1;
  max-height: 400px;
}

.contact-option {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.contact-option::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.contact-option:hover {
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--amber-glow-md);
  transform: translateY(-8px);
}
.contact-option:hover::before { transform: scaleX(1); }

.co-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 12px rgba(255,170,0,0.4));
}
.co-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}
.co-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5rem;
  text-align: center;
}
.footer-center {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes heroFade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes textReveal { to { clip-path: inset(0 0% 0 0); } }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes scanLine { 0% { left: -50%; } 100% { left: 150%; } }
@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ambientPulse {
  0%,100% { box-shadow: 0 0 6px var(--amber), 0 0 12px rgba(255,170,0,0.3); }
  50% { box-shadow: 0 0 14px var(--amber), 0 0 28px rgba(255,170,0,0.5); }
}
@keyframes logoPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  section { padding: 7rem 3rem; }
  nav { padding: 0 3rem; }
  .about-layout { grid-template-columns: 1fr; gap: 4rem; }
  .skills-layout { grid-template-columns: 1fr; }
  #circuit-canvas { max-width: 100%; }
  .story-panels { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
  .hero-orbs { display: none; }
  .hero-geo-wrap { width: 260px; height: 260px; right: 2rem; }
  .stats-track { grid-template-columns: 1fr 1fr; }
  footer { padding: 2rem 3rem; }
}
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  #home { padding: 0 1.5rem; }
  .hero-name { font-size: 3.5rem; }
  .hero-scroll { left: 1.5rem; }
  .hero-geo-wrap { display: none; }
  .stats-track { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .achievements { grid-template-columns: 1fr; }
}


/* ──────────────────────────────────────────────────────────────
   TERMINAL TYPING ANIMATION — added for animated profile.json
   ────────────────────────────────────────────────────────────── */
@keyframes termCursorBlink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.t-cursor {
  display: inline-block;
  color: var(--amber);
  animation: termCursorBlink 1s step-start infinite;
  font-family: var(--font-mono);
}
/* Smooth height growth as lines are injected */
#terminal-body {
  transition: min-height 0.2s ease;
  min-height: 2.4rem; /* just enough to show cursor before typing starts */
}
