/* =========================================================================
   Pedro Legaspi — AI Automation Specialist · Portfolio
   Dark, bold, tech-premium (inspired by course-landing aesthetic)
   Emerald signature accent · Fonts: Anton (display) + Space Grotesk + Space Mono
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces (dark) */
  --bg:            #0a0c0b;
  --bg-2:          #0e110f;
  --surface:       #12161400;
  --surface-1:     #12161400;
  --card:          #111614;
  --card-2:        #161c19;
  --elev:          #1a221e;

  /* Text */
  --fg:            #f2f6f4;
  --fg-muted:      #97a69e;
  --fg-faint:      #6a7a72;

  /* Brand — emerald (brightened for dark bg) */
  --primary:       #10b981;
  --primary-strong:#059669;
  --primary-400:   #34d399;
  --primary-300:   #6ee7b7;
  --primary-soft:  rgba(16,185,129,.12);
  --primary-line:  rgba(16,185,129,.30);

  /* Lines & effects */
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --glow:          0 0 0 1px rgba(16,185,129,.35), 0 20px 60px -20px rgba(16,185,129,.35);
  --shadow-md:     0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg:     0 30px 70px -24px rgba(0,0,0,.75);

  /* Type */
  --font-sans:    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Anton", "Space Grotesk", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --maxw:      1200px;
  --gutter:    clamp(20px, 5vw, 60px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(16,185,129,.28); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--primary-400);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--primary); opacity: .7; }

.section-head { max-width: 680px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 16px; letter-spacing: -.03em; line-height: 1.02;
}
.section-head h2 em { font-style: normal; color: var(--primary); }
.section-head p { color: var(--fg-muted); margin-top: 16px; font-size: 1.05rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #04140d; box-shadow: 0 8px 24px -8px rgba(16,185,129,.5); }
.btn-primary:hover { background: var(--primary-400); transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(16,185,129,.65); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-300); background: var(--primary-soft); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,12,11,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; flex: none; box-shadow: 0 6px 18px -6px rgba(16,185,129,.5); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--fg); }
.brand-word span { font-size: .68rem; color: var(--fg-muted); letter-spacing: .04em; margin-top: 3px; }
.brand-word b i { color: var(--primary); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--fg-muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--primary-300); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--fg-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(16,185,129,.55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--card); color: var(--fg); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .close-icon { display: none; }
body.nav-open .nav-toggle .open-icon { display: none; }
body.nav-open .nav-toggle .close-icon { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 620px at 82% 6%, rgba(16,185,129,.22), transparent 58%),
    radial-gradient(680px 520px at 6% 88%, rgba(5,150,105,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero-copy { max-width: 640px; }
.hero-proof-top {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-400); border: 1px solid var(--primary-line); background: var(--primary-soft);
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  margin-top: 22px; width: fit-content; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 5.9vw, 4.3rem); line-height: .98; letter-spacing: .006em; text-transform: uppercase;
  color: var(--fg);
}
.hero h1 > span { display: block; }
.hero h1 .hl-mid { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); width: fit-content; }
.hero h1 .hl-into { line-height: 1; }
.hero h1 .hl-top { padding-bottom: 10px; }
.hero h1 .hl-bot { padding-top: 10px; }
.hero h1 em {
  font-style: normal; color: var(--primary);
  font-size: clamp(3rem, 8.4vw, 6rem); line-height: .82;
}
.hero-desc { margin-top: 24px; color: var(--fg-muted); font-size: 1.1rem; max-width: 50ch; }
.hero-desc strong { color: var(--fg); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-social { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px; border: 2px solid var(--bg);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  color: #04140d; background: linear-gradient(135deg, var(--primary-400), var(--primary-strong));
}
.avatars span:first-child { margin-left: 0; }
.hero-social p { font-size: .9rem; color: var(--fg-muted); max-width: 30ch; }
.hero-social p b { color: var(--fg); font-weight: 600; }

/* hero feature highlights (Automate / Integrate / Optimize) */
.hero-highlights { display: flex; align-items: stretch; margin-top: 34px; }
.hero-highlights .hh-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding-inline: clamp(14px, 1.9vw, 26px);
}
.hero-highlights .hh-item:first-child { padding-left: 0; }
.hero-highlights .hh-item + .hh-item { border-left: 1px solid var(--border); }
.hero-highlights .hh-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300);
}
.hero-highlights .hh-icon svg { width: 23px; height: 23px; }
.hero-highlights .hh-txt b { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.hero-highlights .hh-txt small { display: block; font-size: .82rem; color: var(--fg-muted); margin-top: 3px; }
@media (max-width: 420px) {
  .hero-highlights .hh-item { padding-inline: clamp(10px, 3vw, 18px); }
  .hero-highlights .hh-txt b { font-size: .74rem; }
}

/* Hero portrait */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.portrait-frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: #0d100e;
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(16,185,129,.22), transparent 55%);
  mix-blend-mode: screen;
}
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center 12%; }
.hero-chip {
  position: absolute; z-index: 2; background: rgba(17,22,20,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-md);
}
.hero-chip-1 { top: 22px; left: -22px; display: flex; align-items: center; gap: 10px; }
.hero-chip-1 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.hero-chip-1 b { font-size: .82rem; }
.hero-chip-1 small { display: block; color: var(--fg-muted); font-size: .72rem; font-family: var(--font-mono); }
.hero-chip-2 { bottom: 26px; right: -20px; max-width: 220px; }
.hero-chip-2 .msg { font-size: .82rem; color: var(--fg); }
.hero-chip-2 .who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--primary-400); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-chip-2 .who svg { width: 14px; height: 14px; }
.hero-typing { display: inline-flex; gap: 4px; margin-top: 8px; }
.hero-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-400); animation: typing 1.2s infinite; }
.hero-typing i:nth-child(2) { animation-delay: .2s; }
.hero-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Trusted / tools bar (marquee) ---------- */
.trusted { border-block: 1px solid var(--border); background: var(--bg-2); padding-block: 34px; overflow: hidden; }
.trusted .wrap { text-align: center; }
.trusted .trusted-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint); }
.marquee {
  margin-top: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 74px);
  width: max-content; animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo { display: inline-flex; align-items: center; flex: none; }
