/* ============================================================
   Dr. Zaidoun Hajali — Professional Website v3
   Design: Precision Medicine — Dark Luxury Medical
   Typography: Cormorant Garamond (display) + DM Sans (body)
   Palette: Deep Teal #0A3D47 · Gold #C9A227 · Near-black #0D1A20
   ============================================================ */

:root {
  --teal:        #0A3D47;
  --teal-mid:    #0E4F5E;
  --teal-light:  #1A6B7C;
  --gold:        #C9A227;
  --gold-light:  #D4B84A;
  --gold-dim:    rgba(201,162,39,0.18);
  --dark:        #0D1A20;
  --dark-card:   #121F26;
  --charcoal:    #1C2B32;
  --white:       #FAFAF8;
  --off-white:   #F2F2EF;
  --gray-pale:   #E8E8E4;
  --gray-mid:    #8A9098;
  --gray-dark:   #3A4550;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:      10px;
  --radius-sm:   6px;
  --trans:       all 0.35s cubic-bezier(0.4,0,0.2,1);
  --trans-fast:  all 0.2s ease;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lift: 0 12px 40px rgba(0,0,0,0.13);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: var(--trans-fast); }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---- Typography Helpers ---- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal);
  margin-bottom: 18px;
}
.section-h2 em { font-style: italic; color: var(--gold); }
.section-h2.light { color: var(--white); }
.section-h2.light em { color: var(--gold-light); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 580px;
  margin: 0 auto;
}
.section-head.center { text-align: center; margin-bottom: 56px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--trans);
  letter-spacing: 0.02em;
}
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover {
  background: #b8911e; border-color: #b8911e; color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.3);
}
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 14px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10,25,32,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Premium Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}
.logo:hover { color: var(--gold-light); }
.logo-mark {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--trans);
}
.logo:hover .logo-mark { color: var(--gold-light); transform: scale(1.05); }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.85;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.78);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-pill {
  padding: 8px 22px;
  background: var(--gold);
  color: var(--dark) !important;
  border-radius: var(--radius-sm);
  font-weight: 500 !important;
}
.nav-pill:hover { background: #b8911e; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================
   HERO — Split Layout
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('public/images/hero-bg.jpg') center/cover no-repeat;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,25,32,0.97) 0%,
    rgba(10,61,71,0.90) 45%,
    rgba(10,25,32,0.60) 100%
  );
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}
/* Dot grid decoration */
.hero-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(201,162,39,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.5;
}

/* Split layout */
.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 130px 28px 100px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* LEFT: text content */
.hero-content {
  max-width: 580px;
}

.hero-credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 100px;
  background: rgba(201,162,39,0.08);
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both 0.3s;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease both 0.5s;
}
.hero-name em { font-style: italic; color: var(--gold-light); }

.hero-degree {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease both 0.65s;
}
.hero-role {
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease both 0.75s;
}

/* Stats row */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10,61,71,0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease both 0.9s;
}
.stat-glass {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 2px;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-plus { font-size: 1.3rem; color: var(--gold); font-weight: 600; vertical-align: super; }
.stat-l {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201,162,39,0.2);
  margin: 0 24px;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease both 1.05s;
}

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

/* ---- RIGHT: Portrait column ---- */
.hero-portrait-col {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s ease both 0.6s;
}
.hero-portrait-wrap {
  position: relative;
  width: 360px;
  height: 420px;
}

