/* ============================================================
   COLOR PALETTE
   --ivory     : warm off-white background
   --paper     : card background
   --ink       : near-black text
   --muted     : gray supporting text
   --border    : subtle divider
   --coral     : warm accent (CTA / highlights)
   --coral-dim : muted version of accent
   --teal      : secondary accent
============================================================ */
:root {
  --ivory:      #F6F3EE;
  --paper:      #FFFFFF;
  --ink:        #1A1816;
  --muted:      #7A756E;
  --border:     #E5E0D8;
  --coral:      #E8572A;
  --coral-dim:  rgba(232,87,42,.1);
  --teal:       #1D7874;
  --shadow:     0 2px 24px rgba(26,24,22,.07);
  --shadow-lg:  0 8px 48px rgba(26,24,22,.12);
}

/* ============================================================
   DARK MODE PALETTE
   Applied when <html> has class "dark"
   ✏️ UPDATE: Tweak dark mode colors here if needed
============================================================ */
html.dark {
  --ivory:      #111010;
  --paper:      #1A1917;
  --ink:        #F0EDE8;
  --muted:      #7A756E;
  --border:     #2A2825;
  --coral:      #E8572A;
  --coral-dim:  rgba(232,87,42,.12);
  --shadow:     0 2px 24px rgba(0,0,0,.3);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.4);
}
/* Smooth transition when theme switches */
body { transition: background .35s ease, color .35s ease; }

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--coral); color: #fff; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
body { cursor: none; }
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--coral); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid var(--coral); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
  opacity: .5;
}

/* ============================================================
   NAVIGATION
   - Minimal top bar
   - CTA button becomes prominent "Download Resume" pill
============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 3rem;
  transition: background .3s, box-shadow .3s, padding .3s;
}
nav.scrolled {
  background: rgba(246,243,238,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: .9rem 3rem;
}
html.dark nav.scrolled {
  background: rgba(17,16,16,.95);
}

/* ── Theme toggle button ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.theme-toggle:hover { border-color: var(--coral); color: var(--coral); }
/* Sun / Moon icons swap */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: opacity .25s, transform .3s;
  font-size: 1rem; line-height: 1;
}
.theme-toggle .icon-moon { opacity: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.6); }
html.dark .theme-toggle .icon-sun  { opacity: 0; transform: translate(-50%,-50%) rotate(-45deg) scale(.6); }
html.dark .theme-toggle .icon-moon { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }

/* ── Logo */
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.nav-logo span { color: var(--coral); }

/* ── Nav links */
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  color: var(--muted); text-decoration: none; letter-spacing: .06em;
  text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── Download Resume button in nav ── */
.nav-hire {
  display: inline-flex !important; align-items: center; gap: .45rem;
  padding: .55rem 1.3rem !important;
  background: var(--coral); color: #fff !important;
  font-family: 'Outfit', sans-serif !important; font-weight: 600 !important;
  font-size: .8rem !important; letter-spacing: .02em !important;
  text-transform: none !important; border-radius: 100px;
  transition: transform .2s, opacity .2s !important;
}
.nav-hire:hover { opacity: .88; transform: translateY(-1px); }
/* Pulsing dot to draw attention */
.nav-hire::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.6s ease infinite;
}

/* ── Share button in nav ── */
.nav-share {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0; position: relative;
}
.nav-share:hover { border-color: var(--coral); color: var(--coral); }

