/* ============================================
   Portfolio — Modern 2025 Design
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --navy:       #0a1628;
  --blue:       #6b7280;
  --indigo:     #4b5563;
  --sky:        #9ca3af;
  --violet:     #6b7280;

  /* Semantic */
  --primary:    #0f172a;
  --accent:     #6b7280;
  --accent2:    #4b5563;
  --bg:         #ffffff;
  --bg-alt:     #f8fafc;
  --bg-card:    #ffffff;
  --text:       #0f172a;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --border-light: rgba(226,232,240,0.6);

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #9ca3af 0%, #4b5563 100%);
  --grad-hero:   linear-gradient(160deg, #f5f5f5 0%, #f0f0f0 55%, #fafafa 100%);
  --grad-section:linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  --grad-nav:    rgba(10, 22, 40, 0.88);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.1),  0 6px 16px rgba(0,0,0,0.06);
  --shadow-accent: 0 8px 32px rgba(107,114,128,0.22);

  /* Layout */
  --nav-h:  68px;
  --max-w:  980px;
  --radius: 16px;
  --r-sm:   10px;
  --r-pill: 9999px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent2); text-decoration: underline; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ============================================
   Scroll-reveal animations
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.22,.61,.36,1),
              transform 0.55s cubic-bezier(.22,.61,.36,1);
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation — glassmorphic
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--grad-nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 1000;
  transition: background 0.3s;
}

#nav-inner {
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-brand {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-right: auto;
  padding: 6px 14px;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 16px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}
.nav-links li { position: relative; }

.nav-link {
  display: block;
  padding: 7px 13px;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-link.active::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px 2px 0 0;
}

.nav-cv {
  margin-left: 8px;
  background: var(--grad-brand) !important;
  color: #fff !important;
  box-shadow: var(--shadow-accent);
}
.nav-cv:hover { opacity: 0.88; }
.nav-cv::after { display: none !important; }

/* Dropdown — desktop only via hover */
@media (min-width: 801px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* flush — no gap, no hover-break */
  left: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid rgba(107,114,128,0.55);
  min-width: 190px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 200;
}
.dropdown.is-open { display: block; }   /* JS-toggled on mobile */

.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  transition: background 0.12s, color 0.12s;
}
.dropdown a:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }

/* ============================================
   Page scaffold
   ============================================ */
.page-spacer { height: var(--nav-h); }

.page-header {
  background: var(--navy);
  background-image: linear-gradient(135deg, #111827 0%, #4b5563 100%);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107,114,128,0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-header p  { font-size: 0.92rem; color: rgba(255,255,255,0.55); }
.page-header code {
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}

/* Page content sections */
.page-section { padding: 68px 0; }
.page-section.bg-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 1.5em;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

/* ============================================
   HOME — Hero
   ============================================ */
.home-hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(107,114,128,0.07) 0%, transparent 65%);
  top: -200px; right: -150px;
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(156,163,175,0.06) 0%, transparent 65%);
  bottom: -150px; left: -100px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* Photo column */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.photo-ring {
  padding: 4px;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: var(--shadow-accent);
}

.hero-photo-col img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  display: block;
}

/* Social icons */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  text-decoration: none;
}

.social-links--large a { width: 46px; height: 46px; font-size: 1.15rem; }

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  background: var(--grad-brand);
  color: #fff !important;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-accent);
  transition: opacity 0.2s, transform 0.2s;
}
.cv-badge:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

/* Bio column */
.hero-bio {
  padding-top: 8px;
}

.hero-bio h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.profile-title {
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  display: inline-block;
}

.profile-institution a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.profile-institution a:hover { color: var(--accent); }

.profile-office,
.profile-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.profile-office i,
.profile-email i {
  color: var(--accent);
  font-size: 0.85rem;
  width: 14px;
}

.profile-bio { margin: 22px 0; }
.profile-bio p { margin-bottom: 12px; color: var(--text); }

.interests-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-list li {
  padding: 5px 14px;
  background: rgba(37,99,235,0.08);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.interest-list li:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================
   NEWS (home page)
   ============================================ */
.news-list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
  transition: background 0.15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: rgba(37,99,235,0.02); }

.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  padding: 3px 10px;
  background: rgba(37,99,235,0.07);
  border-radius: var(--r-pill);
  text-align: center;
  line-height: 1.3;
}

.news-text { font-size: 0.93rem; color: var(--text); }

.btn-more {
  margin-top: 20px;
  padding: 9px 28px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-block;
}
.btn-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37,99,235,0.04);
}

/* ============================================
   RESEARCH PAGE
   ============================================ */
#research-summary p { font-size: 1rem; color: var(--text); max-width: 680px; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.25s;
}
.research-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.research-card:hover::before { opacity: 1; }