/* Decorative rings */
.portrait-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.2);
  pointer-events: none;
}
.portrait-ring--outer {
  width: 420px; height: 420px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: slowSpin 30s linear infinite;
  border-style: dashed;
}
.portrait-ring--inner {
  width: 310px; height: 310px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(201,162,39,0.12);
  animation: slowSpin 20s linear infinite reverse;
}
@keyframes slowSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Main photo frame */
.hero-portrait-frame {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 340px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  overflow: hidden;
  border: 2px solid rgba(201,162,39,0.45);
  box-shadow:
    0 0 0 8px rgba(201,162,39,0.06),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 0 30px rgba(10,61,71,0.2);
  background: var(--teal);
}
.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, #0E4F5E 0%, #0A3D47 60%, #0D1A20 100%);
  color: rgba(255,255,255,0.45);
  padding: 20px;
  text-align: center;
}
.portrait-placeholder svg { width: 60px; height: 60px; }
.portrait-placeholder span { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.portrait-placeholder small { font-size: 0.68rem; color: rgba(201,162,39,0.5); line-height: 1.5; }

/* Floating badge below portrait */
.portrait-float-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: rgba(10,25,32,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.portrait-float-badge svg { width: 14px; height: 14px; color: var(--gold); }

/* Language badges top right */
.portrait-lang-badges {
  position: absolute;
  top: 12px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portrait-lang-badges span {
  padding: 5px 12px;
  background: rgba(10,25,32,0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}

/* ECG at bottom */
.ecg-container {
  position: absolute;
  bottom: 48px;
  left: 0; right: 0;
  height: 60px;
  opacity: 0.15;
  pointer-events: none;
}
.ecg-line { width: 100%; height: 100%; }
.ecg-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: drawECG 4s ease forwards 0.8s;
}
@keyframes drawECG { to { stroke-dashoffset: 0; } }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  animation: bounce 2.5s ease-in-out infinite 1.5s;
}
.scroll-cue svg { width: 16px; height: 16px; }
.scroll-cue:hover { border-color: var(--gold); color: var(--gold); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ================================================
   ABOUT
   ================================================ */
.about {
  padding: 110px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
/* Decorative background element */
.about::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,61,71,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

/* Profile card */
.profile-card {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--gray-pale);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

/* ---- Profile photo frame with corner accents ---- */
.profile-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(150deg, #0E4F5E 0%, #0A3D47 50%, #0D1A20 100%);
}
.profile-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile-photo-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.35);
  padding: 30px;
  text-align: center;
}
.profile-photo-placeholder svg { width: 72px; height: 72px; }
.profile-photo-placeholder span { font-family: var(--font-display); font-size: 1.1rem; color: rgba(255,255,255,0.55); }

/* Gold corner accents */
.frame-corner {
  position: absolute;
  width: 24px; height: 24px;
  pointer-events: none;
  z-index: 2;
}
.frame-corner--tl { top: 12px; left: 12px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-radius: 2px 0 0 0; }
.frame-corner--tr { top: 12px; right: 12px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); border-radius: 0 2px 0 0; }
.frame-corner--bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); border-radius: 0 0 0 2px; }
.frame-corner--br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); border-radius: 0 0 2px 0; }

.profile-meta {
  padding: 24px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-pale);
}
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.meta-val {
  font-size: 0.88rem;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.4;
}
.meta-val.gold { color: var(--gold); font-weight: 600; }

.profile-languages {
  display: flex;
  gap: 8px;
  padding: 18px 22px 22px;
  flex-wrap: wrap;
}
.lang-badge {
  padding: 5px 12px;
  background: var(--off-white);
  border: 1px solid var(--gray-pale);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--charcoal);
}

/* About text */
.about-text-col { padding-top: 8px; }
.about-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--teal);
  margin-bottom: 20px;
}
.about-body {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 32px;
  line-height: 1.8;
}
.about-checks { display: flex; flex-direction: column; gap: 14px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,162,39,0.3);
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon::after {
  content: '';
  width: 7px; height: 5px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg) translateY(-1px);
}

/* ================================================
   EXPERTISE
   ================================================ */
.expertise {
  padding: 110px 0;
  background: var(--off-white);
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.exp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  cursor: default;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.exp-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.exp-card:nth-child(2) { transition-delay: 0.12s; }
.exp-card:nth-child(3) { transition-delay: 0.22s; }
.exp-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.22); }

/* Image with zoom */
.exp-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.exp-card:hover .exp-card-img { transform: scale(1.06); }

/* Background cineloop video — covers the card identically to the image */
.exp-card-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.exp-card:hover .exp-card-video { transform: scale(1.06); }
/* When a video is present, it sits above the static poster image */
.exp-card-video + .exp-card-img { z-index: -1; }

/* Gradient overlay — stronger at bottom */
.exp-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,25,32,0.15) 0%,
    rgba(10,25,32,0.5) 40%,
    rgba(10,25,32,0.92) 100%
  );
  transition: background 0.4s ease;
}
.exp-card:hover .exp-card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,25,32,0.2) 0%,
    rgba(10,61,71,0.6) 40%,
    rgba(10,25,32,0.96) 100%
  );
}

.exp-card-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 28px;
  color: var(--white);
}
.exp-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(201,162,39,0.25);
  line-height: 1;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.exp-card:hover .exp-number { color: rgba(201,162,39,0.4); }
.exp-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--white);
}
.exp-card-body p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.1s;
}
.exp-card:hover .exp-card-body p { max-height: 140px; opacity: 1; }
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.exp-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 1.5px;
  background: var(--gold);
}

/* Extra skills */
.extra-skills {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  border: 1px solid var(--gray-pale);
}
.extra-skills h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 18px;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills-tags span {
  padding: 7px 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-pale);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
  transition: var(--trans-fast);
}
.skills-tags span:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ================================================
   EXPERIENCE TIMELINE
   ================================================ */
