/* ============================================================
   NEWTON M. NYAIRO — Academic Website
   Design: Vivid Atlas × Coral Harvest
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --coral:      #FF6155;
  --coral-dark: #E04B40;
  --teal:       #00BFA5;
  --teal-dark:  #00A089;
  --amber:      #FFA726;
  --sky:        #29B6F6;
  --lavender:   #7C4DFF;
  --mint:       #00E5CC;
  --rose:       #F06292;

  --grad-coral:   linear-gradient(135deg, #FF6155 0%, #FF8A65 100%);
  --grad-teal:    linear-gradient(135deg, #00BFA5 0%, #26C6DA 100%);
  --grad-amber:   linear-gradient(135deg, #FFA726 0%, #FFCC02 100%);
  --grad-sky:     linear-gradient(135deg, #29B6F6 0%, #7C4DFF 100%);
  --grad-lavender:linear-gradient(135deg, #7C4DFF 0%, #F06292 100%);
  --grad-hero:    linear-gradient(135deg, #1A1433 0%, #2D1B5E 40%, #0D3A4A 100%);

  --bg:       #FAFAF8;
  --bg-alt:   #F4F2FF;
  --white:    #FFFFFF;
  --dark:     #1A1433;
  --text:     #2D3748;
  --muted:    #64748B;
  --light:    #CBD5E1;
  --border:   #E2E8F0;
  --surface:  #F8FAFC;

  --max-w:    1160px;
  --nav-h:    68px;
  --radius:   14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-coral: 0 8px 24px rgba(255,97,85,.30);
  --shadow-teal:  0 8px 24px rgba(0,191,165,.28);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-lg { padding: 110px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* ── SECTION HEADER ────────────────────────────────────────── */
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral); background: rgba(255,97,85,.08);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.eyebrow-teal    { color: var(--teal);    background: rgba(0,191,165,.08); }
.eyebrow-amber   { color: #C67800;        background: rgba(255,167,38,.10); }
.eyebrow-sky     { color: #0277BD;        background: rgba(41,182,246,.10); }
.eyebrow-lavender{ color: var(--lavender);background: rgba(124,77,255,.10); }

.section-title { margin-bottom: 12px; }
.section-title span { color: var(--coral); }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ── NAV ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad-coral);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: .82rem;
  color: white; flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name  { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700; color: var(--dark); }
.nav-logo-title { font-size: .68rem; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 500;
  color: var(--muted); padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--dark); background: var(--surface); }
.nav-links a.active { color: var(--coral); background: rgba(255,97,85,.06); }
.nav-cta {
  font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600;
  color: white !important; background: var(--grad-coral) !important;
  padding: 8px 20px !important; border-radius: 20px !important;
  box-shadow: var(--shadow-coral); transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,97,85,.4) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; z-index: 999; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 500;
  color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--coral); }
.mobile-nav a:last-child { border-bottom: none; }

