/* 
======================================================
   DR SHUBHAM PHYSIOTHERAPY - GLOBAL CSS SYSTEM
======================================================
*/

/* 1. CSS VARIABLES */
:root {
  /* Colors */
  --primary-blue: #0A66C2;
  --primary-blue-hover: #0855A3;
  --secondary-bg: #EAF4FF;
  --accent-orange-start: #FF7A00;
  --accent-orange-end: #FF9A3C;
  --text-dark: #0F172A;
  --text-light: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(10, 102, 194, 0.15);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--accent-orange-start), var(--accent-orange-end));
  --gradient-primary: linear-gradient(135deg, #0A66C2, #4facfe);
  --bg-gradient: linear-gradient(135deg, #ffffff 0%, #EAF4FF 100%);

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. CSS RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. UTILITY CLASSES */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--accent-orange-start);
}

.text-blue {
  color: #0A66C2;
  /* Original medical blue */
}

/* Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  /* Use deep green */
  color: var(--white);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(5, 150, 105, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  /* Emerald green */
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}

/* 4. ANIMATIONS */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--secondary-bg);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ======================================================
   5. HEADER & NAVBAR
   ====================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.sticky {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 15px 0;
  box-shadow: var(--shadow-glass);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-menu ul {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

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

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: var(--transition-fast);
}

/* ======================================================
   6. HERO SECTION - BENTO GRID
   ====================================================== */
.hero-bento {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-gradient);
  padding-top: 100px;
  overflow: hidden;
}

.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(at 10% 20%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(5, 150, 105, 0.08) 0px, transparent 50%);
  z-index: 0;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(5, 150, 105, 0.15);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(16, 185, 129, 0.1);
  bottom: 0;
  right: -50px;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(52, 211, 153, 0.1);
  top: 30%;
  left: 50%;
  filter: blur(100px);
}

.bento-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Content */
.bento-left {
  padding-right: 20px;
}

.inline-flex {
  display: inline-flex;
}

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

.gap-2 {
  gap: 8px;
}

.mt-4 {
  margin-top: 1.5rem;
}

.d-inline-block {
  display: inline-block;
}

.fw-600 {
  font-weight: 600;
}

.trust-badge {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: dot-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dot-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 90%;
}

.hero-input-group {
  display: flex;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-full);
  max-width: 450px;
}

.fast-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  color: var(--text-dark);
}

.sweep-hover {
  position: relative;
  overflow: hidden;
}

.sweep-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.sweep-hover:hover::after {
  left: 150%;
}

/* Right Bento Grid */
.bento-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  position: relative;
  height: 500px;
}

.bento-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.main-visual {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  position: relative;
  background: var(--white);
  padding: 10px;
}

.main-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card-overlay-gradient {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.stat-card {
  position: absolute;
  top: 20px;
  right: -30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: float 5s ease-in-out infinite alternate;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-content h3 {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0;
}

.stat-content p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.verified-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  animation: float 6s ease-in-out infinite reverse;
}

.avatar-group {
  display: flex;
  margin-bottom: 8px;
}

.avatar,
.avatar-more {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-left: -10px;
}

.avatar:first-child {
  margin-left: 0;
}

.bg-accent {
  background: var(--gradient-primary);
  color: white;
}

.bg-secondary {
  background: var(--secondary-bg);
  color: var(--primary-blue);
}

.avatar-more {
  background: var(--text-dark);
  color: white;
}

.verified-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.5s;
}

.delay-4 {
  transition-delay: 0.7s;
}

/* ======================================================
   7. HIGHLIGHTS SECTION
   ====================================================== */
.highlights {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

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

.highlight-card {
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight-card h3 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.highlight-card p {
  color: var(--text-light);
  font-weight: 500;
}

/* ======================================================
   8. ABOUT DOCTOR SECTION
   ====================================================== */
.section-padding {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--secondary-bg);
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 2rem;
}

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

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  display: inline-block;
}

.image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 450px;
  width: 100%;
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: -30px;
  padding: 20px 30px;
  text-align: center;
  border-left: 4px solid var(--accent-orange-start);
}

.experience-badge h3 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  line-height: 1;
}

.about-list {
  margin-bottom: 2rem;
}

.about-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--white);
  background: var(--gradient-accent);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  background: var(--secondary-bg);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2.5rem;
  display: inline-block;
}

.stat-item p {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: -10px;
}

