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

/* ══════════════════════════════════════════════
   THEME TOKENS
   :root = dark (default). data-theme="light" is set
   by an inline <head> script before first paint,
   from localStorage or the OS colour-scheme.
   ══════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* backgrounds */
  --hero-bg:      #0C1829;
  --about-bg:     #0E1D30;
  --projects-bg:  #0C1829;
  --workflow-bg:  #0E1D30;
  --contact-bg:   #071120;
  --bg-deep:      #071120;
  --surface:      #1A2E4A;
  --surface-2:    #112040;
  --nav-bg:       rgba(12,24,41,0.95);
  --nav-menu-bg:  rgba(14,29,48,0.98);
  --card-shadow:  none;

  /* text */
  --text-strong:  #ffffff;
  --white:        #EFF4FF;
  --ink:          #EFF4FF;
  --text:         #EFF4FF;
  --off-white:    #E6EDF8;
  --ink-mid:      #B8CCDF;
  --ink-light:    #6B8CAE;
  --muted:        #8BAAC8;
  --text-soft:    rgba(255,255,255,0.66);  /* tertiary body — bumped from .5/.55 */
  --text-label:   rgba(255,255,255,0.62);  /* small labels — bumped from .35 */
  --text-faint:   rgba(255,255,255,0.42);  /* footer copy */
  --placeholder:  rgba(255,255,255,0.42);  /* form placeholders — bumped from .2 */

  /* borders */
  --border:       rgba(255,255,255,0.08);
  --border-soft:  rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.12);
  --border-strong:rgba(255,255,255,0.15);
  --bullet:       rgba(255,255,255,0.22);

  /* surfaces for chips / inputs / ghost button */
  --chip-bg:        rgba(255,255,255,0.06);
  --input-bg:       rgba(255,255,255,0.06);
  --ghost-bg:       rgba(255,255,255,0.08);
  --ghost-bg-hover: rgba(255,255,255,0.14);
  --ghost-text:     rgba(255,255,255,0.75);
  --hamburger:      rgba(255,255,255,0.7);

  /* accents */
  --blue:         #2979FF;
  --blue-light:   #1A2E4A;
  --blue-mid:     #5B9EFF;
  --gold:         #F5A623;
  --gold-light:   #2A2010;
  --gold-mid:     #FFBE5C;
  --teal-light:   rgba(13,173,160,0.15);

  --focus-ring:   #ffffff;
  --error:        #FF6B6B;
}

:root[data-theme="light"] {
  color-scheme: light;

  /* backgrounds */
  --hero-bg:      #EEF3FA;
  --about-bg:     #FFFFFF;
  --projects-bg:  #EEF3FA;
  --workflow-bg:  #FFFFFF;
  --contact-bg:   #E7EEF7;
  --bg-deep:      #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #F4F8FF;
  --nav-bg:       rgba(238,243,250,0.95);
  --nav-menu-bg:  rgba(255,255,255,0.98);
  --card-shadow:  0 1px 2px rgba(11,27,48,0.06), 0 10px 28px rgba(11,27,48,0.06);

  /* text */
  --text-strong:  #0B1B30;
  --white:        #12233B;
  --ink:          #12233B;
  --text:         #12233B;
  --off-white:    #1B2C44;
  --ink-mid:      #33475F;
  --ink-light:    #5A6B7E;
  --muted:        #4A6076;
  --text-soft:    rgba(11,27,48,0.66);
  --text-label:   rgba(11,27,48,0.62);
  --text-faint:   rgba(11,27,48,0.45);
  --placeholder:  rgba(11,27,48,0.42);

  /* borders */
  --border:       rgba(11,27,48,0.10);
  --border-soft:  rgba(11,27,48,0.08);
  --border-mid:   rgba(11,27,48,0.14);
  --border-strong:rgba(11,27,48,0.22);
  --bullet:       rgba(11,27,48,0.25);

  /* surfaces for chips / inputs / ghost button */
  --chip-bg:        rgba(11,27,48,0.05);
  --input-bg:       #FFFFFF;
  --ghost-bg:       rgba(11,27,48,0.05);
  --ghost-bg-hover: rgba(11,27,48,0.10);
  --ghost-text:     #33475F;
  --hamburger:      rgba(11,27,48,0.7);

  /* accents — darkened for contrast on light surfaces */
  --blue:         #2979FF;
  --blue-light:   #E4ECFF;
  --blue-mid:     #1A5FD4;
  --gold:         #9A5B00;
  --gold-light:   #FBEFD8;
  --gold-mid:     #8A5200;
  --teal-light:   rgba(13,120,110,0.14);

  --focus-ring:   #0B1B30;
  --error:        #C0392B;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--blue); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px;
  font-size: 14px; font-weight: 500; text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--hero-bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px;
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--text-soft);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-mid); }
.nav-links a i { font-size: 13px; vertical-align: -1px; margin-right: 5px; opacity: 0.55; }

