/* ============================================================
   SMILELAB — EXACT DRIBBLE REFERENCE REPLICATION
   Reference: https://cdn.dribbble.com/userupload/48162328
   ============================================================ */

:root {
  --color-primary-blue: #6ea8db;
  --color-accent-lime: #DCF838;
  --color-accent-lime-hover: #e8ff4d;
  --color-white: #ffffff;
  --color-dark-charcoal: #14171f;
  --color-gray-subtle: #64748b;
  --color-outer-bg-start: #c7d6a6;
  --color-outer-bg-mid: #b8d9c5;
  --color-outer-bg-end: #bedff0;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-card: 42px;
  --radius-pill: 999px;
  
  --shadow-card: 0 35px 80px -20px rgba(50, 95, 160, 0.35), 0 15px 30px -10px rgba(0, 0, 0, 0.12);
  --shadow-badge: 0 14px 35px rgba(220, 248, 56, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-white);
  overflow-x: hidden;
  background-color: var(--color-outer-bg-start);
}

/* Outer Presentation Canvas (Matches Dribbble Mockup Gradient) */
.presentation-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 4rem;
  background: radial-gradient(circle at 15% 15%, #d1e2b6 0%, #b8dcc7 45%, #b1daf0 90%);
  position: relative;
  transition: padding 0.4s ease;
}

/* Mode Switcher Floating Pill */
.view-mode-bar {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.view-mode-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 0.5rem;
  letter-spacing: 0.04em;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn .mode-icon {
  width: 14px;
  height: 14px;
}

.mode-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.mode-btn.active {
  background: var(--color-dark-charcoal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 23, 31, 0.25);
}

/* ============================================================
   MAIN HERO CARD CANVAS (Exact Blue Medical Canvas)
   ============================================================ */
.hero-canvas {
  width: 100%;
  max-width: 1024px;
  min-height: 720px;
  height: 740px;
  background-color: var(--color-primary-blue);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 3.2rem 1.8rem;
  overflow: visible;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Particle Canvas for Dynamic Drill Mist */
#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  border-radius: var(--radius-card);
}

/* Fullscreen Mode Variant */
body.fullscreen-mode .presentation-wrapper {
  padding: 0;
  background: var(--color-primary-blue);
}

body.fullscreen-mode .hero-canvas {
  max-width: 100%;
  min-height: 100vh;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 4rem;
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 30;
  flex-shrink: 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-white);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tooth-logo-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 10px rgba(220, 248, 56, 0.5));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover .tooth-logo-icon {
  transform: rotate(-6deg) scale(1.12);
  filter: drop-shadow(0 3px 14px rgba(220, 248, 56, 0.7));
}

