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

:root {
  --primary: #2d5c48;
  --primary-light: #4a8068;
  --secondary: #8fac97;
  --accent: #e8f5e9;
  --text-dark: #1a2e25;
  --text-light: #6b7c75;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 30px -10px rgba(45, 92, 72, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text-dark);
  background-color: #f8faf9;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 92, 72, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 92, 72, 0.4);
  background-color: var(--primary-light);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-left: 15px;
  /* iOS 12 Flex gap fix */
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.highlight {
  color: var(--primary);
}

/* Navbar */
.navbar {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  margin-left: 30px;
  /* iOS 12 Flex gap fix */
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  /* Works in some contexts, but let's use margin for span just in case */
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 2px 0;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links .btn-nav {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
}

.nav-links .btn-nav:hover {
  opacity: 0.9;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 12px;
  margin-left: 25px;
  align-items: center;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 25px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 0;
  /* Changed for images */
  filter: grayscale(100%);
  display: flex;
  /* Centering */
  align-items: center;
}

.lang-btn img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  opacity: 0.8;
  filter: grayscale(0%);
  transform: translateY(-1px);
}

.lang-btn.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .lang-selector {
    margin-left: 0;
    margin-top: 20px;
    padding-left: 0;
    border-left: none;
    justify-content: center;
    width: 100%;
  }
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Background Blob */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle,
      var(--accent) 0%,
      rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.badge {
  background: var(--accent);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 90%;
}

/* Hero Visual Image */
.hero-visual {
  flex: 1;
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  /* Or auto */
  max-width: 450px;
  height: auto;
  border-radius: 40px;
  /* Large organic radius */
  z-index: 1;
  box-shadow: var(--shadow);
}

.glass-card {
  position: absolute;
  /* Force it on top */
  bottom: -20px;
  left: 0;
  width: 260px;
  /* Sizing adjustments */
  background: rgba(255, 255, 255, 0.85);
  /* More opaque */
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 3;
  transform: rotate(5deg);
  transition: transform 0.5s ease;
}

.glass-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Steps Section (Interactive) */
.steps-section {
  padding: 60px 0 100px;
  background: white;
  position: relative;
  z-index: 10;
  margin-top: -60px;
  /* Overlap hero */
}

.interactive-steps-wrapper {
  margin-top: 40px;
}

/* Progress-like Navigation */
.steps-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

/* The Line Background */
.progress-line-bg {
  position: absolute;
  top: 25px;
  /* Half of button height (50px) */
  left: 45px;
  /* Offset to center of first btn */
  right: 45px;
  /* Offset to center of last btn */
  height: 4px;
  background: #eee;
  z-index: 0;
}

/* The Active Fill Line */
.progress-line-fill {
  position: absolute;
  top: 25px;
  left: 45px;
  height: 4px;
  background: var(--primary);
  z-index: 1;
  width: 0%;
  /* JS will animate this */
  transition: width 0.4s ease;
}

/* Step Buttons */
.step-trigger {
  background: none;
  border: none;
  position: relative;
  z-index: 2;
  /* Above line */
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 80px;
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 3px solid #eee;
  color: #999;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #999;
  transition: color 0.3s;
}

/* Active State */
.step-trigger.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(45, 92, 72, 0.3);
}

.step-trigger.active .step-label {
  color: var(--primary);
}

/* Completed State */
.step-trigger.completed .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-trigger.completed .step-label {
  color: var(--primary);
}

/* Step Content Panels */
.steps-display {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
  /* Prevent jumpiness */
}

.step-panel {
  display: none;
  /* Hidden by default */
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease;
  align-items: center;
}

.step-panel.active {
  display: flex;
  /* Or block on mobile */
}

.panel-icon {
  font-size: 4rem;
  margin-right: 40px;
  /* iOS 12 polyfill for gap */
  background: var(--accent);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-text h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.5rem;
}

