/* ─────────────────────────────────────────────
   LUYZA ALEXANDRE — Portfolio v2
   Dark · Cinematic · Premium
   ───────────────────────────────────────────── */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
svg { flex-shrink: 0; }

/* ── TOKENS ── */
:root {
  /* Surfaces */
  --bg:          #07090f;
  --surface:     #0d1117;
  --surface-2:   #121921;
  --border:      #1c2433;
  --border-2:    #263347;

  /* Text */
  --text:        #eef2f8;
  --text-2:      #8896ab;
  --text-3:      #4a5568;

  /* Accent */
  --accent:      #ff6b2b;
  --accent-dim:  rgba(255, 107, 43, 0.10);
  --accent-glow: rgba(255, 107, 43, 0.05);

  /* Signal */
  --green:       #10b981;

  /* Legacy aliases (used by some inherited patterns) */
  --white:       #ffffff;
  --navy:        #eef2f8;
  --muted:       #8896ab;
  --light:       #4a5568;

  /* Theme-dependent surfaces (flipped in light mode) */
  --glass:        rgba(7, 9, 15, 0.9);
  --glass-solid:  rgba(7, 9, 15, 0.97);
  --hover:        rgba(255, 255, 255, 0.05);
  --hover-strong: rgba(255, 255, 255, 0.09);
  --hover-border: rgba(255, 255, 255, 0.22);

  /* Hero network graph — sits directly on the page bg, so it flips per
     theme. Dark page → light nodes + dark labels for contrast. */
  --node-a:        #e9eef7;
  --node-b:        #c3d0e4;
  --sv-label:      rgba(14, 22, 38, 0.82);
  --sv-label-leaf: rgba(233, 238, 247, 0.92);
  --sv-icon:       rgba(14, 22, 38, 0.80);

  /* Typography */
  --sans:  'Inter', system-ui, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --px:   clamp(1.25rem, 5vw, 4.5rem);
  --max:  1140px;
  --r:    8px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
}

/* ── LIGHT THEME ── */
:root[data-theme="light"] {
  --bg:          #f6f8fb;
  --surface:     #ffffff;
  --surface-2:   #eef1f6;
  --border:      #e1e6ee;
  --border-2:    #cdd5e1;

  --text:        #0e1626;
  --text-2:      #4d5a6e;
  --text-3:      #8894a8;

  --accent-dim:  rgba(255, 107, 43, 0.12);
  --accent-glow: rgba(255, 107, 43, 0.07);

  --white:       #ffffff;
  --navy:        #0e1626;
  --muted:       #4d5a6e;
  --light:       #8894a8;

  --glass:        rgba(246, 248, 251, 0.82);
  --glass-solid:  rgba(246, 248, 251, 0.97);
  --hover:        rgba(14, 22, 38, 0.04);
  --hover-strong: rgba(14, 22, 38, 0.07);
  --hover-border: rgba(14, 22, 38, 0.20);

  /* White page → navy nodes + white labels for contrast */
  --node-a:        #1a3a6b;
  --node-b:        #071428;
  --sv-label:      rgba(255, 255, 255, 0.88);
  --sv-label-leaf: rgba(16, 26, 46, 0.92);
  --sv-icon:       rgba(255, 255, 255, 0.80);

  --shadow-sm: 0 1px 3px rgba(16,24,40,0.06), 0 4px 16px rgba(16,24,40,0.08);
  --shadow-md: 0 4px 24px rgba(16,24,40,0.12);
}

/* Smooth cross-fade when toggling themes */
body,
.nav--scrolled,
.btn,
.tags span { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease; }


/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── LAYOUT ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}

.section       { padding: 5.5rem 0; }
.section--alt  { background: var(--surface); }

/* Section title — accent line replaces border-bottom */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.875rem;
  border-radius: 1px;
}

/* ── ENTRANCE ANIMATION ── */
.animate {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate.visible { opacity: 1; transform: none; }

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

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--px);
  height: 60px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav--hero    { background: transparent; }
.nav--scrolled {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav__brand:hover { color: var(--text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-2);
  padding: 0.38rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--hover); }
.nav__links a.active { color: var(--text); }

.nav__contact { color: var(--accent) !important; }
.nav__contact:hover { background: rgba(255,107,43,0.08) !important; color: var(--accent) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px var(--px) 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,107,43,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Radial vignette to soften grid at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

/* Status eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero__eyebrow-sep { color: var(--border-2); }
.hero__status      { color: var(--green); }

/* Name */
.hero__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.1em;
}

.hero__name-l1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}

.hero__name-l2 {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 2vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1;
}

