/* ============================================================
   RESET & VARIABLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

:root {
  --primary: #2563eb;
  --secondary: #3b82f6;
  --accent: #25d366;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fbfd;
  --danger: #ef4444;
}

.lang.hi {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LANGUAGE SWITCH */
.lang-switch {
  display: flex;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.lang-switch button.active {
  background: var(--primary);
  color: white;
}

/* BODY */
body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fa;
}

/* WRAPPER */
.header-wrapper {
  padding: 15px 25px;
  background: #eef3f8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* HEADER BOX */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  width: 100%;
  gap: 15px;
}

.header-wrapper {
  padding: 15px 20px;
}

.header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}
.header {
  backdrop-filter: blur(10px);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.clinic-name {
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.doctor-name {
  font-size: 12px;
  color: #777;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px; /* 🔥 THIS FIXES SPACING */
}

.nav a {
  position: relative;
  display: inline-block;
  color: #444;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

/* CLEAN UNDERLINE */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: 0.3s ease;
  transform: translateX(-50%);
}

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

.nav a:hover {
  color: #2563eb;
}

/* HAMBURGER MENU (mobile) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.18s ease;
  box-shadow: none;
}

.menu-toggle:focus {
  outline: none;
}

/* Open state: turn into a cross */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Make sure the button doesn't show an extra browser border */
.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}


/* HERO SECTION */
.hero {
  height: 85vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
  margin: 0 20px;
  border-radius: 20px;
  overflow: hidden;
}

/* DARK OVERLAY */
.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT */
.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 20px;
}

/* HEADING */
.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

/* SUBTEXT */
.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

/* BUTTON */
.hero-btn {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.hero-overlay {
  position: relative; /* IMPORTANT */
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 22px;
  color: white;
  opacity: 0.8;

  animation: bounce 1.5s infinite;
}

/* ANIMATION */
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* SERVICES SECTION */
.services {
  padding: 60px 20px;
  text-align: center;
  background: #f9fbfd;
}

.services h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* GRID */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

/* CARD */
.service-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* TEXT */
.service-card h3 {
  margin-bottom: 10px;
  color: #2563eb;
}

.service-card p {
  color: #555;
  font-size: 14px;
}

/* ICON STYLE */
.service-card i {
  font-size: 32px;
  color: #2563eb;
  margin-bottom: 15px;
  display: inline-block;
  transition: 0.3s;
}

/* ICON HOVER ANIMATION */
.service-card:hover i {
  transform: scale(1.2);
  color: #1d4ed8;
}
.service-card {
  text-align: center;
}

/* ============================================================
   WHY CHOOSE US SECTION
   ============================================================ */
.why-choose-us {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.why-choose-us h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.why-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
  margin-top: 30px;
}

.why-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.why-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: white;
}

.why-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
  transition: all 0.3s ease;
}

.why-card:hover i {
  transform: scale(1.15) rotate(5deg);
}

.why-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.why-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq {
  padding: 60px 20px;
  background: var(--bg-light);
  text-align: center;
}

.faq h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-container {
  max-width: 800px;
  margin: auto;
  text-align: left;
}

.faq-item {
  background: white;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f0f4ff, #f9f5ff);
  transition: all 0.3s ease;
  user-select: none;
  text-align: left;
}

