/* ==========================================================================
   1. ABOUT PAGE INTERSECTION OBSERVER ANIMATION STATES
   ========================================================================== */
.ed-h3-reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ed-h3-reveal-el.ed-h3-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. ABOUT PAGE BASE LAYOUT TOKENS
   ========================================================================== */
.ed-h3-about-main {
  padding-top: 140px;
  background-color: var(--ed-h1-bg-dark);
}

.ed-h3-section-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ==========================================================================
   3. PROFILE HERO COMPONENT
   ========================================================================== */
#ed-h3-profile-intro {
  padding: 40px 24px;
  min-height: 90vh;
}

.ed-h3-intro-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
}

.ed-h3-profile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: rgba(255, 255, 255, 0.02);
  background-image: url("/images/edanso.core.profile.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  border: 1px solid var(--ed-h1-glass-border);
  overflow: hidden;
}

.ed-h3-decorative-border {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(20, 184, 166, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

.ed-h3-intro-text .ed-h3-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ed-h1-teal-primary);
}

.ed-h3-name-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0 6px 0;
}

.ed-h3-title-sub {
  font-size: 1.1rem;
  color: var(--ed-h1-gold-accent);
  font-weight: 400;
  margin-bottom: 24px;
}

.ed-h3-bio-paragraph {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

/* ==========================================================================
   4. CREDENTIALS MASONRY GRID SECTION
   ========================================================================== */
#ed-h3-credentials-grid {
  background:
    linear-gradient(rgba(0, 0, 0, 0.761), rgba(0, 0, 0, 0.824), black),
    url(https://i.pinimg.com/736x/73/e3/60/73e360205349e9647c18ec85e3b054bd.jpg);
  background-size: cover;
  background-position: center;
}

.ed-h3-center-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.ed-h3-subheading {
  font-family: var(--ed-h1-font-title);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.ed-h3-gradient {
  background: linear-gradient(to right, #ffffff, var(--ed-h1-teal-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-h3-section-summary {
  color: var(--ed-h1-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ed-h3-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ed-h3-cred-card {
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h3-cred-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.ed-h3-card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ed-h1-text-muted);
  display: block;
  margin-bottom: 16px;
}

.ed-h3-medical-branch .ed-h3-card-tag {
  color: var(--ed-h1-teal-primary);
}
.ed-h3-gov-branch .ed-h3-card-tag {
  color: #38bdf8;
}
.ed-h3-leadership-branch .ed-h3-card-tag {
  color: var(--ed-h1-gold-accent);
}

.ed-h3-cred-card h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--ed-h1-text-light);
}

.ed-h3-cred-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ed-h1-text-muted);
}

/* ==========================================================================
   5. IMPACT TIMELINE SECTION
   ========================================================================== */
.ed-h3-timeline-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding-left: 32px;
}

.ed-h3-timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--ed-h1-teal-primary),
    rgba(20, 184, 166, 0.05)
  );
}

.ed-h3-timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.ed-h3-timeline-item:last-child {
  margin-bottom: 0;
}

.ed-h3-timeline-marker {
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--ed-h1-bg-dark);
  border: 2px solid var(--ed-h1-teal-primary);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.ed-h3-timeline-item:hover .ed-h3-timeline-marker {
  background: var(--ed-h1-teal-primary);
  box-shadow: 0 0 12px var(--ed-h1-teal-primary);
}

.ed-h3-timeline-content {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px 32px;
  transition: background 0.3s ease;
}

.ed-h3-timeline-item:hover .ed-h3-timeline-content {
  background: rgba(255, 255, 255, 0.02);
}

.ed-h3-time-delta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-h1-gold-accent);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ed-h3-timeline-content h4 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.ed-h3-timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ed-h1-text-muted);
}

/* ============================================================
     CAROUSEL STYLES — identical to ed-carousel.css
     (inlined here for single-file demo convenience)
     ============================================================ */
