/* ═══════════════════════════════════════
   UJJAWAL — PORTFOLIO STYLES
   Dark handcrafted aesthetic — charcoal,
   cream, Rock Salt + Prata (igottic-style)
   ═══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ─── Base tones ─── */
  --bg-primary: #13181B;
  --bg-secondary: #191E22;
  --bg-card: #161B1E;
  --bg-card-hover: #1E2327;

  /* ─── Section backgrounds (uniform charcoal — texture shows through) ─── */
  --bg-hero: #13181B;
  --bg-green: #13181B;
  --bg-warm: #13181B;
  --bg-forest: #13181B;

  /* ─── Borders ─── */
  --border: #2B3236;
  --border-hover: #3E4A44;

  /* ─── Text ─── */
  --text-primary: #E3EAE5;
  --text-secondary: #919C94;
  --text-muted: #68716B;
  --text-on-dark: #E3EAE5;
  --text-on-dark-secondary: #919C94;

  /* ─── Accent colors — emerald / gold / sky blue ─── */
  --accent: #3DDC97;
  --accent-dim: #2FB37C;
  --accent-glow: rgba(61, 220, 151, 0.08);
  --accent-glow-strong: rgba(61, 220, 151, 0.18);
  --accent-warm: #FFC857;
  --accent-warm-glow: rgba(255, 200, 87, 0.15);
  --accent-gold: #4EA3FF;
  --accent-gold-glow: rgba(78, 163, 255, 0.12);

  /* ─── Fonts ─── */
  --font-mono: 'Inter', sans-serif;
  --font-sans: 'Prata', serif;
  --font-display: 'Rock Salt', cursive;
  --font-ui: 'Maven Pro', sans-serif;
  --font-code: 'Lucida Console', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed grunge-texture backdrop across the whole page */
body::before {
  content: ''; position: fixed; inset: 0;
  background: var(--bg-primary) url('assets/bg.jpg') center / cover no-repeat;
  pointer-events: none; z-index: 0;
}

::selection {
  background: var(--accent);
  color: #13181B;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ═══════════════════════════════════════
   SECTION WRAPS — uniform textured charcoal
   ═══════════════════════════════════════ */

.section-wrap { position: relative; background: transparent; }

/* ─── Angular tech dividers ─── */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  z-index: 1;
}
.wave-divider svg {
  width: 100%;
  height: 32px;
  display: block;
}
.wave-divider.wave-top {
  margin-top: 0;
  margin-bottom: -1px;
}


/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(19, 24, 27, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: rgba(61, 220, 151, 0.2); }

.nav-logo {
  font-family: var(--font-display);
  font-weight: 400; font-size: 0.9rem;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: none;
}
.nav-logo span { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow-strong); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--text-on-dark-secondary);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.25s, text-shadow 0.25s;
}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow-strong); }

.nav-cta {
  font-family: var(--font-ui) !important;
  font-size: 0.8rem !important;
  padding: 0.5rem 1.2rem;
  background: var(--accent) !important;
  color: #13181B !important;
  border: 1px solid var(--accent);
  border-radius: 0.125rem;
  font-weight: 700 !important;
  transition: all 0.25s !important;
}
.nav-cta:hover {
  background: transparent !important;
  color: var(--accent) !important;
  box-shadow: 0 0 20px var(--accent-glow);
  text-shadow: none !important;
}

.nav-hamburger {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--accent);
  transition: all 0.3s;
}


/* ═══════════════════════════════════════
   HERO SECTION — Deep space
   ═══════════════════════════════════════ */

.hero {
  min-height: 85vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 6rem 2rem 4rem;
  /* Line the content up with the 1100px section container below */
  padding-left: max(2rem, calc((100vw - 1100px) / 2));
  padding-right: max(2rem, calc((100vw - 1100px) / 2));
  position: relative;
  text-align: left;
  color: var(--text-on-dark);
}

/* ─── Soft warm glows (very subtle on the texture) ─── */
.hero-glow {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; pointer-events: none;
}

.hero-glow .blob {
  position: absolute; border-radius: 50%;
  filter: blur(110px);
}

.hero-glow .blob-1 {
  width: 500px; height: 450px;
  top: 15%; left: 10%;
  background: rgba(61, 220, 151, 0.045);
  animation: blobFloat1 7s ease-in-out infinite alternate;
}

.hero-glow .blob-2 {
  width: 420px; height: 380px;
  top: 20%; right: 8%;
  background: rgba(255, 200, 87, 0.05);
  animation: blobFloat2 9s ease-in-out infinite alternate;
}