/* Share dropdown */
.share-dropdown {
  position: absolute; top: calc(100% + .6rem); right: 0;
  background: var(--paper); border: 1.5px solid var(--border);
  border-radius: 12px; padding: .5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
  white-space: nowrap; min-width: 160px;
  z-index: 300;
}
.share-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.share-dropdown a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem; border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  color: var(--muted); text-decoration: none; letter-spacing: .04em;
  text-transform: uppercase; transition: background .15s, color .15s;
}
.share-dropdown a:hover { background: var(--ivory); color: var(--coral); }
html.dark .share-dropdown a:hover { background: #222; }
.share-icon { font-size: 1rem; }
.nav-share-wrapper { position: relative; }

/* ── Mobile top logo bar — hidden on desktop ── */
.nav-mobile-topbar { display: none; }

/* ── Hamburger button — hidden on desktop ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer;
  z-index: 201; position: relative;
  transition: border-color .2s;
}
.nav-hamburger:hover { border-color: var(--coral); }
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   MOBILE FLOATING PILL NAV — hidden on desktop
============================================================ */
.nav-mobile-pill {
  display: none;
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  align-items: center;
  gap: clamp(.05rem, .5vw, .15rem);
  padding: .45rem .5rem;
  background: rgba(246,243,238,.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.1);
  white-space: nowrap;
  max-width: calc(100vw - 1.5rem);
  width: max-content;
}
html.dark .nav-mobile-pill {
  background: rgba(22,20,19,.96);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
}
.nav-pill-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.6rem, 2.2vw, .7rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: .55rem clamp(.5rem, 1.8vw, .7rem);
  border-radius: 100px;
  transition: color .18s, background .18s;
  line-height: 1;
  flex-shrink: 0;
  min-height: unset !important;
  display: inline-flex !important;
  align-items: center;
}
.nav-pill-link:hover,
.nav-pill-link.active { color: var(--ink); background: var(--ivory); }
html.dark .nav-pill-link:hover,
html.dark .nav-pill-link.active { background: rgba(255,255,255,.08); color: #fff; }

/* Resume pill button */
.nav-pill-resume {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(.65rem, 2.4vw, .75rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff !important;
  background: var(--coral);
  padding: .55rem clamp(.7rem, 2.5vw, .9rem);
  border-radius: 100px;
  text-decoration: none;
  transition: opacity .18s, transform .18s;
  line-height: 1;
  flex-shrink: 0;
  min-height: unset !important;
}
.nav-pill-resume::before {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: blink 1.6s ease infinite;
  flex-shrink: 0;
}
.nav-pill-resume:hover { opacity: .88; transform: translateY(-1px); }

/* Divider dot */
.nav-pill-dot {
  width: 3px; height: 3px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 .1rem;
}

/* Theme toggle inside pill */
.nav-pill-theme {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 7vw, 34px);
  height: clamp(28px, 7vw, 34px);
  min-height: unset !important;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(.8rem, 3vw, 1rem);
  transition: border-color .2s, color .2s;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.nav-pill-theme:hover { border-color: var(--coral); color: var(--coral); }
.nav-pill-theme .icon-sun,
.nav-pill-theme .icon-moon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: opacity .25s, transform .3s;
  line-height: 1;
}
.nav-pill-theme .icon-moon { opacity: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.6); }
html.dark .nav-pill-theme .icon-sun  { opacity: 0; transform: translate(-50%,-50%) rotate(-45deg) scale(.6); }
html.dark .nav-pill-theme .icon-moon { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }
html.dark .nav-mobile-pill {
  background: rgba(22,20,19,.94);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
}
.nav-pill-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.48rem, 1.8vw, .58rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: clamp(.4rem, 1.2vw, .5rem) clamp(.4rem, 1.5vw, .6rem);
  border-radius: 100px;
  transition: color .18s, background .18s;
  line-height: 1;
  flex-shrink: 0;
  /* Override the min-height:44px rule for pill items */
  min-height: unset !important;
  display: inline-flex !important;
  align-items: center;
}
.nav-pill-link:hover,
.nav-pill-link.active { color: var(--ink); background: var(--ivory); }
html.dark .nav-pill-link:hover,
html.dark .nav-pill-link.active { background: rgba(255,255,255,.08); color: #fff; }

/* Resume pill button */
.nav-pill-resume {
  display: inline-flex !important;
  align-items: center;
  gap: clamp(.2rem, .8vw, .3rem);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(.52rem, 2vw, .63rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff !important;
  background: var(--coral);
  padding: clamp(.4rem, 1.2vw, .5rem) clamp(.55rem, 2.2vw, .8rem);
  border-radius: 100px;
  text-decoration: none;
  transition: opacity .18s, transform .18s;
  line-height: 1;
  flex-shrink: 0;
  min-height: unset !important;
}
.nav-pill-resume::before {
  content: ''; width: 5px; height: 5px;
  background: #fff; border-radius: 50%;
  animation: blink 1.6s ease infinite;
  flex-shrink: 0;
}
.nav-pill-resume:hover { opacity: .88; transform: translateY(-1px); }

/* Divider dot */
.nav-pill-dot {
  width: 3px; height: 3px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0;
}

/* Theme toggle inside pill */
.nav-pill-theme {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 6vw, 30px);
  height: clamp(24px, 6vw, 30px);
  min-height: unset !important;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: clamp(.7rem, 2.5vw, .85rem);
  transition: border-color .2s, color .2s;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.nav-pill-theme:hover { border-color: var(--coral); color: var(--coral); }
.nav-pill-theme .icon-sun,
.nav-pill-theme .icon-moon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: opacity .25s, transform .3s;
  line-height: 1;
}
.nav-pill-theme .icon-moon { opacity: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.6); }
html.dark .nav-pill-theme .icon-sun  { opacity: 0; transform: translate(-50%,-50%) rotate(-45deg) scale(.6); }
html.dark .nav-pill-theme .icon-moon { opacity: 1; transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  z-index: 201; position: relative;
  transition: border-color .2s;
}
.nav-hamburger:hover { border-color: var(--coral); }
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
/* X state when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 3rem 5rem;
  position: relative; overflow: hidden;
}
/* Subtle warm dot-grid background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,24,22,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  transition: background-image .35s;
}
html.dark .hero::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
}
/* Soft coral glow top-right */
.hero-glow {
  position: absolute; top: -15%; right: -5%;
  width: 640px; height: 640px;
  background: radial-gradient(ellipse, rgba(232,87,42,.09) 0%, transparent 65%);
  pointer-events: none;
}
/* Teal glow bottom-left */
.hero-glow2 {
  position: absolute; bottom: -10%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(29,120,116,.06) 0%, transparent 65%);
  pointer-events: none;
}