.marquee .logo img {
  height: 28px; width: auto; opacity: .48;
  filter: brightness(0) invert(1);
  transition: opacity .25s var(--ease);
}
.marquee .logo:hover img { opacity: .95; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
}

/* ---------- Feature cards (services) ---------- */
.feature-layout { display: grid; grid-template-columns: .8fr 2.2fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
.feature-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  position: relative; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--card); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-line), transparent); opacity: 0; transition: opacity .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary-line); background: var(--card-2); }
.feature:hover::before { opacity: 1; }
.feature .f-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300);
}
.feature .f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.feature p { color: var(--fg-muted); margin-top: 10px; font-size: .95rem; }
.feature .f-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: .8rem; color: var(--fg-faint); }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-group {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 28px); background: var(--card);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tool-group:hover { border-color: var(--primary-line); transform: translateY(-3px); }
.tool-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tool-group-head .tg-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300); flex: none; }
.tool-group-head .tg-icon svg { width: 21px; height: 21px; }
.tool-group-head h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.tool-list { display: flex; flex-direction: column; gap: 8px; }
.tool-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tool-item:hover { border-color: var(--primary-line); background: rgba(16,185,129,.06); }
.tool-item .ti-name { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.tool-item .ti-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: none; box-shadow: 0 0 8px var(--primary); }