/* ── THEME TOGGLE (fixed, lower-right) ── */
.theme-toggle {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem);
  z-index: 300;
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--nav-bg); color: var(--text-soft);
  border: 1px solid var(--border-mid); border-radius: 50%;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  cursor: pointer; font-size: 16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex; align-items: center;
  padding: 100px clamp(1.5rem, 5vw, 3rem) 5rem;
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
@keyframes nebulaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.05); }
  66%       { transform: translate(-15px, 10px) scale(0.97); }
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.hero-kicker i { font-size: 13px; animation: blink 2s infinite; color: var(--gold); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 400; line-height: 1.0;
  letter-spacing: -2px; color: var(--text-strong);
  margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards;
}
.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-soft);
  font-weight: 300; margin-bottom: 1.5rem; line-height: 1.5;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.hero-tagline strong { color: var(--blue-mid); font-weight: 500; }
.hero-desc {
  font-size: 15px; color: var(--text-soft);
  max-width: 480px; line-height: 1.8; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}
.hero-ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.8s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 11px 24px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all 0.2s; border: 1px solid transparent;
}
.btn i { margin-right: 6px; vertical-align: -2px; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1a5fd4; transform: translateY(-1px); }
button.btn-primary { font-family: 'Inter', sans-serif; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--ghost-bg); color: var(--ghost-text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--ghost-bg-hover); color: var(--text); }

/* ── SECTION WRAPPER ── */
.section-wrap { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.section-rule { flex: 1; height: 1px; }

/* ── ABOUT ── */
#about { background: var(--about-bg); }
#about .section-label { color: var(--gold); }
#about .section-rule { background: rgba(245,166,35,0.15); }

.about-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }

.about-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 2rem;
}
.about-headline em { font-style: italic; color: var(--gold); }

.about-pillars { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }
.about-pillar {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(41,121,255,0.15);
}
.about-pillar:first-child { border-top: 1px solid rgba(41,121,255,0.15); }
.about-pillar-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.about-pillar-text { padding-top: 2px; }
.about-pillar-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.about-pillar-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  padding: 2rem;
  position: sticky; top: 72px;
}
.about-card-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-label);
  margin-bottom: 1.5rem;
}
.about-stats { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.75rem; }
.about-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.about-stat:first-child { border-top: 1px solid var(--border-soft); }
.about-stat-label { font-size: 14px; color: var(--text-soft); }
.about-stat-val { font-family: 'Outfit', sans-serif; font-size: 20px; color: var(--text-strong); letter-spacing: -0.3px; }
.about-stat-val--md { font-size: 15px; }
.about-stat-val span { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--gold); font-weight: 500; margin-left: 4px; vertical-align: 2px; }

.about-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.about-tag {
  font-size: 11px; padding: 4px 12px;
  border: 1px solid var(--border-mid); border-radius: 100px;
  color: var(--text-soft); background: transparent;
  transition: all 0.2s; cursor: default;
}
.about-tag:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── SKILLS ── */
#skills { background: var(--about-bg); }
#skills .section-label { color: var(--gold); }
#skills .section-rule { background: rgba(13,173,160,0.2); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-cell {
  background: var(--surface); padding: 1.5rem; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: var(--card-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.skill-cell:hover { border-color: var(--gold); transform: translateY(-2px); }
.skill-cell-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.875rem; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.skill-list li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.skill-list li::before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--bullet); flex-shrink: 0; }
.skill-list li.strong { color: var(--text); font-weight: 500; }
.skill-list li.strong::before { background: var(--blue); }

/* ── EXPERIENCE ── */
#experience { background: var(--about-bg); }
#experience .section-label { color: var(--gold); }
#experience .section-rule { background: rgba(245,158,11,0.2); }
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border-soft);
}
.exp-item:first-child { padding-top: 0; }
.exp-meta { padding-top: 3px; }
.exp-period { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; }
.exp-type { display: inline-block; font-size: 11px; padding: 2px 10px; background: rgba(245,166,35,0.12); color: var(--gold-mid); border-radius: 4px; }
.exp-role { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.exp-company { font-size: 14px; color: var(--gold); margin-bottom: 0.75rem; }
.exp-desc { font-size: 14px; color: var(--muted); line-height: 1.75; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.exp-bullets li { font-size: 14px; color: var(--text-soft); padding-left: 16px; position: relative; line-height: 1.6; }
.exp-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 3px; opacity: 0.6; }

/* ── PROJECTS ── */
#projects { background: var(--projects-bg); }
#projects .section-label { color: var(--gold); }
#projects .section-rule { background: rgba(245,166,35,0.15); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card {
  background: var(--surface); padding: 1.75rem; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: all 0.25s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.project-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(41,121,255,0.15); }
