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

:root {
  --primary: #1a2332;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --text: #334155;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
  --radius: 12px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 2rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: .2rem; list-style: none; }
.nav-links a {
  padding: .5rem .9rem; border-radius: 8px;
  font-size: .85rem; font-weight: 500;
  color: var(--text); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: rgba(37,99,235,.06);
}

/* Language switcher */
.lang-switcher {
  display: flex; gap: .3rem; margin-left: .5rem;
}
.lang-btn {
  background: none; border: 2px solid transparent;
  border-radius: 4px; cursor: pointer;
  padding: 2px; transition: all var(--transition);
  opacity: .5; display: flex; align-items: center;
}
.lang-btn:hover { opacity: .8; }
.lang-btn.active {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 0 8px rgba(37,99,235,.2);
}
.lang-btn img { display: block; border-radius: 2px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); margin: 5px 0;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 50%, #1a365d 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,83,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(37,99,235,.08) 0%, transparent 50%);
}

.hero-particles {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-particles .particle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05);
  animation: float-particle linear infinite;
}
@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}

.hero-text { color: #fff; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; margin-bottom: 1.5rem;
  background: rgba(212,168,83,.15);
  border: 1px solid rgba(212,168,83,.3);
  border-radius: 50px; font-size: .8rem;
  color: var(--gold-light); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
}

.hero-title { color: #fff; margin-bottom: .5rem; }
.hero-title .highlight { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.7);
  margin-bottom: .3rem; font-weight: 400;
}

.hero-institution {
  font-size: .95rem; color: rgba(255,255,255,.5);
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center; padding: 1.2rem .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.hero-stat:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.hero-stat .number {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700; color: var(--gold);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: .7rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: .3rem;
}

.hero-right {
  display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
}

.hero-photo-wrapper {
  position: relative;
  width: 280px; height: 280px;
}

.hero-photo-ring {
  position: absolute; inset: -8px;
  border: 2px solid rgba(212,168,83,.3);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite;
}
.hero-photo-ring::before {
  content: ''; position: absolute;
  top: -4px; left: 50%; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  transform: translateX(-50%);
}
@keyframes rotate-slow { to { transform: rotate(360deg); } }

.hero-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(212,168,83,.3));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,.3);
  border: 3px solid rgba(255,255,255,.1);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-links {
  display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center;
}
.hero-links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: all var(--transition);
}
.hero-links a:hover {
  background: rgba(255,255,255,.15);
  color: #fff; transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.container { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-header .overline {
  display: block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--accent); margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .8rem; }
.section-header p {
  max-width: 650px; margin: 0 auto;
  color: var(--text-light); font-size: 1.05rem;
}
.section-dark .section-header p { color: rgba(255,255,255,.6); }
.section-dark .section-header .overline { color: var(--gold); }

.divider {
  width: 60px; height: 3px; margin: 1rem auto;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

.about-text p { color: var(--text-light); font-size: .95rem; }
.about-text p:first-of-type { font-size: 1.05rem; color: var(--text); }

.about-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem;
}

.highlight-card {
  padding: 1.2rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border);
  transition: all var(--transition);
}
.highlight-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.highlight-card .icon {
  font-size: 1.5rem; margin-bottom: .5rem;
}
.highlight-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: .85rem; font-weight: 600;
  margin-bottom: .2rem;
}
.highlight-card p {
  font-size: .8rem; color: var(--text-light); margin: 0;
}

/* ===== VIDEO ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius);
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.timeline-item {
  position: relative; margin-bottom: 2rem; padding-left: 1.5rem;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -2rem; top: .4rem;
  width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: .75rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .2rem;
}

.timeline-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; margin-bottom: .2rem;
}
.timeline-item p {
  font-size: .85rem; color: var(--text-light); margin: 0;
}

/* ===== RESEARCH AREAS ===== */
.research-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.research-card {
  padding: 2rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}
.research-card:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
  border-color: rgba(212,168,83,.3);
}

.research-card .icon {
  font-size: 2rem; margin-bottom: 1rem;
  display: block;
}
.research-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.research-card p {
  font-size: .85rem; color: rgba(255,255,255,.6);
  margin: 0; line-height: 1.6;
}