.hero-glow .blob-3 {
  width: 350px; height: 320px;
  top: 35%; left: 30%;
  background: rgba(255, 200, 87, 0.03);
  animation: blobFloat3 8s ease-in-out infinite alternate;
}

.hero-glow .blob-4 {
  width: 300px; height: 280px;
  top: 10%; left: 55%;
  background: rgba(61, 220, 151, 0.035);
  animation: blobFloat2 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes blobFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, 15px) scale(1.08); }
}

@keyframes blobFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, 25px) scale(0.95); }
}

.hero-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); margin-bottom: 1.25rem;
  padding: 0.4rem 1rem; border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px; background: rgba(61, 220, 151, 0.06);
  text-transform: uppercase; letter-spacing: 0.1em;
  animation: fadeInUp 0.6s ease-out;
  position: relative; z-index: 2;
}
.hero-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  /* Rock Salt renders tall and wide — cap sizes low, breathe with line-height */
  font-size: clamp(1.35rem, 3.2vw, 2.4rem);
  font-weight: 400; line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  position: relative; z-index: 2;
  color: var(--text-on-dark);
}

.hero h1 .h1-line { display: block; }

/* On desktop the two headline lines never break internally */
@media (min-width: 769px) {
  .hero h1 .h1-line { white-space: nowrap; }
}

/* Typewriter reveal — chars are wrapped in .ch spans by script.js,
   so the layout is final from frame one (no reflow while typing) */
.hero h1 .ch { visibility: hidden; }
.hero h1 .ch.on { visibility: visible; }

/* Section titles get the same typed-in reveal when scrolled into view */
.section-title .ch,
.toolkit-head h4 .ch { visibility: hidden; }
.section-title .ch.on,
.toolkit-head h4 .ch.on { visibility: visible; }

.hero-name-grad {
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease-out 0.15s both;
  position: relative; z-index: 2;
}
.hero-role::before { content: '[ '; color: var(--text-muted); }
.hero-role::after { content: ' ]'; color: var(--text-muted); }

.hero p {
  font-size: 1.05rem; color: var(--text-on-dark-secondary);
  max-width: 560px; line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  position: relative; z-index: 2;
}

.hero-quote {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  max-width: 640px;
  line-height: 1.95;
  color: var(--text-on-dark-secondary);
  margin-bottom: 0;
}

/* Highlighted phrases inside the hero quote */
.hero-quote .hl-cyan {
  color: var(--accent);
  font-weight: 500;
}
.hero-quote .hl-violet {
  color: var(--accent-warm);
  font-weight: 500;
}

/* ─── Hero stat strip ─── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  margin-top: 1.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  animation: fadeInUp 0.6s ease-out 0.3s both;
  position: relative; z-index: 2;
}

.hero-stat {
  background: rgba(19, 24, 27, 0.75);
  padding: 0.85rem 1.1rem 0.9rem;
  border-top: 2px solid var(--accent);
}

.hero-stat-num {
  font-family: var(--font-ui);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-cyan { border-top-color: var(--accent); }
.stat-cyan .hero-stat-num { color: var(--accent); }
.stat-violet { border-top-color: var(--accent-warm); }
.stat-violet .hero-stat-num { color: var(--accent-warm); }
.stat-pink { border-top-color: #FFC857; }
.stat-pink .hero-stat-num { color: #FFC857; }
.stat-gold { border-top-color: var(--accent-gold); }
.stat-gold .hero-stat-num { color: var(--accent-gold); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════ */

section { padding: 2.25rem 2rem; max-width: 1100px; margin: 0 auto; position: relative; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 400; letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-on-dark);
}
.section-title::after {
  content: ''; display: block;
  width: 64px; height: 1px; margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 500px; margin-bottom: 2rem;
}

