/* ============================================================
   ETHAN ROSE — Portfolio
   Dark-first · OKLCH · Outfit × DM Sans × JetBrains Mono
   ============================================================ */

/* ── Theme tokens ─────────────────────────────────────────── */
:root {
  --bg:          oklch(9% 0.012 265);
  --bg-alt:      oklch(13% 0.016 265);
  --card:        oklch(16% 0.018 265);
  --border:      oklch(100% 0 0 / 0.07);
  --border-hi:   oklch(72% 0.19 235 / 0.38);

  --accent:      oklch(72% 0.19 235);
  --accent-dim:  oklch(72% 0.19 235 / 0.1);
  --accent-glow: oklch(72% 0.19 235 / 0.25);

  --emerald:     oklch(73% 0.17 160);
  --emerald-dim: oklch(73% 0.17 160 / 0.12);

  --text-1:      oklch(94% 0.008 265);
  --text-2:      oklch(65% 0.015 265);
  --text-3:      oklch(42% 0.012 265);

  --nav-bg:      oklch(9% 0.012 265 / 0.88);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-height: 64px;
  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg:          oklch(97% 0.006 265);
  --bg-alt:      oklch(93% 0.008 265);
  --card:        oklch(99.5% 0.003 265);
  --border:      oklch(0% 0 0 / 0.08);
  --border-hi:   oklch(52% 0.19 235 / 0.3);

  --accent:      oklch(52% 0.19 235);
  --accent-dim:  oklch(52% 0.19 235 / 0.08);
  --accent-glow: oklch(52% 0.19 235 / 0.18);

  --emerald:     oklch(55% 0.17 160);
  --emerald-dim: oklch(55% 0.17 160 / 0.1);

  --text-1:      oklch(16% 0.018 265);
  --text-2:      oklch(48% 0.025 265);
  --text-3:      oklch(65% 0.015 265);

  --nav-bg:      oklch(97% 0.006 265 / 0.9);
}

/* ── Theme transition ─────────────────────────────────────── */
html.transitioning,
html.transitioning *,
html.transitioning *::before,
html.transitioning *::after {
  transition:
    background-color 0.4s ease,
    border-color     0.4s ease,
    color            0.25s ease,
    box-shadow       0.4s ease,
    opacity          0.25s ease !important;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(oklch(72% 0.19 235 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(72% 0.19 235 / 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body::before {
  background-image:
    linear-gradient(oklch(52% 0.19 235 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(52% 0.19 235 / 0.04) 1px, transparent 1px);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.mono   { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}
.section     { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

/* ── Cards ────────────────────────────────────────────────── */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
[data-theme="light"] .glass {
  box-shadow: 0 1px 3px oklch(0% 0 0 / 0.04), 0 6px 20px oklch(0% 0 0 / 0.06);
}
.glass:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.25);
  transform: translateY(-2px);
}
[data-theme="light"] .glass:hover {
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.1), 0 2px 6px oklch(52% 0.19 235 / 0.08);
}

/* ── Section header + ghost number ───────────────────────── */
.section-header {
  position: relative;
  margin-bottom: 3.5rem;
  overflow: visible;
}
.section-header::before {
  content: attr(data-num);
  position: absolute;
  top: -0.55rem;
  left: -0.4rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 800;
  color: oklch(72% 0.19 235 / 0.07);
  line-height: 0.85;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
[data-theme="light"] .section-header::before { color: oklch(52% 0.19 235 / 0.06); }
.section-header h2,
.section-header .section-tag { position: relative; z-index: 1; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  line-height: 1.1;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.13em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px oklch(0% 0 0 / 0.12);
}
[data-theme="light"] #navbar.scrolled { box-shadow: 0 4px 24px oklch(0% 0 0 / 0.06); }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-logo .accent { transition: opacity var(--transition); }
.nav-logo:hover .accent { opacity: 0.6; }

.nav-links { display: flex; gap: 0.2rem; margin-left: auto; }
.nav-links a {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-dim); }

.nav-resume-btn {
  padding: 0.44rem 1.1rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}
.nav-resume-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: oklch(100% 0 0 / 0.05);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
[data-theme="light"] .theme-toggle { background: oklch(0% 0 0 / 0.04); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.icon-sun, .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-moon { opacity: 0; transform: rotate(-30deg) scale(0.6); }
[data-theme="light"] .icon-sun  { opacity: 0; transform: rotate(30deg) scale(0.6); }
[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: oklch(9% 0.012 265 / 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .mobile-menu { background: oklch(97% 0.006 265 / 0.97); }
.mobile-menu.open { display: flex; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { padding: 0.85rem 0; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--accent); }

/* ============================================================
   HERO — CENTERED
   ============================================================ */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 24px var(--accent-glow); }
  50%       { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 48px var(--accent-glow); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 660px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid oklch(73% 0.17 160 / 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
[data-theme="light"] .hero-badge { border-color: oklch(55% 0.17 160 / 0.3); }
.status-dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Profile */
.profile-wrapper {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 2rem;
  animation:
    hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both,
    glow-pulse 4s ease-in-out 1.2s infinite;
}
.profile-img {
  width: 150%; height: 150%;
  object-fit: cover;
  object-position: center 22%;
}
.profile-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-alt);
  display: none;
  align-items: center;
  justify-content: center;
}

/* Name */
.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
  line-height: 1.05;
  margin-bottom: 1.1rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-name .accent { color: var(--accent); }

/* Typed */
.hero-typed-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  min-height: 1.6rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.hero-typed { font-size: 0.92rem; color: var(--text-2); }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }

/* Tagline */
.hero-tagline {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 50ch;
  line-height: 1.78;
  margin-bottom: 1.75rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Credential strip */
.hero-creds {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.cred-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-2);
  letter-spacing: 0.03em;
}
.cred-item svg { color: var(--accent); flex-shrink: 0; }
.cred-dot { color: var(--text-3); font-size: 0.9rem; }

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}
.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Socials */
.hero-socials {
  display: flex;
  gap: 0.55rem;
  animation: hero-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}
[data-theme="light"] .social-icon { background: oklch(0% 0 0 / 0.03); }
.social-icon:hover { color: var(--accent); border-color: var(--border-hi); background: var(--accent-dim); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3.5rem;
  align-items: start;
}
.about-text p { color: var(--text-2); margin-bottom: 1.3rem; font-size: 1rem; line-height: 1.8; max-width: 68ch; }
.about-text strong { color: var(--text-1); font-weight: 600; }

.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.5rem; }
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.highlight-item .accent { color: var(--accent); }

.detail-card { padding: 1.5rem 1.7rem; }
.detail-card h4 {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  color: var(--accent);
}
.detail-list { display: flex; flex-direction: column; gap: 0.65rem; }
.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
  color: var(--text-1);
}
.detail-list li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-key { color: var(--text-3); font-size: 0.8rem; white-space: nowrap; }
.detail-list a.accent:hover { text-decoration: underline; }

.course-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.75rem;
  padding: 0.22rem 0.6rem;
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}
[data-theme="light"] .tag { background: oklch(0% 0 0 / 0.04); }

/* ============================================================
   SKILLS — Bento grid
   ============================================================ */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.skill-block--wide { grid-column: 1 / -1; }

.skill-block { padding: 1.8rem; position: relative; overflow: hidden; }
.skill-block::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
  transition: opacity var(--transition);
}
.skill-block:hover::after { opacity: 1; }