/* ======================================================
   9. SERVICES SECTION
   ====================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  padding: 40px 30px;
  transition: var(--transition-smooth);
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

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

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

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

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-link {
  color: var(--accent-orange-start);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.service-link:hover {
  color: var(--accent-orange-end);
  letter-spacing: 1px;
}

/* ======================================================
   10. WHY CHOOSE US
   ====================================================== */
.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-list li {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.feature-list li:hover {
  transform: translateX(10px);
  border-color: var(--primary-blue);
}

.check-icon {
  width: 25px;
  height: 25px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ======================================================
   11. INNER PAGES (Page Header & Generics)
   ====================================================== */
.page-header {
  padding: 150px 0 80px 0;
  background: var(--bg-gradient);
  text-align: center;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

/* Subpage About Layout */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.vision-card {
  padding: 40px;
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
}

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

/* Subpage Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--text-dark);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* ======================================================
   12. SPECIALIZATIONS SECTION
   ====================================================== */
.specialties-grid,
.specialities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.specialty-card {
  padding: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  background: var(--white);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: default;
}

.specialty-card:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ======================================================
   12. TESTIMONIALS SLIDER
   ====================================================== */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-in-out;
  pointer-events: none;
  background: var(--secondary-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  box-shadow: var(--shadow-soft);
}

.stars {
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

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

.testimonial-slide h4 {
  color: var(--primary-blue);
}

/* ======================================================
   13. APPOINTMENT SECTION
   ====================================================== */
.appointment-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.method {
  padding: 25px;
  background: var(--white);
}

.method h4 {
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.method a {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.method a:hover {
  color: var(--accent-orange-start);
}

.appointment-form-wrapper {
  padding: 50px;
  background: var(--white);
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--secondary-bg);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1);
}

.w-100 {
  width: 100%;
}

/* ======================================================
   SERVICES PAGE: ADVANCED COMPONENTS
   ====================================================== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
}

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

.process-step {
  position: relative;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

/* ======================================================
   ABOUT PAGE: ADVANCED COMPONENTS
   ====================================================== */
.about-hero {
  position: relative;
  overflow: hidden;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-orange-start), var(--accent-orange-end));
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--primary-blue);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.2);
  z-index: 2;
}

.timeline-content {
  width: 80%;
  padding: 30px;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 40px;
  text-align: left;
}

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

/* ======================================================
   14. FOOTER & FLOATING CTA
   ====================================================== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 80px 0 20px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer p {
  color: var(--text-light);
}

.footer .logo {
  color: var(--white);
}

.footer-links h4,
.footer-map h4 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-orange-start);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 20px;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
  width: 35px;
}

/* ======================================================
   MEDIA QUERIES QUICK FIXES
   ====================================================== */
@media (max-width: 991px) {

  .bento-container,
  .hero-bento-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    margin-top: 40px;
    gap: 30px !important;
  }

  .bento-left {
    padding-right: 0;
  }

  .hero-input-group {
    margin: 1.5rem auto 0 auto;
  }

  .bento-right {
    height: 400px;
  }

  .stat-card {
    right: 10px;
    top: 10px;
  }

  .verified-card {
    left: 10px;
    bottom: 10px;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .about-hero .hero-title {
    font-size: 2.5rem !important;
  }

  .about-hero .hero-subtitle {
    font-size: 1.05rem !important;
    max-width: 100% !important;
  }

  .hero-subtitle {
    margin: 0 auto 30px auto !important;
  }

  .logo {
    font-size: 1.1rem;
    white-space: normal;
  }

  .logo-icon {
    font-size: 1.4rem;
  }

  .highlights-container {
    grid-template-columns: 1fr;
  }

  .highlights {
    margin-top: 40px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    /* Below the sticky header */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    transform: translateY(-150%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    display: flex;
    z-index: 990;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  /* Hamburger to X animation */
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-btn {
    display: none;
  }

  .about-container,
  .features-container,
  .appointment-container {
    grid-template-columns: 1fr;
  }

  .experience-badge {
    right: 0;
    bottom: 0;
  }

  .services-grid,
  .specialties-grid,
  .specialities-grid {
    grid-template-columns: 1fr;
  }

  .specialty-items {
    grid-template-columns: 1fr !important;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* About Page Responsive Enhancements */
  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-item {
    justify-content: flex-start;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .vision-mission,
  .features-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {

  .services-grid,
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .about-hero .hero-title {
    font-size: 2.3rem !important;
  }

  .about-hero .hero-subtitle {
    font-size: 0.95rem !important;
  }

  /* Make bento grid a bit tighter on mobile screens */
  .bento-right {
    height: 350px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .stat-content h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .appointment-form-wrapper {
    padding: 30px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float img {
    width: 30px;
  }
}