/* Designer decorative element — geometric accent */
.hero-design-accent {
  position: absolute; top: 12%; right: 8%;
  width: 220px; height: 220px;
  border: 1px solid rgba(232,87,42,.12);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0; animation: fadeIn 1.2s ease 1.5s forwards;
}
.hero-design-accent::before {
  content: ''; position: absolute; inset: 18px;
  border: 1px solid rgba(232,87,42,.08);
  border-radius: 50%;
}
.hero-design-accent::after {
  content: ''; position: absolute; inset: 36px;
  border: 1px dashed rgba(232,87,42,.06);
  border-radius: 50%;
}

/* ── Small label above name */
.hero-tag {
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: var(--coral); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .75rem;
  opacity: 0; animation: fadeUp .7s ease .15s forwards;
}
.hero-tag::before {
  content: ''; display: inline-block;
  width: 28px; height: 1.5px; background: var(--coral);
}
/* ── Big name */
.hero-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 11rem);
  line-height: .92; letter-spacing: -.03em;
  color: var(--ink);
  opacity: 0; animation: fadeUp .8s ease .3s forwards;
}
.hero-name span { color: var(--coral); }
/* ── Bottom row: desc + CTAs */
.hero-sub {
  margin-top: 2.5rem;
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 2rem;
  opacity: 0; animation: fadeUp .8s ease .48s forwards;
}
.hero-desc {
  font-size: 1rem; color: var(--muted); max-width: 400px; line-height: 1.75;
}
.hero-desc strong { color: var(--ink); font-weight: 600; }
/* ── Hero CTAs */
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
/* Primary: big coral pill – one-click hire */
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2rem;
  background: var(--coral); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem;
  border-radius: 100px; text-decoration: none;
  transition: transform .2s, opacity .2s;
  box-shadow: 0 4px 20px rgba(232,87,42,.3);
}
.btn-hero-primary:hover { transform: translateY(-2px); opacity: .9; }
/* Secondary: outlined */
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.8rem;
  background: transparent; color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .9rem;
  border-radius: 100px; border: 1.5px solid var(--border);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-hero-secondary:hover { border-color: var(--ink); }

