/* ===================================================================
   DEEP CHILDREN HOSPITAL & NICU - APPLE DESIGN SYSTEM STYLESHEET
   =================================================================== */

:root {
  /* Pastel & Apple-inspired Color Palette */
  --sky-blue-50: #f0f9ff;
  --sky-blue-100: #e0f2fe;
  --sky-blue-200: #bae6fd;
  --sky-blue-400: #38bdf8;
  --sky-blue-600: #0284c7;
  --sky-blue-800: #075985;

  --soft-green-50: #f0fdf4;
  --soft-green-100: #dcfce7;
  --soft-green-300: #86efac;
  --soft-green-500: #22c55e;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  --light-yellow-100: #fef9c3;
  --light-yellow-300: #fde047;
  --light-yellow-600: #ca8a04;

  --lavender-100: #f3e8ff;
  --lavender-300: #d8b4fe;
  --lavender-600: #9333ea;

  --soft-pink-100: #ffe4e6;
  --soft-pink-400: #fb7185;
  --soft-pink-600: #e11d48;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  --glass-blur: blur(24px) saturate(180%);

  /* Radius & Transitions */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: var(--slate-900);
  background-color: #fcfdfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* UTILITY CLASSES */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sky-blue-600);
  margin-bottom: 10px;
  background: var(--sky-blue-100);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.section-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* APPLE GLASS CARD BASE */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  transform: translate3d(0, 0, 0);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-blue-600), var(--teal-600));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35);
  opacity: 0.96;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--sky-blue-600);
  color: var(--sky-blue-600);
}

.btn-outline:hover {
  background: var(--sky-blue-100);
  color: var(--sky-blue-800);
}

.btn-emergency {
  background: var(--soft-pink-100);
  color: var(--soft-pink-600);
  border: 1px solid var(--soft-pink-400);
}

.btn-emergency:hover {
  background: var(--soft-pink-600);
  color: #ffffff;
}

.full-width {
  width: 100%;
}


/* ===================================================================
   FLOATING NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1280px;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 10px 24px;
  border-radius: var(--radius-full);
}

.nav-brand .nav-logo {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--sky-blue-600);
}

.nav-link-kids {
  background: transparent;
  color: var(--slate-600);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.hamburger-btn span {
  width: 24px;
  height: 2.5px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}


/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-blue-50) 0%, #ffffff 100%);
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.shape-1 {
  width: 450px;
  height: 450px;
  background: var(--sky-blue-200);
  top: -50px;
  left: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--soft-green-100);
  bottom: 0;
  right: -100px;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: var(--lavender-100);
  top: 40%;
  left: 40%;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sky-blue-200);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sky-blue-800);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--soft-green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--sky-blue-600), var(--teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 720px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--sky-blue-600), var(--teal-600));
  color: #ffffff;
  padding: 18px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.3);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  padding: 18px 32px;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

.btn-hero-secondary:hover {
  background: #ffffff;
  border-color: var(--sky-blue-400);
}

.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.highlight-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
}

.highlight-icon {
  font-size: 2rem;
  line-height: 1;
}

.highlight-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
}

.highlight-info p {
  font-size: 0.8rem;
  color: var(--slate-600);
}


/* ===================================================================
   MAIN FEATURE: CHILD JOURNEY SCROLL STORYTELLING
   =================================================================== */
.story-section {
  padding-top: 20px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-blue-50) 50%, #ffffff 100%);
  /* Height will be handled dynamically by GSAP ScrollTrigger pinning */
}

.story-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 40px 30px 40px;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.story-top-header {
  text-align: center;
  margin-bottom: 20px;
}

.story-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sky-blue-600);
  background: var(--sky-blue-100);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.story-main-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.story-progress-bar {
  width: 100%;
  max-width: 420px;
  height: 6px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  margin: 12px auto 0 auto;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.story-progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--sky-blue-600), var(--teal-600));
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

/* Story Display Stage Layout */
.story-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.story-visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.story-scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.9) translate3d(0, 0, 0);
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.story-scene-layer.active {
  pointer-events: auto;
}

.scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Floating Elements in Scenes */
.scene-floating-element {
  position: absolute;
  font-size: 2.5rem;
  animation: floatAnim 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(8deg); }
}