.panel-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .step-label {
    display: none;
    /* Hide labels on small screens to save space */
  }

  .panel-icon {
    display: none;
    /* Hide icon on mobile to save vertical space */
  }

  .step-panel {
    text-align: center;
    padding: 30px 20px;
    display: block;
    /* Stack content */
  }

  .step-panel.active {
    display: block;
  }
}

/* Mission Section */
.mission-section {
  padding: 100px 0;
  background: white;
}

.mission-grid {
  display: flex;
  align-items: center;
}

.mission-content {
  flex: 1;
  padding-right: 50px;
  /* iOS 12 Flex gap fix alternative */
}

.mission-image {
  flex: 1;
}

.mission-full-img {
  width: 100%;
  max-width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-list {
  list-style: none;
  margin-top: 30px;
}

.feature-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background: #f8faf9;
}

.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  padding: 20px 5px;
  /* space for shadow */
  -webkit-overflow-scrolling: touch;
  /* iOS smooth scroll */
  scroll-snap-type: x mandatory;
  gap: 30px;
  /* Modern browsers */
}

/* iOS 12 polyfill for gap */
.testimonial-card {
  flex: 0 0 320px;
  /* Fixed width cards */
  margin-right: 30px;
  scroll-snap-align: center;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-card:last-child {
  margin-right: 20px;
  /* End spacing */
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(45, 92, 72, 0.1);
}

.quote-icon {
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: -20px;
  font-family: serif;
}

.testimonial-preview {
  font-size: 1.1rem;
  margin-bottom: 25px;
  margin-top: 20px;
  color: var(--text-dark);
  font-style: italic;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid var(--accent);
}

.user-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.user-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-dark);
}

/* Modal Internal Typography */
.modal-full-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 20px 0;
  white-space: pre-line;
}

.modal-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-top: 5px;
  font-weight: 600;
}

/* Services */
.services-section {
  padding: 100px 0;
  background: var(--accent);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.services-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
}

.service-card {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: var(--accent);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: white;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 60px;
  /* For modern browsers */
  flex-wrap: wrap;
  /* iOS 12 fallback logic needed */
}

/* iOS 12 Flexbox gap polyfill (manual margins) */
.contact-wrapper>* {
  margin: 20px;
}

.contact-text {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.contact-img-support {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 20px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  /* iOS Reset */
  appearance: none;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 92, 72, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1.1rem;
}

.form-note {
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #999;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-brand h2 {
  color: white;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    margin-left: 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
  }

  .mission-grid {
    flex-direction: column-reverse;
  }

  .mission-content {
    padding-right: 0;
    margin-top: 40px;
  }

  .services-grid {
    flex-direction: column;
  }
}

/* Doctors Page Styles */
.doctors-grid-section {
  padding: 60px 0 100px;
  background: white;
}

.doctors-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  /* Modern gap syntax */
  margin: 0;
}

.doctor-card {
  flex: 0 0 350px;
  max-width: 350px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 92, 72, 0.1);
}

.doctor-img-container {
  height: 350px;
  position: relative;
  overflow: hidden;
}

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

.doctor-card:hover .doctor-img {
  transform: scale(1.05);
}

.doctor-specialty-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: white;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.doctor-info h3 {
  margin: 0 0 5px;
  color: var(--text-dark);
  font-size: 1.4rem;
}

.crm {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.doctor-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
  /* Pushes button down if needed */
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.doctor-tags span {
  background: var(--accent);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .doctor-card {
    flex: 1 1 100%;
    max-width: 400px;
  }
}

/* Myths Flip Cards */
.myth-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.myth-card {
  background-color: transparent;
  width: 300px;
  height: 320px;
  perspective: 1000px;
  /* 3D effect */
  cursor: pointer;
}

.myth-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

.myth-card:hover .myth-card-inner {
  transform: rotateY(180deg);
}

.myth-front,
.myth-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.myth-front {
  background-color: white;
  color: var(--text-dark);
}

.myth-back {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
  border: 1px solid var(--primary);
}

.myth-icon,
.truth-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.click-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 20px;
  opacity: 0.7;
}