.faq-item summary:hover {
  background: linear-gradient(135deg, #e0ecff, #f0e5ff);
  color: var(--primary);
}

.faq-item summary::before {
  content: "▼";
  color: var(--primary);
  transition: transform 0.3s ease;
  margin-left: auto;
  font-size: 12px;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  transform: rotate(180deg);
}

.faq-item[open] summary {
  background: linear-gradient(135deg, #2563eb22, #3b82f622);
  color: var(--primary);
}

.faq-item p {
  padding: 15px 20px;
  color: var(--text-light);
  background: #fafbfc;
  line-height: 1.7;
  display: none;
}

.faq-item[open] p {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   EMERGENCY CTA BUTTON
   ============================================================ */
.emergency-cta {
  margin-top: 20px;
  padding: 15px;
  background: #fff5f5;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
}

.emergency-cta p {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--danger);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.emergency-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.emergency-btn i {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* 
.about {
  padding: 60px 20px;
  background: #ffffff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

/* IMAGE */
.about-image img {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CONTENT */
.about-content {
  max-width: 500px;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-content h3 {
  color: #2563eb;
  margin-bottom: 15px;
}

.about-content p {
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* LIST */
.about-content ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

.about-content li {
  margin-bottom: 8px;
  color: #333;
}

/* BUTTON */
.about-content button {
  margin-top: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.about-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.about-image img {
  transition: 0.3s;
}

.about-image img:hover {
  transform: scale(1.03);
}

/* CONTACT SECTION */
.contact {
  padding: 60px 20px;
  background: #f9fbfd;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
}

.contact-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* LAYOUT */
.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* LEFT SIDE */
.contact-info {
  text-align: left;
  max-width: 400px;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

/* BUTTONS */
.contact-btn,
.map-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* WhatsApp Button */
.contact-btn {
  background: #25d366;
  color: white;
}

/* Map Button */
.map-btn {
  background: #2563eb;
  color: white;
}

/* MAP */
.contact-map iframe {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* TESTIMONIALS */
.testimonials {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.testimonial-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.testimonial-card {
  background: #f9fbfd;
  padding: 20px;
  border-radius: 12px;
  max-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
  font-style: italic;
  color: #555;
}

.testimonial-card h4 {
  margin-top: 10px;
  color: #2563eb;
}

/* GALLERY */
.gallery {
  padding: 60px 20px;
  text-align: center;
  background: #f9fbfd;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

/* FIX IMAGE SIZE */
.gallery-container img {
  width: 100%;
  height: 200px; /* 🔥 fixed height */
  object-fit: cover; /* 🔥 crop nicely */
  border-radius: 12px;
  transition: 0.3s ease;
}

/* HOVER */
.gallery-container img:hover {
  transform: scale(1.05);
}

.gallery-container img {
  position: relative;
}

.gallery-container img:hover {
  filter: brightness(0.9);
}

/* FOOTER */
.footer {
  background: #0d1b2a;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer p {
  margin: 5px 0;
  color: #ccc;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer .copyright {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
}

/* BUTTON */
.appointment-btn {
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transition: all 0.3s ease;
}

/* BUTTON HOVER */
.appointment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
}

.footer i,
.contact-info i {
  margin-right: 8px;
  color: #2563eb;
}

/* MODAL BACKGROUND */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);

  justify-content: center;
  align-items: center;
}

/* MODAL BOX */
.modal-content {
  background: white;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

  animation: fadeIn 0.3s ease;
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* INPUTS */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* BUTTON */
.modal-content .whatsapp-btn {
  width: 100%;
  margin-top: 15px;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SUCCESS POPUP */
.success-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  background: #25d366;
  color: white;

  padding: 12px 20px;
  border-radius: 25px;

  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

  opacity: 0;
  pointer-events: none;
  transition: 0.3s;

  z-index: 9999;
}

/* SHOW STATE */
.success-popup.show {
  opacity: 1;
}

.spinner-small {
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* INPUTS */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  outline: none;
}

textarea {
  height: 70px;
  resize: none;
}

/* BUTTON */
.whatsapp-btn {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: #1240a3;
}

.whatsapp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* FOOTER TEXT */
.clinic-time {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: gray;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

img {
  transition: 0.3s ease;
}

img:hover {
  filter: brightness(1.05);
}

/* Chrome */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* INITIAL STATE */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* WHEN VISIBLE */
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

button,
.hero-btn,
.appointment-btn {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

.gallery-container img {
  transition: all 0.4s ease;
}

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

.animate:nth-child(1) {
  transition-delay: 0.1s;
}
.animate:nth-child(2) {
  transition-delay: 0.2s;
}
.animate:nth-child(3) {
  transition-delay: 0.3s;
}

.nav a.active {
  color: #2563eb;
  font-weight: bold;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 22px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
section {
  scroll-margin-top: 100px;
}
section {
  border-radius: 20px;
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

/* underline accent */
section h2::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #2563eb;
  display: block;
  margin: 8px auto 0;
  border-radius: 10px;
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

/* TABLETS (768px and below) */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 10px 15px;
    border-radius: 20px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    gap: 0;
    padding: 10px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  .menu-toggle {
    display: flex;
    order: 2;
  }

  .header-actions {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .appointment-btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Hero */
  .hero {
    height: 60vh;
    margin: 10px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Sections */
  .services {
    padding: 40px 15px;
  }

  .services h2 {
    font-size: 26px;
  }

  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card {
    padding: 15px;
  }

  .service-card i {
    font-size: 28px;
  }

  .service-card h3 {
    font-size: 14px;
  }

  .service-card p {
    font-size: 12px;
  }

  /* Why Choose Us */
  .why-container {
    gap: 15px;
  }

  .why-card {
    padding: 20px;
  }

  .why-card i {
    font-size: 32px;
  }

  .why-card h3 {
    font-size: 15px;
  }

  .why-card p {
    font-size: 13px;
  }

  /* FAQ */
  .faq-container {
    max-width: 100%;
  }

  .faq-item summary {
    padding: 15px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 12px 15px;
    font-size: 13px;
  }

  /* Contact */
  .contact-container {
    flex-direction: column;
    gap: 25px;
  }

  .contact-info {
    max-width: 100%;
  }

  .contact-map {
    max-width: 100%;
  }

  .contact-map iframe {
    height: 250px;
  }

  /* Testimonials */
  .testimonials {
    padding: 40px 15px;
  }

  .review-container {
    gap: 15px;
  }

  .review-card {
    max-width: 100%;
  }

  /* Gallery */
  .gallery {
    padding: 40px 15px;
  }

  .gallery-container {
    gap: 15px;
  }

  .gallery-container img {
    height: 180px;
  }
}

/* PHONES (480px and below) */
@media (max-width: 480px) {
  .header {
    padding: 8px 10px;
  }

  .logo-text {
    display: none;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }

  .appointment-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-switch button {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Hero */
  .hero {
    height: 50vh;
    margin: 5px;
  }

  .hero-content {
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .hero-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Sections */
  .services {
    padding: 30px 12px;
  }

  .services h2,
  .why-choose-us h2,
  .faq h2,
  .testimonials h2,
  .gallery h2,
  .contact h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .services h2::after,
  .why-choose-us h2::after,
  .faq h2::after {
    width: 30px;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 12px;
  }

  .service-card i {
    font-size: 24px;
  }

  .why-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .why-card {
    padding: 15px;
  }

  .why-card i {
    font-size: 28px;
  }

  .why-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .why-card p {
    font-size: 12px;
  }

  /* About */
  .about-container {
    gap: 15px;
  }

  .about-image img {
    width: 100%;
    max-width: 250px;
  }

  .about-content {
    max-width: 100%;
  }

  .about-content h2 {
    font-size: 20px;
  }

  .about-content button {
    width: 100%;
  }

  /* FAQ */
  .faq {
    padding: 30px 12px;
  }

  .faq-item summary {
    padding: 12px;
    font-size: 13px;
  }

  .faq-item p {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Contact */
  .contact-info {
    text-align: center;
  }

  .contact-info p {
    flex-wrap: wrap;
  }

  .contact-btn,
  .map-btn {
    font-size: 13px;
    padding: 10px;
  }

  .emergency-cta {
    margin-top: 15px;
    padding: 12px;
  }

  .emergency-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 15px;
  }

  /* Testimonials */
  .testimonials {
    padding: 30px 12px;
  }

  .review-container {
    gap: 12px;
  }

  /* Gallery */
  .gallery {
    padding: 30px 12px;
  }

  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-container img {
    height: 150px;
  }

  /* Footer */
  .footer {
    padding: 20px 12px;
  }

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

  /* Modal */
  .modal-content {
    width: 95%;
  }
}

/* ABOUT SECTION */
.appointment-btn {
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transition: all 0.3s ease;
}

/* BUTTON HOVER */
.appointment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

/* HERO SECTION */
.hero {
  height: 85vh;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative;
}

/* DARK OVERLAY */
.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENT */
.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 20px;
}

/* HEADING */
.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

/* SUBTEXT */
.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

/* BUTTON */
.hero-btn {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.4);
}

.hero {
  height: 90vh;
}

/* Better overlay gradient */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.4)
  );
}

/* Bigger typography */
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
}

/* SERVICES SECTION */
.services {
  padding: 60px 20px;
  text-align: center;
  background: #f9fbfd;
}

.services h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* GRID */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

/* CARD */
.service-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* TEXT */
.service-card h3 {
  margin-bottom: 10px;
  color: #2563eb;
}

.service-card p {
  color: #555;
  font-size: 14px;
}

/* ICON STYLE */
.service-card i {
  font-size: 32px;
  color: #2563eb;
  margin-bottom: 15px;
  display: inline-block;
  transition: 0.3s;
}

/* ICON HOVER ANIMATION */
.service-card:hover i {
  transform: scale(1.2);
  color: #1d4ed8;
}
.service-card {
  text-align: center;
}

.service-card {
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #f0f0f0;
}

/* subtle glow effect */
.service-card:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

/* ABOUT SECTION */
.about {
  padding: 60px 20px;
  background: #ffffff;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

/* IMAGE */
.about-image img {
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CONTENT */
.about-content {
  max-width: 500px;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-content h3 {
  color: #2563eb;
  margin-bottom: 15px;
}

.about-content p {
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* LIST */
.about-content ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}

.about-content li {
  margin-bottom: 8px;
  color: #333;
}

/* BUTTON */
.about-content button {
  margin-top: 15px;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.about-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* CONTACT SECTION */
.contact {
  padding: 60px 20px;
  background: #f9fbfd;
  text-align: center;
}

.contact h2 {
  font-size: 30px;
}

.contact-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* LAYOUT */
.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* LEFT SIDE */
.contact-info {
  text-align: left;
  max-width: 400px;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #555;
}

.about-image img {
  border-radius: 16px;
}

/* better typography */
.about-content h2 {
  font-weight: 600;
}

.about-content p {
  font-size: 15px;
}

/* BUTTONS */
.contact-btn,
.map-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* WhatsApp Button */
.contact-btn {
  background: #25d366;
  color: white;
}

/* Map Button */
.map-btn {
  background: #2563eb;
  color: white;
}

/* MAP */
.contact-map iframe {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* TESTIMONIALS */
.testimonials {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.testimonial-card {
  border-radius: 16px;
  padding: 25px;
}

/* subtle hover */
.testimonial-card:hover {
  transform: translateY(-5px);
}
.testimonial-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.testimonial-card {
  background: #f9fbfd;
  padding: 20px;
  border-radius: 12px;
  max-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
  font-style: italic;
  color: #555;
}

.testimonial-card h4 {
  margin-top: 10px;
  color: #2563eb;
}

/* GALLERY */
.gallery {
  padding: 60px 20px;
  text-align: center;
  background: #f9fbfd;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 900px;
  margin: auto;
  margin-top: 30px;
}

.gallery-container img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery-container img:hover {
  transform: scale(1.05);
}

.gallery-container img {
  border-radius: 12px;
  transition: all 0.4s ease;
}

.gallery-container img:hover {
  transform: scale(1.07);
  filter: brightness(1.05);
}

button,
.hero-btn,
.appointment-btn,
.contact-btn,
.map-btn {
  border-radius: 30px;
  font-weight: 600;
}

.animate {
  transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* subtle divider spacing */
h2 {
  letter-spacing: 0.3px;
}

/* better input feel */
input,
select,
textarea {
  transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* FOOTER */
.footer {
  background: #0d1b2a;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer p {
  margin: 5px 0;
  color: #ccc;
}

.footer h3 {
  margin-bottom: 10px;
}

.footer .copyright {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
}

/* FORM SECTION */
.appointment {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 15px;
}

/* INPUTS */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

textarea {
  height: 70px;
  resize: none;
}

/* FOOTER TEXT */
.clinic-time {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: gray;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE STYLES */
/* ================= MOBILE (≤768px) ================= */
@media (max-width: 768px) {
  /* HEADER */
  .header {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 12px;
    border-radius: 20px;
  }

  /* TOP ROW */
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* LOGO */
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo img {
    width: 32px;
    height: 32px;
  }

  .clinic-name {
    font-size: 14px;
  }

  .doctor-name {
    font-size: 11px;
  }

  /* HAMBURGER */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  .menu-toggle span {
    height: 3px;
    width: 100%;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* NAV */
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0 !important;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .nav a {
    padding: 12px;
    font-size: 15px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a:hover::after {
    display: none;
  }

  /* BUTTON */
  .appointment-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 25px;
  }

  .header-actions {
    width: 100%;
    flex-direction: row;
    gap: 6px;
  }

  .lang-switch {
    transform: scale(1.1);
  }

  .appointment-btn {
    padding: 10px;
    font-size: 14px;
    width: 100%;
  }

  /* HERO */
  .hero {
    margin: 10px;
    border-radius: 15px;
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 14px;
  }

  /* SERVICES */
  .services-container {
    grid-template-columns: 1fr !important;
  }

  /* ABOUT */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 240px;
  }

  /* CONTACT */
  .contact-container {
    flex-direction: column;
  }

  /* FLOATING BAR */
  .floating-bar {
    bottom: 15px;
    font-size: 13px;
    padding: 6px 12px;
  }

  /* WHATSAPP BUTTON */
  .whatsapp-float {
    bottom: 90px;
  }
}

/* ================= TABLET (≤1024px) ================= */
@media (max-width: 1024px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .hero {
    height: 75vh;
  }
}
/* INITIAL STATE */
.animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* WHEN VISIBLE */
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

button,
.hero-btn,
.appointment-btn {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

.gallery-container img {
  transition: all 0.4s ease;
}

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

.animate:nth-child(1) {
  transition-delay: 0.1s;
}
.animate:nth-child(2) {
  transition-delay: 0.2s;
}
.animate:nth-child(3) {
  transition-delay: 0.3s;
}

.nav a.active {
  color: #2563eb;
  font-weight: bold;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 22px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
section {
  scroll-margin-top: 100px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* SECTION BACKGROUND SYSTEM */

/* HERO stays image */

/* SERVICES */
.services {
  background: #f8fbff;
}

/* ABOUT */
.about {
  background: #ffffff;
}

/* GALLERY */
.gallery {
  background: #f1f5f9;
}

/* TESTIMONIALS */
.testimonials {
  background: #ffffff;
}

/* CONTACT */
.contact {
  background: #f8fbff;
}

/* APPOINTMENT FORM */
.appointment {
  background: #eef4ff;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  width: 0%;
  z-index: 9999;
}

.floating-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;

  background: #2563eb;
  color: white;

  padding: 8px 14px;
  border-radius: 30px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

  transition: all 0.4s ease;
  z-index: 999;
}

/* WHEN VISIBLE */
.floating-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.floating-bar button {
  background: white;
  color: #2563eb;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.reviews {
  padding: 60px 20px;
  background: #ffffff;
  text-align: center;
}

.review-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.review-card {
  background: #f9fbfd;
  padding: 20px;
  border-radius: 12px;
  max-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
