/* ==========================================================================
   MANDILA SENEVIRATHNE — EXECUTIVE LUXURY LIGHT DESIGN SYSTEM
   Style: High-End Minimalist Editorial & Silicon Valley Luminary
   Palette: Crisp Pure White, Pearl Slate, Deep Oxford Navy, Electric Azure
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Light Theme Color System */
  --bg-main: #f8fafc;
  --bg-white: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  /* Typography Colors */
  --text-headline: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Accent Colors */
  --brand-blue: #0284c7;
  --brand-blue-deep: #0369a1;
  --brand-indigo: #4f46e5;
  --brand-crimson: #a51c30; /* Harvard Crimson */
  --brand-emerald: #059669;
  --brand-amber: #d97706;

  /* Borders & Glass */
  --border-light: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.9);
  --border-focus: #38bdf8;
  --card-glass: rgba(255, 255, 255, 0.85);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1320px;
  --nav-height: 84px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Background Grid & Glow */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(at 10% 15%, rgba(2, 132, 199, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(5, 150, 105, 0.04) 0px, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-headline);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 20%, #0284c7 60%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #a51c30 0%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 15%;
  border: 2px solid var(--brand-blue);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: var(--transition);
}

.brand-logo:hover .brand-avatar-img {
  transform: scale(1.08) rotate(-2deg);
  border-color: var(--brand-indigo);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-headline);
  letter-spacing: -0.01em;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-blue-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-emerald);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-emerald);
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--brand-emerald);
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-headline);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  line-height: 1.08;
}

.hero-role-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.hero-role-pill-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.role-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseLight 1.8s infinite;
}

.hero-typewriter-container {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: var(--text-muted);
  min-height: 2.2rem;
}

.hero-typewriter-label {
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-typewriter {
  color: var(--brand-blue-deep);
  font-weight: 700;
  border-right: 2px solid var(--brand-blue);
  padding-right: 4px;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.stat-plus {
  color: var(--brand-blue);
  font-size: 1.8rem;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* Hero Portrait / Executive Visual Card */
.hero-visual-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.executive-card-frame {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.05);
  position: relative;
}

.portrait-photo-wrapper {
  width: 100%;
  aspect-ratio: 4/4.5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.executive-card-frame:hover .portrait-img {
  transform: scale(1.03);
}

.portrait-caption-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12);
  z-index: 2;
  transition: var(--transition);
}

.portrait-caption-info {
  display: flex;
  flex-direction: column;
}

.portrait-caption-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-headline);
  line-height: 1.2;
}

.portrait-caption-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-blue-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  height: 100%;
}

.portrait-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.portrait-badge-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 0.35rem;
}

.portrait-badge-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.portrait-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* Floating Verification Badges */
.hero-floating-badge {
  position: absolute;
  padding: 0.65rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  animation: floatLight 4s ease-in-out infinite alternate;
}

.badge-float-1 {
  top: -15px;
  right: -20px;
  border-left: 4px solid #a51c30;
}

.badge-float-2 {
  bottom: 25px;
  left: -25px;
  border-left: 4px solid #0284c7;
  animation-delay: 1.8s;
}

@keyframes floatLight {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   INFINITE LOGO TICKER / PARTNERS MARQUEE
   ========================================================================== */
.marquee-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.marquee-heading {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.marquee-heading::before,
.marquee-heading::after {
  content: "";
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, #cbd5e1);
}

.marquee-heading::after {
  background: linear-gradient(90deg, #cbd5e1, transparent);
}

.marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  width: max-content;
  animation: scrollMarquee 42s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.institution-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem 1.85rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-headline);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  height: 68px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.institution-pill:focus-visible {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
}

.institution-pill:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.18), 0 4px 12px -2px rgba(2, 132, 199, 0.06);
}

.marquee-brand-img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s ease;
}

.institution-pill:hover .marquee-brand-img,
.institution-pill:hover .marquee-logo-icon {
  transform: scale(1.06);
}

.marquee-brand-img.harvard-brand {
  height: 36px;
  max-width: 220px;
}

.marquee-brand-img.sliit-brand {
  height: 35px;
  max-width: 200px;
}

.marquee-brand-img.google-brand {
  height: 34px;
  max-width: 150px;
}

.marquee-brand-img.gemini-brand {
  height: 35px;
  max-width: 150px;
}

.marquee-brand-img.chatgpt-brand {
  height: 38px;
  max-width: 170px;
}

.marquee-brand-img.claude-brand {
  height: 36px;
  max-width: 165px;
}

.marquee-brand-img.alison-brand {
  height: 34px;
  max-width: 160px;
}

