/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg:           #07090f;
  --bg-2:         #0d1117;
  --surface:      #111827;
  --surface-2:    #1a2235;
  --border:       #1e2d45;
  --border-light: #2d3f55;

  --accent:       #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow:  rgba(59, 130, 246, 0.12);
  --purple:       #8b5cf6;
  --purple-light: #a78bfa;
  --green:        #10b981;
  --amber:        #f59e0b;

  --text:         #f1f5f9;
  --text-2:       #cbd5e1;
  --text-muted:   #64748b;
  --text-subtle:  #94a3b8;

  --gradient:      linear-gradient(135deg, var(--accent), var(--purple));
  --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;

  --r:    12px;
  --r-sm:  8px;
  --r-lg: 22px;

  --shadow:        0 4px 24px rgba(0,0,0,.45);
  --shadow-accent: 0 8px 32px rgba(59,130,246,.25);

  --nav-h: 66px;
  --ease:     0.3s ease;
  --ease-out: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--purple-light); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

/* ============================================================
   Utilities
   ============================================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.section { padding: 86px 0; }

.section-header { margin-bottom: 52px; text-align: center; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll reveal — only hidden when JS is confirmed running */
body.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
body.js .reveal.visible { opacity: 1; transform: none; }
body.js .reveal-d1 { transition-delay: 0.1s; }
body.js .reveal-d2 { transition-delay: 0.2s; }
body.js .reveal-d3 { transition-delay: 0.3s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-light); color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-secondary { background: var(--purple); color: #fff; }
.btn-secondary:hover {
  background: var(--purple-light); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,92,246,.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--ease), border-color var(--ease);
}
.nav.scrolled {
  background: rgba(7, 9, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo:hover { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-subtle);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-resume {
  background: var(--accent) !important;
  color: #fff !important;
  margin-left: 8px;
  padding: 7px 16px !important;
}
.nav-resume:hover { background: var(--accent-light) !important; color: #fff !important; }

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 30% -5%,  rgba(59,130,246,.14) 0%, transparent 65%),
    radial-gradient(ellipse 60%  50% at 85% 90%,  rgba(139,92,246,.1) 0%, transparent 55%),
    var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  opacity: 0.22;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* ── Hero text side ── */
.hero-content { text-align: left; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent-light);
}

.hero-name {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
}

/* Role block */
.hero-role-block { margin-bottom: 18px; }

.hero-current-role {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.role-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-specialty {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-subtle);
  min-height: 28px;
  line-height: 1.4;
}
.typed-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--accent-light);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-tagline {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  max-width: 520px;
}
.hero-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Social row in hero — filled pill buttons matching action row width */
.hero-social-row {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-social-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-subtle);
  transition: all var(--ease);
  white-space: nowrap;
}
.hero-social-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.hero-social-btn:nth-child(1):hover { background: #24292e; border-color: #444; }
.hero-social-btn:nth-child(2):hover { background: #0077b5; border-color: #0077b5; }
.hero-social-btn:nth-child(3):hover { background: #4285f4; border-color: #4285f4; }
.hero-social-btn:nth-child(4):hover { background: #ea4335; border-color: #ea4335; }

.hero-stats {
  display: flex;
  align-items: center;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-stat {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.stat-value {
  font-size: 22px; font-weight: 800; line-height: 1.1;
  margin-bottom: 4px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 10px; color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* ── Hero photo side ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 300px;
}

/* Colored glow — echoes the blue dusk tones of the photo */
.photo-bg-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 60% 35%,
    rgba(59,130,246,.28) 0%,
    rgba(139,92,246,.14) 45%,
    transparent 70%);
  filter: blur(30px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Decorative dot grids */
.photo-dot-grid {
  position: absolute;
  width: 72px;
  height: 72px;
  background-image: radial-gradient(circle, rgba(96,165,250,.45) 1.5px, transparent 1.5px);
  background-size: 11px 11px;
  z-index: 0;
  pointer-events: none;
}
.photo-dot-tr { top: -22px; right: -22px; }
.photo-dot-bl { bottom: -22px; left: -22px; }

/* Photo frame */
.hero-photo-frame {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59,130,246,.35),
    0 0 0 5px rgba(59,130,246,.07),
    0 24px 64px rgba(0,0,0,.6),
    0 0 100px rgba(59,130,246,.1);
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(to bottom, transparent 55%, rgba(7,9,15,.22) 100%);
  pointer-events: none;
}
.hero-photo-frame img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  object-position: 60% top;
  display: block;
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--bg-2);
  position: relative;
}
/* Smooth gradient fade from hero's dark bg into this section */
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Editorial-style banner title */
.about-banner {
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.about-banner .section-label {
  margin-bottom: 16px;
  display: block;
}
.about-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--text);
  max-width: 640px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

/* Pull-quote intro line */
.about-highlight {
  font-size: 15px;
  color: var(--accent-light);
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 14px;
  margin-bottom: 18px;
  line-height: 1.65;
  font-style: italic;
}

/* Two-column layout: bio on left, identity cards on right */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.about-left p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.85;
}
.about-left p:last-of-type { margin-bottom: 0; }

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.info-label {
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  font-family: var(--font-mono); margin-bottom: 2px;
}
.info-val { font-size: 13px; color: var(--text); font-weight: 500; }

.about-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Identity cards (right column) */
.about-right { display: flex; flex-direction: column; gap: 16px; }

.identity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color var(--ease), box-shadow var(--ease);
  position: relative;
  overflow: hidden;
}
.identity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.identity-card--industry::before { background: var(--accent); }
.identity-card--academic::before { background: var(--purple); }

.identity-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.identity-card--industry:hover { border-color: rgba(59,130,246,.4); }
.identity-card--academic:hover { border-color: rgba(139,92,246,.4); }

.identity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.identity-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.identity-card--industry .identity-icon { background: rgba(59,130,246,.12); }
.identity-card--academic .identity-icon { background: rgba(139,92,246,.12); }

.identity-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.identity-role {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.65;
}

.identity-metrics {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}
.metric { text-align: center; flex: 1; }
.metric-val {
  font-size: 20px; font-weight: 700; line-height: 1;
  margin-bottom: 4px;
}
.identity-card--industry .metric-val { color: #60a5fa; }
.identity-card--academic .metric-val { color: #a78bfa; }
.metric-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.identity-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.identity-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  transition: all var(--ease);
}
.identity-card--industry:hover .identity-tag { border-color: rgba(59,130,246,.3); color: #93c5fd; }
.identity-card--academic:hover .identity-tag { border-color: rgba(139,92,246,.3); color: #c4b5fd; }

/* Education & Awards */
.edu-awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color var(--ease);
}
.card:hover { border-color: var(--border-light); }

.card-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.card-title i { color: var(--accent-light); flex-shrink: 0; }

.edu-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-of-type { padding-top: 0; }
.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-degree { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.edu-school  { font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
.edu-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.edu-period { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-subtle); }
.edu-gpa    { font-family: var(--font-mono); font-size: 11.5px; color: var(--green); }

.awards-list { display: flex; flex-direction: column; gap: 14px; }
.award-row  { display: flex; gap: 11px; align-items: flex-start; }
.award-icon { color: var(--amber); font-size: 12px; margin-top: 3px; flex-shrink: 0; }
.award-text { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ============================================================
   Skills  (lighter bg to differentiate)
   ============================================================ */
.skills-section {
  background: var(--bg);
  position: relative;
}
.skills-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--purple), transparent);
}
.skills-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.skills-section .section-title { font-size: clamp(26px, 4vw, 38px); }

/* Featured primary stack banner */
.skills-featured {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.skills-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent-light));
}