.brand-name {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-name-town {
  color: var(--color-accent-lime);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 16px rgba(220, 248, 56, 0.5);
  margin-left: 1px;
}

/* ============================================================
   GLASSMORPHISM NAVIGATION CAPSULE (About, Results, Pricing, Reviews, Blog)
   ============================================================ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.45rem;
  border-radius: var(--radius-pill);
  
  /* Translucent frosted glass substrate */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  
  /* High refraction backdrop blur */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  
  /* Specular glass bevel border */
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  
  /* Ambient glass shadow */
  box-shadow: 
    0 8px 32px rgba(10, 35, 75, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
    
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links:hover {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 
    0 12px 36px rgba(10, 35, 75, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Individual Glassmorphic Nav Links */
.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.42rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 20, 50, 0.25);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 4px 14px rgba(10, 30, 65, 0.14),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.nav-link:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   BREATHING DARK LIQUID GLASS CONTACTS BUTTON
   ============================================================ */
.btn-contacts.dark-liquid-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.38rem 0.42rem 0.38rem 1.45rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  
  /* Deep obsidian/midnight liquid glass substrate */
  background: linear-gradient(
    135deg,
    rgba(14, 23, 42, 0.82) 0%,
    rgba(15, 28, 52, 0.72) 50%,
    rgba(9, 16, 32, 0.88) 100%
  );
  
  /* Ultra-high refraction backdrop blur */
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  
  /* Specular glass bevel border */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(0, 0, 0, 0.65);
  
  /* Atmospheric multi-layer glass shadow + breathing glow */
  box-shadow: 
    0 8px 24px rgba(3, 8, 20, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
    inset 0 -1.5px 3px rgba(0, 0, 0, 0.6);
    
  /* Continuous hypnotic organic breathing cycle */
  animation: darkLiquidGlassBreathe 3.6s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Floating liquid specular highlight sheen */
.liquid-glass-reflection {
  position: absolute;
  top: 0;
  left: -120%;
  width: 250%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(220, 248, 56, 0.16) 55%,
    transparent 70%
  );
  animation: liquidGlassSheenSweep 5.4s ease-in-out infinite;
}

/* Button text: Crisp brilliant white */
.btn-contacts.dark-liquid-glass .btn-contacts-text {
  position: relative;
  z-index: 2;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Arrow circle: Luminous neon lime lens with inner dark depth */
.btn-contacts.dark-liquid-glass .btn-contacts-badge {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DCF838 0%, #B4EE12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1528;
  box-shadow: 
    0 2px 10px rgba(220, 248, 56, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease;
}

/* Interactive Hover state */
.btn-contacts.dark-liquid-glass:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(220, 248, 56, 0.5);
  border-top-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 14px 34px rgba(2, 6, 18, 0.65),
    0 0 20px rgba(220, 248, 56, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(0, 0, 0, 0.7);
}

.btn-contacts.dark-liquid-glass:hover .btn-contacts-badge {
  transform: rotate(45deg) scale(1.08);
  box-shadow: 0 0 16px rgba(220, 248, 56, 0.75);
}

.btn-contacts.dark-liquid-glass:active {
  transform: scale(0.97);
}

/* Organic Respiratory Breathing Animation */
@keyframes darkLiquidGlassBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 8px 24px rgba(3, 8, 20, 0.5),
      0 2px 6px rgba(0, 0, 0, 0.4),
      0 0 0 0 rgba(220, 248, 56, 0),
      inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
      inset 0 -1.5px 3px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.18);
  }
  50% {
    transform: scale(1.036);
    box-shadow: 
      0 12px 32px rgba(2, 7, 18, 0.68),
      0 0 20px rgba(220, 248, 56, 0.28),
      0 0 0 1px rgba(220, 248, 56, 0.22),
      inset 0 1.5px 3px rgba(255, 255, 255, 0.5),
      inset 0 -2px 5px rgba(0, 0, 0, 0.7);
    border-color: rgba(220, 248, 56, 0.35);
  }
}

/* Fluid Liquid Sheen Sweep across the Glass */
@keyframes liquidGlassSheenSweep {
  0% {
    left: -120%;
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
  60% {
    left: 120%;
    opacity: 0.8;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

.arrow-icon {
  width: 15px;
  height: 15px;
}

/* ============================================================
   HERO BODY & TWO-COLUMN LAYOUT
   ============================================================ */
.hero-body {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  position: relative;
  z-index: 20;
  margin-top: 1.2rem;
}

/* Left Column */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  z-index: 25;
}

.hero-headline-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 0.5rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 5.2rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  
  /* Bold Matte White Finish — Crisp High-Contrast Tactile Depth with Zero Fuzzy Glow */
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.35),
    0 3px 6px rgba(18, 48, 86, 0.42),
    0 8px 18px rgba(12, 34, 66, 0.26);
    
  transition: transform 0.3s ease;
}

.headline-row {
  display: block;
  transition: transform 0.25s ease;
}

.headline-row:hover {
  transform: translateX(4px);
}

.row-with-avatars {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: nowrap;
}

.headline-word-smile {
  display: inline-block;
  position: relative;
  color: #ffffff;
  
  /* Matching Bold Matte White Depth */
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.35),
    0 3px 6px rgba(18, 48, 86, 0.42),
    0 8px 18px rgba(12, 34, 66, 0.26);
}

/* Neumorphic Tactile Pill for the Avatars Cluster */
.avatars-cluster {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #6ea8db;
  box-shadow: 
    6px 6px 14px rgba(35, 80, 135, 0.42),
    -5px -5px 12px rgba(255, 255, 255, 0.6),
    inset 1px 1px 1.5px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  transform-origin: left center;
}

.avatars-cluster:hover {
  transform: scale(1.08);
  box-shadow: 
    8px 8px 18px rgba(30, 75, 130, 0.48),
    -7px -7px 16px rgba(255, 255, 255, 0.75);
}

.avatars-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-pill);
  display: block;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  letter-spacing: -0.01em;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 700;
}