/* Section-specific tints (kept subtle within the warm palette) */
.section-forest .section-title { color: var(--text-on-dark); }
.section-forest .section-desc { color: var(--text-on-dark-secondary); }


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.service-card {
  padding: 2rem; background: var(--bg-secondary);
  transition: all 0.3s; cursor: default; position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { background: var(--bg-card-hover); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  font-size: 1.4rem; margin-bottom: 1rem;
  width: 40px; height: 40px; display: flex;
  align-items: center; justify-content: center;
  background: var(--accent-glow); border-radius: 2px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6;
}


/* ═══════════════════════════════════════
   PORTFOLIO — Holo panels
   ═══════════════════════════════════════ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: all 0.35s; cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px var(--accent-glow);
}
.project-card.video-active:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px var(--accent-glow-strong);
}

.project-thumb {
  width: 100%; aspect-ratio: 16/10;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

.project-thumb img,
.project-thumb iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  border: none;
}

.project-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  background: rgba(19, 24, 27, 0.35);
  transition: background 0.3s;
}
.project-card:hover .project-play {
  background: rgba(19, 24, 27, 0.5);
}

.project-play::before {
  content: '';
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(61, 220, 151, 0.1);
  border: 2px solid rgba(61, 220, 151, 0.5);
  position: absolute;
  transition: all 0.3s;
}
.project-card:hover .project-play::before {
  background: rgba(61, 220, 151, 0.25);
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-glow-strong);
}

.project-play {
  font-size: 1.2rem;
  color: #ffffff;
}

/* ─── "Coming soon" placeholder cards ─── */
.project-card-soon {
  cursor: default;
}
.project-card-soon:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.project-card-soon .project-thumb {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}
.project-soon-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border: 1px dashed rgba(61, 220, 151, 0.4);
  border-radius: 2px;
}
.project-card-soon .project-hint {
  color: var(--text-muted);
}

/* ─── Video Lightbox Modal ─── */
.video-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.video-modal.active {
  opacity: 1; visibility: visible;
}

.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 13, 15, 0.85);
  backdrop-filter: blur(10px);
}

.video-modal-content {
  position: relative; z-index: 1;
  width: 90%; max-width: 860px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 60px rgba(61, 220, 151, 0.1), 0 24px 60px rgba(0,0,0,0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.active .video-modal-content {
  transform: scale(1) translateY(0);
}

/* Scroll container so long writeups + code fit on screen */
.video-modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
}
.video-modal-scroll::-webkit-scrollbar { width: 8px; }
.video-modal-scroll::-webkit-scrollbar-track { background: var(--bg-card); }
.video-modal-scroll::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 0; }

.video-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 3;
  width: 36px; height: 36px; border-radius: 2px;
  background: rgba(19, 24, 27, 0.9);
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.video-modal-close:hover {
  background: var(--accent);
  color: #13181B;
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow-strong);
}

.video-modal-player {
  width: 100%; aspect-ratio: 16/9;
  background: #000;
  position: relative;
}
.video-modal-player iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-modal-info {
  padding: 1.75rem;
}
.video-modal-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.02em; line-height: 1.6;
  margin-bottom: 0.75rem;
  color: var(--text-on-dark);
}

/* ─── Tech chips in modal ─── */
.vm-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.vm-tech-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.3rem 0.7rem; border-radius: 2px;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(61, 220, 151, 0.3);
}

/* ─── Case-study sections ─── */
.vm-section { margin-bottom: 1.25rem; }
.vm-section h4 {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.4rem;
}
.vm-section p {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Code block ─── */
.vm-code-wrap {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  background: #0E1215;
}
.vm-code-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-gold);
  padding: 0.6rem 1rem;
  background: rgba(61, 220, 151, 0.04);
  border-bottom: 1px solid rgba(61, 220, 151, 0.12);
}
.vm-code {
  margin: 0; padding: 1.1rem 1.2rem;
  overflow-x: auto;
}
.vm-code code {
  font-family: var(--font-code); font-size: 0.78rem;
  line-height: 1.65; color: #C9D4CC;
  white-space: pre;
}
.vm-code::-webkit-scrollbar { height: 7px; }
.vm-code::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.vm-code::-webkit-scrollbar-thumb { background: rgba(61, 220, 151, 0.25); border-radius: 0; }

/* ─── Link buttons ─── */
.vm-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.vm-link {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700;
  text-decoration: none; padding: 0.65rem 1.3rem;
  border-radius: 0.125rem; transition: all 0.25s;
  border: 1px solid var(--border); color: var(--text-secondary);
  background: var(--bg-card);
}
.vm-link:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--accent-glow);
}
.vm-link-primary {
  background: var(--accent); color: #13181B; border-color: var(--accent);
}
.vm-link-primary:hover {
  background: #5AE8AB; color: #13181B; border-color: #5AE8AB;
  box-shadow: 0 0 24px var(--accent-glow-strong);
}

.project-info { padding: 1.25rem; }
.project-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-on-dark); }
.project-info p { font-size: 0.82rem; color: var(--text-secondary); }

