/* =============================================
   DR. PANDORA GLORY — PORTFOLIO STYLES
   ============================================= */

/* --- DESIGN TOKENS --- */
:root {
  --primary: #0f766e;
  --primary-dark: #134e4a;
  --primary-light: #ccfbf1;
  --accent: #f97316;
  --navy: #1e3a5f;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* --- THEME: BLUE --- */
[data-theme="blue"] {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --navy: #0f172a;
}

/* --- THEME: MAROON --- */
[data-theme="maroon"] {
  --primary: #9f1239;
  --primary-dark: #881337;
  --primary-light: #ffe4e6;
  --accent: #d97706;
  --navy: #1c0a12;
}

/* --- THEME: PURPLE --- */
[data-theme="purple"] {
  --primary: #6d28d9;
  --primary-dark: #4c1d95;
  --primary-light: #ede9fe;
  --accent: #ec4899;
  --navy: #2e1065;
}

/* --- THEME: EMERALD --- */
[data-theme="emerald"] {
  --primary: #065f46;
  --primary-dark: #064e3b;
  --primary-light: #d1fae5;
  --accent: #f59e0b;
  --navy: #022c22;
}

/* --- THEME: AMBER --- */
[data-theme="amber"] {
  --primary: #b45309;
  --primary-dark: #92400e;
  --primary-light: #fef3c7;
  --accent: #dc2626;
  --navy: #1c1917;
}

/* --- THEME: SLATE --- */
[data-theme="slate"] {
  --primary: #475569;
  --primary-dark: #334155;
  --primary-light: #f1f5f9;
  --accent: #f97316;
  --navy: #0f172a;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  flex-shrink: 0;
}


/* --- THEME SWITCHER WIDGET --- */
.theme-switcher {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  z-index: 999;
}
.theme-switcher-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-right: 2px;
}
.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: #000; transform: scale(1.15); }
.theme-swatch[data-theme="teal"]    { background: #0f766e; }
.theme-swatch[data-theme="blue"]    { background: #1d4ed8; }
.theme-swatch[data-theme="maroon"]  { background: #9f1239; }
.theme-swatch[data-theme="purple"]  { background: #6d28d9; }
.theme-swatch[data-theme="emerald"] { background: #065f46; }
.theme-swatch[data-theme="amber"]   { background: #b45309; }
.theme-swatch[data-theme="slate"]   { background: #475569; }

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

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

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  color: var(--navy);
}

p {
  text-align: justify;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  background: none;
}

/* --- UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-bg {
  background: var(--gray-light);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 48px;
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

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

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--gray-light);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   HERO
   ============================================= */
#home {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy) 100%);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

#home::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}

.hero-credentials {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #94d2c9;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(15,118,110,0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,118,110,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Profile Card */
.profile-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  width: 220px;
  flex-shrink: 0;
}

.img-placeholder-profile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.profile-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-card-reg {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.4);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
}

/* =============================================
   ABOUT
   ============================================= */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

.about-bio h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.about-bio p {
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}

.personal-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.personal-card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 500;
}

.interests-row {
  margin-top: 24px;
}

.interests-row h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.interest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.interest-badge:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* =============================================
   QUALIFICATIONS
   ============================================= */
#qualifications {
  background: var(--gray-light);
}

.qual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-institution {
  font-size: 0.88rem;
  color: var(--gray);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--white);
  margin-top: 4px;
}

/* Additional Qualifications */
.addl-qual-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.addl-qual-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.addl-qual-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.addl-qual-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addl-qual-text {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

/* =============================================
   EXPERIENCE
   ============================================= */
#experience {
  background: var(--white);
}

/* --- QUALIFICATIONS + GALLERY TWO-COLUMN GRID --- */
.qual-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.qual-gallery-right {
  position: sticky;
  top: 90px;
}
.qual-gallery-right .gallery-slideshow {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .qual-gallery-grid {
    grid-template-columns: 1fr;
  }
  .qual-gallery-right {
    position: static;
  }
}

.exp-timeline {
  position: relative;
  padding-left: 36px;
  margin-bottom: 48px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.exp-item {
  position: relative;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.img-placeholder-institution {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  gap: 4px;
  flex-shrink: 0;
}

.img-placeholder-institution span {
  font-size: 0.6rem;
  color: var(--gray);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}

.exp-content {}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.exp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
}

.exp-duration {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.exp-org {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 4px;
}

.exp-specialty {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 50px;
}

.covid-note {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #92400e;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.covid-note::before {
  content: '⚕️';
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* =============================================
   ACCORDION
   ============================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.accordion-item:hover {
  box-shadow: var(--shadow);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background var(--transition);
  text-align: left;
  gap: 12px;
}

.accordion-header:hover {
  background: var(--gray-light);
}

.accordion-header.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--white);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-body.open {
  max-height: 800px;
}

.accordion-content {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.75;
}

.accordion-content ul {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-content ul li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.accordion-content ul li::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   SKILLS
   ============================================= */
#skills {
  background: var(--gray-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.skill-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.skill-card h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.skill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 50px;
}

/* =============================================
   QIP
   ============================================= */
#qip {
  background: var(--white);
}

.qip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qip-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.qip-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.qip-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.qip-card h4 {
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.qip-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

/* =============================================
   TEACHING
   ============================================= */
#teaching {
  background: var(--gray-light);
}

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.teaching-block h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.teaching-block p {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 14px;
}

.leadership-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leadership-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.leadership-item:hover {
  box-shadow: var(--shadow);
}

.leadership-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.leadership-item div h5 {
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 3px;
}

.leadership-item div p {
  font-size: 0.83rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   TRAINING
   ============================================= */
#training {
  background: var(--white);
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.training-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.training-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.training-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.training-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  padding-top: 6px;
}

/* =============================================
   TABS
   ============================================= */
.tabs-wrapper {}

.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--border);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 28px;
  width: fit-content;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  background: transparent;
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =============================================
   PUBLICATIONS
   ============================================= */
#research {
  background: var(--gray-light);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}

.pub-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pub-num {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pub-body {}

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pub-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.pub-title a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pub-journal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
}

.pub-inprogress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 50px;
  margin-left: 8px;
}

/* =============================================
   CONTACT
   ============================================= */
#contact {
  background: var(--navy);
}