.featured-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-light);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 20px;
  border-right: 1px solid var(--border-light);
}

.featured-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.featured-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,.22);
  color: var(--accent-light);
  transition: all var(--ease);
  cursor: default;
}
.featured-tag:hover {
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.45);
  color: #fff;
  transform: translateY(-1px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color var(--ease), transform var(--ease-out), box-shadow var(--ease);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease-out);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(59,130,246,.13);
}

.skill-icon { font-size: 24px; margin-bottom: 12px; line-height: 1; }
.skill-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 14px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-subtle);
  transition: all var(--ease);
}
.skill-card:hover .skill-tag { border-color: var(--border-light); color: var(--text-2); }

/* ============================================================
   Experience
   ============================================================ */
.experience { background: var(--bg-2); }

.exp-tabs {
  display: flex;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 44px;
}
.exp-tab {
  padding: 9px 24px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease);
  background: none;
  border: none;
  font-family: var(--font-sans);
}
.exp-tab:hover:not(.active) { color: var(--text); background: var(--surface-2); }
.exp-tab.active { background: var(--accent); color: #fff; }

.exp-panel { display: none; }
.exp-panel.active { display: block; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--purple) 60%, transparent);
}

.tl-item { position: relative; margin-bottom: 28px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -34px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--r);
  padding: 20px 24px;
  transition: border-color var(--ease), border-left-color var(--ease);
}
.tl-card:hover {
  border-color: var(--border-light);
  border-left-color: var(--accent);
}