/* ===== NUMBERS ===== */
.numbers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.number-card {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.number-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.number-card .value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.number-card .value.gold { color: var(--gold); }

.number-card .desc {
  font-size: .85rem; color: var(--text-light);
  margin-top: .5rem;
}

/* ===== AWARDS TIMELINE ===== */
.awards-filters {
  display: flex; justify-content: center; gap: .5rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1rem; border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text-light);
  font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

.awards-timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 800px; margin: 0 auto;
}
.awards-timeline::before {
  content: ''; position: absolute;
  left: 1rem; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold), var(--accent));
}

.tl-year-group {
  margin-bottom: 1rem;
}

.tl-year-marker {
  position: relative; margin-bottom: .5rem;
}
.tl-year-marker span {
  position: relative; left: -3rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  font-size: .7rem; font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
}
.tl-year-marker::after {
  content: attr(data-year);
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--primary);
}

.tl-items { display: flex; flex-direction: column; gap: .4rem; }

.tl-item {
  position: relative;
  padding: .6rem 1rem .6rem 1.5rem;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all .5s ease;
  opacity: 1;
}
.tl-item.hidden {
  opacity: 0; height: 0; padding: 0; margin: 0;
  border: none; overflow: hidden;
}
.tl-item:hover {
  background: #fff; box-shadow: var(--shadow);
  transform: translateX(4px);
}
.tl-item.tl-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(212,168,83,.08));
  border-color: rgba(212,168,83,.3);
}
.tl-item.tl-highlight:hover {
  border-color: var(--gold);
}

.tl-dot {
  position: absolute;
  left: -1.95rem; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  z-index: 1;
}
.tl-dot.gold { background: var(--gold); box-shadow: 0 0 6px rgba(212,168,83,.5); }

.tl-content {
  font-size: .85rem; color: var(--text);
  line-height: 1.4;
}
.tl-content strong {
  color: var(--primary); font-weight: 600;
}

.tl-year-group.hidden-group {
  display: none;
}

/* Animation for timeline items appearing */
.tl-item.tl-animate {
  animation: slideInRight .4s ease forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
  .awards-timeline { padding-left: 2.5rem; }
  .tl-year-marker span { left: -2.5rem; width: 1.6rem; height: 1.6rem; font-size: .6rem; }
  .tl-dot { left: -1.65rem; width: 8px; height: 8px; }
  .tl-content { font-size: .8rem; }
  .awards-filters { gap: .3rem; }
  .filter-btn { padding: .35rem .7rem; font-size: .75rem; }
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.8rem; border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.project-card .period {
  font-size: .75rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .4rem;
}
.project-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; margin-bottom: .5rem;
}
.project-card p { font-size: .85rem; color: var(--text-light); margin: 0; }
.project-card .funding {
  display: inline-block; margin-top: .8rem;
  padding: .25rem .7rem; border-radius: 50px;
  background: rgba(37,99,235,.08);
  font-size: .75rem; font-weight: 600;
  color: var(--accent);
}

/* ===== TEACHING ===== */
.teaching-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.discipline-tag {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500;
  transition: all var(--transition);
}
.discipline-tag:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.discipline-tag .code {
  font-size: .7rem; font-weight: 700;
  color: var(--accent); background: rgba(37,99,235,.08);
  padding: .2rem .5rem; border-radius: 6px;
  white-space: nowrap;
}

/* ===== ADMIN ===== */
.admin-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.admin-card {
  padding: 1.8rem; border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.admin-card .role-icon { font-size: 1.5rem; margin-bottom: .8rem; }
.admin-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; margin-bottom: .3rem;
}
.admin-card .period-label {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  margin-bottom: .5rem; display: block;
}
.admin-card p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* ===== CONTACT / FOOTER ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}

