/* ==========================================================================
   Shifa Dental Clinic - Apple Precision & Futuristic Glowing Emerald CSS
   Location: CIT Nagar, Chennai
   ========================================================================== */

:root {
  /* Color Palette - Deep Dark Obsidian & Emerald Cyber Glow */
  --bg-dark: #070b12;
  --bg-dark-alt: #0d1424;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(0, 245, 160, 0.06);

  /* Brand Emerald Accents */
  --emerald-primary: #00f5a0;
  --emerald-secondary: #00d2ff;
  --emerald-dark: #059669;
  --emerald-deep: #022c22;
  --accent-cyan: #38bdf8;
  --accent-gold: #f59e0b;
  --whatsapp-green: #25D366;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #00f5a0;

  /* Glass Borders & Glows */
  --border-glass: rgba(0, 245, 160, 0.2);
  --border-glass-bright: rgba(0, 245, 160, 0.5);
  --border-dark: rgba(255, 255, 255, 0.08);

  --glow-sm: 0 0 15px rgba(0, 245, 160, 0.25);
  --glow-md: 0 0 30px rgba(0, 245, 160, 0.35);
  --glow-lg: 0 0 60px rgba(0, 245, 160, 0.3), 0 0 100px rgba(0, 210, 255, 0.2);
  --glow-box: inset 0 0 20px rgba(0, 245, 160, 0.15), 0 0 30px rgba(0, 245, 160, 0.2);

  /* Fonts & Radius */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* Ambient Glowing Background Orbs */
.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #00f5a0 0%, rgba(0, 245, 160, 0) 70%);
  top: -150px;
  right: -100px;
}

.glow-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #00d2ff 0%, rgba(0, 210, 255, 0) 70%);
  bottom: 10%;
  left: -200px;
  animation-delay: -7s;
}

.glow-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #059669 0%, rgba(5, 150, 105, 0) 70%);
  top: 45%;
  right: 15%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-50px, 40px) scale(0.95); }
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(0, 245, 160, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 5rem 0;
}

.bg-dark-alt {
  background-color: var(--bg-dark-alt);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Typography & Gradients
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #00f5a0 70%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #00f5a0 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  margin-bottom: 3rem;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 0.65rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0.65rem auto 0;
  line-height: 1.6;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Futuristic Glass Cards
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glass-bright);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}

/* Futuristic Glowing Badge */
.badge-futuristic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald-primary);
  letter-spacing: 0.02em;
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #25D366;
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem !important;
  font-size: 0.85rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, #00f5a0 0%, #059669 100%);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0, 245, 160, 0.55);
  transform: translateY(-2px);
}

.btn-whatsapp-submit {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
  font-weight: 700;
  font-size: 1rem;
}

.btn-whatsapp-submit:hover {
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(0, 245, 160, 0.12);
  border-color: var(--emerald-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-phone {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700;
}

.btn-phone:hover {
  background: rgba(37, 211, 102, 0.22);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header Navigation Bar - Refined Apple Sleek Layout (64px Height)
   -------------------------------------------------------------------------- */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  z-index: 10000 !important;
  background: rgba(7, 11, 18, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 245, 160, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}

.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
}

.logo-link {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  height: 42px !important;
  flex-shrink: 0 !important;
}

.brand-logo-img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 0 6px rgba(0, 245, 160, 0.3));
}

.logo-text-group {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.logo-brand {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.logo-subtext {
  font-size: 0.58rem !important;
  letter-spacing: 0.13em !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin-top: 1px !important;
  line-height: 1 !important;
}

.nav-container {
  display: flex !important;
  align-items: center !important;
}

.mobile-drawer-header,
.mobile-drawer-cta {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.2rem 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
  transition: width var(--transition-fast);
}

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

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-shrink: 0 !important;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  position: relative;
  z-index: 10002 !important;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 6.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 1rem 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-dark);
}

.stat-item h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--emerald-primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass-bright);
  box-shadow: var(--glow-lg);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
}

.hero-clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-visual-card:hover .hero-clinic-img {
  transform: scale(1.03);
}

.image-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 11, 18, 0.85) 100%);
  pointer-events: none;
}

.scanner-floating-badge {
  position: absolute;
  padding: 0.5rem 0.9rem;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.badge-top-right {
  top: 15px;
  right: 15px;
}

.badge-bottom-left {
  bottom: 15px;
  left: 15px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-card {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  position: relative;
}

.about-clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  padding: 0.85rem;
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  color: var(--emerald-primary);
  font-size: 0.9rem;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 245, 160, 0.15);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Doctor / Lead Specialist Section
   -------------------------------------------------------------------------- */
.doctor-card-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
}

.doctor-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.doctor-profile-img-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-glass-bright);
  box-shadow: var(--glow-md);
  flex-shrink: 0;
  background: var(--bg-dark-alt);
}