/* ── LinkedIn follow button ── */
.btn-hero-linkedin {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.8rem;
  background: transparent; color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem;
  border-radius: 100px; border: 1.5px solid var(--border);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-hero-linkedin:hover { border-color: var(--ink); }

/* ── Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; right: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  opacity: 0; animation: fadeIn 1s ease 1.3s forwards;
}
.scroll-indicator span {
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: var(--muted); letter-spacing: .1em;
  writing-mode: vertical-rl; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 1.9s ease infinite;
}

/* ============================================================
   MARQUEE STRIP
============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: .85rem 0; overflow: hidden; white-space: nowrap;
  background: var(--paper);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.marquee-track span {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: .88rem; color: var(--muted);
  padding: 0 1.8rem; letter-spacing: .04em;
}
.marquee-track span.accent { color: var(--coral); font-size: .75rem; }

/* ============================================================
   SHARED SECTION STYLES
============================================================ */
section { padding: 6rem 3rem; }

/* Section eyebrow label */
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 3rem;
  display: flex; align-items: center; gap: .9rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
/* Big section heading */
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.0; letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Divider between sections */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   ABOUT SECTION
============================================================ */
#about { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.about-headline {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 1.2rem;
}
.about-headline em { color: var(--coral); font-style: normal; }
.about-text p { color: var(--muted); margin-bottom: .9rem; font-size: .97rem; line-height: 1.8; }
.about-text p strong { color: var(--ink); font-weight: 600; }
/* Tag pills */
.about-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.about-tag {
  padding: .3rem .85rem;
  border: 1.5px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: var(--muted); letter-spacing: .04em;
  border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.about-tag:hover { border-color: var(--coral); color: var(--coral); }

/* Stats grid */
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
}
.stat-box {
  background: var(--ivory); padding: 2rem 1.75rem;
  transition: background .2s;
}
.stat-box:hover { background: #fff; }
html.dark .stat-box { background: var(--paper); }
html.dark .stat-box:hover { background: #222; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 3.2rem; color: var(--coral);
  line-height: 1; display: block;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  color: var(--muted); letter-spacing: .07em; text-transform: uppercase;
  margin-top: .35rem; display: block;
}

/* ============================================================
   TIMELINE SECTION
============================================================ */
#timeline { background: var(--ivory); }
.tl-wrap { position: relative; padding-left: 2rem; }
.tl-wrap::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--coral) 0%, rgba(232,87,42,.12) 90%, transparent 100%);
}
.tl-item {
  position: relative; padding: 0 0 2.8rem 2.5rem;
  opacity: 0; transform: translateX(-18px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item.visible { opacity: 1; transform: translateX(0); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.12rem; top: .4rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--coral);
  transition: background .2s;
}
html.dark .tl-dot { background: var(--ink); }
.tl-item:hover .tl-dot { background: var(--coral); }
.tl-item.tl-now .tl-dot {
  background: var(--coral);
  animation: pulseDot 1.9s ease infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,87,42,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(232,87,42,0); }
}
.tl-year {
  font-family: 'JetBrains Mono', monospace; font-size: .64rem;
  color: var(--coral); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .3rem;
}
.tl-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.1;
  margin-bottom: .35rem; color: var(--ink);
}
.tl-sub { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.tl-sub strong { color: var(--ink); font-weight: 600; }
.tl-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .6rem; padding: .22rem .75rem;
  background: var(--coral-dim); border: 1px solid rgba(232,87,42,.25);
  font-family: 'JetBrains Mono', monospace; font-size: .6rem;
  color: var(--coral); letter-spacing: .07em; text-transform: uppercase;
  border-radius: 100px;
}