.ed-carousel-section {
  padding: 100px 0 80px;
  background-color: var(--ed-h1-bg-dark);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.ed-carousel-wrapper {
  max-width: 100vw;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.ed-carousel-center-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  padding: 0 24px;
}
.ed-carousel-pretitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ed-h1-teal-primary);
  display: block;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.ed-carousel-main-heading {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 18px;
  color: var(--ed-h1-text-light);
  line-height: 1.15;
}
.ed-carousel-gradient {
  background: linear-gradient(90deg, #ffffff 0%, var(--ed-h1-gold-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ed-carousel-section-desc {
  color: var(--ed-h1-text-muted);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
}
/* ── 3D Viewport */
.ed-carousel-viewport {
  width: 100%;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 900px;
  perspective-origin: 50% 48%;
  overflow: visible;
}
/* ── Track */
.ed-carousel-track {
  position: relative;
  width: 260px;
  height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ── Cards */
.ed-carousel-card {
  position: absolute;
  width: 260px;
  height: 420px;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--card-rotation, 0deg)) translateZ(420px) scale(0.88);
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease,
    filter 0.75s ease;
  opacity: 0.25;
  filter: brightness(0.55);
  cursor: pointer;
}
.ed-carousel-card.active-focus {
  opacity: 1;
  filter: brightness(1);
  transform: rotateY(var(--card-rotation, 0deg)) translateZ(460px) scale(1.06);
  z-index: 10;
}
.ed-carousel-card.visible-neighbor {
  opacity: 0.85;
  filter: brightness(0.78);
}
.ed-carousel-card.near-neighbor {
  opacity: 0.55;
  filter: brightness(0.55);
}
/* ── Card Inner */
.ed-carousel-card-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
  transition:
    box-shadow 0.75s ease,
    border-color 0.75s ease;
}
.ed-carousel-card.active-focus .ed-carousel-card-inner {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.ed-carousel-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}
/* ── Overlay */
.ed-carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  cursor: pointer;
  border-radius: 20px;
}
.ed-carousel-overlay span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.25);
}
.ed-carousel-card:hover .ed-carousel-overlay {
  opacity: 1;
}
/* ── Controls */
.ed-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 20;
}
.ed-carousel-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--ed-h1-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease;
}
.ed-carousel-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.ed-carousel-btn:hover {
  background: var(--ed-h1-teal-primary);
  border-color: var(--ed-h1-teal-primary);
  color: #fff;
  transform: scale(1.06);
}
.ed-carousel-btn.ed-prev:hover svg {
  transform: translateX(-2px);
}
.ed-carousel-btn.ed-next:hover svg {
  transform: translateX(2px);
}
/* ── Reveal system */
.ed-carousel-reveal-el {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.ed-carousel-center-header.ed-carousel-visible {
  opacity: 1;
  transform: translateY(0);
}
.ed-carousel-card.ed-carousel-visible {
  opacity: 0.25;
  transform: translateY(0) rotateY(var(--card-rotation, 0deg)) translateZ(420px)
    scale(0.88);
}
.ed-carousel-card.ed-carousel-visible.active-focus {
  opacity: 1;
  filter: brightness(1);
  transform: rotateY(var(--card-rotation, 0deg)) translateZ(460px) scale(1.06);
}
.ed-carousel-card.ed-carousel-visible.visible-neighbor {
  opacity: 0.85;
  filter: brightness(0.78);
}
.ed-carousel-card.ed-carousel-visible.near-neighbor {
  opacity: 0.55;
  filter: brightness(0.55);
}
.ed-carousel-controls.ed-carousel-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive */
@media (max-width: 900px) {
  .ed-carousel-viewport {
    height: 460px;
    perspective: 700px;
  }
  .ed-carousel-track,
  .ed-carousel-card {
    width: 220px;
    height: 360px;
  }
  .ed-carousel-card {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(330px) scale(0.88);
  }
  .ed-carousel-card.active-focus {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(370px) scale(1.06);
  }
  .ed-carousel-card.ed-carousel-visible {
    transform: translateY(0) rotateY(var(--card-rotation, 0deg))
      translateZ(330px) scale(0.88);
  }
  .ed-carousel-card.ed-carousel-visible.active-focus {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(370px) scale(1.06);
  }
}
@media (max-width: 560px) {
  .ed-carousel-section {
    padding: 64px 0 56px;
  }
  .ed-carousel-viewport {
    height: 380px;
    perspective: 560px;
  }
  .ed-carousel-track,
  .ed-carousel-card {
    width: 180px;
    height: 300px;
  }
  .ed-carousel-card {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(260px) scale(0.88);
  }
  .ed-carousel-card.active-focus {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(295px) scale(1.06);
  }
  .ed-carousel-card.ed-carousel-visible {
    transform: translateY(0) rotateY(var(--card-rotation, 0deg))
      translateZ(260px) scale(0.88);
  }
  .ed-carousel-card.ed-carousel-visible.active-focus {
    transform: rotateY(var(--card-rotation, 0deg)) translateZ(295px) scale(1.06);
  }
}

/* ── Gallery Modal */
#ed-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#ed-gallery-modal.active {
  opacity: 1;
  pointer-events: all;
}
#ed-gallery-modal img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 16px;
  display: block;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
#ed-modal-caption {
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 16px;
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 480px;
}
#ed-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
#ed-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .ed-h3-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ed-h3-intro-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ed-h3-profile-frame {
    max-width: 320px;
    margin: 0 auto;
  }
  .ed-h3-masonry-grid {
    grid-template-columns: 1fr;
  }
  .ed-h3-subheading {
    font-size: 1.8rem;
  }
}