.float-cloud-1 { top: 10%; left: 15%; animation-duration: 5s; }
.float-cloud-2 { top: 15%; right: 15%; animation-duration: 6s; }
.float-star { top: 8%; left: 50%; animation-duration: 3s; }
.float-block { bottom: 15%; right: 20%; }
.float-butterfly { top: 25%; left: 20%; }
.float-rainbow { top: 12%; right: 10%; }
.float-book-1 { top: 20%; left: 10%; }
.float-book-2 { top: 30%; right: 12%; }
.float-hospital-logo { top: 10%; left: 10%; }

/* Narrative Cards Column */
.story-narrative-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.story-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  opacity: 0;
  transform: translateY(40px) translate3d(0, 0, 0);
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.story-card.active,
.story-card button,
.story-card a {
  pointer-events: auto;
}

.card-step-pill {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal-600);
  background: var(--soft-green-100);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 14px;
  line-height: 1.25;
}

.card-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-feature-list li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-feature-list li::before {
  content: "✓";
  color: var(--teal-600);
  font-weight: 800;
  background: var(--soft-green-100);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.card-cta-box {
  margin-top: 40px;
}

/* ===================================================================
   ABOUT HOSPITAL SECTION
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-wrap.blue { background: var(--sky-blue-100); color: var(--sky-blue-600); }
.card-icon-wrap.teal { background: var(--soft-green-100); color: var(--teal-600); }
.card-icon-wrap.yellow { background: var(--light-yellow-100); color: var(--light-yellow-600); }
.card-icon-wrap.purple { background: var(--lavender-100); color: var(--lavender-600); }

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
}

.about-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.stats-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40px;
}

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

.stat-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--sky-blue-600);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-600);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--slate-200);
}


/* ===================================================================
   DOCTORS SECTION
   =================================================================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctor-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doctor-img-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--sky-blue-100);
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--sky-blue-800);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.doctor-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.doctor-degree {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.doctor-specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.doctor-specialty span {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.doctor-bio {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
}

.doctor-opd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 20px;
  background: var(--sky-blue-50);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}


/* ===================================================================
   SERVICES SECTION
   =================================================================== */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.service-tab-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slate-200);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.service-tab-btn.active, .service-tab-btn:hover {
  background: var(--sky-blue-600);
  color: #ffffff;
  border-color: var(--sky-blue-600);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-tag {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sky-blue-600);
  background: var(--sky-blue-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}


/* ===================================================================
   INSURANCE SECTION
   =================================================================== */
.insurance-card-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(224,242,254,0.6));
}

.insurance-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 10px;
  margin-bottom: 16px;
}