/* ---------- Projects ---------- */
.projects-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 9px 16px; border-radius: 999px; font-size: .86rem; font-weight: 500;
  border: 1px solid var(--border-strong); background: transparent; color: var(--fg-muted);
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-300); }
.filter-btn.active { background: var(--primary); color: #04140d; border-color: var(--primary); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-6px); border-color: var(--primary-line); box-shadow: var(--shadow-lg); }
.project-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); cursor: zoom-in; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.project-media::after {
  content: ""; position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 9px; pointer-events: none;
  border: 1px solid var(--primary-line);
  background: rgba(4,20,13,.72) center / 18px 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  backdrop-filter: blur(4px); opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.project:hover .project-media::after, .project-media:focus-visible::after { opacity: 1; transform: none; }
.project:hover .project-media img { transform: scale(1.04); }
.project-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(4,20,13,.82); color: var(--primary-300); border: 1px solid var(--primary-line);
  padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.project-body { padding: clamp(20px, 2.4vw, 26px); display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.22rem; letter-spacing: -.02em; }
.project-body p { color: var(--fg-muted); margin-top: 12px; font-size: .93rem; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.project-stack li { font-family: var(--font-mono); font-size: .72rem; color: var(--fg-muted); background: var(--bg-2); border: 1px solid var(--border); padding: 5px 9px; border-radius: 7px; }
.project-outcome { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .85rem; font-weight: 500; color: var(--primary-300); }
.project-outcome svg { width: 17px; height: 17px; flex: none; }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(26px, 3.6vw, 40px) clamp(16px, 3vw, 30px); text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 400; letter-spacing: .01em; display: block; color: var(--fg); }
.stat b em { font-style: normal; color: var(--primary); }
.stat span { color: var(--fg-muted); font-size: .88rem; margin-top: 6px; display: block; }

/* ---------- Experience ---------- */
.exp-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(36px, 5vw, 68px); }
.timeline { position: relative; }
.tl-item { position: relative; padding-left: 34px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: -4px; width: 2px; background: var(--border-strong); }
.tl-item:last-child::before { display: none; }
.tl-item::after { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); box-shadow: 0 0 12px rgba(16,185,129,.5); }
.tl-item .tl-date { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-400); }
.tl-item h3 { font-size: 1.16rem; margin-top: 8px; }
.tl-item .tl-org { color: var(--fg-muted); font-weight: 500; font-size: .95rem; margin-top: 3px; }
.tl-item p { color: var(--fg-muted); margin-top: 10px; font-size: .92rem; }

.exp-side { display: flex; flex-direction: column; gap: 20px; }
.skill-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--card); }
.skill-card h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint); font-weight: 700; margin-bottom: 16px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags li { font-size: .82rem; font-weight: 500; padding: 7px 12px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); color: var(--fg); }
.edu-card { border: 1px solid var(--primary-line); border-radius: var(--radius-lg); padding: 26px; background: var(--primary-soft); }
.edu-card .edu-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary); color: #04140d; display: grid; place-items: center; margin-bottom: 14px; }
.edu-card .edu-icon svg { width: 22px; height: 22px; }
.edu-card h4 { font-size: 1.05rem; color: var(--fg); letter-spacing: -.01em; }
.edu-card p { color: var(--fg-muted); font-size: .9rem; margin-top: 6px; }

/* ---------- Certifications ---------- */
.certs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card);
  cursor: pointer; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cert:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow-lg); }
.cert img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #fff; }
.cert span { display: block; padding: 12px 14px; font-size: .84rem; font-weight: 500; text-align: center; color: var(--fg); }