.myth-front h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.myth-back p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Helper delays */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Quiz Gamification Styles */
.quiz-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  color: var(--primary);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 990;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.quiz-fab:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(45, 92, 72, 0.25);
  background: var(--primary);
  color: white;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.quiz-modal-content {
  max-width: 500px;
  text-align: center;
  padding: 40px;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.quiz-step.active {
  display: block;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-question h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.quiz-options {
  display: grid;
  gap: 15px;
}

.quiz-option-btn {
  background: white;
  border: 2px solid #eee;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-option-btn:hover {
  border-color: var(--primary);
  background: #e8f5e9;
}

.quiz-option-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.quiz-result-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .quiz-fab .quiz-text {
    display: none;
    /* Icon only on mobile to save space */
  }

  .quiz-fab {
    padding: 15px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

/* Live Wellness Section - Modern Redesign */
.live-stats-section {
  background: #f0f4f2;
  /* Soft grey-green */
  background-image:
    radial-gradient(at 100% 0%, rgba(45, 92, 72, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(129, 199, 132, 0.1) 0px, transparent 50%);
  color: var(--text-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Pattern */
.live-stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(#e5e5e5 1px, transparent 1px),
    linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  opacity: 0.3;
  z-index: 0;
}

.live-stats-section .container {
  position: relative;
  z-index: 1;
}

.live-stats-section .section-header h2 {
  color: var(--primary);
  font-size: 2.5rem;
}

.live-stats-section .section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  background: white;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(45, 92, 72, 0.1);
}

.blink-dot {
  width: 8px;
  height: 8px;
  background-color: #00c853;
  /* Bright Active Green */
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
  }
}

/* Stats Grid & Cards */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.stat-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 35px 25px;
  border-radius: 24px;
  text-align: center;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  /* Soft elevated shadow */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy hover */
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -10px rgba(45, 92, 72, 0.15);
  border-color: rgba(45, 92, 72, 0.2);
}

/* Decorative Gradient Line at top of card */
.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: #f5f9f7;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: #e8f5e9;
}

.stat-number {
  font-family: "Inter", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
  display: block;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  font-weight: 500;
}

/* Modern Ticker Pill */
.live-ticker-wrapper {
  background: white;
  border-radius: 50px;
  padding: 12px 25px;
  display: inline-flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  /* Centering wrapper approach */
  left: 50%;
  transform: translateX(-50%);
}

.ticker-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  position: relative;
  height: 24px;
  /* Fixed height for text */
  min-width: 250px;
  display: flex;
  align-items: center;
}

/* JS-Driven Ticker Animation */
.ticker-item {
  font-size: 0.9rem;
  color: #444;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0;
  /* Start hidden for JS fade */
}

.ticker-item span {
  font-weight: 700;
  color: var(--primary);
}

/* Legal Footer Text Global Style */
.legal-footer-text {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  line-height: 1.5;
  max-width: 1000px;
  margin: 30px auto 0;
  text-align: center;
  /* Better centered */
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5px;
}

/* Physics Interaction Section */
.physics-section {
  padding: 100px 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.physics-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.physics-text-content {
  flex: 1;
  max-width: 500px;
}

.physics-text-content h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 20px 0;
  line-height: 1.2;
}

.physics-text-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.physics-box-wrapper {
  flex: 1;
  width: 100%;
  /* Ensure it takes full width of flex child */
}

.physics-container {
  width: 100%;
  height: 500px;
  /* Fixed height for the canvas area */
  position: relative;
  background: #f8faf9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  /* Inner shadow for depth */
  border: 1px solid rgba(0, 0, 0, 0.03);
  cursor: grab;
}

.physics-container:active {
  cursor: grabbing;
}

/* Old overlay text removed, styles deprecated or reused if needed */

@media (max-width: 900px) {
  .physics-layout {
    flex-direction: column;
    text-align: center;
  }

  .physics-text-content {
    margin-bottom: 40px;
  }
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 92, 92, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(231, 92, 92, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 92, 92, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Standard Page Header */
.page-header {
  background-color: #F4F7F6;
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}