#contact .section-label {
  background: rgba(255,255,255,0.1);
  color: #a7f3d0;
}

#contact .section-title {
  color: var(--white);
}

#contact .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.contact-info-value {
  font-size: 0.93rem;
  color: var(--white);
  font-weight: 500;
}

.contact-info-value a {
  color: #6ee7b7;
  transition: color var(--transition);
}

.contact-info-value a:hover {
  color: #a7f3d0;
}

/* References */
.refs-section {
  margin-top: 32px;
}

.refs-section h4 {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ref-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: background var(--transition);
}

.ref-card:hover {
  background: rgba(255,255,255,0.10);
}

.ref-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 3px;
}

.ref-credentials {
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 600;
  margin-bottom: 6px;
}

.ref-position {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  line-height: 1.5;
}

.ref-position-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-top: 4px;
}

.ref-contacts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ref-contacts a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ref-contacts a:hover {
  color: #6ee7b7;
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
}

.contact-form-wrapper h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.12);
}

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

.form-submit-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(15,118,110,0.4);
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.form-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,118,110,0.5);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 10px;
  color: #6ee7b7;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
}

.form-success.show {
  display: block;
}

/* =============================================
   GALLERY SLIDESHOW
   ============================================= */
.gallery-section {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.gallery-section-dark {
  background: #0a1628;
}

.gallery-section-inner {
  position: relative;
  max-width: 100%;
}

.gallery-section .gallery-label {
  position: absolute;
  top: 20px;
  left: 28px;
  z-index: 10;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.gallery-slideshow {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0a1628;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-placeholder-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  gap: 12px;
}

.gallery-placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.gallery-placeholder-slide p {
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.7;
}

.gallery-placeholder-slide code {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--primary-light);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  padding: 0;
}

.gallery-dot.active {
  background: white;
  transform: scale(1.3);
}

.gallery-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 10;
}

/* =============================================
   CONTACT — PLACE CARDS (new layout)
   ============================================= */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-place-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact-place-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-place-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-place-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-place-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.contact-place-role {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.contact-place-address {
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.contact-place-phones,
.contact-place-online {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-place-phones a,
.contact-place-online a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  transition: color var(--transition);
  text-decoration: none;
}

.contact-place-phones a:hover,
.contact-place-online a:hover {
  color: var(--primary-dark);
}

.refs-standalone {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.5);
  padding: 32px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}

.footer-logo span {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

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

/* =============================================
   SUBSECTION HEADING
   ============================================= */
.subsection-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* =============================================
   RESPONSIVE — 900px
   ============================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card {
    max-width: 240px;
    margin: 0 auto;
  }

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

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

  .gallery-slideshow {
    height: 340px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

/* =============================================
   RESPONSIVE — 640px
   ============================================= */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .img-placeholder-institution {
    display: none;
  }

  .tab-btn {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .gallery-slideshow {
    height: 260px;
  }

  .gallery-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
}
