/* =====================================================================
   JFC Fertility Clinic - Static CSS
   Converted from React/Tailwind to Vanilla CSS
   Color palette: Warm coral/rose (hope, life) + Deep navy (trust) + Clean whites
   ===================================================================== */

/* ======================= CSS VARIABLES ======================= */
:root {
  /* Core brand colors - Magenta/pink from original JFC site */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 20%);

  /* Card surfaces */
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 20%);

  /* Popover */
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 20%);

  /* Primary - Magenta/Pink from original site */
  --primary: hsl(336, 70%, 47%);
  --primary-foreground: hsl(0, 0%, 100%);

  /* Secondary - Light pink */
  --secondary: hsl(336, 60%, 95%);
  --secondary-foreground: hsl(336, 70%, 40%);

  /* Muted - Soft gray */
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 45%);

  /* Accent - Light magenta tint */
  --accent: hsl(336, 40%, 95%);
  --accent-foreground: hsl(336, 70%, 35%);

  /* Destructive */
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);

  /* Borders and inputs */
  --border: hsl(0, 0%, 90%);
  --input: hsl(0, 0%, 90%);
  --ring: hsl(336, 70%, 47%);

  --radius: 0.75rem;

  /* Custom extended palette - matching JFC website */
  --navy: hsl(210, 29%, 24%);
  --navy-light: hsl(210, 20%, 35%);
  --magenta: hsl(336, 70%, 47%);
  --magenta-light: hsl(336, 60%, 60%);
  --magenta-dark: hsl(336, 75%, 38%);
  --coral: hsl(336, 70%, 47%);
  --coral-light: hsl(336, 60%, 60%);
  --coral-dark: hsl(336, 75%, 38%);
  --pink: hsl(336, 60%, 95%);
  --pink-deep: hsl(336, 50%, 90%);
  --teal: hsl(174, 50%, 45%);
  --teal-light: hsl(174, 42%, 93%);
  --warm-white: hsl(0, 0%, 98%);
  --warm-gray: hsl(0, 0%, 96%);
  --dark-gray: hsl(0, 0%, 25%);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 30px -4px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
}

/* ======================= BASE STYLES ======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ======================= UTILITY CLASSES ======================= */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: var(--background);
}

.bg-warm-gray {
  background-color: var(--warm-gray);
}

.bg-secondary-light {
  background-color: hsla(336, 60%, 95%, 0.5);
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 8rem 0;
  }
}

.text-primary {
  color: var(--primary);
}

/* Hide/Show utilities */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: flex;
  }
}

.hide-xs {
  display: none;
}

@media (min-width: 640px) {
  .hide-xs {
    display: block;
  }
}

.hide-tablet {
  display: none;
}

@media (min-width: 1024px) {
  .hide-tablet {
    display: block;
  }
}

.hide-mobile-nav {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile-nav {
    display: flex;
  }
}

.show-mobile-nav {
  display: flex;
}

@media (min-width: 1024px) {
  .show-mobile-nav {
    display: none;
  }
}

/* ======================= ICONS ======================= */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* ======================= BUTTONS ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px -2px hsla(336, 70%, 47%, 0.4);
}

.btn-primary:hover {
  background-color: var(--coral-dark);
  box-shadow: 0 6px 20px -2px hsla(336, 70%, 47%, 0.5);
  transform: translateY(-1px);
}

.btn-outline-hero {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-hero:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-white {
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
  border: 2px solid white;
  color: white;
  background: transparent;
  font-weight: 600;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-rounded {
  border-radius: 9999px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* ======================= HEADER ======================= */
.header {
  width: 100%;
  background-color: var(--background);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-gray);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .top-bar-content {
    flex-direction: row;
  }
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Navigation */
.main-nav {
  padding: 0.75rem 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.nav-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.logo img {
  height: 45px;
  /* Premium larger size */
  width: auto;
  object-fit: contain;
  transition: all 0.4s ease;
}

.header-scrolled .logo img {
  height: 40px;
  /* Elegant shrink on scroll */
}

@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}

.logo:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Navigation Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .nav-links {
    gap: 2.5rem;
  }
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

/* Nav CTA */
.nav-cta {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.mobile-menu-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--background);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: block;
  /* Ensure it's not display: none */
}

.mobile-nav.open {
  max-height: 90vh;
  /* Allow it to take most of the screen if needed */
  opacity: 1;
  visibility: visible;
  padding-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.5rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm-gray);
  width: 100%;
}

.mobile-nav-links .nav-link:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}


/* Dropdown Styles for Patient Guide */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  stroke-width: 2.5px;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--card);
  min-width: 280px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--navy-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--warm-gray);
  text-align: left;
  white-space: normal;
  line-height: 1.4;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--secondary);
  color: var(--primary);
  padding-left: 1.75rem;
}

/* Mobile Dropdown styles */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--foreground);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm-gray);
  text-align: left;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.mobile-dropdown-toggle .chevron-icon {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
}