/* Patient Spotlight (Bottom Left) */
.patient-spotlight {
  position: relative;
  width: 255px;
  margin-left: 0.8rem;
  margin-bottom: -1.8rem;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.patient-spotlight:hover {
  transform: translateY(-4px);
}

.patient-spotlight-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 0 28px;
}

/* Right Column (Tooth & Miniature Animated Cleaning Team) */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
}

.tooth-sculpture-wrap {
  position: absolute;
  right: -3.2rem;
  bottom: -1.8rem;
  width: 545px;
  height: auto;
  pointer-events: auto;
  transform: none !important;
  transition: none !important;
  cursor: default;
}

.tooth-sculpture-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 var(--radius-card) 0;
  user-drag: none;
  -webkit-user-drag: none;
}

/* Dynamic Enamel Plaque & Stain Cleaning Canvas */
.enamel-stain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 0 0 var(--radius-card) 0;
}

/* Enamel Specular Gleam / Pearlescent Shine Sweep */
.enamel-gleam-overlay {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 65%;
  height: 55%;
  pointer-events: none;
  border-radius: 40% 40% 50% 50%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(220, 248, 56, 0.3) 53%,
    transparent 68%,
    transparent 100%
  );
  background-size: 250% 250%;
  mix-blend-mode: overlay;
  z-index: 12;
  animation: enamelGleamSweep 4.5s ease-in-out infinite;
}

@keyframes enamelGleamSweep {
  0% {
    background-position: 200% 0%;
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  45% {
    background-position: -50% 100%;
    opacity: 0.9;
  }
  60%, 100% {
    background-position: -100% 100%;
    opacity: 0;
  }
}

/* ============================================================
   ANIMATED DENTIST MOTION LAYERS
   ============================================================ */
.dentist-layer {
  position: absolute;
  z-index: 18;
  pointer-events: auto;
  transform-origin: center bottom;
  transition: filter 0.25s ease;
}

.dentist-layer-img {
  display: none !important;
}

/* Dentist 1: Scaffolding Buffer & Rotary Polishing Motion */
.dentist-1-buffer {
  left: 17.117%;
  top: 27.977%;
  width: 23.423%;
  animation: dentist1Buff 1.4s ease-in-out infinite;
}

@keyframes dentist1Buff {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(1.5px, -1.2px) rotate(0.8deg);
  }
  50% {
    transform: translate(0.5px, 0.5px) rotate(-0.4deg);
  }
  75% {
    transform: translate(-1.2px, 1.2px) rotate(-0.8deg);
  }
}

/* Spinning Rotary Buffer Wheel */
.buffer-polisher-effect {
  position: absolute;
  top: 35%;
  right: -5%;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.buffer-spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle, rgba(220, 248, 56, 0.5) 0%, rgba(255, 255, 255, 0.2) 70%);
  animation: spinBufferWheel 0.12s linear infinite;
  box-shadow: 0 0 10px rgba(220, 248, 56, 0.6);
}