.project-card:hover::before { transform: scaleX(1); }
.project-card.featured { background: var(--surface-2); border-color: rgba(41,121,255,0.25); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; gap: 1rem; }
.project-name { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 400; color: var(--text); letter-spacing: -0.2px; }
.project-badges { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.badge { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 4px; }
.badge-violet { background: rgba(41,121,255,0.15); color: var(--blue-mid); }
.badge-green  { background: rgba(245,166,35,0.15); color: var(--gold-mid); }
.badge-gray   { background: var(--chip-bg); color: var(--muted); }
.badge-teal   { background: var(--teal-light); color: var(--gold); }
.project-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-size: 11px; padding: 3px 10px; background: var(--chip-bg); border: 1px solid var(--border-mid); color: var(--muted); border-radius: 4px; }
.project-img {
  width: 100%; border-radius: 8px; margin-bottom: 1.25rem;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0F2040 0%, #1A3560 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  color: rgba(255,255,255,0.2); font-size: 12px; letter-spacing: 0.06em;
}
.project-img.featured-img { height: 200px; }
.project-img.thumb-img { height: 140px; }
.project-img i { font-size: 28px; opacity: 0.25; }
.project-img span { font-size: 11px; opacity: 0.35; letter-spacing: 0.08em; text-transform: uppercase; }
.project-img::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(41,121,255,0.03) 20px,
    rgba(41,121,255,0.03) 40px
  );
}
.project-img.has-image { background: #fff; padding: 0; }
.project-img.has-image::after { display: none; }
.project-img.has-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 8px;
}
.project-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gold); text-decoration: none; margin-top: 1rem; font-weight: 500; }
.project-link:hover { text-decoration: underline; }

/* ── WORKFLOW ── */
#workflow { background: var(--workflow-bg); }
#workflow .section-label { color: var(--blue-mid); }
#workflow .section-rule { background: rgba(41,121,255,0.2); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workflow-card {
  padding: 1.5rem; border: 1px solid rgba(41,121,255,0.12);
  border-radius: 12px; background: var(--surface-2); box-shadow: var(--card-shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.workflow-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.workflow-icon { font-size: 22px; margin-bottom: 0.75rem; line-height: 1; color: var(--gold); }
.workflow-icon i { font-size: 24px; }
.workflow-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.workflow-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── CONTACT ── */
#contact { background: var(--contact-bg); }
#contact .section-label { color: var(--gold); }
#contact .section-rule { background: rgba(245,166,35,0.15); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 500; color: var(--text-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field textarea {
  padding: 11px 14px; border: 1px solid var(--border-mid);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px;
  color: var(--text); background: var(--input-bg); outline: none;
  transition: border-color 0.2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-info-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 400; color: var(--text-strong); margin-bottom: 0.75rem; letter-spacing: -0.3px; }
.contact-intro { font-size: 14px; color: var(--text-soft); line-height: 1.75; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; }
.contact-link-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.875rem 0; border-bottom: 1px solid var(--border-soft);
  text-decoration: none; transition: all 0.2s;
}
.contact-link-item:first-child { border-top: 1px solid var(--border-soft); }
.contact-link-label { font-size: 14px; color: var(--text-soft); }
.contact-link-icon { font-size: 15px; color: var(--text-label); vertical-align: -2px; margin-right: 7px; }
.contact-link-val { font-size: 13px; color: var(--gold); font-weight: 500; }
.contact-link-item:hover .contact-link-label { color: var(--text); }
.cf-status { font-size: 13px; margin-top: 0.75rem; display: none; }

/* ── FOOTER ── */
footer {
  background: var(--contact-bg);
  border-top: 1px solid var(--border-soft);
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-name { font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--text-soft); }
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ── UTILITIES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
[name="_gotcha"] { display: none; }

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

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  background: transparent; border: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--hamburger); border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--nav-menu-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.875rem 2rem; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
  .nav-links li:last-child a { border-bottom: none; }
}

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .skills-grid, .workflow-grid { grid-template-columns: 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