.insurance-content p {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.insurance-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ins-feat {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ins-check {
  color: var(--soft-green-500);
  font-weight: 900;
}

.tpa-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tpa-badge {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 800;
  color: var(--slate-800);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform var(--transition-fast);
}

.tpa-badge:hover {
  transform: scale(1.03);
  border-color: var(--sky-blue-400);
}


/* ===================================================================
   GALLERY SECTION - TWO AUTO-SCROLLING CAROUSEL SLIDERS
   =================================================================== */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 16px;
  padding: 10px 0;
}

.carousel-label-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.carousel-label-badge span {
  background: var(--sky-blue-100);
  color: var(--sky-blue-600);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.track-left-to-right {
  animation: scrollLeftToRight 40s linear infinite;
}

.track-right-to-left {
  animation: scrollRightToLeft 40s linear infinite;
}

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

@keyframes scrollLeftToRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

@keyframes scrollRightToLeft {
  0% { transform: translateX(calc(-50% - 10px)); }
  100% { transform: translateX(0); }
}

/* Gallery Card: 4 cards fit on screen width */
.gallery-card {
  width: calc((100vw - 120px) / 4);
  min-width: 220px;
  max-width: 320px;
  height: 220px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .gallery-card {
    width: calc((100vw - 60px) / 2);
    min-width: 170px;
    height: 150px;
  }
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay span {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.card-overlay .zoom-btn {
  background: var(--sky-blue-600);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* GALLERY LIGHTBOX MODAL */
.lightbox-box {
  max-width: 90vw;
  max-height: 90vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #ffffff;
}

.lightbox-photo {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
}


/* ===================================================================
   PARENTS TESTIMONIALS SECTION
   =================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.rating-stars {
  color: var(--light-yellow-600);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-blue-100);
  color: var(--sky-blue-600);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--slate-900);
}

.author-location {
  font-size: 0.8rem;
  color: var(--slate-600);
}


/* ===================================================================
   INTERACTIVE KIDS ZONE
   =================================================================== */
.kids-zone-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--light-yellow-100) 50%, #ffffff 100%);
}

.game-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.game-tab-btn {
  background: #ffffff;
  border: 2px solid var(--light-yellow-300);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  color: var(--slate-800);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.game-tab-btn.active, .game-tab-btn:hover {
  background: var(--light-yellow-300);
  color: var(--slate-900);
  transform: translateY(-2px);
}

.game-display-box {
  min-height: 480px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.game-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.game-screen.active {
  display: flex;
}

.game-instructions {
  text-align: center;
  margin-bottom: 24px;
}

.game-instructions h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
}

.game-instructions p {
  font-size: 0.95rem;
  color: var(--slate-600);
}

/* Game 1: Teddy Doctor */
.teddy-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.teddy-character-box {
  position: relative;
  width: 320px;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.teddy-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.teddy-vitals-card {
  width: 100%;
  max-width: 380px;
  padding: 16px 20px;
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid var(--sky-blue-200);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  transition: all 0.3s ease;
}

.vital-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vital-icon {
  font-size: 2rem;
  background: var(--sky-blue-100);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vital-row strong {
  font-size: 0.95rem;
  color: var(--slate-900);
  display: block;
}

.vital-row p {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-top: 2px;
}

.pulse-line-anim {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: pulseDash 1.2s linear infinite;
}

@keyframes pulseDash {
  0% { stroke-dashoffset: 120; }
  100% { stroke-dashoffset: 0; }
}

.teddy-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.tool-btn {
  background: #ffffff;
  border: 1.5px solid var(--sky-blue-200);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-800);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.tool-btn:hover {
  background: var(--sky-blue-100);
  border-color: var(--sky-blue-500);
  transform: translateY(-2px);
}

.tool-btn.reset {
  background: var(--light-yellow-100);
  border-color: var(--light-yellow-400);
  color: var(--slate-900);
}

.tool-btn.reset:hover {
  background: var(--light-yellow-300);
}

/* Game 2: Balloon Pop */
.balloon-stats-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.stat-box {
  font-size: 1.1rem;
  font-weight: 800;
  background: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
}

.balloon-canvas {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 320px;
  background: linear-gradient(180deg, var(--sky-blue-100) 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed var(--sky-blue-200);
}

.game-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.floating-balloon {
  position: absolute;
  width: 50px;
  height: 65px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  animation: floatUp 4s linear forwards;
}

@keyframes floatUp {
  0% { bottom: -70px; }
  100% { bottom: 350px; }
}

/* Game 3: Mascot Color */
.color-palette {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.color-swatch.active {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px var(--slate-800);
}

.mascot-canvas-wrap {
  width: 280px;
  height: 320px;
}

.mascot-svg {
  width: 100%;
  height: 100%;
}

.colorable-part {
  cursor: pointer;
  transition: fill var(--transition-fast);
}


/* ===================================================================
   CONTACT SECTION
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.contact-info-card h3, .contact-form-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.info-icon {
  font-size: 1.5rem;
}

.info-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.info-row p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.map-box {
  margin-top: 24px;
}

.map-placeholder {
  background: var(--sky-blue-50);
  border: 1px solid var(--sky-blue-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--slate-700);
}

/* Appointment Form */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  background: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  color: var(--slate-900);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--sky-blue-600);
}


/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: var(--slate-900);
  color: #ffffff;
  padding-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col.main p {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-top: 16px;
}

.footer-logo {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--sky-blue-400);
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--slate-400);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
}


/* ===================================================================
   MODAL & TOAST NOTIFICATION
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  width: 100%;
  max-width: 480px;
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--slate-100);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1px solid var(--soft-green-300);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

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

.toast-icon {
  font-size: 1.5rem;
}

.toast-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
}

.toast-text p {
  font-size: 0.85rem;
  color: var(--slate-600);
}


/* ===================================================================
   FLOATING WHATSAPP BUTTON FOR QUICK CONTACT
   =================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 2500;
  text-decoration: none;
  transition: all var(--transition-bounce);
  animation: whatsappPulse 3s infinite;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}


/* ===================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE PHONE FRIENDLY)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .hero-highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .story-stage { grid-template-columns: 1fr; }
  .story-visual-container { height: 360px; }
  .story-narrative-container { height: 300px; }
  .about-grid, .services-grid, .doctors-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .insurance-card-main { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile Container & General Reset */
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  section, .section {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Mobile Header & Navbar */
  .navbar {
    top: 10px;
    width: calc(100% - 24px);
    max-width: 100%;
    border-radius: 16px;
  }
  .nav-container {
    padding: 8px 14px;
  }
  .nav-logo {
    height: 38px;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    gap: 12px;
    border: 1px solid var(--slate-100);
    z-index: 1001;
  }
  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding-top: 110px;
    padding-bottom: 50px;
    overflow-x: hidden;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-badge {
    white-space: normal;
    text-align: center;
    font-size: 0.78rem;
    padding: 6px 14px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .highlight-card {
    padding: 14px;
  }
  .highlight-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .highlight-info h4 {
    font-size: 0.85rem;
  }
  .highlight-info p {
    font-size: 0.75rem;
  }

  /* Stats Banner Mobile */
  .stats-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 24px 16px;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-divider {
    display: none;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  /* Service & Game Tabs Mobile */
  .service-tabs, .game-tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .service-tab-btn, .game-tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Gallery Carousel Mobile */
  .gallery-card {
    width: 180px;
    min-width: 150px;
    height: 140px;
  }
  .gallery-carousel-wrapper {
    max-width: 100%;
    overflow: hidden;
  }
  .carousel-container {
    max-width: 100%;
    overflow: hidden;
  }

  /* Storytelling Mobile Section */
  .story-sticky-wrapper {
    padding: 72px 16px 16px 16px;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }
  .story-top-header {
    margin-bottom: 10px;
  }
  .story-main-heading {
    font-size: 1.35rem;
    line-height: 1.2;
  }
  .story-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  .story-progress-bar {
    max-width: 280px;
    height: 4px;
    margin-top: 8px;
  }
.story-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-start;
  height: calc(100% - 65px);
  flex: 1;
  min-height: 0;
}

.story-visual-container {
  height: 190px;
  max-height: 190px;
  flex-shrink: 0;
  border-radius: 16px;
}
  .story-narrative-container {
    position: relative;
    height: auto;
    flex: 1;
    min-height: 0;
  }
  .story-card {
    padding: 16px 18px;
    border-radius: 18px;
    justify-content: flex-start;
  }
  .card-step-pill {
    font-size: 0.7rem;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  .card-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
    line-height: 1.25;
  }
  .card-desc {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .card-feature-list {
    gap: 4px;
  }
  .card-feature-list li {
    font-size: 0.8rem;
  }
.card-cta-box {
    margin-top: 40px;
    width: 100%;
  }
  .card-cta-box .btn {
    width: 100%;
    font-size: 0.88rem;
    padding: 10px 18px;
  }


  /* Kids Zone Game Mobile */
  .game-display-box {
    padding: 20px 14px;
    min-height: 400px;
  }
  .teddy-character-box {
    width: 260px;
    height: 280px;
  }
  .teddy-vitals-card {
    max-width: 100%;
  }
  .balloon-canvas {
    height: 260px;
  }
  .balloon-stats-bar {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  /* Grids & Cards Mobile */
  .about-grid, .services-grid, .doctors-grid, .testimonials-grid, .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .glass-card {
    padding: 20px;
  }

  /* Form Elements - Prevent Mobile Auto-Zoom */
  .form-input, select, textarea {
    font-size: 16px !important; /* Standard fix for mobile safari/android zoom */
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Floating WhatsApp Button Mobile */
  .floating-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }
  .floating-whatsapp-btn span {
    display: inline-block;
  }

  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Modal Mobile Box */
  .modal-box {
    width: 92%;
    padding: 24px 18px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .hero-highlights-grid {
    grid-template-columns: 1fr;
  }
  .floating-whatsapp-btn span {
    display: none; /* Icon-only pill on ultra-small mobile screens to save viewport space */
  }
  .floating-whatsapp-btn {
    padding: 12px;
    border-radius: 50%;
  }
}