@keyframes spinBufferWheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Dentist 2: Top-Left Precision Micro-Scaler Motion */
.dentist-2-scraper {
  left: 33.333%;
  top: 10.76%;
  width: 17.117%;
  animation: dentist2Scrape 1.8s ease-in-out infinite;
}

@keyframes dentist2Scrape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(2.5px, 2px) rotate(1.2deg);
  }
  60% {
    transform: translate(1px, -1px) rotate(-0.6deg);
  }
  85% {
    transform: translate(3px, 1.5px) rotate(0.9deg);
  }
}

.scaler-tip-gleam {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9), 0 0 20px 6px rgba(110, 168, 219, 0.6);
  animation: pulseScalerTip 0.6s ease-in-out infinite alternate;
}

@keyframes pulseScalerTip {
  from {
    opacity: 0.3;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* Dentist 3: Top-Center Heavy Drill & Water Jet (High-Frequency Jitter) */
.dentist-3-drill {
  left: 50.45%;
  top: 6.456%;
  width: 19.82%;
  /* Keep the drill overlay anchored; only its rotor and light effects should move. */
  animation: none;
}

@keyframes dentist3DrillVibrate {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(0.8px, -0.9px);
  }
  50% {
    transform: translate(-0.6px, 0.5px);
  }
  75% {
    transform: translate(0.5px, 0.7px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Drill Nozzle Impact Rotor & Glow */
.drill-tip-emitter {
  position: absolute;
  bottom: -4px;
  left: 42%;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.drill-spin-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dotted rgba(255, 255, 255, 0.9);
  animation: spinBufferWheel 0.08s linear infinite;
}

.drill-water-impact-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 30%, rgba(220, 248, 56, 0.8) 70%, transparent 100%);
  box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.9), 0 0 24px 8px rgba(220, 248, 56, 0.5);
  animation: drillFlashPulse 0.15s ease-in-out infinite alternate;
}

@keyframes drillFlashPulse {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  to {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

/* Dentist 4: Top-Right Suction Wand & Hose (Sweeping Motion) */
.dentist-4-suction {
  left: 73.874%;
  top: 10.043%;
  width: 21.622%;
  animation: dentist4SuctionSweep 2.6s ease-in-out infinite;
}

@keyframes dentist4SuctionSweep {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  35% {
    transform: rotate(-1.8deg) translate(-4px, 3px);
  }
  70% {
    transform: rotate(1.2deg) translate(2px, -1px);
  }
}

.suction-vacuum-glow {
  position: absolute;
  bottom: 8%;
  left: 5%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 248, 56, 0.9) 0%, transparent 80%);
  animation: pulseScalerTip 0.4s ease-in-out infinite alternate;
}

/* Canvas Dedicated to Water Spray Jet, Splashing Droplets & Sparkles */
#cleaningParticlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 22;
}

/* ============================================================
   ACTIVE DENTAL CLEANING HUD BAR
   ============================================================ */
.cleaning-hud-bar {
  position: absolute;
  top: 0.4rem;
  right: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 25, 45, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.35rem 0.65rem 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  user-select: none;
}

.cleaning-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseLed 1s infinite alternate;
}

@keyframes pulseLed {
  from {
    opacity: 0.6;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

.status-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Tooth Cleanliness Meter */
.cleaning-meter-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.meter-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clean-bar-rail {
  width: 52px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.clean-bar-fill {
  height: 100%;
  width: 45%;
  border-radius: 3px;
  background: linear-gradient(90deg, #dcf838, #ffffff);
  box-shadow: 0 0 8px rgba(220, 248, 56, 0.8);
  transition: width 0.25s ease-out;
}

.clean-percentage {
  font-variant-numeric: tabular-nums;
  color: #dcf838;
  font-weight: 700;
  min-width: 30px;
}

.cleaning-modes-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px;
  border-radius: var(--radius-pill);
}

.hud-mode-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hud-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hud-mode-btn.active {
  background: var(--color-accent-lime);
  color: var(--color-dark-charcoal);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 248, 56, 0.4);
}

.cleaning-actions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.hud-action-btn:active {
  transform: scale(0.95);
}

.hud-sound-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

/* Patient Spotlight Celebratory Breathing Animation */
.patient-spotlight {
  animation: womanCelebration 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes womanCelebration {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}


#drillAnchor2 {
  top: 135px;
  left: 375px;
}

/* ============================================================
   ROTATING STAMP BADGE (Bottom Center Frame Break)
   ============================================================ */
.rotating-stamp-container {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-40px);
  z-index: 45;
}

.stamp-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  width: 126px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-badge);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  outline: none;
}