.marquee-brand-img.unu-brand {
  height: 38px;
  max-width: 150px;
}

.marquee-brand-img.unece-brand {
  height: 38px;
  max-width: 160px;
}

.marquee-brand-img.unitar-brand {
  height: 38px;
  max-width: 160px;
}

.marquee-brand-img.unfccc-brand {
  height: 48px;
  max-width: 150px;
}

.marquee-brand-img.imo-brand {
  height: 42px;
  max-width: 150px;
}

.marquee-brand-img.esoft-brand {
  height: 38px;
  max-width: 150px;
  border-radius: 3px;
}

.marquee-brand-img.ocn-brand {
  height: 38px;
  max-width: 150px;
}

.marquee-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.marquee-logo-icon.hp-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.marquee-logo-icon.apple-icon {
  width: 26px;
  height: 34px;
}

.inst-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  overflow: hidden;
}

.logo-harvard { background: #fee2e2; color: #a51c30; }
.logo-apple { background: #f1f5f9; color: #0f172a; }
.logo-adobe { background: #fee2e2; color: #dc2626; }
.logo-un { background: #e0f2fe; color: #0284c7; }
.logo-sliit { background: #fef3c7; color: #d97706; }
.logo-vmware { background: #ecfdf5; color: #059669; }
.logo-google { background: #e0f2fe; color: #1a73e8; }
.logo-hp { background: #e0f2fe; color: #0096d6; }
.logo-esoft { background: #fee2e2; color: #b91c1c; }
.logo-ocn { background: #ede9fe; color: #6d28d9; }

/* ==========================================================================
   ACCREDITATION & CERTIFICATE REGISTRY (10 CERTIFICATES)
   ========================================================================== */
.credentials-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: #94a3b8;
  color: var(--text-headline);
}

.filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 2.2rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}

.cert-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
}

.cert-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-thumbnail {
  transform: scale(1.05);
}

.cert-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--text-headline);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cert-badge-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.cert-zoom-hint {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
}

.cert-thumbnail-wrapper:hover .cert-zoom-hint {
  opacity: 1;
}

.cert-zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cert-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-institution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}

.cert-issuer-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.cert-row-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.cert-issuer {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-headline);
}

.cert-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.cert-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.cert-tag {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

.btn-inspect {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-headline);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-inspect:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-blue-deep);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.btn-verify:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.35rem;
  letter-spacing: -0.02em;
}

.about-text p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlight-box {
  background: #f0fdf4;
  border-left: 4px solid var(--brand-emerald);
  padding: 1.5rem;
  border-radius: 0 14px 14px 0;
  margin-bottom: 2rem;
}

.about-highlight-box p {
  margin-bottom: 0;
  font-style: italic;
  font-weight: 600;
  color: #065f46;
}

.expertise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.75rem;
  transition: var(--transition);
}

.expertise-card:hover {
  background: #ffffff;
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-ai { background: #e0f2fe; color: #0284c7; }
.icon-genai { background: #fee2e2; color: #dc2626; }
.icon-marketing { background: #fef3c7; color: #d97706; }
.icon-climate { background: #ecfdf5; color: #059669; }

.expertise-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.expertise-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   HARVARD CS50 AI PROJECTS (50+ PROJECTS)
   ========================================================================== */
.projects-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #94a3b8;
  box-shadow: var(--shadow-card-hover);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-headline);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-tech {
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--brand-blue-deep);
  font-weight: 600;
}

.project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.project-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-headline);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

.project-learn-more:hover {
  color: var(--brand-blue);
  gap: 0.65rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.contact-card-main {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 4.5rem 3.5rem;
  box-shadow: var(--shadow-card);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), #6366f1, #06b6d4);
}

.contact-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.contact-card-title {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-headline);
}

.contact-card-desc {
  color: var(--text-body);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.email-direct-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 1.2rem 1.6rem;
  max-width: 620px;
  margin: 0 auto 2rem auto;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.email-direct-box:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

.email-direct-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.email-direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--brand-blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-direct-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.email-direct-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.email-direct-address {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-headline);
  word-break: break-all;
}

.email-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-headline);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}

.email-direct-box:hover .email-copy-badge {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.contact-actions-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.contact-meta-footer {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-guarantee-tag {
  display: inline-block;
  font-weight: 600;
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#institution-modal {
  z-index: 1000;
}

#certificate-modal {
  z-index: 1100;
}

#project-detail-modal {
  z-index: 1100;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #ffffff;
  border-radius: 24px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

/* ==========================================================================
   INSTITUTION ACCREDITATIONS & CURRICULUM MODAL
   ========================================================================== */
.institution-modal-container {
  display: block;
  grid-template-columns: none;
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.3);
}

.inst-modal-scrollable {
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.75rem 2.85rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.inst-modal-scrollable::-webkit-scrollbar {
  width: 6px;
}

.inst-modal-scrollable::-webkit-scrollbar-track {
  background: #f8fafc;
}

.inst-modal-scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

/* Header */
.inst-modal-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
}

.inst-header-logo-wrapper {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.inst-header-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.inst-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.inst-header-top-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: var(--brand-blue-deep);
  border: 1px solid #bae6fd;
}

.inst-category-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inst-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.2;
}