/* Statement — left-border treatment */
.hero__statement {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 440px;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 0.15rem;
}

/* Role descriptor in mono */
.hero__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: -0.15rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ── Right: SVG network visual ── */
/* The hero network graph sits directly on the page background (no panel).
   It stays legible because its node/label/icon colors flip per theme
   (see --node-*/--sv-* tokens). */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__svg {
  width: 100%;
  height: 100%;
  min-height: 460px;
  overflow: visible;
  transform: scale(1.12);   /* enlarge a bit so node labels read clearly */
  transform-origin: center;
}

/* Node fill gradient stops — driven per theme */
.node-a { stop-color: var(--node-a); }
.node-b { stop-color: var(--node-b); }

/* SVG — decorative angle markers */
.sv-deco {
  font-family: var(--serif);
  font-size: 2.2rem;
  fill: rgba(255,107,43,0.18);
  font-weight: 300;
}

/* SVG — static connection lines */
.sv-conn-base line {
  stroke: rgba(255,107,43,0.32);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* SVG — traveling pulse */
@keyframes network-pulse {
  0%   { stroke-dashoffset: 120; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.9; }
  100% { stroke-dashoffset: -700; opacity: 0; }
}

.sv-pulse {
  fill: none;
  stroke: rgba(255,107,43,0.88);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 32 10000;
  animation: network-pulse 4.5s ease-in-out infinite;
}

.sv-pulse.p1  { animation-delay: 0s;    animation-duration: 4.5s; }
.sv-pulse.p2  { animation-delay: 0.5s;  animation-duration: 3.8s; }
.sv-pulse.p3  { animation-delay: 1.0s;  animation-duration: 4.2s; }
.sv-pulse.p4  { animation-delay: 1.5s;  animation-duration: 5.0s; }
.sv-pulse.p5  { animation-delay: 2.0s;  animation-duration: 4.0s; }
.sv-pulse.p6  { animation-delay: 0.3s;  animation-duration: 4.8s; }
.sv-pulse.p7  { animation-delay: 1.8s;  animation-duration: 3.5s; }
.sv-pulse.p8  { animation-delay: 2.5s;  animation-duration: 4.3s; }
.sv-pulse.p9  { animation-delay: 0.9s;  animation-duration: 2.8s; }
.sv-pulse.p10 { animation-delay: 2.2s;  animation-duration: 2.6s; }
.sv-pulse.p11 { animation-delay: 1.1s;  animation-duration: 4.7s; }
.sv-pulse.p12 { animation-delay: 1.7s;  animation-duration: 2.5s; }

/* SVG — leaf nodes */
.sv-leaf { opacity: 0.95; }
.sv-leaf .sv-nr-outer { stroke-dasharray: 3 4; }

/* SVG — floating dots */
@keyframes dot-twinkle {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.5; }
}

.sv-dot { fill: rgba(255,107,43,0.85); animation: dot-twinkle 3s ease-in-out infinite; }
.sv-dot.d1  { animation-delay: 0s;    animation-duration: 3.2s; }
.sv-dot.d2  { animation-delay: 0.4s;  animation-duration: 2.8s; }
.sv-dot.d3  { animation-delay: 0.8s;  animation-duration: 3.5s; }
.sv-dot.d4  { animation-delay: 1.2s;  animation-duration: 4.0s; }
.sv-dot.d5  { animation-delay: 1.6s;  animation-duration: 3.0s; }
.sv-dot.d6  { animation-delay: 2.0s;  animation-duration: 2.6s; }
.sv-dot.d7  { animation-delay: 0.6s;  animation-duration: 3.8s; }
.sv-dot.d8  { animation-delay: 1.0s;  animation-duration: 3.3s; }
.sv-dot.d9  { animation-delay: 1.4s;  animation-duration: 2.9s; }
.sv-dot.d10 { animation-delay: 1.8s;  animation-duration: 3.6s; }
.sv-dot.d11 { animation-delay: 2.2s;  animation-duration: 4.2s; }
.sv-dot.d12 { animation-delay: 0.2s;  animation-duration: 3.1s; }

/* SVG — glow breathe */
@keyframes node-breathe {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}
.sv-ng  { animation: node-breathe 3.5s ease-in-out infinite; }
.sv-cng { animation-duration: 4s; animation-delay: 0.5s; }

/* SVG — rings */
.sv-nr-outer { fill: none; stroke: rgba(255,107,43,0.65); stroke-width: 1.5; stroke-dasharray: 6 5; }
.sv-cnr      { fill: none; stroke: rgba(255,107,43,0.88); stroke-width: 2.5; }
.sv-cnr2     { fill: none; stroke: rgba(255,107,43,0.35); stroke-width: 1.5; stroke-dasharray: 8 6; }