.stamp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 45px rgba(220, 248, 56, 0.65);
}

.stamp-btn:active {
  transform: scale(0.96);
}

/* Rotating SVG Ring */
.stamp-svg-ring {
  width: 100%;
  height: 100%;
  animation: spinStamp 18s linear infinite;
  transform-origin: center center;
}

.stamp-btn:hover .stamp-svg-ring {
  animation-play-state: paused;
}

@keyframes spinStamp {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.stamp-circular-text {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  fill: var(--color-dark-charcoal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Center Arrow */
.stamp-center-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-charcoal);
  pointer-events: none;
  transition: transform 0.25s ease;
}

.stamp-btn:hover .stamp-center-arrow {
  transform: translate(-50%, -50%) rotate(45deg);
}

.stamp-arrow-icon {
  width: 32px;
  height: 32px;
}

/* ============================================================
   MODALS (Consultation Booking & Contacts)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  color: var(--color-dark-charcoal);
  border-radius: 28px;
  padding: 2.2rem 2.4rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-header {
  margin-bottom: 1.6rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f8e9;
  color: #33691e;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.modal-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
}

/* Form Fields */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Treatment Pills */
.treatment-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.treatment-pill {
  border: 1.5px solid #e2e8f0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.treatment-pill input {
  display: none;
}

.treatment-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.treatment-pill.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* Submit Button */
.btn-submit-booking {
  margin-top: 0.6rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-submit-booking:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.btn-submit-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-submit-booking:hover .btn-submit-arrow {
  transform: translateX(3px);
}

/* Booking Success State */
.booking-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
}

.booking-success-state.show {
  display: flex;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.success-check {
  width: 32px;
  height: 32px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.success-msg {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-close-success {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}

/* Contacts Modal */
.modal-contacts-card {
  max-width: 480px;
}

.contacts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.contact-card:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.contact-card.contact-wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.contact-card-icon {
  font-size: 1.4rem;
}

.contact-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-card.contact-wa .contact-card-label {
  color: #15803d;
}

.contact-card-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

/* ============================================================
   RESPONSIVE SCALING FOR TABLETS & MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-canvas {
    max-width: 96%;
    height: auto;
    min-height: 700px;
    padding: 2rem 2rem 3rem;
  }
  .hero-headline {
    font-size: 4.4rem;
  }
  .tooth-sculpture-wrap {
    width: 460px;
    right: -2rem;
  }
}

@media (max-width: 860px) {
  .presentation-wrapper {
    padding: 1rem 0.5rem 3rem;
  }
  .hero-canvas {
    border-radius: 28px;
    padding: 1.5rem 1.5rem 3.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-headline {
    font-size: 3.6rem;
  }
  .tooth-sculpture-wrap {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  .patient-spotlight {
    margin-left: 0;
    width: 220px;
  }
  .rotating-stamp-container {
    bottom: -35px;
    transform: translateX(-50%);
  }
  .stamp-btn {
    width: 105px;
    height: 105px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .avatars-img {
    height: 38px;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Keep the composite tooth artwork and its attached figures locked in place. */
#toothSculptureWrap,
#toothSculptureWrap > #toothImg,
#toothSculptureWrap > .dentist-layer {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

#toothSculptureWrap > #toothImg {
  opacity: 1 !important;
  visibility: visible !important;
}