/* ============================================================
   NIMA ALIZADEH — Portfolio Stylesheet
   Apple light: white · #f5f5f7 gray · teal accent · dark text
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f5f5f7;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f5f7;
  --border:        #d2d2d7;
  --border-light:  #e8e8ed;

  --teal:          #c46a05;
  --teal-dim:      #a35a04;
  --teal-glow:     rgba(196, 106, 5, 0.10);
  --gold:          #c46a05;
  --gold-dim:      rgba(196, 106, 5, 0.10);

  --text-primary:  #1d1d1f;
  --text-secondary:#4e4e53;
  --text-muted:    #86868b;

  --nav-height: 70px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.13);

  --transition: 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-primary); }

img { display: block; max-width: 100%; }

ul { list-style: none; }

strong { color: var(--text-primary); font-weight: 600; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAVIGATION ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--teal); }
.nav-logo:hover { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.contact-btn {
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  margin-left: 8px;
}
.nav-link.contact-btn:hover {
  background: var(--teal);
  color: var(--bg-primary);
  border-color: var(--teal);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 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;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0,191,165,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(0,100,220,0.10) 0%, transparent 50%),
    var(--bg-primary);
}

/* Periodic table background */
.hero-pt-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.hero-pt-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Dot grid overlay */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,191,165,0.2) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: var(--nav-height);
  padding-bottom: 60px;
}

/* Hero photo */
.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 0deg, var(--teal), var(--gold), var(--teal));
  animation: spin 8s linear infinite;
  box-shadow: 0 0 60px var(--teal-glow), 0 0 120px rgba(0,191,165,0.08);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--bg-primary);
  animation: spin-reverse 8s linear infinite;
}

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

/* Hero text */
.hero-content { flex: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-name span { color: var(--teal); }

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 14px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg-primary);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dim);
  color: var(--bg-primary);
  border-color: var(--teal-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,191,165,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-outline:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-full svg { width: 18px; height: 18px; }

/* ---------- SOCIAL ICONS ---------- */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  background: var(--teal);
  color: var(--bg-primary);
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,191,165,0.4);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-plus {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid rgba(0,191,165,0.3);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}

.about-visuals {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-photo-frame {
  position: relative;
}
.about-photo-frame img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.photo-accent {
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  opacity: 0.4;
  pointer-events: none;
}

.about-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.about-diagram img {
  width: 100%;
  padding: 16px;
  background: #fff;
}
.diagram-caption {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.about-text { display: flex; flex-direction: column; gap: 18px; }

.bio-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.about-text p { color: var(--text-secondary); line-height: 1.8; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.highlight-card:hover {
  border-color: var(--teal-dim);
  transform: translateX(4px);
}

.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--teal-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.highlight-icon svg { width: 20px; height: 20px; }

.highlight-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.highlight-card p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- RESEARCH GALLERY ---------- */
.research-gallery {
  background: var(--bg-primary);
  padding: 0;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px;
  gap: 3px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.75) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px;
  }
  .gallery-item-wide { grid-column: 1; }
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--border));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--teal);
  transition: box-shadow var(--transition);
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 4px var(--teal-glow);
}

.accent-gold.timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item:hover .accent-gold.timeline-dot {
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.timeline-dot-sm {
  width: 10px;
  height: 10px;
  left: -30px;
  top: 18px;
  background: var(--border-light);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.timeline-card:hover {
  border-color: var(--teal-dim);
  box-shadow: 0 4px 20px rgba(0,191,165,0.08);
  transform: translateX(4px);
}

.timeline-card-sm {
  padding: 16px 22px;
  background: transparent;
  border-color: var(--border);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.timeline-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid rgba(0,191,165,0.3);
  letter-spacing: 0.05em;
}

.badge-gold {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(240,192,64,0.3);
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 6px;
}

.timeline-gpa {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.timeline-detail em { color: var(--text-muted); font-style: italic; }

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.75rem;
  top: 2px;
}

/* ---------- SKILLS ---------- */
/* ---- Skills alternating rows ---- */
.skill-rows {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
}

.skill-row + .skill-row {
  border-top: 1px solid rgba(0,0,0,0.06);
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.skill-row-solo {
  grid-template-columns: 1fr;
  min-height: auto;
}
.skill-row-solo .skill-row-content {
  padding: 40px 52px;
}

.skill-row-flip .skill-row-img { order: 2; }
.skill-row-flip .skill-row-content { order: 1; }

.skill-row-img {
  overflow: hidden;
}
.skill-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skill-row-content {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  background: var(--bg-card);
}

.skill-row:nth-child(even) .skill-row-content {
  background: var(--bg-secondary);
}

.skill-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.skill-group p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* Certifications Accordion */
.certifications {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cert-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background var(--transition);
}
.cert-toggle:hover { background: var(--bg-card-hover); }
.cert-toggle span { color: var(--text-primary); }

.cert-arrow {
  width: 20px;
  height: 20px;
  color: var(--teal);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.cert-toggle[aria-expanded="true"] .cert-arrow { transform: rotate(180deg); }

.cert-list {
  display: none;
  padding: 0 28px 28px;
  border-top: 1px solid var(--border);
}
.cert-list.open { display: block; }

.cert-group {
  margin-top: 24px;
}
.cert-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.cert-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-group li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.cert-group li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-size: 1.2rem;
  line-height: 1.2;
}
.cert-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

/* ---------- PUBLICATIONS ---------- */
.pub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.pub-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.pub-tab:hover { color: var(--text-secondary); }
.pub-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.pub-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--teal-glow);
  color: var(--teal);
  border-radius: 12px;
}

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

.pub-list { display: flex; flex-direction: column; gap: 20px; }

.pub-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.pub-card:hover {
  border-color: var(--teal-dim);
  transform: translateX(4px);
}

.pub-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--teal-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
}