/* ── PAGE HERO (inner pages) ───────────────────────────────── */
.page-hero {
  margin-top: var(--nav-h); padding: 72px 0 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .05;
  background: radial-gradient(circle at 20% 60%, var(--coral) 0%, transparent 55%),
              radial-gradient(circle at 80% 20%, var(--teal) 0%, transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p  { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.page-hero.coral    { background: linear-gradient(135deg, #FFF5F4, #FFE8E6); }
.page-hero.coral    .page-hero-eyebrow { color: var(--coral); }
.page-hero.teal     { background: linear-gradient(135deg, #F0FFFC, #D9FBF5); }
.page-hero.teal     .page-hero-eyebrow { color: var(--teal); }
.page-hero.amber    { background: linear-gradient(135deg, #FFFBF0, #FFF3CC); }
.page-hero.amber    .page-hero-eyebrow { color: #C67800; }
.page-hero.sky      { background: linear-gradient(135deg, #F0F9FF, #D9EFFF); }
.page-hero.sky      .page-hero-eyebrow { color: #0277BD; }
.page-hero.lavender { background: linear-gradient(135deg, #F5F0FF, #E8DAFF); }
.page-hero.lavender .page-hero-eyebrow { color: var(--lavender); }

.page-hero-img {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 4px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 2;
}
@media (max-width: 768px) { .page-hero-img { display: none; } }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 600;
  padding: 12px 28px; border-radius: 24px; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s; text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-coral   { background: var(--grad-coral);   color: white; box-shadow: var(--shadow-coral); }
.btn-coral:hover { box-shadow: 0 12px 32px rgba(255,97,85,.45); }
.btn-teal    { background: var(--grad-teal);    color: white; box-shadow: var(--shadow-teal); }
.btn-teal:hover { box-shadow: 0 12px 32px rgba(0,191,165,.40); }
.btn-amber   { background: var(--grad-amber);   color: white; }
.btn-sky     { background: var(--grad-sky);     color: white; }
.btn-lavender{ background: var(--grad-lavender);color: white; }
.btn-outline {
  background: transparent; color: var(--dark); border: 2px solid var(--border);
}
.btn-outline:hover { background: var(--surface); border-color: var(--light); }
.btn-outline-coral { background: transparent; color: var(--coral); border: 2px solid var(--coral); }
.btn-outline-coral:hover { background: rgba(255,97,85,.06); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.btn-sm  { font-size: .78rem; padding: 8px 18px; }
.btn-lg  { font-size: .98rem; padding: 15px 36px; }

/* ── PILLS ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.pill-coral    { background: rgba(255,97,85,.10);  color: var(--coral); }
.pill-teal     { background: rgba(0,191,165,.10);  color: var(--teal-dark); }
.pill-amber    { background: rgba(255,167,38,.12); color: #B86E00; }
.pill-sky      { background: rgba(41,182,246,.10); color: #0277BD; }
.pill-lavender { background: rgba(124,77,255,.10); color: var(--lavender); }
.pill-mint     { background: rgba(0,229,204,.10);  color: #00695C; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body   { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); }

.card-accent             { border-top: 4px solid var(--coral); }
.card-accent.teal-accent { border-top-color: var(--teal); }
.card-accent.amber-accent{ border-top-color: var(--amber); }
.card-accent.sky-accent  { border-top-color: var(--sky); }
.card-accent.lav-accent  { border-top-color: var(--lavender); }

/* Stat card */
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-coral);
}
.stat-card.s2::before { background: var(--grad-teal); }
.stat-card.s3::before { background: var(--grad-amber); }
.stat-card.s4::before { background: var(--grad-sky); }

.stat-icon { font-size: 1.8rem; margin-bottom: 10px; line-height: 1; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1;
  margin-bottom: 6px; background: var(--grad-coral);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-number.t { background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; }
.stat-number.a { background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; }
.stat-number.s { background: var(--grad-sky); -webkit-background-clip: text; background-clip: text; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Feature card */
.feature-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.icon-coral    { background: rgba(255,97,85,.12);  color: var(--coral); }
.icon-teal     { background: rgba(0,191,165,.12);  color: var(--teal-dark); }
.icon-amber    { background: rgba(255,167,38,.14); color: #B86E00; }
.icon-sky      { background: rgba(41,182,246,.12); color: #0277BD; }
.icon-lavender { background: rgba(124,77,255,.12); color: var(--lavender); }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── TIMELINE ──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 8px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--coral), var(--teal), var(--amber), var(--lavender));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -35px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--coral); border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(255,97,85,.25); transition: transform .3s;
}
.timeline-item:hover::before { transform: scale(1.35); }
.timeline-item:nth-child(2n)::before  { background: var(--teal);    box-shadow: 0 0 0 3px rgba(0,191,165,.25); }
.timeline-item:nth-child(3n)::before  { background: var(--amber);   box-shadow: 0 0 0 3px rgba(255,167,38,.25); }
.timeline-item:nth-child(4n)::before  { background: var(--lavender);box-shadow: 0 0 0 3px rgba(124,77,255,.25); }
.timeline-date {
  font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px;
}
.timeline-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.timeline-org   { font-size: .88rem; font-weight: 500; color: var(--teal-dark); margin-bottom: 8px; }
.timeline-desc  { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.timeline-pill  { margin-top: 8px; }

/* ── PUBLICATION CARDS ─────────────────────────────────────── */
.pub-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 24px;
  border: 1px solid var(--border); border-left: 4px solid var(--coral);
  transition: transform .22s, box-shadow .22s; margin-bottom: 14px;
}
.pub-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.pub-card.book  { border-left-color: var(--teal); }
.pub-card.conf  { border-left-color: var(--amber); }
.pub-card.thesis{ border-left-color: var(--lavender); }
.pub-card.pending { border-left-color: var(--sky); background: rgba(41,182,246,.02); }

.pub-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-year {
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 700;
  color: var(--coral); background: rgba(255,97,85,.08); padding: 2px 10px; border-radius: 10px;
}
.pub-year.t { color: var(--teal-dark); background: rgba(0,191,165,.08); }
.pub-year.a { color: #B86E00; background: rgba(255,167,38,.10); }
.pub-year.l { color: var(--lavender); background: rgba(124,77,255,.08); }
.pub-year.s { color: #0277BD; background: rgba(41,182,246,.08); }

.pub-title   { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .95rem; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
.pub-authors { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.pub-journal { font-size: .82rem; color: var(--teal-dark); font-style: italic; font-weight: 500; }

/* ── FILTER TABS ───────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-tab {
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 600;
  padding: 8px 20px; border-radius: 20px; border: 2px solid var(--border);
  background: var(--white); cursor: pointer; transition: all .2s; color: var(--muted);
}
.filter-tab:hover  { border-color: var(--coral); color: var(--coral); background: rgba(255,97,85,.04); }
.filter-tab.active { background: var(--coral); color: white; border-color: var(--coral); }

/* ── AWARDS ────────────────────────────────────────────────── */
.award-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 10px;
  transition: transform .2s, box-shadow .2s;
}
.award-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.award-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 1px; line-height: 1; }
.award-year  { font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 700; color: #B86E00; margin-bottom: 2px; }
.award-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .92rem; color: var(--dark); margin-bottom: 2px; }
.award-org   { font-size: .8rem; color: var(--muted); }

/* ── GRANT CARD ────────────────────────────────────────────── */
.grant-card {
  background: linear-gradient(135deg, #FFFBF0, #FFF6DC);
  border: 1px solid rgba(255,167,38,.3); border-radius: var(--radius-lg);
  padding: 28px; position: relative; overflow: hidden; margin-bottom: 20px;
}
.grant-badge {
  position: absolute; top: 16px; right: -26px;
  background: var(--amber); color: white;
  font-size: .6rem; font-weight: 800; letter-spacing: .18em;
  padding: 4px 36px; transform: rotate(45deg);
}
.grant-amount { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; color: var(--amber); margin: 8px 0; line-height: 1; }
.grant-title  { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.grant-meta   { font-size: .82rem; color: var(--muted); line-height: 1.8; }
.grant-meta strong { color: var(--text); }

/* ── CALLOUT ───────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius); padding: 20px 24px;
  border-left: 5px solid var(--coral); background: rgba(255,97,85,.04); margin: 24px 0;
}
.callout.teal   { border-left-color: var(--teal);    background: rgba(0,191,165,.04); }
.callout.amber  { border-left-color: var(--amber);   background: rgba(255,167,38,.04); }
.callout.sky    { border-left-color: var(--sky);     background: rgba(41,182,246,.04); }
.callout.lav    { border-left-color: var(--lavender);background: rgba(124,77,255,.04); }
.callout-title  { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--dark); }

/* ── CONTACT FORM ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; font-weight: 600; color: var(--dark); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--text);
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,97,85,.10);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ── REFERENCE CARD ────────────────────────────────────────── */
.ref-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); border-top: 4px solid var(--teal);
  transition: transform .2s, box-shadow .2s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-teal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  color: white; margin-bottom: 14px;
}
.ref-name  { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 2px; }
.ref-title { font-size: .82rem; color: var(--teal-dark); font-weight: 500; margin-bottom: 8px; }
.ref-info  { font-size: .82rem; color: var(--muted); line-height: 1.8; }
.ref-info a { color: var(--coral); }
.ref-info a:hover { text-decoration: underline; }

/* ── SKILLS/LANGUAGES ──────────────────────────────────────── */
.lang-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.lang-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
  transition: transform .2s;
}
.lang-item:hover { transform: translateY(-2px); }
.lang-flag { font-size: 1.4rem; }
.lang-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .88rem; color: var(--dark); }
.lang-level { font-size: .72rem; color: var(--muted); }

/* ── HERO HOME ─────────────────────────────────────────────── */
.home-hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero); position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,191,165,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,97,85,.12) 0%, transparent 55%),
              radial-gradient(ellipse at 90% 10%, rgba(124,77,255,.10) 0%, transparent 45%);
}
.home-hero::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,.025);
  top: -100px; right: -100px; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.hero-content { color: white; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero-name { color: white; margin-bottom: 8px; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; }
.hero-name span { color: var(--amber); }
.hero-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 400; color: rgba(255,255,255,.7); margin-bottom: 20px; line-height: 1.5;
}
.hero-title strong { color: var(--teal); font-weight: 600; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,.62); max-width: 500px; margin-bottom: 32px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 5px 14px;
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 500;
  color: rgba(255,255,255,.75);
}

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-avatar-wrap {
  position: relative; width: 280px; height: 280px;
}
.hero-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,191,165,.2), rgba(255,97,85,.2));
  border: 3px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 4rem; font-weight: 800; color: white;
  overflow: hidden;
  position: relative; z-index: 2;
}
.avatar-ring {
  position: absolute; border-radius: 50%; border: 2px dashed rgba(255,255,255,.12);
  animation: spin 20s linear infinite;
}
.avatar-ring-1 { inset: -16px; animation-duration: 24s; }
.avatar-ring-2 { inset: -32px; animation-duration: 36s; animation-direction: reverse; border-color: rgba(0,191,165,.15); }
.avatar-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--coral);
  top: 10%; right: 8%; animation: pulse 2.4s ease-in-out infinite;
}
.avatar-dot.d2 { background: var(--teal); bottom: 12%; left: 5%; animation-delay: .8s; }
.avatar-dot.d3 { background: var(--amber); bottom: 20%; right: 3%; animation-delay: 1.6s; }

@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1; } 50%{ transform:scale(1.6); opacity:.5; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }

.hero-content > * { animation: fadeUp .7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .2s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .4s; }
.hero-content > *:nth-child(5) { animation-delay: .5s; }
.hero-content > *:nth-child(6) { animation-delay: .6s; }

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: white; border-radius: var(--radius-lg);
  padding: 28px 32px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; margin-top: 40px;
}
.stats-bar-item {
  text-align: center; padding: 0 20px;
  border-right: 1px solid var(--border);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 800; line-height: 1;
  background: var(--grad-coral); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stats-bar-num.t { background: var(--grad-teal);  -webkit-background-clip: text; background-clip: text; }
.stats-bar-num.a { background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; }
.stats-bar-num.s { background: var(--grad-sky);   -webkit-background-clip: text; background-clip: text; }
.stats-bar-label { font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal-delay-3 { transition-delay: .32s; }
.reveal-delay-4 { transition-delay: .42s; }

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 40px 0; }

/* ── SECTION BG VARIANTS ───────────────────────────────────── */
.bg-alt   { background: var(--bg-alt); }
.bg-white { background: var(--white); }
.bg-light { background: var(--surface); }
.bg-gradient { background: linear-gradient(135deg, #FFF5F4 0%, #F0FFFC 100%); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.8); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad-coral);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: .82rem; color: white;
}
.footer-logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: white; font-size: .92rem; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.68; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: rgba(255,255,255,.55); transition: background .2s, color .2s; text-decoration: none;
}
.social-btn:hover { background: var(--coral); color: white; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .84rem; color: rgba(255,255,255,.55); margin-bottom: 8px; transition: color .2s;
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .76rem; color: rgba(255,255,255,.3); }

/* ── CV PAGE SPECIFIC ──────────────────────────────────────── */
.cv-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.cv-sidebar {
  background: var(--dark); border-radius: var(--radius-lg); padding: 28px;
  position: sticky; top: calc(var(--nav-h) + 20px); color: white;
}
.cv-sidebar-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--grad-coral);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.6rem; color: white;
  margin: 0 auto 16px; overflow: hidden;
}
.cv-sidebar h3 { font-size: .9rem; text-align: center; color: white; margin-bottom: 4px; }
.cv-sidebar .cv-position { font-size: .76rem; color: rgba(255,255,255,.55); text-align: center; margin-bottom: 24px; }
.cv-sidebar-section { margin-bottom: 20px; }
.cv-sidebar-section h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.cv-sidebar-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.cv-sidebar-item span { font-size: .78rem; color: rgba(255,255,255,.65); line-height: 1.45; }
.cv-sidebar-item .icon { font-size: .9rem; flex-shrink: 0; margin-top: 1px; }

.cv-section { margin-bottom: 40px; }
.cv-section-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--dark); padding-bottom: 10px; margin-bottom: 20px;
  border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.cv-section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--grad-coral); border-radius: 2px; }
.cv-entry { margin-bottom: 20px; }
.cv-entry-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cv-entry-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .95rem; color: var(--dark); }
.cv-entry-date  { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; color: var(--coral); background: rgba(255,97,85,.08); padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.cv-entry-org   { font-size: .86rem; color: var(--teal-dark); font-weight: 500; margin: 2px 0 4px; }
.cv-entry-desc  { font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
  .stats-bar-item { background: white; border-right: none; padding: 20px; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar { position: static; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .nav-links, .nav-cta-wrap { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-badges  { justify-content: center; }
  .hero-desc    { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .filter-tab { font-size: .72rem; padding: 6px 14px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-avatar-wrap { width: 200px; height: 200px; }
}
@media print {
  .site-nav, footer, .mobile-nav { display: none !important; }
  .page-hero { margin-top: 0; }
  .cv-sidebar { background: #f0f0f0; color: black; }
  .cv-sidebar h3, .cv-sidebar .cv-position, .cv-sidebar-item span { color: black; }
}
