/* ══════════════════════════════════════════════
   Dr. Rupayan Kundu — Portfolio Design System
   Palette: Royal Navy & Gold (Light Theme)
   ══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Custom Properties (Design Tokens) ── */
:root {
  /* Primary Palette */
  --navy:          #1E3A5F;
  --navy-deep:     #142B47;
  --navy-light:    #2A4F7A;
  --navy-muted:    #4A6E94;
  --gold:          #D4A843;
  --gold-light:    #E8C97A;
  --gold-dark:     #B8922E;
  --gold-glow:     rgba(212, 168, 67, 0.25);

  /* Neutrals */
  --bg-primary:    #F8FAFC;
  --bg-secondary:  #FFFFFF;
  --bg-tertiary:   #E2E8F0;
  --text-primary:  #0F172A;
  --text-secondary:#334155;
  --text-muted:    #64748B;
  --border-light:  rgba(30, 58, 95, 0.18);
  --border-medium: rgba(30, 58, 95, 0.28);
  --border-strong: rgba(30, 58, 95, 0.4);

  /* Glass & Cards */
  --glass-bg:      #FFFFFF;
  --glass-border:  rgba(30, 58, 95, 0.18);
  --glass-shadow:  0 4px 20px rgba(15, 23, 42, 0.07);

  /* Shadows */
  --shadow-sm:     0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md:     0 4px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg:     0 12px 36px rgba(15, 23, 42, 0.12);
  --shadow-xl:     0 20px 50px rgba(15, 23, 42, 0.16);
  --shadow-gold:   0 8px 30px rgba(212, 168, 67, 0.25);

  /* Typography */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-heading:  'Outfit', system-ui, sans-serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap:   6rem;
  --container-max: 1200px;

  /* Transitions */
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-mid:  400ms;
  --duration-slow: 700ms;

  /* Radius */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   9999px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--gold);
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-lines {
  position: relative;
  width: 200px;
  height: 80px;
}

.loading-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-full);
  animation: curveLine 2s var(--ease-smooth) infinite;
}

.loading-line:nth-child(1) {
  top: 15px;
  background: var(--navy);
  animation-delay: 0s;
}

.loading-line:nth-child(2) {
  top: 35px;
  background: var(--gold);
  animation-delay: 0.3s;
}

.loading-line:nth-child(3) {
  top: 55px;
  background: var(--navy-muted);
  animation-delay: 0.6s;
}

@keyframes curveLine {
  0% {
    transform: scaleX(0.3) translateX(-40%);
    opacity: 0.3;
    border-radius: 50%;
  }
  50% {
    transform: scaleX(1) translateX(0);
    opacity: 1;
    border-radius: var(--radius-full);
  }
  100% {
    transform: scaleX(0.3) translateX(40%);
    opacity: 0.3;
    border-radius: 50%;
  }
}

.loading-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy-muted);
  margin-top: 2rem;
  animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all var(--duration-mid) var(--ease-smooth);
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 2rem;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-mid) var(--ease-bounce);
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-smooth);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-mid) var(--ease-smooth);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 1px;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--navy);
  cursor: pointer;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 249, 250, 0.92) 0%,
    rgba(248, 249, 250, 0.78) 40%,
    rgba(248, 249, 250, 0.55) 70%,
    rgba(248, 249, 250, 0.35) 100%
  );
}

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

.hero-text {
  animation: heroFadeIn 1s var(--ease-smooth) 0.5s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .gold {
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all var(--duration-mid) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* Hero Right — Stats Card Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: heroFadeIn 1s var(--ease-smooth) 0.8s both;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 420px;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--duration-mid) var(--ease-bounce);
  box-shadow: var(--shadow-md);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-number .gold {
  color: var(--gold);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* ── Section Commons ── */
.section {
  padding: var(--section-gap) 2rem;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.2;
}

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

/* ── Alternating BG ── */
.section-alt {
  background: #F1F5F9;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.about-image-card {
  background: #ffffff;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: all var(--duration-mid) var(--ease-bounce);
}

.about-image-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.portrait-graphic-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(212, 168, 67, 0.1));
}

.portrait-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}

.portrait-corner.top-left {
  top: 10px;
  left: 10px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-top-left-radius: 6px;
}

.portrait-corner.bottom-right {
  bottom: 10px;
  right: 10px;
  border-bottom: 3px solid var(--navy);
  border-right: 3px solid var(--navy);
  border-bottom-right-radius: 6px;
}

.about-portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: block;
}

.about-portrait-info {
  margin-top: 1rem;
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.portrait-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.portrait-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 0.15rem;
}