.mobile-dropdown.active .mobile-dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  display: flex;
  flex-direction: column;
  background-color: var(--warm-gray);
  border-radius: var(--radius);
  padding: 0;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 500px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.mobile-sub-link {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  color: var(--navy-light);
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.mobile-sub-link:last-child {
  border-bottom: none;
}

.mobile-sub-link:hover {
  color: var(--primary);
  background-color: var(--secondary);
}

/* ======================= HERO SECTION ======================= */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
  /* Added transform transition for smoothness */
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
  /* Slow zoom when active */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 10;
  padding: 8rem 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  max-width: 45rem;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.badge-dot {
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  letter-spacing: 0.5px;
}

/* Hero Heading */
.hero-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-heading {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-heading {
    font-size: 4.5rem;
  }
}

/* Hero Subheading */
.hero-subheading {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 90%;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-animated {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-animated:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-animated:active {
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-stat-number {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Glassmorphism Form */
.hero-form-wrapper {
  display: none;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .hero-form-wrapper {
    display: flex;
  }
}

.glass-form {
  background: rgba(255, 255, 255, 0.9);
  /* More opaque for better readability */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2.5rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
  padding: 3.5rem;
  /* Increased padding */
  width: 100%;
  max-width: 480px;
  /* Increased width significantly */
  margin-left: auto;
}

.form-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.5px;
}

.form-divider {
  margin: 0 auto 2rem;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1.125rem 1.5rem;
  /* More generous padding */
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #fcfcfc;
  font-size: 1.05rem;
  color: var(--navy);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--primary);
  background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(336, 70%, 47%, 0.15);
}

/* ======================= INNOVATIVE STATS SECTION ======================= */
.stats-innovative {
  padding: 8rem 0;
  position: relative;
  background: var(--navy);
  background: radial-gradient(circle at center, #1a2a3a 0%, #0d151d 100%);
  color: white;
  overflow: hidden;
}

/* Curve Dividers */
.stats-curve-top,
.stats-curve-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 5;
}

.stats-curve-top {
  top: 0;
}

.stats-curve-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

.stats-curve-top svg,
.stats-curve-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.stats-curve-top .shape-fill,
.stats-curve-bottom .shape-fill {
  fill: #FFFFFF;
}

/* Background Bubbles Animation */
.stats-bg-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-bubbles 15s infinite alternate ease-in-out;
}

.bubble-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -10%;
  left: -5%;
}

.bubble-2 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  bottom: -15%;
  right: -5%;
  animation-delay: -5s;
}

.bubble-3 {
  width: 300px;
  height: 300px;
  background: var(--magenta-dark);
  top: 40%;
  left: 30%;
  animation-delay: -2s;
}

@keyframes float-bubbles {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* Header Styles */
.stats-header-advanced {
  text-align: center;
  margin-bottom: 5rem;
}

.stats-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(45, 185, 172, 0.3);
}

.stats-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 650px;
  margin: 0 auto;
}

/* Grid & Cards */
.stats-grid-innovative {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .stats-grid-innovative {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .stats-grid-innovative {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-glass-card {
  perspective: 1000px;
}

.stat-card-inner {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3rem;
  padding: 4rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-glass-card:hover .stat-card-inner {
  transform: translateY(-15px) rotateX(5deg);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.stat-icon-box {
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  position: relative;
  transition: all 0.5s ease;
}

.stat-icon-box svg {
  width: 2.25rem;
  height: 2.25rem;
  color: white;
  z-index: 2;
}

/* Glow Themes */
.pink-glow {
  background: rgba(231, 36, 117, 0.1);
  border: 1px solid rgba(231, 36, 117, 0.3);
}

.pink-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--magenta);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  border-radius: inherit;
}

.stat-glass-card:hover .pink-glow::after {
  opacity: 0.4;
}

.teal-glow {
  background: rgba(45, 185, 172, 0.1);
  border: 1px solid rgba(45, 185, 172, 0.3);
}

.teal-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  border-radius: inherit;
}

.stat-glass-card:hover .teal-glow::after {
  opacity: 0.4;
}

.magenta-glow {
  background: rgba(191, 51, 112, 0.1);
  border: 1px solid rgba(191, 51, 112, 0.3);
}

.magenta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--magenta-dark);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  border-radius: inherit;
}

.stat-glass-card:hover .magenta-glow::after {
  opacity: 0.4;
}

.gold-glow {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.gold-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffb800;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
  border-radius: inherit;
}

.stat-glass-card:hover .gold-glow::after {
  opacity: 0.4;
}

/* Stat Data */
.stat-number-wrapper {
  margin-bottom: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: white;
  display: block;
}