.skill-block-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.skill-block-header svg { color: var(--accent); flex-shrink: 0; }
.skill-block h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-1); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-2);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
[data-theme="light"] .skill-tag { background: oklch(0% 0 0 / 0.03); }
.skill-tag.highlight { color: var(--accent); border-color: var(--border-hi); background: var(--accent-dim); font-weight: 500; }
.skill-block:hover .skill-tag { border-color: oklch(72% 0.19 235 / 0.14); }
[data-theme="light"] .skill-block:hover .skill-tag { border-color: oklch(52% 0.19 235 / 0.14); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.cert-card { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.7rem; }

/* Featured: accent tint, no side border */
.cert-primary {
  background: oklch(72% 0.19 235 / 0.07) !important;
  border-color: var(--border-hi) !important;
}
[data-theme="light"] .cert-primary { background: oklch(52% 0.19 235 / 0.06) !important; }

.cert-icon { color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }
.cert-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-1); }
.cert-info p  { font-size: 0.84rem; color: var(--text-2); margin-bottom: 0.75rem; line-height: 1.6; }
.cert-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.18rem 0.55rem;
  background: var(--emerald-dim);
  border: 1px solid oklch(73% 0.17 160 / 0.25);
  border-radius: 4px;
  color: var(--emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme="light"] .cert-badge { border-color: oklch(55% 0.17 160 / 0.28); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.projects-grid-single { grid-template-columns: minmax(0, 680px); }
.project-card { padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.project-header { display: flex; justify-content: space-between; align-items: center; }
.project-icon-wrap {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.project-tag-top { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); }
.project-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-1); }
.project-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.75; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; }
.project-tech span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.18rem 0.55rem;
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
}
[data-theme="light"] .project-tech span { background: oklch(0% 0 0 / 0.03); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2rem; top: 1.5rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateX(-50%);
}
.timeline-card { padding: 1.5rem 1.8rem; }
.timeline-meta { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.timeline-type {
  font-size: 0.67rem;
  font-family: var(--font-mono);
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; color: var(--text-1); }
.timeline-card h4 { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.75rem; color: var(--accent); }
.timeline-card ul { display: flex; flex-direction: column; gap: 0.45rem; }
.timeline-card li { font-size: 0.85rem; color: var(--text-2); padding-left: 1rem; position: relative; line-height: 1.65; }
.timeline-card li::before { content: '›'; position: absolute; left: 0; color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper { text-align: center; max-width: 560px; margin: 0 auto; }
.contact-intro { font-size: 1.05rem; color: var(--text-2); margin-bottom: 2rem; line-height: 1.8; }
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}
.contact-email-btn:hover { filter: brightness(1.1); box-shadow: 0 8px 28px var(--accent-glow); transform: translateY(-2px); }
.contact-socials { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.contact-social-btn:hover { background: var(--accent); color: var(--bg); box-shadow: 0 4px 12px var(--accent-glow); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy  { color: var(--text-3); font-size: 0.82rem; }
.back-to-top { font-size: 0.82rem; color: var(--text-3); padding: 0.3rem 0.7rem; border-radius: 5px; transition: color var(--transition), background var(--transition); }
.back-to-top:hover { color: var(--accent); background: var(--accent-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .skills-layout    { grid-template-columns: 1fr; }
  .skill-block--wide { grid-column: auto; }
  .certs-grid       { grid-template-columns: 1fr; }
  .projects-grid    { grid-template-columns: 1fr; }

  .nav-links      { display: none; }
  .nav-resume-btn { display: none; }
  .hamburger      { display: flex; }
  .theme-toggle   { margin-left: auto; }
}

@media (max-width: 600px) {
  .section   { padding: 75px 0; }
  .container { padding: 0 1.25rem; }
  .timeline  { padding-left: 1.5rem; }

  .hero-name { font-size: clamp(1.9rem, 10vw, 2.5rem); }
  .cred-dot  { display: none; }
  .cred-item { font-size: 0.7rem; }
  .hero-creds { gap: 0.4rem; }

  .section-header::before { display: none; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .cert-card { flex-direction: column; gap: 0.7rem; }
}
