/* ==========================================================================
   PREMIUM CUSTOM ABOUT STYLING MODULE - Healthcare HEALTHCARE
   Extends base.css with stunning visual effects, transitions & animations.
   ========================================================================== */

/* --- Page Transitions & Fade-in Animations --- */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.45);
  }
  100% {
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
  }
}

.animate-slide-up {
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Hero Banner Section --- */
.about-hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.9) 0%, rgba(17, 26, 46, 0.95) 100%),
              url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&q=80&w=1200') no-repeat center/cover;
  padding: 120px 0 100px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

/* Decorative glassmorphic gradient floating balls */
.about-hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.about-hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-subtitle-tag {
  display: inline-block;
  background: rgba(14, 165, 233, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.about-hero-section h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff 30%, #e0f2fe 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero-section p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* --- Stats Verification Matrix --- */
.stats-matrix-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 0 40px 0;
}

.stats-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.stat-item-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: var(--hover-shadow);
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 20px auto;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

[data-theme="dark"] .stat-icon-wrapper {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

.stat-item-card:hover .stat-icon-wrapper {
  background: var(--primary);
  color: var(--text-on-primary);
}

.stat-counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-counter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Mission & Vision Panels --- */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.mv-glow-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}

.mv-glow-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary);
}

.mv-glow-card.vision-card::before {
  background: var(--secondary);
}

.mv-glow-card:hover {
  box-shadow: var(--hover-shadow);
}

.mv-glow-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mv-glow-card.vision-card h3 {
  color: var(--secondary);
}

.mv-glow-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Core Values Sub-grid --- */
.values-container {
  margin-top: 60px;
  text-align: center;
}

.values-title-group {
  margin-bottom: 40px;
}

.values-title-group h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.values-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-pill-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.value-pill-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.value-pill-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.value-pill-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.value-pill-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Leadership Founders Desk --- */
.leadership-desk-section {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.founder-desk-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 50px;
  align-items: center;
}

.founder-photo-area {
  flex-shrink: 0;
  width: 320px;
  position: relative;
}

.founder-image-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(14, 165, 233, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
}

.founder-image-wrapper i {
  font-size: 8rem;
  color: rgba(255,255,255,0.4);
}

.founder-quote-tag {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.founder-details-area {
  flex-grow: 1;
}

.founder-title-badge {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.founder-details-area h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.founder-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

.founder-quote-text {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.6;
  border-left: 4px solid var(--secondary);
  padding-left: 20px;
  margin-bottom: 24px;
}

.founder-bio-paragraphs p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.founder-bio-paragraphs p:last-child {
  margin-bottom: 0;
}

/* --- Interactive Milestones Timeline --- */
.timeline-module-container {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0 auto;
}

/* Vertical center track line */
.timeline-module-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-milestone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.timeline-milestone-row:last-child {
  margin-bottom: 0;
}

.timeline-content-panel {
  width: 45%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.timeline-content-panel:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.timeline-year-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-content-panel h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content-panel p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Center node dots */
.timeline-node-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--bg-secondary);
  border: 4px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.timeline-milestone-row:hover .timeline-node-dot {
  transform: translate(-50%, -50%) scale(1.3);
  background: var(--primary);
}

/* Alternating positioning elements */
.timeline-milestone-row.odd-row {
  flex-direction: row-reverse;
}

/* Pulse animation on the latest milestone node */
.timeline-milestone-row:first-child .timeline-node-dot {
  border-color: var(--secondary);
  animation: glowPulse 2s infinite ease-in-out;
}

/* --- Responsive Adaptability Matrix Override --- */
@media (max-width: 1024px) {
  .stats-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .founder-desk-card {
    flex-direction: column;
    padding: 40px;
    gap: 30px;
  }
  
  .founder-photo-area {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 90px 0 80px 0;
  }

  .about-hero-section h1 {
    font-size: 2.4rem;
  }
  
  .stats-matrix-section {
    margin-top: -30px;
  }
  
  .stats-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .values-subgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .timeline-module-container::before {
    left: 20px;
  }
  
  .timeline-milestone-row {
    flex-direction: row !important;
    justify-content: flex-start;
    padding-left: 45px;
  }
  
  .timeline-content-panel {
    width: 100%;
  }
  
  .timeline-node-dot {
    left: 20px;
    top: 30px;
    transform: translate(-50%, -50%);
  }
  
  .timeline-milestone-row:hover .timeline-node-dot {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@media (max-width: 480px) {
  .values-subgrid {
    grid-template-columns: 1fr;
  }
  
  .founder-desk-card {
    padding: 24px;
  }
  
  .founder-image-wrapper {
    height: 300px;
  }
  
  .founder-details-area h3 {
    font-size: 1.8rem;
  }
}