.dark-section {
  background: var(--dark);
  padding: 110px 0;
}
.experience { background: var(--dark); }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.tl-item {
  display: grid;
  grid-template-columns: 80px 36px 1fr;
  gap: 0 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-item.revealed { opacity: 1; transform: translateY(0); }

.tl-year {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 4px;
  padding-bottom: 40px;
}
.tl-year span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
}
.tl-present {
  font-size: 0.62rem !important;
  font-family: var(--font-body) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-top: 2px;
}

.tl-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}
.tl-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gray-dark);
  border: 2px solid var(--gray-dark);
  flex-shrink: 0;
  transition: var(--trans);
}
.tl-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.2);
}
.tl-line {
  width: 1px;
  flex: 1;
  background: rgba(255,255,255,0.1);
  min-height: 40px;
  margin-top: 6px;
}

.tl-card {
  padding: 0 0 48px 0;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 5px;
}
.tl-org {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 3px;
}
.tl-place {
  font-size: 0.78rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.tl-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ================================================
   CREDENTIALS
   ================================================ */
.credentials { padding: 100px 0; background: var(--off-white); }
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cred-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-pale);
}
.cred-col-title svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.edu-item { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.edu-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 46px;
  padding-top: 2px;
}
.edu-title { font-size: 0.93rem; font-weight: 500; color: var(--charcoal); margin-bottom: 3px; line-height: 1.45; }
.edu-org { font-size: 0.82rem; color: var(--gray-mid); }

.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.4;
  transition: var(--trans-fast);
}
.cert-item:hover { box-shadow: var(--shadow-card); }
.cert-flag { font-size: 1rem; flex-shrink: 0; line-height: 1.4; }

/* ================================================
   AFFILIATIONS
   ================================================ */
.affiliations { background: var(--dark); padding: 110px 0; }

.aff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aff-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--trans);
  opacity: 0;
  transform: translateY(20px);
}
.aff-card.revealed { opacity: 1; transform: translateY(0); }
.aff-card:hover {
  border-color: rgba(201,162,39,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.aff-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.aff-card.fellow .aff-badge {
  background: var(--gold-dim);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.25);
}
.aff-card.member .aff-badge {
  background: rgba(26,107,124,0.2);
  color: rgba(100,190,210,0.8);
  border: 1px solid rgba(26,107,124,0.3);
}
.aff-acronym {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
}
.aff-card.fellow .aff-acronym { color: var(--gold-light); }
.aff-full { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 10px; }
.aff-loc { font-size: 0.72rem; letter-spacing: 0.05em; color: var(--gray-mid); }

/* ================================================
   CONTACT
   ================================================ */
.contact { padding: 100px 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-col { display: flex; flex-direction: column; gap: 28px; }
.contact-info-block { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; color: var(--teal); }
.contact-info-block h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 5px;
}
.contact-info-block p { font-size: 0.92rem; color: var(--charcoal); line-height: 1.55; }
.contact-info-block a { color: var(--teal); }
.contact-info-block a:hover { color: var(--gold); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 28px;
}
.form-field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray-dark);
  margin-bottom: 7px;
}
.req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--gray-pale);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-mid); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(10,61,71,0.07);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); }
.form-success.visible { display: flex; }
.field-error { font-size: 0.75rem; color: #c0392b; margin-top: 4px; display: block; }
.input-error { border-color: #c0392b !important; }

/* ================================================
   FOOTER
   ================================================ */
.footer { background: var(--dark); padding: 60px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.footer-logo-svg {
  width: 44px; height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  display: block;
}
.footer-creds { font-size: 0.75rem; color: var(--gray-mid); letter-spacing: 0.1em; display: block; }
.footer-spec { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em; display: block; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1080px) {
  .hero-layout { grid-template-columns: 1fr 360px; gap: 40px; }
  .hero-portrait-wrap { width: 320px; height: 380px; }
  .hero-portrait-frame { width: 250px; height: 300px; }
  .portrait-ring--outer { width: 370px; height: 370px; }
  .portrait-ring--inner { width: 270px; height: 270px; }
  .aff-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 300px 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .expertise-cards { grid-template-columns: 1fr; }
  .exp-card { min-height: 360px; }
  .exp-card .exp-card-body p { max-height: 120px; opacity: 1; }
  .cred-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    background: var(--dark);
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,0.75); font-size: 1rem; }
  .nav-pill { color: var(--dark) !important; }
  .hamburger { display: flex; }
  .navbar { position: fixed; }

  /* Hero stacks */
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 110px 24px 90px;
    gap: 50px;
  }
  .hero-portrait-col {
    order: -1;
    justify-content: center;
  }
  .hero-portrait-wrap { width: 280px; height: 320px; }
  .hero-portrait-frame { width: 210px; height: 260px; }
  .portrait-ring--outer { width: 300px; height: 300px; }
  .portrait-ring--inner { width: 220px; height: 220px; }
  .portrait-lang-badges { right: -10px; }
  .hero-stats-row { flex-direction: row; flex-wrap: wrap; padding: 16px; gap: 12px; }
  .stat-glass { flex: 1; min-width: 80px; }
  .stat-divider { display: none; }
  .hero-ctas { flex-direction: column; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .profile-photo-frame { aspect-ratio: 3/2; }

  /* Timeline */
  .tl-item { grid-template-columns: 64px 28px 1fr; gap: 0 12px; }
  .tl-year span { font-size: 0.78rem; }

  /* Affiliations */
  .aff-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .dark-section, .about, .expertise, .credentials, .affiliations, .contact { padding: 72px 0; }
  .hero-layout { padding: 100px 18px 80px; }
  .hero-stats-row { flex-direction: column; gap: 16px; }
  .stat-glass { flex-direction: row; align-items: center; gap: 8px; }
  .aff-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 58px 24px 1fr; }
  .logo-sub { display: none; }
}