.pub-body { flex: 1; }

.pub-citation {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}
.pub-citation em { color: var(--text-primary); font-style: italic; }
.pub-citation strong { color: var(--teal); font-weight: 700; }

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pub-tags span {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* Conference list */
.conf-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.conf-list ol {
  list-style: decimal;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.conf-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.conf-list li strong { color: var(--teal); }
.conf-list li em { color: var(--text-primary); font-style: italic; }

/* ---------- LEADERSHIP ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.leadership-card:hover {
  border-color: var(--teal-dim);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,191,165,0.08);
}

.leadership-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 16px;
}
.leadership-icon svg { width: 24px; height: 24px; }

.leadership-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.leadership-org {
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 12px;
  font-weight: 500;
}
.leadership-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* Awards */
.awards-section { margin-top: 12px; }
.awards-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-align: center;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.award-item:hover { border-color: var(--gold); }

.award-year {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.award-body h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.award-body p  { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-quote {
  border-left: 3px solid var(--teal);
  padding: 16px 24px;
  margin-bottom: 28px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.contact-section-header {
  text-align: left;
  margin-bottom: 20px;
}
.contact-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.contact-quote cite {
  font-size: 0.8rem;
  color: var(--teal);
  font-style: normal;
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.contact-links { display: flex; flex-direction: column; gap: 14px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); }
.contact-link:hover {
  border-color: var(--teal-dim);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note a { color: var(--teal); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-social { display: flex; gap: 12px; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(0,191,165,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--teal-dim);
  color: var(--bg-primary);
  transform: translateY(-4px);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-photo-frame img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-link.contact-btn { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-container { flex-direction: column; text-align: center; gap: 40px; padding-top: 100px; }
  .hero-photo-ring { width: 200px; height: 200px; }
  .hero-tagline { justify-content: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }

  .about-visuals { grid-template-columns: 1fr; }
  .about-diagram { display: none; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -24px; }
  .timeline-dot-sm { left: -22px; }

  .skill-row { grid-template-columns: 1fr; }
  .skill-row-flip .skill-row-img { order: 0; }
  .skill-row-flip .skill-row-content { order: 1; }
  .skill-row-content { padding: 32px 24px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }

  .pub-tabs { flex-direction: column; border-bottom: none; gap: 0; }
  .pub-tab { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 4px; }
  .pub-tab.active { border-color: var(--teal); background: var(--teal-glow); }

  .contact-grid { gap: 40px; }
  .footer-container { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 20px; right: 20px; }

  /* Mobile dropdowns: inline, not absolute */
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--teal-dim);
    border-radius: 0;
    background: transparent;
    padding: 4px 0 4px 16px;
    min-width: 0;
    width: 100%;
  }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown > .nav-link { width: 100%; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.8rem; }
  .stats-container { gap: 20px; }
  .stat-num { font-size: 2.2rem; }
  .pub-card { flex-direction: column; gap: 12px; }
  .conf-list { padding: 20px; }
  .conf-list ol { padding-left: 18px; }
}

/* ---------- SELECTED PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,191,165,0.1);
}

.project-meta {
  margin-bottom: 12px;
}

.project-date {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ---------- NAV DROPDOWNS ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 220px;
  padding: 8px 0;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }

.nav-dropdown .dropdown-menu li { list-style: none; }

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav-dropdown .dropdown-menu a:hover {
  color: var(--teal);
  background: var(--bg-card);
  padding-left: 26px;
}

/* ---------- THESIS ABSTRACT ---------- */
.thesis-toggle {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.thesis-toggle:hover {
  background: var(--teal);
  color: var(--bg-primary);
}

.thesis-abstract {
  display: none;
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.thesis-abstract.open { display: block; }

.thesis-abstract p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.thesis-abstract p:last-child { margin-bottom: 0; }

/* ---------- PROJECT IMAGES ---------- */
.project-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -28px -28px 20px -28px;
  width: calc(100% + 56px);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img { transform: scale(1.05); }

/* ---------- SCROLL PROGRESS BAR ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
  background-size: 200% 100%;
  z-index: 2000;
  pointer-events: none;
  animation: progress-shimmer 3s linear infinite;
}
@keyframes progress-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- HERO STATUS BADGE ---------- */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(196, 106, 5, 0.07);
  border: 1px solid rgba(196, 106, 5, 0.22);
  border-radius: 20px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.05); }
}

/* ---------- HERO TYPEWRITER ---------- */
.hero-rotating {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 1.4em;
}
.hero-typing-text { color: var(--teal); font-weight: 600; }
.typing-cursor {
  color: var(--teal);
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- GOLD TAG & STAT VARIANTS ---------- */
.tag-gold {
  color: var(--gold);
  border-color: rgba(240, 192, 64, 0.35);
  background: rgba(240, 192, 64, 0.1);
}
.stat-num-gold { color: var(--gold); }

/* ---------- FIX PROJECTS GRID TOP MARGIN ---------- */
.projects-grid { margin-top: 0; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-photo-ring, .hero-photo { animation: none; }
  .scroll-line                  { animation: none; opacity: 0.6; }
  .status-dot                   { animation: none; }
  .typing-cursor                { animation: none; }
  #scroll-progress              { animation: none; }
  .fade-in                      { transition: none; }
}

/* ============================================================
   APPLE-INSPIRED DESIGN LANGUAGE
   Centered hero · Massive type · Gradient text · Generous space
   ============================================================ */

/* --- HERO: CENTERED LAYOUT --- */
.hero-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 80px;
}
.hero-content {
  align-items: center;
  flex: none;
  width: 100%;
  max-width: 820px;
}
.hero-photo-ring {
  width: 160px;
  height: 160px;
  animation: spin 18s linear infinite;
}
.hero-photo { animation: spin-reverse 18s linear infinite; }

/* --- HERO TYPOGRAPHY --- */
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  margin-bottom: 20px;
}
.hero-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-bottom: 20px;
}
.hero-name span {
  background: linear-gradient(125deg, #00e8d0 0%, #00bfa5 35%, #7dd4fc 65%, #f0c040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- HERO ALIGNMENT --- */
.hero-status   { justify-content: center; }
.hero-rotating { text-align: center; }
.hero-tagline  { justify-content: center; }
.hero-desc     { text-align: center; max-width: 600px; margin: 0 auto 28px; }
.hero-actions  { justify-content: center; }
.hero-social   { justify-content: center; }

/* --- SECTION SPACING --- */
.section        { padding: 140px 0; }
.section-header { margin-bottom: 80px; }

/* --- APPLE-SCALE SECTION TITLES --- */
.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.section-tag {
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  margin-bottom: 20px;
}

/* --- STATS BAR --- */
.stat-num   { font-size: 3.8rem; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.12em; }

/* --- CARD RADII (Apple's characteristic rounded corners) --- */
.skill-card, .leadership-card, .project-card { border-radius: 20px; }
.timeline-card                                { border-radius: 18px; }
.pub-card, .award-item                        { border-radius: 16px; }
.highlight-card, .certifications              { border-radius: 16px; }
.contact-form input, .contact-form textarea   { border-radius: 12px; }
.btn                                          { border-radius: 12px; }

/* --- SMOOTH APPLE-STYLE ANIMATIONS --- */
.fade-in {
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- NAV POLISH --- */
#navbar.scrolled {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-link { font-size: 0.82rem; }

/* --- SUBTLE SECTION DIVIDERS --- */
.section-alt {
  border-top:    1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-secondary);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .hero-container {
    padding-top: calc(var(--nav-height) + 28px);
    gap: 14px;
  }
  .hero-name        { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-photo-ring  { width: 130px; height: 130px; }
  .section          { padding: 100px 0; }
  .section-header h2 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .stat-num         { font-size: 2.8rem; }
}

/* ============================================================
   APPLE DEEP OVERHAUL v2 — LIGHT MODE
   White background · dark text · teal accent · no pink
   ============================================================ */

/* --- NAV: slim, minimal, Apple-precise --- */
:root { --nav-height: 52px; }
#navbar {
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  border-bottom: none;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(29, 29, 31, 0.65);
  padding: 5px 10px;
  border-radius: 6px;
  background: none;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: none;
}
.nav-link.contact-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 5px 14px;
  font-weight: 600;
}
.nav-link.contact-btn:hover {
  background: var(--teal-dim);
  color: #fff;
  border: none;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* --- PERIODIC TABLE: visible but soft --- */
.hero-pt-bg { opacity: 0.13; }

/* --- HERO PHOTO: no ring spin, cleaner --- */
.hero-photo-ring {
  animation: none !important;
  width: 148px;
  height: 148px;
  border: 2px solid rgba(0, 166, 147, 0.3);
  border-radius: 50%;
  background: none;
}
.hero-photo {
  animation: none !important;
  border-radius: 50%;
  width: 136px;
  height: 136px;
  object-fit: cover;
}
.photo-accent { display: none !important; }

/* --- HERO: bigger name, dark-to-teal gradient --- */
.hero-name {
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin-bottom: 24px;
}
.hero-name span {
  background: linear-gradient(120deg, #1d1d1f 0%, #3a3a3c 30%, #c46a05 70%, #a35a04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* --- STATUS DOT: Apple green --- */
.status-dot {
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2);
}

/* --- SECTION TAGS: no pill, just teal label --- */
.section-tag {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* --- SECTION HEADERS: Apple-scale --- */
.section-header h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}
.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 16px auto 0;
}
.text-center .section-header p { margin: 16px auto 0; }

/* --- CARDS: white surface, subtle shadow --- */
.skill-card,
.project-card,
.leadership-card,
.timeline-card,
.pub-card,
.award-item,
.highlight-card,
.certifications {
  border: none !important;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.skill-card:hover,
.project-card:hover,
.leadership-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.05);
}
.timeline-card:hover { transform: none; }

/* --- STATS BAR: Apple light gray --- */
.stats-bar {
  background: #f5f5f7;
  border-top: none;
  border-bottom: none;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* --- BUTTONS: pill-shaped --- */
.btn {
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 28px;
  border-width: 1.5px;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--teal-dim);
  border-color: var(--teal-dim);
  color: #fff;
  box-shadow: 0 8px 28px rgba(196,106,5,0.28);
  transform: translateY(-2px) scale(1.02);
}
.btn-outline {
  border-color: rgba(0,0,0,0.18);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.3);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.02);
}

/* --- SOCIAL ICONS: light fill --- */
.social-icon {
  border: none;
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.social-icon:hover {
  background: var(--teal);
  color: #fff;
  border: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196,106,5,0.28);
}

/* --- CONTACT FORM: light inputs --- */
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(196,106,5,0.15);
}

/* --- HERO BACKGROUND: white with very soft teal glow --- */
.hero {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(196,106,5,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(163,90,4,0.04) 0%, transparent 50%),
    #ffffff;
}

/* --- HERO SECTION BG DOTS: hide --- */
.hero::before { display: none !important; }

/* --- TIMELINE LINE COLOR --- */
.timeline-line { background: linear-gradient(to bottom, var(--teal), transparent); opacity: 0.4; }

/* --- SCROLL PROGRESS BAR COLOR --- */
#scroll-progress {
  background: linear-gradient(90deg, #c46a05, #1d1d1f);
  height: 2.5px;
}

/* --- MOBILE DEEP OVERHAUL --- */
@media (max-width: 768px) {
  .hero-name { font-size: clamp(3.4rem, 16vw, 5.5rem); }
  .section-header h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-photo-ring { width: 120px; height: 120px; }
  .hero-photo { width: 110px; height: 110px; }
  .btn { padding: 10px 22px; font-size: 0.85rem; }
}

/* ============================================================
   CUSTOM ADDITIONS
   ============================================================ */

/* --- FIX HERO SCROLL / SOCIAL OVERLAP --- */
.hero-container {
  padding-bottom: 120px;
}
.hero-scroll {
  bottom: 40px;
  z-index: 2;
}

/* --- SECTION TAG: LARGER / MORE READABLE --- */
.section-tag {
  font-size: 0.82rem !important;
  letter-spacing: 0.2em !important;
}

/* --- TIMELINE CARD IMAGES (Education + Experience) --- */
.timeline-card-img {
  width: calc(100% + 48px);
  margin: -24px -24px 20px -24px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
}
.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- SKILL CARD IMAGES --- */

/* --- PUBLICATION LINKS --- */
.pub-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pub-link:hover {
  color: var(--teal);
}
.pub-link:hover em {
  color: var(--teal);
}
