/* Atulaya Healthcare Lab - Modern Premium Design */

:root {
  /* Brand Colors */
  --primary: #D32F2F;
  /* Deep Medical Red */
  --primary-gradient: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
  --secondary: #2c3e50;
  /* Professional Navy/Dark Grey */
  --accent: #E31E24;

  /* Modern Surface Colors */
  --surface-white: #ffffff;
  --surface-off: #f8f9fa;
  --surface-glass: rgba(255, 255, 255, 0.95);

  /* Text */
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --text-light: #888888;

  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 30px rgba(227, 30, 36, 0.15);
  /* Red tinted shadow */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Layout */
  --container-width: 1280px;

  /* Glass/Glow Variables */
  --glass: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.3);
  --primary-glow: rgba(227, 30, 37, 0.15);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--surface-off);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

/* Section Title Global */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Subtitle for H2 */
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  /* Pill shape */
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

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

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

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

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 0;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.logo span {
  color: var(--secondary);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--secondary);
  font-size: 1rem;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Sections */
.hero {
  position: relative;
  background: var(--surface-off);
  padding: 8rem 0;
  overflow: hidden;
  /* Ensure background image is retained via inline style but handled properly */
}

/* Strong Overlay for Text Readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Strong white gradient covering the left half completely */
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Tighter alignment for Hero Text */
.hero .container {
  margin-left: 0px;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Sit above the overlay */
  max-width: 650px;
}