.stat-title-label {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* ======================= ABOUT SECTION ======================= */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-image-wrapper {
  position: relative;
  display: block;
}

.about-image-container {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 1. Overlay Anchor Zone - Proportional bottom-right quadrant */
.about-overlay-zone {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 45%;
  display: grid;
  place-items: end end;
  padding: 2%;
  /* Safety buffer from the extreme edges */
  z-index: 20;
  pointer-events: none;
}

/* 2. Stats Card - Locked inside the zone with fluid scaling */
.about-floating-card {
  pointer-events: auto;
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: clamp(0.75rem, 2.5vw, 1.25rem);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: clamp(110px, 85%, 200px);
  text-align: center;
  transition: all 0.3s ease;
  margin-right: 5%;
  margin-bottom: 5%;
}

.floating-card-number {
  font-size: clamp(1.125rem, 3.5vw, 1.75rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.125rem;
}

.floating-card-text {
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  color: var(--muted-foreground);
  line-height: 1.1;
}

@media (min-width: 1200px) {
  .about-overlay-zone {
    width: 30%;
    height: 30%;
    padding: 0;
    margin-bottom: 2rem;
    overflow: visible;
  }

  .about-floating-card {
    text-align: left;
    transform: translateX(20%);
    padding: 1.5rem;
    max-width: 200px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .floating-card-number {
    font-size: 1.875rem;
  }

  .floating-card-text {
    font-size: 0.875rem;
    line-height: 1.2;
  }
}

/* Section Labels */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.875rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.25rem;
  }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text-secondary {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.875rem;
  color: var(--foreground);
}

/* ======================= SERVICES SPOTLIGHT SHOWCASE ======================= */
.spotlight-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(160deg, #0a0e27 0%, #141937 40%, #1a1040 100%);
  overflow: hidden;
}

/* Ambient Orbs */
.spotlight-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.ambient-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.ambient-orb-3 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -14s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

.spotlight-container {
  position: relative;
  z-index: 1;
}

/* Header */
.spotlight-header {
  text-align: center;
  margin-bottom: 4rem;
}

.spotlight-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
}

.spotlight-accent {
  background: linear-gradient(135deg, var(--primary), #f472b6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tabs */
.spotlight-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spot-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.spot-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.spot-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(231, 36, 117, 0.4);
}

/* Showcase */
.spotlight-showcase {
  position: relative;
  min-height: 500px;
}

/* Panel */
.spot-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 2rem;
  animation: panelFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-panel.active {
  display: grid;
}

@media (min-width: 1024px) {
  .spot-panel {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Visual */
.spot-visual {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  /*aspect-ratio: 4/3;*/
  height:58%;
  width:100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.spot-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 8s ease;
}

.spot-panel.active .spot-visual img {
  transform: scale(1.05);
}

.spot-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.3) 0%, rgba(231, 36, 117, 0.15) 100%);
}

.spot-number {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

/* Info */
.spot-info {
  padding: 1rem 0;
}

.spot-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(231, 36, 117, 0.15);
  border: 1px solid rgba(231, 36, 117, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f472b6;
  margin-bottom: 1.5rem;
}

.spot-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.spot-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Features */
.spot-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spot-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.spot-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* CTA Button */
.spot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(231, 36, 117, 0.3);
}

.spot-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(231, 36, 117, 0.5);
  gap: 1rem;
}

.spot-cta svg {
  transition: transform 0.3s ease;
}

.spot-cta:hover svg {
  transform: translateX(4px);
}

/* Bottom CTA */
.spotlight-bottom {
  text-align: center;
  margin-top: 5rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.spotlight-bottom p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .spotlight-section {
    padding: 5rem 0;
  }

  .spotlight-tabs {
    border-radius: 1rem;
    padding: 0.35rem;
    gap: 0.25rem;
    max-width: 100%;
  }

  .spot-tab {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .spot-visual {
    aspect-ratio: 16/10;
    border-radius: 1.5rem;
  }

  .spot-number {
    font-size: 3rem;
    bottom: 1rem;
    left: 1.25rem;
  }

  .spotlight-bottom {
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
  }
}

.link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.link-primary:hover {
  text-decoration: none;
  color: var(--magenta-dark);
  transform: translateX(5px);
}

.section-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5rem;
  width: 100%;
}

/* ======================= TEAM SECTION ======================= */
.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ======================= ADVANCED TEAM SECTION ======================= */
.team-section-advanced {
  position: relative;
  overflow: hidden;
  background-color: var(--warm-white);
  z-index: 1;
}

.team-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.team-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.team-blob-1 {
  top: -10%;
  left: -5%;
  width: 35rem;
  height: 35rem;
  background-color: var(--primary);
}

.team-blob-2 {
  bottom: -5%;
  right: -5%;
  width: 30rem;
  height: 30rem;
  background-color: var(--teal);
}

.team-grid-advanced {
  display: grid;
  gap: 3rem;
  perspective: 1000px;
}

@media (min-width: 640px) {
  .team-grid-advanced {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid-advanced {
    grid-template-columns: repeat(4, 1fr);
  }
}

.innovative-doctor-card {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 3rem;
  /* Space for the overlapping glass box */
}

.doctor-card-perspective {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.innovative-doctor-card:hover .doctor-card-perspective {
  transform: rotateX(5deg) rotateY(5deg);
}

/* Image Side */
.doctor-image-side {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: transparent;
  z-index: 1;
}


.doctor-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fill the whole card */
  object-position: center top;
  transition: transform 0.8s ease;
}

.portrait-sangita {
  object-position: center 15%;
}



.innovative-doctor-card:hover .doctor-portrait {
  transform: scale(1.1);
  filter: contrast(1.1);
}

.innovative-doctor-card:hover .portrait-sangita {
  transform: scale(1.15);
}

/* Experience Badge */


/* Glass Info Overlay */
.doctor-info-glass {
 
  bottom: 0px;
  left: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transform: translateY(2rem);
  /* Shifts down slightly */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.innovative-doctor-card:hover .doctor-info-glass {
  transform: translateY(1rem) scale(1.05);
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.doctor-name-adv {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.doctor-specialty {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Expertise Pillars */
.expertise-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.expertise-pills span {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--warm-gray);
  color: var(--muted-foreground);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.innovative-doctor-card:hover .expertise-pills span {
  background: var(--secondary);
  color: var(--primary);
}

/* ======================= INNOVATIVE STORIES SECTION ======================= */
.stories-section-advanced {
  position: relative;
  overflow: hidden;
  background-color: var(--warm-white);
  padding: 8rem 0;
}

.stories-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.story-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
}

.story-circle-1 {
  top: 10%;
  left: -5%;
  width: 40rem;
  height: 40rem;
  background-color: var(--primary);
}

.story-circle-2 {
  bottom: 0;
  right: -5%;
  width: 35rem;
  height: 35rem;
  background-color: var(--teal);
}

.stories-slider-container {
  overflow: visible;
  position: relative;
}

.stories-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 1rem 4rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
}

.stories-track::-webkit-scrollbar {
  display: none;
}

.story-card-advanced {
  flex: 0 0 calc(100% - 2rem);
  scroll-snap-align: start;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}

@media (min-width: 768px) {
  .story-card-advanced {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .story-card-advanced {
    flex: 0 0 calc(33.333% - 1.33rem);
  }
}

.story-card-inner {
  background: white;
  border-radius: 2.5rem;
  padding: 3rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.5s ease;
  min-height: 480px;
  /* Ensure consistent height */
}


.story-card-advanced:hover .story-card-inner {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.story-quote-box {
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  width: clamp(3rem, 10vw, 4rem);
  height: clamp(3rem, 10vw, 4rem);
  background: var(--primary);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 20px rgba(231, 36, 117, 0.3);
  transform: translateY(1.5rem);
  transition: all 0.5s ease;
}

@media (max-width: 480px) {
  .story-quote-box {
    width: 2.5rem;
    height: 2.5rem;
    right: 1rem;
    top: -0.5rem;
  }

  .story-quote-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}


.story-card-advanced:hover .story-quote-box {
  transform: translateY(0.5rem) scale(1.1) rotate(10deg);
}

.story-tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.4rem 1.2rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.story-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  font-family: var(--font-heading);
}

.story-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1.5rem;
  margin-top: auto;
  /* Push to bottom of card */
}


.story-author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar-magenta {
  background: #d12e6e;
}

.avatar-blue {
  background: #3b82f6;
}

.avatar-teal {
  background: #14b8a6;
}

.avatar-navy {
  background: #1e1b4b;
}

.story-author-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.story-author-status {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.story-author-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #14b8a6;
  border-radius: 50%;
}

.story-nav-advanced {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.story-arrow-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--primary);
  /* Use primary color for visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  /* Match primary color */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(231, 36, 117, 0.1);
  cursor: pointer;
  z-index: 20;
  /* Ensure visibility */
}

.story-arrow-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(231, 36, 117, 0.3);
}

/* ======================= INNOVATIVE WHY CHOOSE US ======================= */
.why-choose-advanced {
  position: relative;
  background: var(--warm-white);
  padding: 8rem 0;
  overflow: hidden;
}

.why-bg-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(231, 36, 117, 0.03) 0%, rgba(20, 184, 166, 0.03) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.facilities-bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .facilities-bento-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
  }
}