.doctor-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-primary);
  background: rgba(0, 245, 160, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.doctor-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.doctor-qualifications {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-primary);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.doctor-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.doctor-specialties-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.specialty-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: var(--glow-sm);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link {
  color: var(--emerald-primary);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 0.75rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Gallery Tour & Achievements Grid (3-Column Layout)
   -------------------------------------------------------------------------- */
.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-card {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-img-wrapper {
  height: 280px;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.gallery-info {
  padding: 1.25rem;
}

.gallery-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.gallery-info p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Contact & Location Grid
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.25);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.map-placeholder-header {
  margin-bottom: 1rem;
}

.map-placeholder-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.map-placeholder-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.map-frame-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.footer {
  background-color: #04070d;
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Appointment Modal & Forms
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

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

.modal-content {
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
  box-shadow: var(--glow-lg);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Before & After Clinical Comparison Slider Components
   -------------------------------------------------------------------------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.ba-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem !important;
  border-radius: var(--radius-md);
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-select: none;
  background-color: #030712;
  --slider-pos: 50%;
  border: 1px solid var(--border-glass);
  cursor: ew-resize;
  touch-action: pan-y; /* Allows smooth vertical scrolling on mobile while enabling horizontal slider drag */
}

.ba-slider:active {
  cursor: grabbing;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Base layer (Right side): After Image */
.ba-after-img {
  z-index: 1;
}

/* Top layer (Left side): Before Image clipped from 0 to slider-pos */
.ba-before-img {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--slider-pos)) 0 0);
}

.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 6;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.ba-tag-before {
  left: 14px;
  background: rgba(3, 7, 18, 0.88);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.ba-tag-after {
  right: 14px;
  background: rgba(0, 245, 160, 0.22);
  color: #00f5a0;
  border: 1px solid rgba(0, 245, 160, 0.55);
  box-shadow: 0 0 14px rgba(0, 245, 160, 0.35);
}

.ba-divider {
  position: absolute;
  top: 0;
  left: var(--slider-pos);
  width: 3px;
  height: 100%;
  background: #00f5a0;
  box-shadow: 0 0 14px rgba(0, 245, 160, 0.9);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #070b12;
  border: 2.5px solid #00f5a0;
  color: #00f5a0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.7);
  pointer-events: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider:hover .ba-handle,
.ba-slider:active .ba-handle {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 30px rgba(0, 245, 160, 0.9);
}

.ba-range-input {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.ba-caption-box {
  padding-top: 1.25rem;
}

.ba-caption-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.ba-caption-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ba-caption-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Implant Gallery Grid & Cards
   -------------------------------------------------------------------------- */
.implant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .implant-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.implant-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem !important;
  border-radius: var(--radius-md);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.implant-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-bright);
  box-shadow: var(--glow-md);
}

.implant-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #030712;
  border: 1px solid var(--border-glass);
}

.implant-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.implant-card:hover .implant-img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   APPLE MOBILE SPECIFIC RESPONSIVE OVERHAUL
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  /* Doctor Card Mobile */
  .doctor-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .doctor-specialties-tags {
    justify-content: center;
  }

  /* Sticky Header on Mobile */
  .header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    z-index: 9000 !important;
  }

  .brand-logo-img {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 100px !important;
  }

  .logo-brand {
    font-size: 0.95rem !important;
  }

  .logo-subtext {
    font-size: 0.52rem !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(0, 245, 160, 0.1) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 10px !important;
    color: var(--emerald-primary) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .nav-toggle.nav-hidden {
    display: none !important;
  }

  /* Fullscreen Apple Glass Mobile Nav Drawer */
  .mobile-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-bottom: 1rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .drawer-logo-group {
    display: flex !important;
    flex-direction: column !important;
  }

  .drawer-brand {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.04em !important;
  }

  .drawer-sub {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    color: var(--emerald-primary) !important;
    letter-spacing: 0.12em !important;
  }

  .drawer-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-primary) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--emerald-primary) !important;
  }

  .mobile-drawer-cta {
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .btn-drawer-booking {
    width: 100% !important;
    padding: 0.9rem 1.25rem !important;
    font-size: 1rem !important;
    justify-content: center !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(7, 11, 18, 0.97) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    flex-direction: column !important;
    padding: 1.25rem 1.5rem 2.5rem !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
    display: none !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
  }

  .nav-menu.active {
    display: flex !important;
    animation: fadeInMobileMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .nav-link {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    width: 100% !important;
    padding: 0.85rem 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: block !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
  }

  .nav-link.active, .nav-link:hover {
    color: var(--emerald-primary) !important;
    background: rgba(0, 245, 160, 0.08) !important;
    padding-left: 1.25rem !important;
  }

  /* Hero Section Mobile Polish */
  .hero-section {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }

  .badge-futuristic {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-content h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
    margin: 0.85rem 0 !important;
  }

  .hero-description {
    font-size: 0.98rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
  }

  .hero-stats {
    gap: 1.25rem;
    padding-top: 1.25rem;
    justify-content: space-between;
  }

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

  .stat-item p {
    font-size: 0.75rem;
  }

  .hero-image-wrapper, .about-image-card {
    height: 250px !important;
  }

  .scanner-floating-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  /* Services Grid Mobile Polish */
  .section-title {
    font-size: 1.95rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.35rem;
  }

  /* Gallery Grid Mobile Polish */
  .gallery-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-img-wrapper {
    height: 220px;
  }

  /* Footer Mobile Polish */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Modal Mobile Optimization */
  .modal-content {
    padding: 2rem 1.25rem !important;
  }
}