/* ============================================================
   SPEAKING & ENGAGEMENTS SECTION
   ============================================================ */
.speaking {
  padding: 110px 0;
  background: var(--off-white);
  position: relative;
}
.speaking::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.speak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.speak-card {
  background: #ffffff;
  border: 1px solid var(--gray-pale);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: var(--trans);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}
.speak-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.speak-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-dim);
}

.speak-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  opacity: 0.5;
  transition: var(--trans);
}
.speak-card:hover::before { opacity: 1; width: 6px; }

.speak-card--featured {
  background: linear-gradient(135deg, #ffffff 0%, #fdf7e8 100%);
  border-color: var(--gold-dim);
}
.speak-card--featured::before {
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  opacity: 1;
  width: 5px;
}

.speak-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.speak-card--featured .speak-badge {
  background: var(--gold);
  color: #fff;
}

.speak-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.25;
  margin-bottom: 8px;
}

.speak-location {
  font-size: 0.88rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-bottom: 10px;
}

.speak-note {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
  opacity: 0.85;
}
.speak-note strong { color: var(--gold); font-weight: 600; }

@media (max-width: 720px) {
  .speaking { padding: 80px 0; }
  .speak-grid { gap: 16px; }
  .speak-card { padding: 22px 20px; }
}

/* ============================================================
   LINKEDIN INSIGHTS SECTION
   ============================================================ */
.insights {
  padding: 110px 0;
  background: var(--teal);
  position: relative;
}
.insights .section-eyebrow { color: var(--gold); }
.insights .section-h2 { color: #fff; }
.insights .section-h2 em { color: var(--gold); }
.insights .section-sub { color: rgba(255,255,255,0.7); }

.li-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  margin-top: 8px;
  align-items: start;
}

/* Embed wrapper (iframe + caption) */
.li-embed-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans);
}
.li-embed-wrap.revealed { opacity: 1; transform: translateY(0); }

/* Real LinkedIn embeds drop in as iframes — keep them tidy */
.li-grid iframe,
.li-embed {
  width: 100% !important;
  border: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  min-height: 480px;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* One-line caption under each post */
.li-caption {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,90,0.25);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 16px;
  text-align: center;
}

/* Styled placeholder card (shown until a real embed is pasted in) */
.li-card.li-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,90,0.25);
  border-radius: var(--radius);
  padding: 28px 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
  opacity: 0;
  transform: translateY(20px);
}
.li-card.li-placeholder.revealed { opacity: 1; transform: translateY(0); }
.li-card.li-placeholder:hover {
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}

.li-ph-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.li-ph-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--gold);
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  font-family: var(--font-body);
}
.li-ph-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}
.li-ph-body {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.li-ph-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--trans);
}
.li-ph-link:hover { color: var(--gold-light); letter-spacing: 0.02em; }

.li-cta {
  text-align: center;
  margin-top: 48px;
}
.li-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.li-follow-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--teal);
  color: var(--gold);
  font-weight: 700;
  border-radius: 5px;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .insights { padding: 80px 0; }
  .li-grid { gap: 16px; }
}

/* Medical disclaimer in footer */
.medical-disclaimer {
  max-width: 980px;
  margin: 0 auto 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.medical-disclaimer p {
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px;
  text-align: left;
}
.medical-disclaimer p:last-child { margin-bottom: 0; }
.medical-disclaimer strong { color: rgba(255,255,255,0.6); }


/* DrHajali.com logo brand */
.logo-dot { color: var(--gold); font-size: 0.82em; }