.facility-bento-card {
  background: white;
  border-radius: 2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Bento Sizing */
.bento-large {
  grid-column: span 1;
}

.bento-medium {
  grid-column: span 1;
}

.bento-small {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-large {
    grid-column: span 3;
    grid-row: span 2;
  }

  .bento-medium {
    grid-column: span 3;
  }

  .bento-small {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  .facilities-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2rem;
  }

  /* Symmetrical 3x2 grid */
  .facility-bento-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .facilities-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.facility-bento-card {
  height: 100%;
}

.facility-bento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.facility-bento-icon-wrapper {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--secondary);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 2.5rem;
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.icon-teal {
  background: hsla(174, 50%, 45%, 0.1);
  color: var(--teal);
}

.icon-navy {
  background: hsla(210, 29%, 24%, 0.1);
  color: var(--navy);
}

.icon-magenta {
  background: hsla(336, 70%, 47%, 0.1);
  color: var(--magenta);
}

.icon-gold {
  background: hsla(45, 100%, 50%, 0.1);
  color: #b45309;
}

.facility-bento-card:hover .facility-bento-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
  background: var(--primary);
  color: white;
}

.facility-bento-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.facility-bento-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.bento-card-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.05;
  transition: all 0.8s ease;
}

.facility-bento-card:hover .bento-card-bg-icon {
  transform: scale(1.5) rotate(-15deg);
  opacity: 0.1;
}

