/* ============================================================
   Announcement Bar
   ============================================================ */
#announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #0f172a;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.announce-label {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.announce-link:hover { color: #fff; }
.announce-venue {
  background: rgba(37,99,235,0.35);
  border: 1px solid rgba(147,197,253,0.3);
  color: #93c5fd;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.announce-arrow { font-size: 0.7rem; opacity: 0.7; }

/* ============================================================
   Root & Reset
   ============================================================ */
:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light:#dbeafe;
  --accent:       #0ea5e9;
  --green:        #16a34a;
  --purple:       #7c3aed;
  --orange:       #ea580c;
  --gold:         #d97706;
  --silver:       #6b7280;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --dark-3:       #334155;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --bg:           #f8fafc;
  --bg-alt:       #f1f5f9;
  --white:        #ffffff;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.1);
  --transition:   0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 110px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

ul { list-style: none; }

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

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 2px;
}
.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Navigation
   ============================================================ */
#navbar {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-projects {
  color: var(--primary) !important;
  border: 1px solid rgba(37,99,235,0.3);
  gap: 0.35rem;
}
.nav-projects:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--dark);
  padding: 0.5rem;
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #0f2460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(37,99,235,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(14,165,233,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-avatar {
  flex-shrink: 0;
}
.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 40px rgba(37,99,235,0.4);
  letter-spacing: -0.02em;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-affiliation {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(37,99,235,0.25);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(37,99,235,0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-linkedin,
.btn-scholar {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-linkedin:hover,
.btn-scholar:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}
.hero-contacts span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.hero-contact-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}
.hero-contact-link:hover { color: #70b5f9; }

/* Open to Work badge */
.otw-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.otw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.otw-label {
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: 0.01em;
}
.otw-divider {
  color: rgba(255,255,255,0.25);
}
.otw-detail {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.otw-roles {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll a {
  color: rgba(255,255,255,0.4);
  font-size: 1.25rem;
  animation: bounce 2s infinite;
  display: block;
}
.hero-scroll a:hover { color: rgba(255,255,255,0.8); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* ============================================================
   About content
   ============================================================ */
.about-content {
  max-width: 820px;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-content p:last-child { margin-bottom: 0; }

.about-tldr {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.tldr-label {
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-top: 0.15em;
  font-family: 'Fira Code', monospace;
}
.about-tldr p {
  margin: 0 !important;
  color: var(--dark) !important;
  font-weight: 500;
}

.about-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fdf4ff;
  border: 1px solid #e9d5ff;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1rem 0;
}
.about-callout i {
  color: #9333ea;
  margin-top: 0.15em;
  flex-shrink: 0;
}
.about-callout p {
  margin: 0 !important;
  color: var(--text-muted) !important;
}
.about-callout strong { color: #7e22ce; }

.about-connect {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem !important;
  color: var(--text-muted);
}
.about-connect i { color: var(--primary); flex-shrink: 0; }
.about-connect a { color: var(--primary); font-weight: 600; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2.1rem;
  top: 1.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
}
.timeline-marker.phd   { background: var(--primary); color: var(--primary); }
.timeline-marker.mres  { background: var(--green);   color: var(--green); }
.timeline-marker.beng  { background: var(--purple);  color: var(--purple); }

.institution {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.institution-note {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.score-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.tag-sm {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

/* ============================================================
   Section intro text
   ============================================================ */
.section-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* ============================================================
   Research Cards — single column
   ============================================================ */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.research-card { position: relative; }

.research-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.research-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.research-card-meta h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.research-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.research-points {
  padding-left: 0;
}
.research-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.research-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
  top: 0.1em;
}
.research-points li strong { color: var(--text); }

.research-vague {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  border-left: 3px solid var(--primary-light);
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.publication-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ============================================================
   Experience
   ============================================================ */
.exp-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.exp-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
}
.exp-points li span {
  flex: 1;
  min-width: 0;
  line-height: 1.65;
}
.exp-points li:last-child { border-bottom: none; }
.exp-points li i {
  color: var(--green);
  margin-top: 0.2em;
  flex-shrink: 0;
}
.exp-points li strong { color: var(--text); }

/* ============================================================
   Technical Skills
   ============================================================ */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.skill-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.skill-row:last-child { border-bottom: none; padding-bottom: 0; }
.skill-cat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.skill-cat i {
  color: var(--primary);
  width: 1.1rem;
  text-align: center;
}
.skill-row .tag-group { margin-top: 0; }
@media (max-width: 640px) {
  .skill-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ============================================================
   Publications
   ============================================================ */
.publications-list { display: flex; flex-direction: column; gap: 1.25rem; }

.pub-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
}

.pub-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-authors {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.pub-link {
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}
.pub-link:hover { color: var(--primary); }
.pub-link-icon {
  font-size: 0.7rem;
  margin-left: 0.35rem;
  color: var(--text-muted);
  vertical-align: middle;
  opacity: 0.7;
}
.pub-link:hover .pub-link-icon { color: var(--primary); opacity: 1; }
.pub-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pub-role {
  background: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pub-field {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pub-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.pub-page-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

.venue-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.venue-icra    { background: #dbeafe; color: #1d4ed8; }
.venue-icra26  {
  color: #fff;
  background: linear-gradient(110deg,
    #0f172a 0%, #1e3a8a 25%, #60a5fa 45%, #ffffff 50%,
    #60a5fa 55%, #1e3a8a 75%, #0f172a 100%);
  background-size: 220% auto;
  animation: icra-shine 2.8s linear infinite, icra-glow 1.5s ease-in-out infinite;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}  /* ICRA 2026 — shiny + blinking */
@keyframes icra-shine {
  to { background-position: -220% center; }
}
@keyframes icra-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(96,165,250,0.5); opacity: 0.92; }
  50%      { box-shadow: 0 0 16px rgba(96,165,250,1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-icra26 { animation: none; background: #0f172a; }
}
.venue-workshop{ background: #ede9fe; color: #6d28d9; }
.venue-book    { background: #dcfce7; color: #15803d; }

/* ============================================================
   Mentor Project Grid
   ============================================================ */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mentor-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 3px solid var(--primary);
  position: relative;
  overflow: hidden;
}
.mentor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mentor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mentor-year {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.mentor-cap {
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.5;
}

.mentor-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  flex: 1;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

/* Tag colour palette */
.mtag {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.mtag-il  { background: #dbeafe; color: #1d4ed8; }   /* Imitation Learning — blue */
.mtag-rl  { background: #dcfce7; color: #15803d; }   /* Reinforcement Learning — green */
.mtag-rs  { background: #ede9fe; color: #6d28d9; }   /* Robotic System — purple */
.mtag-cv  { background: #cffafe; color: #0e7490; }   /* Computer Vision — cyan */
.mtag-mr  { background: #fee2e2; color: #b91c1c; }   /* Medical Robotics — red */
.mtag-dl  { background: #e0e7ff; color: #4338ca; }   /* Deep Learning — indigo */

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
footer p { margin-bottom: 0.4rem; font-size: 0.875rem; }
footer strong { color: white; }
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-contact a {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-contact a:hover { color: white; }
.footer-note { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 0.75rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-tags, .hero-links, .hero-contacts { justify-content: center; }
  .hero-affiliation { justify-content: center; }

  #announce-bar { font-size: 0.75rem; gap: 0.5rem; }
  .announce-label { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  #navbar { position: fixed; }

  .mentor-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-item { flex-direction: column; gap: 0.75rem; }

  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .card-header { flex-direction: column; }
  .hero-text h1 { font-size: 1.875rem; }
  .score-row { gap: 0.5rem; }
  .mentor-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
