:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #dd6b20;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-name { font-weight: 700; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-light); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* SECTIONS */
section { padding: 4rem 1.5rem; }
section:nth-child(even) { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-light); margin-bottom: 2rem; font-size: 1rem;
}

/* HERO */
.hero {
  padding-top: 7rem; display: flex; gap: 3rem; align-items: center;
  flex-wrap: wrap;
}
.hero-img {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--border);
}
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.3rem; }
.hero-text .role { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8rem; }
.hero-text p { color: var(--text-light); margin-bottom: 1rem; }
.hero-orgs { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-orgs a {
  background: var(--bg-alt); padding: 0.3rem 0.8rem; border-radius: 6px;
  font-size: 0.85rem; color: var(--primary); text-decoration: none;
  border: 1px solid var(--border); transition: all 0.2s;
}
.hero-orgs a:hover { background: var(--primary); color: white; }
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-links a {
  color: var(--text-light); font-size: 0.85rem; text-decoration: none;
  padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 6px;
  transition: all 0.2s;
}
.social-links a:hover { color: var(--primary); border-color: var(--primary); }

/* PILLS */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pill {
  background: var(--bg-alt); padding: 0.25rem 0.7rem; border-radius: 20px;
  font-size: 0.8rem; color: var(--primary-light); border: 1px solid var(--border);
}

/* EXPERIENCE */
.exp-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.exp-item {
  display: flex; gap: 1.5rem; padding: 1.5rem; border-radius: 8px;
  border: 1px solid var(--border); background: white; transition: box-shadow 0.2s;
}
.exp-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.exp-date {
  min-width: 120px; font-size: 0.85rem; color: var(--text-light);
  font-weight: 500; padding-top: 0.2rem;
}
.exp-content h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.15rem; }
.exp-content .company { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.exp-content .location { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.5rem; }
.exp-content p, .exp-content ul { font-size: 0.9rem; color: var(--text); }
.exp-content ul { padding-left: 1.2rem; }
.exp-content li { margin-bottom: 0.2rem; }

/* PUBLICATIONS */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-category { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.pub-category:first-child { margin-top: 0; }
.pub-item {
  padding: 1rem 1.2rem; border-left: 3px solid var(--accent);
  background: white; border-radius: 0 6px 6px 0;
}
.pub-item.wip { border-left-color: var(--text-light); }
.pub-item h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.2rem; }
.pub-item .authors { font-size: 0.85rem; color: var(--text-light); }
.pub-item .authors strong { color: var(--text); }
.pub-item .venue { font-size: 0.85rem; color: var(--accent); font-style: italic; }
.pub-item .year { font-size: 0.8rem; color: var(--text-light); }

/* GALLERY */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 8px;
  transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.03); }
.gallery figure { position: relative; }
.gallery figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; padding: 1rem 0.8rem 0.6rem; border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
}

/* SKILLS */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-group h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.5rem; }
.skill-group ul { list-style: none; }
.skill-group li { font-size: 0.9rem; padding: 0.2rem 0; color: var(--text); }
.skill-group li::before { content: "→ "; color: var(--accent); }

/* CONTACT */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.contact-item { font-size: 0.95rem; }
.contact-item a { color: var(--primary); }

/* FOOTER */
footer {
  text-align: center; padding: 2rem; font-size: 0.85rem;
  color: var(--text-light); border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
  .hero-orgs, .social-links { justify-content: center; }
  .exp-item { flex-direction: column; gap: 0.5rem; }
  .exp-date { min-width: auto; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.8rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