/* SVG — node fills */
.sv-nf  { stroke: rgba(255,107,43,0.55); stroke-width: 1.5; }
.sv-cnf { stroke: rgba(255,107,43,0.9);  stroke-width: 2.5; }

/* SVG — person icons */
.sv-pi  { fill: var(--sv-icon); }
.sv-cpi { fill: #ffffff; }

/* SVG — labels */
.sv-nlabel {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  fill: var(--sv-label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
/* Leaf labels sit on the page background (not inside a node) → flip per theme */
.sv-leaf .sv-nlabel { fill: var(--sv-label-leaf); }
.sv-clabel {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  fill: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: #e5561f;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,107,43,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--hover-border);
  color: var(--text);
  background: var(--hover);
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

.about__text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-2);
}
.about__text p + p { margin-top: 1rem; }

/* Inline stats row (replaces stats bar) */
.about__stats {
  display: flex;
  gap: 2.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about__stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.about__stat span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.highlights {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.highlights__title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.highlights__list li {
  font-size: 0.84rem;
  color: var(--text-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
}
.highlights__list li:last-child { border-bottom: none; }
.highlights__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  top: 0.55rem;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: color 0.2s;
  word-break: break-all;
}
.contact-card a:hover { color: var(--text); }
.contact-card svg { color: var(--accent); flex-shrink: 0; }

/* Hobbies */
.hobbies {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hobbies__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════
   EXPERIENCE TIMELINE
═══════════════════════════════════════ */
.timeline { position: relative; }

.exp {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
}

.exp__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
  padding-top: 1.75rem;
}

.exp__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-2);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
  flex-shrink: 0;
  z-index: 1;
}

.exp__dot--current {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,107,43,0.2);
}

.exp__line::after {
  content: '';
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 6px;
  min-height: 32px;
}
.exp:last-of-type .exp__line::after { display: none; }

.exp__card {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.3s ease;
}
.exp__card:hover { border-color: var(--border-2); }

.exp__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.exp__company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.exp__role { font-size: 0.82rem; color: var(--text-2); }

.exp__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.exp__period {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
}

.exp__badge {
  background: rgba(255,107,43,0.1);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,107,43,0.2);
}

.exp__desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.exp__more {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 0.75rem 0;
  margin-left: 36px;
  font-style: italic;
}
.exp__more a { color: var(--accent); transition: color 0.2s; }
.exp__more a:hover { color: #e5561f; }

/* ═══════════════════════════════════════
   TAGS
═══════════════════════════════════════ */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: var(--hover);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.tags .tag--strong {
  background: rgba(255,107,43,0.1);
  color: var(--accent);
  border-color: rgba(255,107,43,0.2);
}

/* ═══════════════════════════════════════
   SKILLS
═══════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.skill-group {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.skill-group:hover { border-color: var(--border-2); }

.skill-group__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.skill-group__title svg { color: var(--accent); }

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  counter-reset: project-counter;
}

.project-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease;
  counter-increment: project-counter;
  position: relative;
}
.project-card:hover { border-color: var(--border-2); }

/* Numbered counter — monospace, top-left */
.project-card::before {
  content: '0' counter(project-counter);
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.2rem;
}

.project-card--featured {
  grid-column: 1 / -1;
  border-color: var(--border-2);
}

/* Gradient top edge for enterprise/featured cards */
.project-card--featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
  border-radius: var(--r) var(--r) 0 0;
  pointer-events: none;
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__label {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.project-card__link {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.2s;
}
.project-card__link:hover { color: #e5561f; }

.project-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.8;
}

.project-card__tech { margin-top: auto; padding-top: 0.25rem; }

/* ═══════════════════════════════════════
   CREDENTIALS
═══════════════════════════════════════ */
.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cred-panel__title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

/* Education */
.edu-list { display: flex; flex-direction: column; }

.edu-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.edu-item__year {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.2rem;
  min-width: 82px;
}

.edu-item__content h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.edu-item__content p { font-size: 0.8rem; color: var(--text-2); }

.edu-item__note {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* Certifications */
.cert-section { margin-bottom: 1.5rem; }

.cert-section__label {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}

.cert {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.4;
}

.cert__icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.cert--done .cert__icon { color: var(--green); }
.cert--wip { color: var(--text-3); }
.cert--wip .cert__icon { color: var(--text-3); }

/* ═══════════════════════════════════════
   REFERENCES
═══════════════════════════════════════ */
.refs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ref-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.3s ease;
}
.ref-card:hover { border-color: var(--border-2); }

.ref-card__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.ref-card__role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}

.ref-card__note {
  display: block;
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

.ref-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-2);
  margin-top: 0.5rem;
  transition: color 0.2s;
}
.ref-card__phone:hover { color: var(--accent); }