.section-bg {
  background-color: white;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 3rem 2.5rem;
  /* Increased padding */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(227, 30, 36, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Icons for Service Cards */
.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(227, 30, 36, 0.1);
  /* Light Text-Red background */
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.link-arrow {
  margin-top: auto;
  /* Push to bottom */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.link-arrow .arrow {
  transition: transform 0.3s ease;
}

.link-arrow:hover .arrow {
  transform: translateX(5px);
}

/* Area Grid */
/* Service Areas Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 0;
  /* Masking for fade effect on sides */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
  /* Smooth slow scroll */
}

.marquee-track:hover {
  animation-play-state: paused;
  /* Pause on hover for readability */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move half the length (since we duplicated items) */
}

.area-card {
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  /* Pill shape for marquee */
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  /* Prevent text wrapping */
  transition: var(--transition);
  cursor: pointer;
}

.area-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Footer Grid Correction */
.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Reviews Section Marquee */
.reviews-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 3rem;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: reviews-scroll 60s linear infinite;
  /* Slower scroll for reading */
}

.reviews-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 400px;
  /* Fixed width for better marquee flow */
  flex-shrink: 0;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stars {
  color: #ffc107;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.reviewer-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.reviewer-info strong {
  color: var(--secondary);
  font-size: 1.1rem;
}

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


/* FAQ Section (Accordion) */
.faq {
  padding: 80px 0;
  background: var(--surface-white);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  transition: var(--transition);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
  color: var(--primary);
  background: rgba(211, 47, 47, 0.02);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: white;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-answer-content {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  color: #b0b0b0;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #999;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-col ul li a::before {
  content: '→';
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.footer-col ul li a:hover::before {
  opacity: 1;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.footer-contact-info i,
.footer-contact-info span.icon {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Bottom Footer */
.bottom-footer {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.bottom-footer p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }


  /* Animations */
  @keyframes slowZoom {
    from {
      transform: scale(1);
    }

    to {
      transform: scale(1.15);
    }
  }

  /* Media Queries */
  @media (max-width: 1200px) {
    .display-title {
      font-size: 3.8rem;
    }

    .pillars-bento-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .section-padding {
      padding: 80px 0;
    }

    .hero-split {
      flex-direction: column;
      text-align: center;
      min-height: auto;
    }

    .hero-split-left {
      padding: 100px 5% 60px;
      flex: none;
      width: 100%;
    }

    .hero-split-right {
      position: relative;
      width: 100%;
      height: 450px;
      flex: none;
    }

    .hero-split-right::after {
      background: linear-gradient(to top, var(--dark) 0%, transparent 50%);
    }

    .display-title {
      font-size: 3rem;
    }

    .pillars-bento-grid {
      grid-template-columns: 1fr;
    }

    .timeline-container::before {
      left: 20px;
    }

    .timeline-item {
      width: 100%;
      left: 0 !important;
      padding-left: 50px !important;
      padding-right: 0 !important;
      text-align: left !important;
    }

    .timeline-dot {
      left: 8px !important;
    }

    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
    }

    .stat-item h3 {
      font-size: 3rem;
    }
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col ul li a {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-contact-info p {
    justify-content: center;
  }
}

/* --- Clean Corporate UI Recovery --- */

.section-padding {
  padding: 100px 0;
}

/* Classic Centered Hero */
.hero-centered {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: slowZoom 40s infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Standard Pillar Grid */
.pillars-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.pillar-clean-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-clean-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.pillar-clean-icon {
  width: 70px;
  height: 70px;
  background: rgba(227, 30, 37, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.pillar-clean-card:hover .pillar-clean-icon {
  background: var(--primary);
  color: #fff;
}

.pillar-clean-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.pillar-clean-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Timeline Polish & Redesign */
.timeline-container {
  max-width: 1000px;
  margin: 60px auto 0;
  position: relative;
  padding: 40px 0;
  z-index: 1;
}

/* Center Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating Sides */
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  top: 24px;
  width: 24px;
  height: 24px;
  background: white;
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.4s ease;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -12px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -12px;
}

.timeline-item.is-visible .timeline-dot {
  transform: scale(1.2);
  background: var(--primary);
}

/* Content Card */
.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 30, 36, 0.1);
}

/* Arrows pointing to line */
.timeline-content::after {
  content: '';
  position: absolute;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -10px;
  border-left: 10px solid white;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -10px;
  border-right: 10px solid white;
}

.timeline-year {
  display: inline-block;
  background: rgba(227, 30, 36, 0.08);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 15px;
}

.timeline-content h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.timeline-content p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 20px;
    margin-bottom: 40px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 28px;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    border-right: 10px solid white;
    border-left: none;
  }
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding: 80px 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  nav .btn {
    display: inline-block;
    width: auto;
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    outline: none;
    /* Remove focus outline */
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    /* Slightly thinner for elegance */
    background-color: #333;
    /* Direct color fallback to ensure visibility */
    border-radius: 4px;
    /* Softer edges */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Active State (X transformation) */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background-color: var(--primary);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
    /* Slide out effect */
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background-color: var(--primary);
  }
}

/* Overlay and Body Lock */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.no-scroll {
  overflow: hidden;
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

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

/* Stats Section Optimization */
.stats-section {
  position: relative;
  background: white;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  /* Soft shadow lift */
  border-color: rgba(227, 30, 36, 0.1);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: rgba(227, 30, 36, 0.08);
  /* Light Red */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 5px;
  line-height: 1.1;
  background: -webkit-linear-gradient(45deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Stats Responsive */
@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Banner (About/Internal Pages) */
.page-banner {
  position: relative;
  background-color: var(--dark);
  padding: 80px 0;
  /* Reduced height */
  color: white;
  text-align: center;
  overflow: hidden;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  /* Stronger overlay for text */
  z-index: 1;
}

.page-banner img.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
}

/* Package Pricing Cards */
.package-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 4px solid var(--primary);
  /* Standard Brand Color Top Border */
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-top-width: 6px;
}

.package-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Page Banner Tags */
.banner-tag {
  display: inline-block;
  background: var(--success-green, #28a745);
  /* Fallback green */
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}


.package-price span.old-price {
  font-size: 1rem;
  color: #888;
  text-decoration: line-through;
  font-weight: 500;
}

.package-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.package-features li {
  margin-bottom: 0.8rem;
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}

/* Modifier for Popular Card */
.package-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
  position: relative;
}

.package-card.popular::after {
  content: 'BEST SELLER';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 30px;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Essential Section (Split Layout) */
.essential-section {
  padding: 80px 0;
  background: white;
}

.essential-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.essential-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.essential-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.essential-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.essential-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Risk Cards Grid */
.risk-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.risk-section-title h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.risk-card {
  background: #fdfdfd;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.risk-card:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(227, 30, 36, 0.1);
}

.hero {
  height: 90vh;
  background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: -80px;
  /* Pull behind transparent header if needed */
  padding-top: 80px;
}

.risk-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.risk-card:hover .risk-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.risk-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.risk-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Essential Responsive */
@media (max-width: 991px) {
  .essential-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .risk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .essential-image {
    order: -1;
  }
}

@media (max-width: 576px) {
  .risk-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Tests Section */
.tests-section {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.test-category-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.test-category-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--secondary);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.test-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.95rem;
  color: #555;
  transition: all 0.2s;
}

.test-item:last-child {
  border-bottom: none;
}

.test-item:hover {
  background-color: #fcfcfc;
  padding-left: 5px;
  padding-right: 5px;
}

.test-price {
  font-weight: 700;
  color: var(--primary);
}

/* Enhanced Package Card Elements */
.package-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
  transform: translateY(-2px);
}

.parameter-badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--secondary);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Responsive Tests */
@media (max-width: 991px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
}

/* Package Control Bar (Search & Tabs) */
.package-controls-section {
  padding: 40px 0 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 70px;
  /* Adjust based on navbar height */
  z-index: 99;
}

.package-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box-wrapper input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.search-box-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
}

.search-box-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.tab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 10px 25px;
  border-radius: 30px;
  border: none;
  background: white;
  color: #555;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.tab-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

/* Hide Helper */
.hidden {
  display: none !important;
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Initially disabled */
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

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

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.modal-header p {
  color: #666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 1rem;
}

/* Animate Filter Items */
.package-card,
.test-item,
.test-category-card {
  animation: fadeIn 0.5s ease;
}

@media (max-width: 768px) {
  .package-controls-section {
    top: 60px;
    /* Mobile nav height approx */
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Better separation */
  }

  .package-controls {
    gap: 15px;
  }

  .tab-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 5px;
    /* Space for scrollbar if visible */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .tab-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Contact Page Redesign */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Contact Info Cards */
.contact-info-card {
  display: flex;
  align-items: center;
  /* Vertically center icon with text block */
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(211, 47, 47, 0.1);
}

.contact-info-card h4 {
  margin-bottom: 0.25rem;
  /* Tighter gap between title and text */
}

.contact-info-card p {
  margin-bottom: 0;
  /* Remove bottom margin for clean look */
  line-height: 1.5;
}

.icon-box-small {
  width: 50px;
  height: 50px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.text-primary-bold {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.text-sm {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin-top: 0.2rem;
}

/* Map Container */
.map-container-styled {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid white;
}

/* Contact Form Container */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
}

/* Modern Form Elements */
.modern-form .form-group {
  margin-bottom: 1.5rem;
}

.modern-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #eee;
  background: #fcfcfc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-main);
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.1);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #20bd5a;
}

.call-btn {
  background: var(--primary-gradient);
}

.call-btn:hover {
  background: var(--primary);
}

/* Tooltip on hover */
.action-btn::after {
  content: attr(aria-label);
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-family: 'Inter', sans-serif;
}

.action-btn:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .floating-actions {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .action-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* =========================================
   RESPONSIVE DESIGN OVERHAUL
   ========================================= */

/* --- Tablet / Small Desktop (Max 991px) --- */
@media (max-width: 991px) {

  /* Typography Scaling */
  html {
    font-size: 15px;
    /* Slightly smaller base size */
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Grid Adjustments */
  .services-grid,
  .pillars-standard-grid,
  .package-grid,
  .reviews-marquee-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Intro Section */
  .intro .container>div {
    flex-direction: column;
    gap: 2rem;
  }

  .intro img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }

  /* Stats Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* --- Mobile (Max 768px) --- */
@media (max-width: 768px) {

  /* Global Layout */
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Logo Styling */
  .logo a {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    border: none;
  }

  .logo img {
    vertical-align: middle;
  }

  /* Navigation Menu */
  header {
    padding: 10px 0;
    /* Tighter header */
  }

  header .logo img {
    height: 40px;
    /* Smaller logo */
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 32px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    z-index: 2000;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px !important;
    background-color: #222 !important;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 30px;
    transition: 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.open ul {
    right: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .mobile-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Hero Section Alignment Fix */
  .hero {
    height: auto;
    padding: 140px 0 250px;
    /* Huge bottom padding to show image */
    text-align: center;
    /* Clean White Top (65%) -> Fade -> Image at Bottom */
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 65%, transparent 100%),
      url('../assets/images/hero-bg.jpg') no-repeat bottom center;
    background-size: 100% auto;
    /* contain width, auto height */
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Perfect horizontal centering */
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 0.95rem;
    /* Reduced size */
    padding: 0 15px;
    /* Added horizontal padding */
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    line-height: 1.5;
    color: #555;
    /* Soften text color slightly */
  }

  .hero-cta {
    justify-content: center;
    gap: 15px;
  }

  .hero-cta .btn {
    width: 100%;
    /* Full width buttons on mobile */
    max-width: 300px;
  }

  /* Single Column Grids */
  .services-grid,
  .pillars-standard-grid,
  .package-grid,
  .stats-grid,
  .test-grid,
  .essential-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Cards Mobile Styling */
  .package-card,
  .contact-info-card,
  .feature-box {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  /* Reviews Marquee (Keep scrolling on mobile) */
  .reviews-marquee-track {
    /* Animation inherited from desktop */
  }

  /* Pricing Tables Scroll */
  .test-pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
  }

  .test-pricing-table {
    min-width: 600px;
    /* Force scroll */
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-col {
    align-items: center;
  }

  .footer-contact-info p {
    justify-content: center;
  }

  /* Floating Buttons Mobile Position */
  .floating-actions {
    bottom: 20px;
    right: 15px;
  }

  .action-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Footer Logo Visibility Fix */
footer .logo {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}