/* ---------- About / approach (instructor-style band) ---------- */
.about { border-block: 1px solid var(--border); background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
.about-media { position: relative; display: flex; min-height: 460px; }
.about-media img { border-radius: var(--radius-xl); width: 100%; height: 100%; object-fit: cover; object-position: center 14%; border: 1px solid var(--border-strong); }
.about-media .about-badge {
  position: absolute; right: -16px; bottom: -16px; background: var(--card); border: 1px solid var(--primary-line);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); text-align: center;
}
.about-media .about-badge b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--primary); }
.about-media .about-badge small { color: var(--fg-muted); font-size: .76rem; }
.about-copy h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); letter-spacing: -.03em; }
.about-copy > p { color: var(--fg-muted); margin-top: 18px; font-size: 1.04rem; }
.about-copy > p strong { color: var(--fg); font-weight: 600; }
.about-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.about-highlights li { display: flex; gap: 12px; align-items: flex-start; }
.about-highlights .ah-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300); display: grid; place-items: center; flex: none; }
.about-highlights .ah-icon svg { width: 16px; height: 16px; }
.about-highlights b { font-size: .93rem; display: block; color: var(--fg); }
.about-highlights small { color: var(--fg-muted); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 85% 0%, rgba(16,185,129,.16), transparent 60%),
             radial-gradient(560px 380px at 4% 100%, rgba(5,150,105,.12), transparent 60%);
}
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); }
.contact-copy h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; line-height: .95; margin-top: 14px; }
.contact-copy h2 em { font-style: normal; color: var(--primary); }
.contact-copy > p { color: var(--fg-muted); margin-top: 18px; font-size: 1.06rem; max-width: 42ch; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--card);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.contact-method:hover { border-color: var(--primary-line); background: var(--card-2); transform: translateX(4px); }
.contact-method .cm-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300); display: grid; place-items: center; flex: none; }
.contact-method .cm-icon svg { width: 20px; height: 20px; }
.contact-method b { font-size: .95rem; color: var(--fg); }
.contact-method small { display: block; color: var(--fg-muted); font-size: .8rem; margin-top: 2px; }
.contact-method .cm-arrow { margin-left: auto; color: var(--fg-faint); }
.contact-method .cm-arrow svg { width: 18px; height: 18px; }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 500; color: var(--fg); margin-bottom: 8px; }
.field label .req { color: var(--primary-400); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font: inherit; font-size: .95rem;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--fg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .78rem; color: var(--fg-muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 16px;
  background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: 12px;
  color: var(--primary-300); font-size: .9rem; font-weight: 500;
}
.form-success svg { width: 20px; height: 20px; flex: none; }
.form-success.show { display: flex; }

/* Book-a-call panel */
.contact-book { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.contact-book .cb-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-300); display: grid; place-items: center; margin-bottom: 22px; }
.contact-book .cb-icon svg { width: 27px; height: 27px; }
.contact-book h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.contact-book > p { color: var(--fg-muted); margin-top: 12px; font-size: 1rem; }
.cb-list { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.cb-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--fg); }
.cb-list li svg { width: 20px; height: 20px; color: var(--primary-300); flex: none; }
.contact-book .btn { margin-top: auto; }
.contact-book .form-note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 48px; background: var(--bg-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--fg-muted); font-size: .9rem; transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--primary-300); }
.footer-copy { color: var(--fg-faint); font-size: .88rem; text-align: center; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 28px; }
.to-top { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--card); color: var(--fg); display: grid; place-items: center; transition: all .2s var(--ease); }
.to-top:hover { border-color: var(--primary); color: var(--primary-300); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; background: rgba(3,7,5,.9); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; }
.lightbox-close svg { width: 24px; height: 24px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot, .hero-typing i { animation: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 74px 0 0; z-index: 90; background: rgba(10,12,11,.98);
  backdrop-filter: blur(14px); padding: 24px var(--gutter) 40px; display: none; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
}
body.nav-open .mobile-menu { display: flex; }
body.nav-open { overflow: hidden; }
.mobile-menu a { padding: 15px 6px; font-size: 1.3rem; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--fg); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 360px; }
  .hero-copy { max-width: none; }
  .feature-layout { grid-template-columns: 1fr; gap: 32px; }
  .exp-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; display: block; min-height: 0; margin-inline: auto; }
  .about-media img { height: auto; aspect-ratio: 4 / 5; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .status-pill, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .feature-cards, .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .stat:nth-child(odd) { border-left: none; }
  .hero-chip-1 { left: -8px; }
  .hero-chip-2 { right: -8px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-top { flex-direction: column; align-items: flex-start; }
}