.project-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem; margin-top: 0.9rem;
}

/* Hide the View Code button on the Guess Wrong Die card */
.project-card[data-id="3_BvsgZOhW4"] .project-code-link { display: none; }

.project-code-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em; text-decoration: none;
  color: var(--accent-warm);
  background: var(--accent-warm-glow);
  border: 1px solid rgba(255, 200, 87, 0.45);
  border-radius: 2px;
  transition: all 0.3s;
}
.project-code-link .code-icon {
  width: 0.95rem; height: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.project-code-link:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 200, 87, 0.4);
  transform: translateY(-1px);
}
.project-code-link:hover .code-icon {
  transform: rotate(-8deg) scale(1.1);
}

.project-hint {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.02em;
  background: var(--accent-glow);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 2px;
  transition: all 0.3s;
}
.project-card:not(.project-card-soon):hover .project-hint {
  background: var(--accent);
  border-color: var(--accent);
  color: #13181B;
  box-shadow: 0 0 18px var(--accent-glow-strong);
}

/* "View Details" reveal over the thumbnail on hover — strong click affordance */
.project-thumb::after {
  content: 'View Project →';
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em;
  font-weight: 400; color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow-strong);
  background: rgba(19, 24, 27, 0.78);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:not(.project-card-soon):hover .project-thumb::after {
  opacity: 1;
}
.project-card:not(.project-card-soon):hover .project-play {
  opacity: 0;
}

.project-coming-soon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); letter-spacing: 0.05em;
  background: var(--bg-card);
  border: 1px dashed var(--border-hover);
}

.portfolio-more { margin-top: 2rem; text-align: center; }
.portfolio-more a {
  font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700;
  color: #13181B; text-decoration: none;
  border: 1px solid var(--accent); padding: 0.75rem 1.7rem;
  border-radius: 0.125rem; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
}
.portfolio-more a:hover {
  background: transparent; color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════
   EXPERIENCE — Career-log timeline
   ═══════════════════════════════════════ */

.timeline {
  position: relative;
  max-width: 720px;
  padding-left: 40px;
  margin-top: 1rem;
}

/* Dim rail running top → bottom */
.timeline-track {
  position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--border);
}

/* Neon line that draws itself in as you scroll (height set by JS) */
.timeline-progress {
  position: absolute; left: 8px; top: 4px;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 12px var(--accent-glow-strong);
  transition: height 0.15s linear;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0.5rem; }

/* Diamond node sitting on the rail */
.timeline-node {
  position: absolute; left: -36.5px; top: 5px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--bg-primary);
  border: 2px solid var(--border-hover);
  transition: all 0.4s;
}
.timeline-item.lit .timeline-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow-strong);
}

.timeline-date {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.14em; margin-bottom: 0.4rem;
  transition: color 0.4s;
}
.timeline-item.lit .timeline-date { color: var(--accent); }

.timeline-role {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}

.timeline-org {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-warm); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.9rem;
}
.timeline-org::before { content: '@ '; color: var(--text-muted); }

.timeline-points {
  list-style: none;
}
.timeline-points li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.timeline-points li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent);
}

/* Education heading, sitting between the two timelines */
.edu-head { margin-top: 3.5rem; }

/* Single-entry timeline: no rail to draw, so the node is simply always lit */
.timeline-plain .timeline-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow-strong);
}
.timeline-plain .timeline-date { color: var(--accent); }

/* ─── Skills toolkit panel ─── */
.toolkit { margin-top: 2.5rem; }

.toolkit-head { margin-bottom: 1.25rem; }
/* Same look as .section-title — display font, size, and accent underline */
.toolkit-head h4 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 400; letter-spacing: 0;
  line-height: 1.6;
  color: var(--text-on-dark);
}
.toolkit-head h4::after {
  content: ''; display: block;
  width: 64px; height: 1px; margin-top: 0.9rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.toolkit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}

.toolkit-cell {
  background: var(--bg-secondary);
  padding: 1.5rem 1.75rem;
}

.toolkit-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.toolkit-label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