.tl-head {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 3px;
}
.tl-title { font-size: 15.5px; font-weight: 600; color: var(--text); }
.tl-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,.2);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 13px;
  display: flex; align-items: center; gap: 6px;
}
.tl-company-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple-light);
  flex-shrink: 0;
}

.tl-points { padding-left: 16px; list-style: disc; }
.tl-points li {
  font-size: 13.5px; color: var(--text-2);
  margin-bottom: 7px; line-height: 1.65;
}
.tl-points li:last-child { margin-bottom: 0; }

.tl-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.tl-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ============================================================
   Certifications — Carousel
   ============================================================ */
.cert-carousel { position: relative; }

.cert-track-wrap {
  overflow: hidden;
  border-radius: var(--r);
}
.cert-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.cert-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 3px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--ease-out), border-color var(--ease), box-shadow var(--ease);
}
.cert-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}
.cert-card img { width: 100%; height: auto; display: block; }

/* Controls */
.cert-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.cert-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all var(--ease);
}
.cert-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.cert-dots { display: flex; align-items: center; gap: 8px; }
.cert-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  padding: 0;
}
.cert-dot.active { width: 26px; background: var(--accent); }

/* ============================================================
   Publications
   ============================================================ */
.publications { background: var(--bg-2); }

.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: border-color var(--ease);
}
.pub-item:hover { border-color: var(--border-light); }

.pub-num {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; flex-shrink: 0; min-width: 34px; padding-top: 2px;
}
.pub-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.4; }
.pub-venue { font-size: 12.5px; color: var(--text-muted); font-style: italic; margin-bottom: 11px; line-height: 1.5; }
.pub-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,.2);
  padding: 4px 12px; border-radius: 6px;
  transition: all var(--ease);
}
.pub-link:hover { background: rgba(59,130,246,.2); color: #fff; border-color: var(--accent); }

/* ============================================================
   Community
   ============================================================ */
.community-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.community-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color var(--ease);
}
.community-card:hover { border-color: var(--border-light); }
.community-list { display: flex; flex-direction: column; gap: 14px; }
.community-list li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.community-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-h {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-subtle);
  font-family: var(--font-mono); margin-bottom: 18px;
}

/* Quick links column */
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-2);
}
.footer-contact-row i { color: var(--accent-light); width: 15px; flex-shrink: 0; margin-top: 2px; }

.footer-social { display: flex; flex-direction: column; gap: 11px; }
.footer-social a {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--text-2);
  transition: color var(--ease);
}
.footer-social a:hover { color: var(--accent-light); }
.footer-social a i { color: var(--text-muted); width: 15px; text-align: center; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12.5px; color: var(--text-muted); }
.heart { color: #ef4444; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 280px; gap: 40px; }
  .hero-photo-wrap { width: 260px; }
  .hero-photo-frame img { width: 260px; height: 320px; }

  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-right { flex-direction: row; }
  .identity-card { flex: 1; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-slide { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,9,15,.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    flex-direction: column; gap: 3px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-resume { margin-left: 0; margin-top: 6px; text-align: center; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-photo-wrap { width: 220px; }
  .hero-photo-frame img { width: 220px; height: 260px; }
  .photo-dot-grid { width: 48px; height: 48px; }
  .hero-name { letter-spacing: -1px; }
  .hero-social-row { gap: 10px; }

  /* About */
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-right { flex-direction: column; }
  .about-info { grid-template-columns: 1fr 1fr; }
  .edu-awards { grid-template-columns: 1fr; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }
  .skills-featured { gap: 14px; }
  .featured-label { border-right: none; padding-right: 0; }

  /* Experience */
  .exp-tabs { width: 100%; }
  .exp-tab { flex: 1; text-align: center; padding: 9px 10px; }
  .tl-head { flex-direction: column; gap: 8px; }

  /* Certs */
  .cert-slide { grid-template-columns: repeat(2, 1fr); }

  /* Publications */
  .pub-item { flex-direction: column; gap: 10px; }

  /* Community */
  .community-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 18px; }
  .hero-social-row { gap: 8px; }
  .cert-slide { grid-template-columns: repeat(2, 1fr); }
  .about-links { flex-direction: column; }
  .about-links .btn { width: 100%; justify-content: center; }
}