.inst-modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Learning & Curriculum Section */
.inst-learning-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.6rem 2rem;
}

.inst-section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-blue-deep);
  margin-bottom: 0.85rem;
}

.inst-learning-overview {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.inst-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inst-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.inst-topic-chip::before {
  content: "✦";
  color: var(--brand-blue);
  font-size: 0.75rem;
}

/* Harvard CS50 Projects Banner */
.inst-projects-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.75rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fecaca;
  border-radius: 18px;
}

.inst-proj-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inst-proj-banner-icon {
  font-size: 2rem;
}

.inst-proj-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 0.2rem;
}

.inst-proj-banner-desc {
  font-size: 0.85rem;
  color: #7f1d1d;
  line-height: 1.45;
}

/* Certificates Grid */
.inst-certs-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.inst-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.inst-cert-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.inst-cert-card:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.1);
}

.inst-cert-thumb-box {
  position: relative;
  height: 210px;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inst-cert-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.inst-cert-thumb-box:hover .inst-cert-thumb-img {
  transform: scale(1.04);
}

.inst-cert-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #ffffff;
}

.inst-cert-thumb-box:hover .inst-cert-thumb-overlay {
  opacity: 1;
}

.inst-thumb-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.inst-cert-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.inst-cert-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.inst-cert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.inst-cert-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.inst-cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.inst-cert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
}

/* Switcher */
.inst-switcher-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.inst-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inst-switcher-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inst-switcher-hint {
  font-size: 0.78rem;
  color: var(--brand-blue-deep);
  font-weight: 600;
}

.inst-switcher-chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.inst-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-headline);
  cursor: pointer;
  transition: var(--transition);
}

.inst-switch-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.inst-switch-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.inst-switch-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-headline);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-image-pane {
  background: #f8fafc;
  border-right: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-pane img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.modal-info-pane {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.modal-issuer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-blue-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
}

.modal-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.modal-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-headline);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  text-align: center;
  background: #ffffff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-highlight {
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-blue) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-row {
    max-width: 500px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .modal-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-card-main {
    padding: 3rem 1.5rem;
  }
  .contact-card-title {
    font-size: 1.95rem;
  }
  .email-direct-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
  }
  .email-copy-badge {
    width: 100%;
    justify-content: center;
  }
  .contact-actions-cluster {
    flex-direction: column;
    width: 100%;
  }
  .contact-actions-cluster .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-links, .status-pill {
    display: none;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .cert-grid, .expertise-cards {
    grid-template-columns: 1fr;
  }
  .hero-floating-badge {
    display: none;
  }
  .institution-pill {
    height: 60px;
    padding: 0.55rem 1.4rem;
    gap: 0.8rem;
    font-size: 0.94rem;
  }
  .marquee-brand-img {
    height: 32px;
    max-width: 150px;
  }
  .marquee-brand-img.chatgpt-brand {
    height: 35px;
    max-width: 160px;
  }
  .marquee-brand-img.claude-brand {
    height: 32px;
    max-width: 145px;
  }
  .marquee-brand-img.unfccc-brand {
    height: 42px;
    max-width: 130px;
  }
  .marquee-brand-img.imo-brand {
    height: 36px;
    max-width: 130px;
  }
  .marquee-brand-img.esoft-brand {
    height: 34px;
    max-width: 130px;
  }
  .marquee-brand-img.unu-brand {
    height: 34px;
    max-width: 130px;
  }
  .inst-modal-scrollable {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .inst-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .inst-header-logo-wrapper {
    width: 68px;
    height: 68px;
    padding: 0.6rem;
  }
  .inst-learning-section {
    padding: 1.25rem 1.15rem;
  }
  .inst-certs-grid {
    grid-template-columns: 1fr;
  }
  .inst-projects-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .inst-cert-thumb-box {
    height: 180px;
  }
  .inst-cert-body {
    padding: 1.25rem;
  }
}