.portrait-inst {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Floating Badge — Shifted to TOP RIGHT with vibrant gold gradient & shadow */
.about-floating-badge {
  position: absolute;
  top: -14px;
  right: -12px;
  z-index: 10;
  background: linear-gradient(135deg, #d4af37 0%, #b8922e 100%);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(184, 146, 46, 0.4), 0 2px 6px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: floatBadge 3.5s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* About Interactive Tabs */
.about-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.about-tab {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.about-tab:hover {
  color: var(--navy);
  background: var(--bg-tertiary);
}

.about-tab.active {
  color: var(--navy-deep);
  background: var(--gold-glow);
  border-bottom: 2px solid var(--gold);
}

.about-tab-content {
  display: none;
  animation: tabFade 0.4s var(--ease-smooth);
}

.about-tab-content.active {
  display: block;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--navy-deep);
  margin-bottom: 1.2rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--duration-mid) var(--ease-bounce);
}

.highlight-item:hover {
  background: var(--gold-glow);
  transform: translateX(4px);
}

.highlight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Journey / Curved SVG Timeline ── */
.timeline-wrapper {
  position: relative;
  padding: 2.5rem 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Inline SVG spanning entire timeline height */
.timeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Dots overlay container spanning exact timeline wrapper bounds */
.timeline-dots-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.timeline-path-bg {
  stroke: rgba(203, 213, 225, 0.75);
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-path-progress {
  stroke-width: 4.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
  transition: stroke-dashoffset 0.05s linear;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.timeline-item {
  position: relative;
  display: flex;
  width: 100%;
}

/* Desktop alternating left/right layout */
.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-card {
  width: calc(50% - 3.5rem);
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-xl, 16px);
  padding: 1.6rem 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark, #b45309);
  background: var(--gold-glow, rgba(212, 175, 55, 0.15));
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.timeline-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep, #0f172a);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.timeline-location {
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.55;
  font-weight: 400;
}

/* Timeline Dot overlay positioned dynamically on curve */
.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #cbd5e1;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timeline-dot.active {
  background: var(--gold, #d4af37);
  border-color: var(--navy-deep, #0f172a);
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.7), 0 0 0 4px rgba(212, 175, 55, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 1.5rem 0;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }

  .timeline-card {
    width: calc(100% - 64px);
    margin-left: 64px;
    padding: 1.35rem 1.5rem;
  }
}

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

.research-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-mid) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-mid) var(--ease-smooth);
}

.research-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.research-card:hover::before {
  transform: scaleX(1);
}

.research-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: all var(--duration-mid) var(--ease-bounce);
}

.research-card:hover .research-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  transform: scale(1.1) rotate(-5deg);
}

.research-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.7rem;
}

.research-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Publications ── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-item {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-mid) var(--ease-bounce);
  cursor: default;
}

.pub-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.pub-number {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background var(--duration-mid);
}

.pub-item:hover .pub-number {
  background: var(--gold);
  color: var(--navy-deep);
}

.pub-details h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  font-style: italic;
}

/* Publication Search Bar */
.pub-search-wrapper {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

#pubSearchInput {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
  outline: none;
}

#pubSearchInput:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.pub-filter-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.pub-filter {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.pub-filter:hover,
.pub-filter.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pub-show-more {
  display: block;
  margin: 2rem auto 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--border-medium);
  padding: 0.7rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-mid) var(--ease-bounce);
}

.pub-show-more:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ── Awards ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.award-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-mid) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.award-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.award-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform var(--duration-mid) var(--ease-bounce);
}

.award-card:hover .award-icon {
  transform: scale(1.2) rotate(10deg);
}

.award-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
}

.award-card .award-year {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.award-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Leadership ── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.leadership-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-mid) var(--ease-bounce);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.leadership-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.leadership-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.leadership-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  margin-bottom: 0.4rem;
}

.leadership-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.leadership-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-muted);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

/* ── Beyond Medicine / Life ── */
.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.life-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-mid) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.life-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transform: scaleX(0);
  transition: transform var(--duration-mid) var(--ease-smooth);
}

.life-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.life-card:hover::after {
  transform: scaleX(1);
}

.life-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform var(--duration-mid) var(--ease-bounce);
}

.life-card:hover .life-emoji {
  transform: scale(1.25) translateY(-4px);
}

.life-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.life-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Contact Section ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-detail a:hover {
  color: var(--gold-light);
}

.contact-form {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copy .gold {
  color: var(--gold-light);
}

/* ══════════════════════════════════════════════
   Scroll-Driven Reveal Animations (Modern CSS)
   ══════════════════════════════════════════════ */

/* Intersection Observer JS fallback class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--duration-slow) var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--duration-slow) var(--ease-spring);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--duration-slow) var(--ease-spring);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--duration-slow) var(--ease-bounce);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-spring);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.54s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll-Driven (CSS-only, progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
    }

    .scroll-reveal {
      animation: fadeSlideUp auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

/* ── Counter Animation ── */
.counter {
  display: inline-block;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-mid) var(--ease-bounce);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .stats-grid {
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .pub-item {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}

/* ── Utility: hide items for show-more toggle ── */
.pub-item.hidden-pub {
  display: none;
}

/* ── Smooth text popup / popover for cards ── */
.card-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-bounce);
  z-index: 10;
}

.card-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--navy-deep);
}

*:hover > .card-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