/* Innovative Impact Milestones */
.impact-milestones-advanced {
  margin-top: 6rem;
  background: var(--navy);
  background: radial-gradient(circle at 50% 50%, #1a2a3a 0%, #0d151d 100%);
  border-radius: 4rem;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.impact-milestones-advanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(231, 36, 117, 0.05) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

.milestones-glass-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .milestones-glass-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .milestones-glass-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.milestone-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2.5rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.milestone-glass-card:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.milestone-icon-box {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.5s ease;
}

.milestone-icon-box svg {
  width: 2rem;
  height: 2rem;
  color: white;
}

.milestone-headline,
.milestone-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.milestone-subtext {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  min-height: 3rem;
}

.milestone-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: white;
  transition: all 0.3s ease;
}

/* Glow Themes */
.pink-glow:hover {
  box-shadow: 0 30px 60px -15px rgba(231, 36, 117, 0.3);
}

.pink-glow:hover .milestone-icon-box {
  background: var(--magenta);
  color: white;
}

.pink-glow:hover .milestone-badge {
  background: var(--magenta);
}

.teal-glow:hover {
  box-shadow: 0 30px 60px -15px rgba(45, 185, 172, 0.3);
}

.teal-glow:hover .milestone-icon-box {
  background: var(--teal);
  color: white;
}

.teal-glow:hover .milestone-badge {
  background: var(--teal);
}

.magenta-glow:hover {
  box-shadow: 0 30px 60px -15px rgba(231, 36, 117, 0.3);
}

.magenta-glow:hover .milestone-icon-box {
  background: var(--magenta-dark);
  color: white;
}

.magenta-glow:hover .milestone-badge {
  background: var(--magenta-dark);
}

.gold-glow:hover {
  box-shadow: 0 30px 60px -15px rgba(255, 184, 0, 0.3);
}

.gold-glow:hover .milestone-icon-box {
  background: #ffb800;
  color: white;
}

.gold-glow:hover .milestone-badge {
  background: #ffb800;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Visibility Fix for [data-animate] */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================= CTA SECTION ======================= */
.cta-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 7rem 0;
  }
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      var(--magenta) 0%,
      var(--magenta-dark) 100%);
}