/* ═══════════════════════════════════════
   RECOMMENDATIONS
═══════════════════════════════════════ */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.rec-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s ease;
}
.rec-card:hover { border-color: var(--border-2); }

.rec-card__text {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.85;
}

.rec-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.rec-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rec-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.rec-card__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.rec-card__role {
  display: block;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 400;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.rec-card__date {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-3);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact {
  background: var(--surface);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255,107,43,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.contact__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.contact__links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 300px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
  border-color: rgba(255,107,43,0.28);
  background: rgba(255,107,43,0.04);
}

.contact-link svg { color: var(--accent); flex-shrink: 0; }

.contact-link span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-link strong {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.contact-link span > *:last-child {
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--bg);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__inner p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.footer__inner nav { display: flex; gap: 1.5rem; }

.footer__inner nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer__inner nav a:hover { color: var(--text-2); }

/* ═══════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 0.5rem;
}

.lang-btn {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--text-2);
  border-color: var(--border);
  background: var(--hover);
}

.lang-btn--active {
  color: var(--accent);
  border-color: rgba(255,107,43,0.3);
  background: rgba(255,107,43,0.08);
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 0.4rem;
  border-radius: 6px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--hover);
}
.theme-toggle svg { width: 16px; height: 16px; }
/* Icon shows the mode you'll switch TO: dark shows sun, light shows moon */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ═══════════════════════════════════════
   PERSONAL USAGE / DUTCH TTS
═══════════════════════════════════════ */
.dutch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  max-width: 680px;
  transition: border-color 0.2s;
}
.dutch-card:hover { border-color: var(--border-2); }

.dutch-card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 43, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.dutch-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dutch-card__heading {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dutch-card__desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 46ch;
}
.dutch-card__powered {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-2);
  opacity: 0.6;
}
.dutch-card__powered code {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.tts-btn { align-self: flex-start; gap: 0.55rem; }

.tts-btn[aria-pressed="true"] {
  background: var(--hover-strong);
  color: var(--text-2);
  border: 1px solid var(--border-2);
  box-shadow: none;
}
.tts-btn[aria-pressed="true"]:hover {
  transform: none;
  box-shadow: none;
  background: var(--hover-strong);
}

.tts-icon--stop { display: none; }
#ttsBtn[aria-pressed="true"] .tts-icon--play { display: none; }
#ttsBtn[aria-pressed="true"] .tts-icon--stop { display: inline; }

#ttsBtn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .about             { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__sidebar    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .credentials       { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid       { grid-template-columns: 1fr; }
  .refs-grid         { grid-template-columns: 1fr; }
  .contact__links    { flex-direction: column; align-items: stretch; }
  .contact-link      { max-width: 100%; }
}

@media (max-width: 720px) {
  .section                 { padding: 4rem 0; }
  .skills-grid             { grid-template-columns: 1fr; }
  .projects-grid           { grid-template-columns: 1fr; }
  .project-card--featured  { grid-column: 1; }
  .about__sidebar          { grid-template-columns: 1fr; }
  .about__stats            { gap: 1.5rem; }
  .exp__header             { flex-direction: column; gap: 0.5rem; }
  .exp__right              { flex-direction: row; align-items: center; }
  .rec-grid                { grid-template-columns: 1fr; }

  .hero__inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__text     { align-items: center; text-align: center; }
  .hero__visual   { order: -1; }
  .hero__svg      { min-height: 300px; }
  .hero__name-l1  { font-size: clamp(3.5rem, 14vw, 6rem); }
  .hero__name-l2  { font-size: clamp(0.75rem, 3.5vw, 1.2rem); letter-spacing: 0.22em; }
  .hero__statement { border-left: none; padding-left: 0; }
  .hero__actions  { justify-content: center; }
  .hero__eyebrow  { justify-content: center; }

  /* Mobile nav */
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__brand { font-size: 0.82rem; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    position: fixed;
    inset: 0;
    background: var(--glass-solid);
    backdrop-filter: blur(20px);
    z-index: 199;
  }

  .nav__links.open a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 0.5rem 1.5rem;
  }
  .nav__links.open a:hover { color: var(--text); background: transparent; }
}

@media (min-width: 721px) {
  .nav__toggle { display: none; }
}