/* ============================================================
   PROJECTS SECTION
============================================================ */
#projects { background: var(--paper); }
.projects-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; }
.project-card {
  background: var(--paper); padding: 2.5rem 2.8rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start;
  transition: background .2s; position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--coral);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s;
}
.project-card:hover { background: var(--ivory); }
html.dark .project-card:hover { background: #222; }
.project-card:hover::before { transform: scaleY(1); }

.project-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.project-num { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--coral); letter-spacing: .1em; }
.project-date { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--muted); }
/* Live badge with blinking dot */
.project-live {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .7rem;
  background: var(--coral-dim); border: 1px solid rgba(232,87,42,.3);
  font-family: 'JetBrains Mono', monospace; font-size: .6rem;
  color: var(--coral); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border-radius: 100px;
  transition: background .2s;
}
.project-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--coral); flex-shrink: 0;
  animation: blink 1.5s infinite;
}
.project-live:hover { background: rgba(232,87,42,.18); }
.project-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2rem; letter-spacing: -.02em; line-height: 1;
  margin-bottom: .75rem; color: var(--ink);
  transition: color .2s;
}
.project-card:hover .project-name { color: var(--coral); }
.project-desc { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-bottom: 1.1rem; max-width: 580px; }
/* Highlight bullets */
.project-highlights { margin-top: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.highlight { display: flex; align-items: flex-start; gap: .6rem; font-size: .83rem; color: var(--muted); line-height: 1.55; }
.highlight::before { content: '→'; color: var(--coral); flex-shrink: 0; margin-top: .05rem; font-size: .75rem; }
/* Stack pills */
.project-stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.stack-pill {
  padding: .22rem .65rem; background: var(--ivory);
  border: 1px solid var(--border); font-size: .72rem;
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  border-radius: 6px;
}
html.dark .stack-pill { background: #222; }
.project-links { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.project-link {
  display: flex; align-items: center; gap: .4rem;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: var(--muted); text-decoration: none; letter-spacing: .07em;
  text-transform: uppercase; transition: color .2s;
}
.project-link:hover { color: var(--coral); }
.project-link svg { width: 14px; height: 14px; }

/* ============================================================
   SKILLS SECTION
============================================================ */
#skills { background: var(--ivory); }
.skills-outer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1px; background: var(--border);
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
}

/* ── Design & UX skill group highlight ── */
.skill-group-design {
  border-top: 2px solid var(--coral);
}

.skill-group { background: var(--paper); padding: 2rem; transition: background .2s; }
.skill-group:hover { background: var(--ivory); }
html.dark .skill-group:hover { background: #222; }
.skill-group-title {
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.skill-tag {
  padding: .3rem .75rem; border: 1px solid var(--border);
  font-size: .8rem; color: var(--muted); border-radius: 8px;
  transition: all .2s;
}
.skill-tag:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-dim); }

/* ============================================================
   EDUCATION SECTION
============================================================ */
#education { background: var(--paper); }
.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.edu-card { background: var(--paper); padding: 2.5rem; transition: background .2s; }
.edu-card:hover { background: var(--ivory); }
html.dark .edu-card:hover { background: #222; }
.edu-year {
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: var(--coral); letter-spacing: .1em; margin-bottom: .75rem;
}
.edu-degree {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .4rem;
}
.edu-school { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.edu-score {
  display: inline-block; padding: .3rem .85rem;
  border: 1.5px solid var(--coral); border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--coral);
}

/* ============================================================
   CERTIFICATIONS SECTION
============================================================ */
#certifications { background: var(--ivory); }
.cert-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1px; background: var(--border);
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
}
.cert-card { background: var(--paper); padding: 2rem; display: flex; align-items: flex-start; gap: 1.1rem; transition: background .2s; }
.cert-card:hover { background: var(--ivory); }
html.dark .cert-card:hover { background: #222; }
.cert-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--coral-dim); border: 1px solid rgba(232,87,42,.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--coral); font-size: 1rem;
}
.cert-name { font-size: .92rem; font-weight: 600; margin-bottom: .3rem; line-height: 1.4; color: var(--ink); }
.cert-issuer {
  font-family: 'JetBrains Mono', monospace; font-size: .64rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: .07em;
}

/* ============================================================
   HIRE ME / CONTACT SECTION
   Key UX goal: ONE-CLICK mailto = maximum friction reduction
============================================================ */
#contact { background: var(--paper); position: relative; overflow: hidden; }
#contact::before {
  content: ''; position: absolute; bottom: -25%; left: -8%;
  width: 550px; height: 550px;
  background: radial-gradient(ellipse, rgba(232,87,42,.06) 0%, transparent 65%);
  pointer-events: none;
}

/* "Open to work" badge */
.hire-status-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid rgba(232,87,42,.3); background: var(--coral-dim);
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: var(--coral); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 100px; margin-bottom: 2rem;
}
.hire-status-dot {
  width: 7px; height: 7px; background: var(--coral);
  border-radius: 50%; animation: blink 1.5s infinite;
}

.hire-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }

.contact-headline {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: .95; letter-spacing: -.03em; margin-bottom: 1.4rem;
}
.contact-headline span { color: var(--coral); }
.hire-pitch { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.hire-pitch strong { color: var(--ink); font-weight: 600; }

/* Freelance call-out banner */
.hire-freelance-note {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1.1rem;
  background: var(--coral-dim); border: 1.5px solid rgba(232,87,42,.2);
  border-radius: 12px; margin-bottom: 1.75rem;
  font-size: .88rem; color: var(--ink); line-height: 1.6;
}
.hire-freelance-note strong { color: var(--coral); font-weight: 700; }
.hire-freelance-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }

/* Quick-facts grid */
.hire-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 2.2rem;
}
.hire-fact { background: var(--ivory); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .65rem; }
html.dark .hire-fact { background: #1e1c1a; }
.hire-fact-icon { font-size: .95rem; flex-shrink: 0; }
.hire-fact-text { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.hire-fact-text strong { color: var(--ink); font-weight: 600; display: block; font-size: .84rem; }

/* ── CTA row: ONE-CLICK buttons ── */
.hire-cta-row { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* Big primary "Email Me" — opens Gmail compose in new tab */
.btn-hire-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 2.2rem;
  background: var(--coral); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem;
  border-radius: 100px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(232,87,42,.3);
  transition: transform .2s, opacity .2s;
  cursor: pointer;
}
.btn-hire-primary:hover { transform: translateY(-2px); opacity: .88; }

/* Secondary outline */
.btn-hire-secondary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.9rem;
  background: transparent; color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .9rem;
  border-radius: 100px; border: 1.5px solid var(--border);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-hire-secondary:hover { border-color: var(--coral); color: var(--coral); }

/* WhatsApp CTA */
.btn-hire-whatsapp {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.9rem;
  background: transparent; color: var(--ink);
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .9rem;
  border-radius: 100px; border: 1.5px solid var(--border);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-hire-whatsapp:hover { border-color: #25d366; color: #25d366; }

/* ── hire-socials and related styles kept for CSS completeness but section removed from HTML ── */
.hire-socials {
  display: flex; gap: 1px;
  background: var(--border); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden;
}

/* ── Right panel: form ── */
.hire-form-panel { position: sticky; top: 6rem; }
.hire-form-label {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .8rem;
}
.hire-form-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-wrap { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--ivory); }
html.dark .form-wrap { background: #1e1c1a; }
.form-tabs { display: flex; border-bottom: 1px solid var(--border); }
.form-tab {
  flex: 1; padding: 1rem;
  background: none; border: none;
  font-family: 'JetBrains Mono', monospace; font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.form-tab.active { color: var(--coral); border-bottom-color: var(--coral); background: rgba(232,87,42,.03); }
.form-tab:hover { color: var(--ink); }
.tab-content { display: none; padding: 1.75rem; }
.tab-content.active { display: block; }
.form-group { margin-bottom: 1.05rem; }
.form-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: var(--muted); letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: .42rem;
}
.form-input {
  width: 100%; background: var(--paper); border: 1.5px solid var(--border);
  color: var(--ink); font-family: 'Outfit', sans-serif; font-size: .9rem;
  padding: .68rem .9rem; outline: none;
  border-radius: 8px; transition: border-color .2s;
}
.form-input:focus { border-color: var(--coral); }
.form-input::placeholder { color: #bbb; }
.form-textarea { min-height: 95px; resize: vertical; }
.form-submit {
  width: 100%; padding: .85rem;
  background: var(--coral); color: #fff;
  font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; border: none; cursor: pointer; border-radius: 10px;
  transition: opacity .2s;
}
.form-submit:hover { opacity: .87; }
.form-success {
  margin: 0 1.75rem 1.75rem; padding: .85rem 1rem;
  border: 1.5px solid var(--coral); border-radius: 10px;
  background: var(--coral-dim);
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: var(--coral); letter-spacing: .04em;
}

/* ============================================================
   FOOTER — Creative card-grid layout
============================================================ */
footer {
  background: var(--ink); color: var(--ivory);
  padding: 4rem 3rem 2.5rem;
}

/* Top bento-style grid */
.footer-bento {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 2.5rem;
}

.footer-cell {
  background: #222;
  padding: 2rem 2rem;
  transition: background .2s;
}
.footer-cell:hover { background: #2a2a2a; }

/* Cell A: name + tagline (spans 2 rows) */
.footer-cell-brand { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.footer-brand-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.6rem; letter-spacing: -.025em;
  line-height: 1; color: #fff;
}
.footer-brand-name span { color: var(--coral); }
.footer-brand-desc {
  font-size: .88rem; color: rgba(255,255,255,.45);
  line-height: 1.65; margin-top: .9rem; max-width: 280px;
}
/* One-click email CTA inside footer */
.footer-email-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.8rem; padding: .75rem 1.5rem;
  background: var(--coral); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .85rem;
  border-radius: 100px; text-decoration: none;
  transition: opacity .2s, transform .2s;
  align-self: flex-start;
}
.footer-email-btn:hover { opacity: .88; transform: translateY(-2px); }

/* Cell B: Nav links */
.footer-cell-nav-title {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: var(--coral); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-nav-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-nav-links a {
  font-size: .9rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.footer-nav-links a:hover { color: var(--coral); }

/* Cell C: Status card */
.footer-cell-status { display: flex; flex-direction: column; gap: .75rem; }
.footer-status-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem;
  background: rgba(232,87,42,.12); border: 1px solid rgba(232,87,42,.3);
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: var(--coral); letter-spacing: .09em; text-transform: uppercase;
  border-radius: 100px; align-self: flex-start;
}
.footer-status-dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; animation: blink 1.5s infinite; }
.footer-status-text { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.6; }

/* Cell D: Socials */
.footer-cell-socials-title {
  font-family: 'JetBrains Mono', monospace; font-size: .65rem;
  color: rgba(255,255,255,.3); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-socials { display: flex; flex-direction: column; gap: .5rem; }
.footer-social-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .2s;
}
.footer-social-link:hover { color: var(--coral); }
.footer-social-link span { font-size: .95rem; }

/* Bottom bar */
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: rgba(255,255,255,.3); letter-spacing: .04em;
}
.footer-copy span { color: var(--coral); }
.footer-tagline-bottom {
  font-family: 'JetBrains Mono', monospace; font-size: .62rem;
  color: rgba(255,255,255,.2);
}

/* ============================================================
   GLOBAL ANIMATIONS
============================================================ */
@keyframes fadeUp  { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:.75; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollPulse { 0%,100% { opacity:1; } 50% { opacity:.25; } }
@keyframes blink   { 0%,100% { opacity:1; } 50% { opacity:.2; } }

/* ============================================================
   MOBILE — 768px and below
   Comprehensive overrides for every section
============================================================ */
@media (max-width: 768px) {

  /* ── Cursor off ── */
  body { cursor: auto; padding-bottom: 0; }
  .cursor, .cursor-ring { display: none; }

  /* ── Nav: scale down for mobile ── */
  nav#nav { display: flex !important; padding: .75rem 1rem; }
  nav#nav.scrolled { padding: .6rem 1rem; }
  .nav-mobile-pill { display: none !important; }
  .nav-mobile-topbar { display: none !important; }
  .nav-hamburger { display: none !important; }

  /* Hide text links, keep Resume + theme toggle */
  .nav-link-item { display: none !important; }
  .nav-share-wrapper { display: flex !important; align-items: center; }
  .nav-links { gap: .5rem; flex-wrap: nowrap; align-items: center; }

  /* Resume button */
  .nav-hire { padding: .45rem .9rem !important; font-size: .72rem !important; }

  /* Theme toggle & Share — same diameter as Resume button height.
     Resume: padding .45rem top + .45rem bottom + font ~.72rem × lh 1.4 = ~1.908rem
     On high-DPI phones root font is often 18-20px so we use a fixed value
     that matches the pill button visually (~44px).                      */
  .theme-toggle,
  .nav-share {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    font-size: 1.1rem !important;
    aspect-ratio: 1 / 1;
  }

  /* Share dropdown — keep it from clipping off-screen on mobile */
  .share-dropdown {
    right: 0;
    left: auto;
    max-width: calc(100vw - 2rem);
  }

  /* ── Hero ── */
  .hero { padding: 0 1.25rem 3.5rem; min-height: 100svh; justify-content: center; padding-top: 5rem; }
  .hero-design-accent { display: none; }
  .hero-tag { font-size: .62rem; margin-bottom: .9rem; }
  .hero-name { font-size: clamp(2.2rem, 10.5vw, 3.8rem); letter-spacing: -.02em; word-break: keep-all; overflow: visible; }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-top: 1.6rem; }
  .hero-desc { font-size: .93rem; max-width: 100%; }
  .hero-cta { flex-direction: column; width: 100%; gap: .7rem; }
  .btn-hero-primary, .btn-hero-secondary, .btn-hero-linkedin {
    width: 100%; justify-content: center;
    padding: .85rem 1.5rem; font-size: .88rem;
  }
  .scroll-indicator { display: none; }

  /* ── Sections ── */
  section { padding: 3.5rem 1.25rem; }
  .section-label { font-size: .62rem; margin-bottom: 2rem; }
  .section-title { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 1.2rem; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-headline { font-size: clamp(1.5rem, 6vw, 2rem); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2.6rem; }

  /* ── Timeline ── */
  .tl-wrap { padding-left: 1.4rem; }
  .tl-item { padding: 0 0 2rem 1.8rem; }
  .tl-dot { left: -1.46rem; }
  .tl-title { font-size: 1.1rem; }
  .tl-sub { font-size: .84rem; }

  /* ── Projects ── */
  .projects-list { border-radius: 12px; }
  .project-card { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; gap: 1.25rem; }
  .project-name { font-size: 1.6rem; }
  .project-desc { font-size: .86rem; max-width: 100%; }
  .highlight { font-size: .8rem; }
  .project-links { flex-direction: row; align-items: center; justify-content: flex-start; gap: 1rem; }
  .project-link { font-size: .68rem; }

  /* ── Skills ── */
  .skills-outer { grid-template-columns: 1fr; border-radius: 12px; }
  .skill-group { padding: 1.5rem 1.25rem; }
  .skill-tag { font-size: .78rem; }

  /* ── Education ── */
  .edu-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .edu-card { padding: 1.75rem 1.25rem; }
  .edu-degree { font-size: 1.3rem; }

  /* ── Certifications ── */
  .cert-list { border-radius: 12px; }
  .cert-card { padding: 1.5rem 1.25rem; }
  .cert-name { font-size: .88rem; }

  /* ── Hire Me / Contact ── */
  #contact { padding: 3.5rem 1.25rem; }
  .hire-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-headline { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hire-pitch { font-size: .93rem; margin-bottom: 1.5rem; }
  .hire-facts { grid-template-columns: 1fr 1fr; margin-bottom: 1.6rem; }
  .hire-fact { padding: .85rem 1rem; }
  .hire-fact-text { font-size: .78rem; }
  .hire-fact-text strong { font-size: .8rem; }
  .hire-cta-row { flex-direction: column; gap: .7rem; margin-bottom: 1.6rem; }
  .btn-hire-primary, .btn-hire-secondary, .btn-hire-whatsapp { width: 100%; justify-content: center; padding: .9rem 1.5rem; }
  .hire-socials { border-radius: 12px; }
  .hire-form-panel { position: static; }
  .form-wrap { border-radius: 12px; }
  .tab-content { padding: 1.25rem; }
  .form-tab { font-size: .62rem; padding: .85rem .5rem; }

  /* ── Footer ── */
  footer { padding: 2.5rem 1.25rem 1.75rem; }
  .footer-bento { grid-template-columns: 1fr; border-radius: 14px; margin-bottom: 1.75rem; }
  .footer-cell-brand { grid-row: auto; }
  .footer-brand-name { font-size: 2rem; }
  .footer-email-btn { width: 100%; justify-content: center; font-size: .78rem; padding: .7rem 1rem; margin-top: 1.2rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ============================================================
   VERY SMALL PHONES — 380px and below
============================================================ */
@media (max-width: 380px) {
  .hero-name { font-size: clamp(1.9rem, 9.5vw, 2.6rem); }
  .hire-facts { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.2rem; }
}

/* ============================================================
   ENHANCED MOBILE OPTIMIZATIONS — performance & accessibility
   Added for better mobile rendering across all breakpoints
============================================================ */

/* GPU-accelerated scroll for iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* Prevent text size inflation on mobile */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Tap highlight removal on mobile */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly minimum tap sizes — exclude pill nav which has its own sizing */
@media (max-width: 768px) {
  a:not(.nav-pill-link):not(.nav-pill-resume), button:not(.nav-pill-theme) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Nav mobile: hide cursor on touch */
  .cursor, .cursor-ring {
    display: none !important;
  }
  body { cursor: auto !important; }

  /* Nav hamburger improvements — handled by hamburger toggle above */

  /* Hero mobile improvements */
  .hero {
    padding: 7rem 1.25rem 3rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: .75rem;
    width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-linkedin {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Project highlights more readable on mobile */
  .project-highlights {
    gap: .5rem;
  }
  .highlight {
    line-height: 1.5;
  }

  /* Stack pills wrap nicely */
  .project-stack {
    gap: .4rem;
  }
  .stack-pill {
    font-size: .7rem;
    padding: .3rem .6rem;
  }

  /* Better form UX on mobile */
  .form-input, .form-textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* Education cards full-width readable */
  .edu-school {
    font-size: .82rem;
    line-height: 1.4;
  }
}

/* ── 480px breakpoint for mid-size phones ── */
@media (max-width: 480px) {
  nav#nav { padding: .65rem .85rem; }
  .nav-hire { padding: .4rem .75rem !important; font-size: .68rem !important; }

  /* Circle buttons — match Resume height at 480px (~40px) */
  .theme-toggle,
  .nav-share {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
    aspect-ratio: 1 / 1;
  }

  /* Hero font scaling */
  .hero-name {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }
  .hero-tag {
    font-size: .68rem;
    text-align: center;
  }
  .hero-desc {
    font-size: .87rem;
  }

  /* Marquee speed tweak for mobile */
  .marquee-track {
    animation-duration: 22s;
  }

  /* Timeline more compact */
  .tl-year {
    font-size: .72rem;
  }
  .tl-badge {
    font-size: .66rem;
    padding: .25rem .55rem;
  }

  /* Footer compact */
  .footer-copy {
    font-size: .72rem;
  }
  .footer-tagline-bottom {
    font-size: .68rem;
  }
}

/* ── Image optimization: prevent layout shift ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Smooth font rendering ── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Print styles: make resume linkable ── */
@media print {
  .cursor, .cursor-ring, nav, .marquee-wrap,
  .scroll-indicator, footer, #contact {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
}