.cta-decorative {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.cta-blob {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  filter: blur(48px);
}

.cta-blob-1 {
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  transform: translateX(50%) translateY(-50%);
}

.cta-blob-2 {
  bottom: 0;
  left: 0;
  width: 18rem;
  height: 18rem;
  transform: translateX(-50%) translateY(50%);
}

.cta-container {
  position: relative;
  z-index: 10;
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .cta-text {
    font-size: 1.25rem;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ======================= PREMIUM FOOTER ======================= */
.footer-advanced {
  background: var(--dark-gray);
  color: white;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}

.footer-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
}

.footer-grid-advanced {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .footer-grid-advanced {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid-advanced {
    grid-template-columns: 2.5fr 1fr 1.5fr 2fr;
    gap: 5rem;
  }
}

/* Brand Column */
.footer-brand-logo {
  margin-bottom: 2rem;
  display: inline-block;
}

.footer-brand-logo img {
  height: 60px;
  /* Keep it slightly larger for footer visibility */
}


.footer-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
}

/* Social Icons */
.social-wrapper-advanced {
  display: flex;
  gap: 1.25rem;
}

.social-icon-btn {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon-btn:hover {
  transform: translateY(-8px) rotate(8deg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(231, 36, 117, 0.3);
}

/* X Branding Specific */
.social-icon-btn.x-brand:hover {
  background: #000;
  border-color: #333;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Nav Columns */
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary);
}

.advanced-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.advanced-footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
}

.advanced-footer-links a:hover {
  color: white;
  transform: translateX(8px);
}

/* Map & Contact mini */
.footer-map-container {
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-contact-info-mini {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-info-mini p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-info-mini span {
  font-size: 1.1rem;
}

/* Legal Area */
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
}

.legal-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .legal-flex {
    flex-direction: row;
  }
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.legal-links a {
  color: inherit;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: white;
}

.legal-separator {
  opacity: 0.3;
}

/* ======================= SCROLLBAR ======================= */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: rgba(115, 115, 115, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 115, 115, 0.5);
}

/* ======================= ANIMATIONS ======================= */

/* Keyframe Definitions */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatRotate {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-5px) rotate(1deg);
  }

  50% {
    transform: translateY(-10px) rotate(0deg);
  }

  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(191, 51, 112, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(191, 51, 112, 0.6);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  0%,
  50% {
    border-color: transparent;
  }

  51%,
  100% {
    border-color: var(--primary);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-down {
  animation: fadeDown 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-left {
  animation: fadeLeft 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-right {
  animation: fadeRight 0.6s ease-out forwards;
  opacity: 0;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out forwards;
  opacity: 0;
}

/* Animation Delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

.animate-delay-600 {
  animation-delay: 0.6s;
}

.animate-delay-700 {
  animation-delay: 0.7s;
}

.animate-delay-800 {
  animation-delay: 0.8s;
}

/* ======================= PAGE LOADER ======================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  animation: pulse 1.5s ease-in-out infinite;
  line-height: 1.2;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: white;
  border-radius: 2px;
  animation: loading 1.5s ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes loading {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

body:not(.page-loaded) {
  overflow: hidden;
}

/* ======================= SCROLL PROGRESS BAR ======================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--coral-light), var(--teal));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease;
}

/* ======================= CURSOR GLOW ======================= */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(191, 51, 112, 0.8), rgba(191, 51, 112, 0.3) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: normal;
  box-shadow: 0 0 15px rgba(191, 51, 112, 0.2);
  filter: blur(1px);
}

.cursor-glow.cursor-hover {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(191, 51, 112, 0.9), rgba(191, 51, 112, 0.4) 50%, transparent 70%);
  box-shadow: 0 0 25px rgba(191, 51, 112, 0.4);
}

@media (max-width: 1024px) {
  .cursor-glow {
    display: none;
  }
}

/* ======================= SECTION ANIMATIONS ======================= */
.section-animate {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================= LAZY IMAGE LOADING ======================= */
.lazy-image {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-image.image-loaded {
  opacity: 1;
  transform: scale(1);
}

/* ======================= FLOATING ELEMENTS ======================= */
.floating {
  animation: floatRotate 6s ease-in-out infinite;
}

.about-floating-card {
  animation: float 4s ease-in-out infinite;
}

/* ======================= HEADER ANIMATIONS ======================= */
.header {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}


/* Mobile Menu Animation */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  display: block;
  padding: 0;
}

.mobile-nav.open {
  max-height: 500px;
  opacity: 1;
  padding: 1rem 0;
}

.mobile-menu-btn {
  transition: transform 0.3s ease;
}

.mobile-menu-btn.active {
  transform: rotate(180deg);
}

/* ======================= TESTIMONIAL CAROUSEL ANIMATIONS ======================= */
.testimonial-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-out-left {
  opacity: 0;
  transform: translateX(-50px);
}

.slide-out-right {
  opacity: 0;
  transform: translateX(50px);
}

.slide-in-left {
  animation: slideInLeft 0.4s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.4s ease forwards;
}

/* ======================= BUTTON RIPPLE EFFECT ======================= */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

/* ======================= COUNTER ANIMATION ======================= */
.counting {
  animation: pulse 0.3s ease-in-out;
}

.count-complete {
  animation: bounceIn 0.5s ease;
}

/* ======================= CARD HOVER EFFECTS ======================= */
.service-card,
.doctor-card,
.facility-item {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card:hover,
.doctor-card:hover,
.facility-item:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ======================= FORM INPUT ANIMATIONS ======================= */
.input-wrapper {
  position: relative;
}

.input-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.input-wrapper.focused::after {
  width: 100%;
  left: 0;
}

/* ======================= GLOW EFFECTS ======================= */
.hero-form-card {
  transition: box-shadow 0.3s ease;
}

.hero-form-card:hover {
  animation: glow 2s ease-in-out infinite;
}

/* ======================= LOGO ANIMATION ======================= */
.logo-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-circle {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 20px rgba(191, 51, 112, 0.5);
}

/* ======================= SOCIAL LINK ANIMATIONS ======================= */
.social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(191, 51, 112, 0.3);
}

/* ======================= NAV LINK UNDERLINE ANIMATION ======================= */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ======================= BADGE PULSE ======================= */
.hero-badge {
  animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

/* ======================= STAT ICON HOVER ======================= */
.stat-icon-wrapper {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
  transform: scale(1.2) rotate(10deg);
}

/* ======================= TESTIMONIAL DOT ANIMATIONS ======================= */
.testimonial-dot {
  transition: all 0.3s ease;
}

.testimonial-dot:hover {
  transform: scale(1.3);
}

.testimonial-dot.active {
  transform: scale(1.2);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ======================= AWARD BADGE ANIMATION ======================= */
.award-badge {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-badge:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ======================= CTA SECTION ANIMATION ======================= */
.cta-blob {
  animation: float 8s ease-in-out infinite;
}

.cta-blob-2 {
  animation: float 10s ease-in-out infinite reverse;
}

/* ======================= TYPING TEXT EFFECT ======================= */
.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary);
  animation: typing 2s steps(12) forwards, blink 1s infinite;
  white-space: nowrap;
}

/* ======================= SHIMMER EFFECT FOR LOADING ======================= */
.shimmer {
  background: linear-gradient(90deg,
      var(--muted) 0%,
      var(--background) 50%,
      var(--muted) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ======================= GRADIENT TEXT ANIMATION ======================= */
.gradient-text {
  background: linear-gradient(90deg,
      var(--primary),
      var(--coral-light),
      var(--magenta-dark),
      var(--primary));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* ======================= PARALLAX SMOOTH ======================= */
.stats-blob,
.cta-blob {
  transition: transform 0.1s linear;
}

/* ======================= HERO CONTENT SMOOTH MOVEMENT ======================= */
.hero-content,
.hero-form-card {
  transition: transform 0.3s ease-out;
}

/* ======================= FEATURE ITEM STAGGER ======================= */
.feature-item {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-visible .feature-item {
  opacity: 1;
  transform: translateX(0);
}

.section-visible .feature-item:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .feature-item:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .feature-item:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .feature-item:nth-child(4) {
  transition-delay: 0.4s;
}

.section-visible .feature-item:nth-child(5) {
  transition-delay: 0.5s;
}

.section-visible .feature-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* ======================= FACILITY GRID STAGGER ======================= */
.facility-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.section-visible .facility-item {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .facility-item:nth-child(1) {
  transition-delay: 0.05s;
}

.section-visible .facility-item:nth-child(2) {
  transition-delay: 0.1s;
}

.section-visible .facility-item:nth-child(3) {
  transition-delay: 0.15s;
}

.section-visible .facility-item:nth-child(4) {
  transition-delay: 0.2s;
}

.section-visible .facility-item:nth-child(5) {
  transition-delay: 0.25s;
}

.section-visible .facility-item:nth-child(6) {
  transition-delay: 0.3s;
}

.section-visible .facility-item:nth-child(7) {
  transition-delay: 0.35s;
}

.section-visible .facility-item:nth-child(8) {
  transition-delay: 0.4s;
}

/* ======================= SERVICE CARD STAGGER ======================= */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.section-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.section-visible .service-card:nth-child(5) {
  transition-delay: 0.5s;
}

.section-visible .service-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* ======================= DOCTOR CARD STAGGER ======================= */
.doctor-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.section-visible .doctor-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-visible .doctor-card:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .doctor-card:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .doctor-card:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .doctor-card:nth-child(4) {
  transition-delay: 0.4s;
}

/* ======================= STAT ITEM STAGGER ======================= */
.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .stat-item:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .stat-item:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .stat-item:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .stat-item:nth-child(4) {
  transition-delay: 0.4s;
}

/* ======================= FOOTER COLUMN STAGGER ======================= */
.footer-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-visible .footer-col {
  opacity: 1;
  transform: translateY(0);
}

.section-visible .footer-col:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .footer-col:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .footer-col:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .footer-col:nth-child(4) {
  transition-delay: 0.4s;
}

/* ======================= SMOOTH SCROLL ANCHOR OFFSET ======================= */
html {
  scroll-padding-top: 100px;
}

/* ======================= REDUCED MOTION PREFERENCE ======================= */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow,
  .page-loader {
    display: none !important;
  }
}

/* ======================= NEW ELEMENTS: PREMIUM MEDICAL GRADE STYLES ======================= */

/* --- Entry Popup --- */
.entry-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(45, 10, 20, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.entry-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.entry-popup-container {
  background: white;
  width: 100%;
  max-width: 850px;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 30px 60px -12px rgba(45, 10, 20, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.entry-popup-overlay.show .entry-popup-container {
  transform: scale(1) translateY(0);
}

@media (min-width: 768px) {
  .entry-popup-container {
    flex-direction: row;
    min-height: 550px;
  }
}

.entry-popup-visual {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.entry-popup-visual::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, transparent 70%);
  animation: slow-rotate 20s linear infinite;
}

@keyframes slow-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.visual-illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 10px 20px rgba(255, 105, 180, 0.15));
}

.entry-popup-content {
  flex: 1.2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.2s ease;
  z-index: 10;
}

.popup-close:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: rotate(90deg);
}

.popup-headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.popup-subtext {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.popup-form {
  display: grid;
  gap: 1rem;
}

.popup-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .popup-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.popup-input,
.popup-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--warm-white);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.popup-input:focus,
.popup-select:focus {
  border-color: var(--primary);
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(231, 36, 117, 0.1);
}

.popup-btn {
  margin-top: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 20px -5px rgba(231, 36, 117, 0.4);
  transition: all 0.3s ease;
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(231, 36, 117, 0.5);
}

.popup-trust {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- Mobile Specific Popup Styles (< 768px) --- */
@media (max-width: 767px) {
  .entry-popup-overlay {
    padding: 1rem;
    align-items: center;
    /* True center vertical */
    justify-content: center;
    /* True center horizontal */
  }

  .entry-popup-container {
    width: 94%;
    max-height: 85vh;
    /* Ensure it fits in viewport */
    border-radius: 2rem;
    /* Consistent rounding on all sides */
    margin: 0;
    transform: scale(0.9) translateY(20px);
    display: flex;
    flex-direction: column;
  }

  .entry-popup-overlay.show .entry-popup-container {
    transform: scale(1) translateY(0);
  }

  .entry-popup-visual {
    display: none;
    /* Hide large illustration on mobile */
  }

  .entry-popup-content {
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    overflow-y: auto;
    /* Allow internal scrolling if content overflows */
    -webkit-overflow-scrolling: touch;
  }

  .popup-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    /* Larger tap target */
    height: 3rem;
  }

  .popup-headline {
    font-size: 1.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .popup-subtext {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .popup-form {
    gap: 0.75rem;
  }

  .popup-form-row {
    grid-template-columns: 1fr;
    /* Stacked on mobile */
  }

  .popup-input,
  .popup-select {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }

  .popup-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
  }

  .popup-trust {
    padding-top: 1rem;
  }

  .trust-badges {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-icons {
  display: flex;
  gap: 1rem;
  opacity: 0.5;
}

/* --- Chatbot & Floating Buttons --- */
.floating-btns-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.chatbot-widget {
  position: relative;
  bottom: auto;
  right: auto;
  z-index: auto;
}

/* WhatsApp Button */
.whatsapp-btn {
  width: 3.75rem;
  height: 3.75rem;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Back to Top Button */
.back-to-top {
  width: 3.75rem;
  height: 3.75rem;
  background-color: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  border: 1px solid var(--border);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.chat-trigger {
  width: 3.75rem;
  height: 3.75rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(231, 36, 117, 0.3);
  position: relative;
  transition: transform 0.3s ease;
}

.chat-trigger:hover {
  transform: scale(1.05);
}

.chat-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--primary);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.chat-window {
  position: absolute;
  bottom: calc(100% + 1.5rem);
  right: 0;
  width: 350px;
  max-width: 90vw;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: bottom right;
}

.chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 767px) {
  .chat-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(20px) scale(1);
    display: flex;
    flex-direction: column;
  }

  .chat-window.open {
    transform: translateY(0);
  }

  .chat-messages {
    flex: 1;
    max-height: none;
    padding-bottom: 2rem;
  }

  .chat-header {
    padding: 1rem;
  }

  /* Ensure close button is easily tappable */
  .chat-header .close-chat-mobile {
    display: block;
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
  }
}

.chat-header {
  background: var(--primary);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bot-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bot-info h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.bot-info p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.chat-messages {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fdfafd;
}

.message {
  padding: 0.875rem 1.125rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 85%;
}

.message-bot {
  background: white;
  color: var(--foreground);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
}

.chat-actions {
  display: grid;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.action-btn {
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--primary);
  color: white;
}

.message-user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.875rem 1.125rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  border-bottom-left-radius: 0.25rem;
  width: fit-content;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  opacity: 0.4;
  border-radius: 50%;
  animation: typing-dot 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-4px);
  }
}

/* --- Disclaimer Bar (News Ticker) --- */
:root {
  --ticker-speed: 25s;
  /* Calm medical tone */
}

.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #8b1a3e;
  /* Branding Maroon */
  color: white;
  z-index: 9998;
  display: flex;
  align-items: center;
  height: 40px;
  /* Slim and elegant */
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-size: 0.85rem;
}

.disclaimer-ticker-wrapper {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.disclaimer-ticker-content {
  display: flex;
  white-space: nowrap;
  width: max-content;
  /* Allow content to define width */
  animation: ticker-loop var(--ticker-speed) linear infinite;
}

.disclaimer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 4rem;
  /* Gap between seamless copies */
}

.disclaimer-icon {
  flex-shrink: 0;
  color: #ff9fb2;
  opacity: 0.8;
  /* Subtle icon variation */
}

.disclaimer-close {
  position: absolute;
  right: 1.5rem;
  background: #8b1a3e;
  /* Mask scrolling text */
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0.25rem 0.5rem;
  z-index: 9999;
  cursor: pointer;
}

.disclaimer-close:hover {
  opacity: 1;
}

@keyframes ticker-loop {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Seamlessly loops back to Copy 2's start */
}

@media (max-width: 768px) {
  .disclaimer-bar {
    height: 35px;
    font-size: 0.75rem;
  }
}

/* Spacer for footer to not be hidden by sticky bar */
.footer-legal {
  padding-bottom: calc(2rem + 40px);
}