/* Per-category label colors — emerald / gold / blue rotation */
.toolkit-cell:nth-child(1) .toolkit-label { color: #3DDC97; }
.toolkit-cell:nth-child(2) .toolkit-label { color: #FFC857; }
.toolkit-cell:nth-child(3) .toolkit-label { color: #4EA3FF; }
.toolkit-cell:nth-child(4) .toolkit-label { color: #3DDC97; }
.toolkit-cell:nth-child(5) .toolkit-label { color: #FFC857; }
.toolkit-cell:nth-child(6) .toolkit-label { color: #4EA3FF; }

.toolkit-cell p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   SOCIAL / CONTACT ICONS
   ═══════════════════════════════════════ */

.social-icon {
  width: 22px; height: 22px;
  color: var(--accent); flex-shrink: 0;
}

.discord-box-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.twitter-box {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: rgba(61, 220, 151, 0.04); border: 1px solid var(--border);
  border-radius: 4px; text-decoration: none;
  transition: all 0.3s; cursor: pointer;
}
.twitter-box:hover { border-color: var(--accent); }
.twitter-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-on-dark-secondary); text-transform: uppercase;
  letter-spacing: 0.1em;
}
.twitter-handle {
  font-family: var(--font-mono); font-size: 1rem;
  font-weight: 600; color: var(--text-on-dark);
}
.twitter-arrow {
  margin-left: auto; color: var(--text-on-dark-secondary);
  font-family: var(--font-mono); font-size: 1rem;
  transition: color 0.3s;
}
.twitter-box:hover .twitter-arrow { color: var(--accent); }

/* ─── Contact link boxes (LinkedIn / Email / Discord) ─── */
.contact-link-box {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; padding: 1.25rem 1.5rem;
  background: rgba(61, 220, 151, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px; text-decoration: none;
  transition: all 0.3s; cursor: pointer;
}
.contact-link-box:hover {
  border-color: var(--accent);
  background: rgba(61, 220, 151, 0.06);
  box-shadow: 0 0 20px var(--accent-glow);
}
.contact-link-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-on-dark-secondary); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.2rem;
}
.contact-copy-hint { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.contact-link-handle {
  font-family: var(--font-mono); font-size: 0.95rem;
  font-weight: 600; color: var(--text-on-dark);
  word-break: break-all;
}
.contact-link-arrow {
  margin-left: auto; color: var(--text-on-dark-secondary);
  font-family: var(--font-mono); font-size: 1.1rem;
  transition: color 0.3s; flex-shrink: 0;
}
.contact-link-box:hover .contact-link-arrow { color: var(--accent); }


/* ═══════════════════════════════════════
   CONTACT — Near-black terminal
   ═══════════════════════════════════════ */

.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.section-forest .contact-left h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text-on-dark); }
.section-forest .contact-left p {
  color: var(--text-on-dark-secondary); font-size: 0.92rem;
  margin-bottom: 2rem; line-height: 1.7;
}

.discord-box {
  background: rgba(61, 220, 151, 0.04); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem; cursor: pointer;
  transition: all 0.3s; position: relative;
}
.discord-box:hover { border-color: var(--accent); }
.discord-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-on-dark-secondary); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.discord-handle {
  font-family: var(--font-mono); font-size: 1.2rem;
  font-weight: 600; color: var(--text-on-dark);
}
.discord-copy {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-on-dark-secondary); margin-top: 0.5rem;
}

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
  padding: 1.5rem; background: rgba(61, 220, 151, 0.03);
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; gap: 1rem;
}
.contact-icon {
  width: 42px; height: 42px; border-radius: 2px;
  background: var(--accent-gold-glow); display: flex;
  align-items: center; justify-content: center;
  color: var(--accent-gold); font-size: 1rem; flex-shrink: 0;
}
.contact-card h4 { font-size: 0.9rem; margin-bottom: 0.15rem; color: var(--text-on-dark); }
.contact-card p { font-size: 0.8rem; color: var(--text-on-dark-secondary); }


/* ═══════════════════════════════════════
   FOOTER — Terminal strip
   ═══════════════════════════════════════ */

footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(61, 220, 151, 0.15);
  padding: 2rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-on-dark-secondary);
  background: transparent;
}
footer a {
  color: var(--accent); text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}
footer a:hover { color: #5AE8AB; text-shadow: 0 0 12px var(--accent-glow-strong); }


/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════ */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}


/* ═══════════════════════════════════════
   MOBILE RESPONSIVE (phones & tablets)
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(19, 24, 27, 0.96); border-bottom: 1px solid rgba(61, 220, 151, 0.2);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem; gap: 1rem;
  }
  .about-content, .contact-content {
    grid-template-columns: 1fr;
  }
  section { padding: 2rem 1.25rem; }
  .hero { padding: 7rem 1.25rem 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .wave-divider svg { height: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