.contact-info { list-style: none; }
.contact-info li {
  display: flex; align-items: start; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
}
.contact-info .ci-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border-radius: 8px;
  font-size: 1rem;
}
.contact-info .ci-label {
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4);
  margin-bottom: .1rem;
}
.contact-info .ci-value { color: rgba(255,255,255,.9); }
.contact-info a { color: var(--gold-light); }
.contact-info a:hover { color: var(--gold); }

.profile-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
}
.profile-link {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  font-size: .85rem; font-weight: 500;
  transition: all var(--transition);
}
.profile-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff; transform: translateY(-2px);
}
.profile-link .pl-icon { font-size: 1.2rem; }

.footer-bottom {
  text-align: center; padding: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  font-size: .8rem; color: rgba(255,255,255,.4);
}

.download-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: .85rem; font-weight: 600;
  transition: all var(--transition);
  margin-top: 1rem;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  color: #fff;
}

/* ===== COLLABORATION VISUALIZATIONS ===== */

/* --- Option 1: Radial Hub & Spoke --- */
.radial-container { text-align: center; }
.radial-chart {
  position: relative;
  width: 100%; max-width: 750px; margin: 0 auto;
  aspect-ratio: 1;
}
.radial-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #d4a853, #b8922e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff;
  text-align: center; line-height: 1.2;
  z-index: 10;
  box-shadow: 0 0 30px rgba(212,168,83,.4), 0 0 60px rgba(212,168,83,.15);
}
.radial-orbit {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed rgba(255,255,255,.06);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.radial-node {
  position: absolute;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: #fff;
  cursor: pointer;
  transition: all .3s ease;
  z-index: 5;
}
.radial-node:hover {
  transform: translate(-50%,-50%) scale(1.2);
  z-index: 20;
}
.radial-node .radial-tooltip {
  display: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(212,168,83,.3);
  color: #fff; padding: .5rem .8rem;
  border-radius: 8px; font-size: .75rem;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  line-height: 1.4; text-align: left; font-weight: 400;
}
.radial-node:hover .radial-tooltip { display: block; }
.radial-node .radial-tooltip strong { color: var(--gold-light); }
.radial-line {
  position: absolute; top: 50%; left: 50%;
  transform-origin: 0 0;
  height: 1px; z-index: 1;
}

/* --- Option 2: Bar Chart --- */
.bars-container { max-width: 800px; margin: 0 auto; }
.bars-list { display: flex; flex-direction: column; gap: .6rem; }
.bar-item {
  display: flex; align-items: center; gap: .8rem;
}
.bar-flag { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.bar-name {
  width: 200px; flex-shrink: 0;
  font-size: .82rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-track {
  flex: 1; height: 28px; position: relative;
  background: var(--border); border-radius: 6px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 6px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: .6rem;
  font-size: .7rem; font-weight: 700; color: #fff;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.bar-fill.intl { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.bar-fill.natl { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.bar-fill.visible { /* width set by JS */ }
.bar-people {
  font-size: .72rem; color: var(--text-light);
  margin-left: .8rem; flex-shrink: 0; width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-style: italic;
}

/* --- Option 3: Combo (Map BG + Bars) --- */
.combo-container { position: relative; }
.combo-map-bg {
  position: relative;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 2rem;
}
.combo-world-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .5;
}
.combo-bars-overlay { position: relative; z-index: 2; }
.combo-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.combo-cols h3 {
  color: #fff; font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.combo-bars-list { display: flex; flex-direction: column; gap: .5rem; }
.combo-bar {
  display: flex; align-items: center; gap: .6rem;
}
.combo-bar-flag { font-size: 1rem; flex-shrink: 0; }
.combo-bar-info { flex: 1; min-width: 0; }
.combo-bar-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .2rem;
}
.combo-bar-name {
  font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.combo-bar-count {
  font-size: .7rem; font-weight: 700; color: var(--gold-light);
  flex-shrink: 0; margin-left: .5rem;
}
.combo-bar-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.combo-bar-fill {
  height: 100%; border-radius: 3px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.combo-bar-fill.intl { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.combo-bar-fill.natl { background: linear-gradient(90deg, #3b82f6, #93c5fd); }

@media (max-width: 768px) {
  .combo-cols { grid-template-columns: 1fr; gap: 2rem; }
  .bar-name { width: 120px; }
  .bar-people { display: none; }
}

.collab-legend {
  display: flex; justify-content: center;
  gap: 1.5rem; margin-top: 1.5rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: rgba(255,255,255,.6);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.legend-dot.home { background: #d4a853; }
.legend-dot.intl { background: #3b82f6; }
.legend-dot.natl { background: #60a5fa; }

.collab-stats {
  display: flex; justify-content: center;
  gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.collab-stat { text-align: center; }
.collab-stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold);
}
.collab-stat-label {
  font-size: .75rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .05em;
}

/* ===== ALUMNI / EGRESSOS ===== */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.alumni-card {
  display: flex; gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}
.alumni-card:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
  border-color: rgba(212,168,83,.2);
}

.alumni-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-size: 1.4rem;
}

.alumni-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600;
  color: #fff; margin-bottom: .2rem;
}
.alumni-role {
  font-size: .8rem; color: var(--gold-light);
  margin: 0 0 .1rem !important;
  font-weight: 500;
}
.alumni-place {
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin: 0 0 .5rem !important;
}

.alumni-tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 50px;
  font-size: .65rem; font-weight: 600;
  background: rgba(37,99,235,.15);
  color: rgba(255,255,255,.7);
  margin-right: .3rem;
}
.alumni-tag.flag {
  background: rgba(212,168,83,.15);
}

.alumni-summary {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: .8rem;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.alumni-summary-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.2rem;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
}
.alumni-summary-icon { font-size: 1.3rem; flex-shrink: 0; }
.alumni-summary-item p {
  font-size: .85rem; color: rgba(255,255,255,.7); margin: 0;
}
.alumni-summary-item strong { color: var(--gold-light); }

@media (max-width: 640px) {
  .collab-stats { gap: 1rem; }
  .collab-stat-value { font-size: 1.4rem; }
  .alumni-grid { grid-template-columns: 1fr; }
}

/* ===== NEWS CAROUSEL ===== */
.carousel-wrapper {
  position: relative;
  display: flex; align-items: center; gap: .5rem;
}

.carousel-track-container {
  overflow: hidden; flex: 1;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.news-card {
  flex: 0 0 calc(33.333% - 1rem);
  margin: 0 .5rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(212,168,83,.1));
}

.news-card-body {
  padding: 1.2rem;
}

.news-card-date {
  font-size: .7rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .3rem;
}

.news-card-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600;
  margin-bottom: .4rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.news-card-body p {
  font-size: .8rem; color: var(--text-light);
  margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.news-card-source {
  display: inline-block; margin-top: .6rem;
  font-size: .7rem; font-weight: 600;
  color: var(--accent); padding: .15rem .5rem;
  background: rgba(37,99,235,.08);
  border-radius: 50px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  border-radius: 50%; cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.carousel-btn:hover {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

.carousel-dots {
  display: flex; justify-content: center;
  gap: .4rem; margin-top: 1.2rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px; border-radius: 4px;
}

@media (max-width: 968px) {
  .news-card { flex: 0 0 calc(50% - 1rem); }
}
@media (max-width: 640px) {
  .news-card { flex: 0 0 calc(100% - 1rem); }
}

/* ===== SITE STATS / COUNTER ===== */
.site-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 1.5rem;
}

.stat-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
}

.stat-item .stat-icon {
  font-size: 1rem;
}

.stat-item .stat-value {
  font-weight: 700; color: rgba(255,255,255,.8);
  font-family: 'Inter', sans-serif;
}

.stat-item .stat-label {
  color: rgba(255,255,255,.4);
}

.stat-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.1);
}

@media (max-width: 640px) {
  .site-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .stat-item { font-size: .75rem; }
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999; box-shadow: var(--shadow-lg);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-right { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column; padding: 5rem 2rem 2rem;
    background: var(--bg); box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; z-index: 1001; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 640px) {
  .section { padding: 3rem 1.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-photo-wrapper, .hero-photo { width: 200px; height: 200px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-links { grid-template-columns: 1fr; }
  .awards-container { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}