.research-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(79,70,229,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.research-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.research-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.keywords { display: flex; flex-wrap: wrap; gap: 5px; }
.kw {
  padding: 3px 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.kw:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================
   PUBLICATIONS PAGE
   ============================================ */
.pub-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 5px;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  width: fit-content;
}

.tab-btn {
  padding: 8px 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pub-year-group { margin-bottom: 40px; }

.pub-year-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 4px solid transparent;
}
.pub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}
.pub-highlight { border-left-color: var(--accent); }

.pub-conference { border-left-color: #2563eb; }
.pub-card.pub-conference:hover { border-left-color: #1d4ed8; }

.pub-journal  { border-left-color: #059669; }
.pub-card.pub-journal:hover { border-left-color: #047857; }

.pub-workshop { border-left-color: #d97706; }
.pub-card.pub-workshop:hover { border-left-color: #b45309; }
.pub-preprint { border-left-color: #6b7280; }
.pub-card.pub-preprint:hover { border-left-color: #4b5563; }
.pub-poster { border-left-color: #1f2937; }
.pub-card.pub-poster:hover { border-left-color: #111827; }

.pub-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pub-badge.pub-conference { background: #eff6ff; color: #1d4ed8; }
.pub-badge.pub-journal    { background: #ecfdf5; color: #059669; }
.pub-badge.pub-workshop   { background: #fffbeb; color: #d97706; }
.pub-badge.pub-preprint   { background: #f3f4f6; color: #4b5563; }
.pub-badge.pub-poster     { background: #e5e7eb; color: #1f2937; }

.pub-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 5px;
}
.pub-authors { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 3px; }
.pub-venue   { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }

.pub-links { display: flex; flex-wrap: wrap; gap: 8px; }

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-pill);
  font-size: 0.79rem;
  font-weight: 600;
  transition: all 0.15s;
}
.pub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37,99,235,0.05);
  text-decoration: none;
}

.empty-msg { color: var(--text-muted); font-style: italic; padding: 32px 0; }

/* ============================================
   TIMELINE (Education & Experience)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: var(--r-pill);
  opacity: 0.25;
}

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

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-year::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-loc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.timeline-loc i { color: var(--accent); font-size: 0.8rem; }
.timeline-details {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.timeline-bullets {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 18px;
  list-style: disc;
  margin-top: 8px;
}
.timeline-bullets li { margin-bottom: 5px; color: var(--text-muted); }

/* ============================================
   AWARDS & SKILLS
   ============================================ */
.awards-list { display: flex; flex-direction: column; gap: 0; }

.award-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.award-item:last-child { border-bottom: none; }

.award-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  text-align: center;
  margin-top: 2px;
  display: inline-block;
  width: fit-content;
}

.award-content strong { font-size: 0.97rem; color: var(--primary); }
.award-org { font-size: 0.87rem; color: var(--text-muted); margin-left: 5px; }
.award-details { font-size: 0.86rem; color: var(--text-muted); margin-top: 5px; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-xs);
}

.skill-category h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.skill-tag {
  padding: 4px 13px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.15s;
}
.skill-tag:hover {
  background: rgba(37,99,235,0.07);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================
   CONTACT page
   ============================================ */
.contact-card {
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-card > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-rows { display: flex; flex-direction: column; gap: 18px; }

.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.contact-row i {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(79,70,229,0.1) 100%);
  color: var(--accent);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-row div { font-size: 0.92rem; line-height: 1.5; padding-top: 8px; }
.contact-row strong {
  display: block;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-social h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--navy);
  background-image: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 44px 24px;
  font-size: 0.87rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: #fff; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(24px);
    padding: 16px 0 24px;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-h));
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { padding: 12px 24px; border-radius: 0; }
  .nav-link.active::after { display: none; }

  .dropdown { position: static; background: rgba(0,0,0,0.2); border: none; box-shadow: none; border-radius: 0; }
  .dropdown a { padding: 9px 40px; }
  .nav-cv { margin-left: 0; border-radius: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo-col { position: static; flex-direction: row; align-items: center; }
  .hero-photo-col img { width: 120px; height: 120px; }
  .photo-ring { display: flex; }

  .hero-bio h1 { font-size: 2rem; }
  .news-item { grid-template-columns: 90px 1fr; }
}

@media (max-width: 520px) {
  .hero-photo-col { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
  .hero-bio h1 { font-size: 1.75rem; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .award-item { grid-template-columns: 1fr; gap: 6px; }
  .timeline { padding-left: 0; }
  .timeline::before { display: none; }
  .timeline-dot { display: none; }
  .pub-tabs { background: none; border: none; padding: 0; }
}
