/* ═══════════════════════════════════════════════════════
   Dr. Hossame Bakraoui — Liquid Glass & Claymorphism
   ═══════════════════════════════════════════════════════ */

/* Google Fonts loaded via link in HTML to avoid render-blocking import */

:root {
  /* DARK THEME (Default) */
  --c-bg: #181a1b;
  /* Charcoal Gray */
  --c-bg-light: #222426;

  /* Glassmorphism primitives */
  --glass-bg: rgba(18, 20, 21, 0.85);
  /* Plus opaque (Sombre) */
  --glass-border-1: rgba(255, 255, 255, 0.2);
  /* Top/Left Gloss */
  --glass-border-2: rgba(255, 255, 255, 0.05);
  /* Bottom/Right */
  --glass-shadow-drop: 8px 12px 32px rgba(0, 0, 0, 0.6);
  --glass-shadow-inner-gloss: inset 1px 1px 4px rgba(255, 255, 255, 0.12);
  --glass-shadow-inner-depth: inset -4px -4px 10px rgba(0, 0, 0, 0.8);

  --c-accent: #cca852;
  /* Gold */
  --c-accent-hover: #e0c27a;

  --c-text: #ffffff;
  --c-text-sec: #a0abc0;

  --border-color: rgba(255, 255, 255, 0.08);

  /* Ambient Blobs (Dark) */
  --blob-1: #2c2f33;
  --blob-2: #222426;
  --blob-3: #cca852;

  /* Neumorphic Toggle Colors - Dark */
  --n-bg: #2a2d3e;
  --n-shadow-1: #1c1e2b;
  --n-shadow-2: #383c51;
  --n-ball: #575e7a;
  --n-icon: #828ba3;

  --f-heading: 'Playfair Display', serif;
  --f-body: 'Inter', sans-serif;
  --nav-h: 120px;
}

[data-theme="light"] {
  /* LIGHT THEME (Liquid Glass) */
  --c-bg: #fcfcfc;
  /* Editorial paper grey */
  --c-bg-light: #ffffff;

  /* Liquid Glass + Claymorphism Overrides */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border-1: rgba(255, 255, 255, 1);
  --glass-border-2: rgba(255, 255, 255, 0.3);
  --glass-shadow-drop: 8px 16px 40px rgba(93, 193, 200, 0.08);
  --glass-shadow-inner-gloss: inset 2px 2px 6px rgba(255, 255, 255, 0.9);
  --glass-shadow-inner-depth: inset -4px -4px 12px rgba(0, 0, 0, 0.05);

  --c-accent: #5DC1C8;
  /* New Turquoise (Replaced Deep Blue) */
  --c-accent-hover: #4ca8ae;

  --c-text: #1a1a1a;
  --c-text-sec: #555555;

  --border-color: rgba(0, 0, 0, 0.08);

  /* Ambient Blobs (Light) */
  --blob-1: #e0f7f8;
  --blob-2: #ffffff;
  --blob-3: #d1f0f2;

  /* Neumorphic Toggle Colors - Icy */
  --n-bg: #e0f2f3;
  --n-shadow-1: #cce7e8;
  --n-shadow-2: #ffffff;
  --n-ball: #ffffff;
  --n-icon: #5DC1C8;
}

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

html {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  scroll-behavior: smooth;
  font-size: 14px;
  transition: background 0.4s, color 0.4s;
}

/* ─── Global Elite Refinements ─── */
::selection {
  background: rgba(var(--c-accent-rgb, 204, 168, 82), 0.3);
  color: var(--c-text);
}

/* Thin Luxury Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--c-accent-rgb, 204, 168, 82), 0.2);
  border-radius: 10px;
  transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent);
}

/* Premium Shimmer Animation */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 20%,
      rgba(255, 255, 255, 0.1) 40%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 60%,
      transparent 80%);
  transform: rotate(30deg);
  transition: 0.8s;
  opacity: 0;
}

.btn-shimmer:hover::after {
  left: 100%;
  opacity: 1;
}

/* Enhanced Pulse Dot */
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ─── Ambient Liquid Background ─── */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 25s ease-in-out infinite alternate;
  opacity: 0.6;
  transition: background 0.5s ease;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: var(--blob-1);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  background: var(--blob-2);
  top: 40%;
  right: -5%;
  animation-duration: 35s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  width: 60vw;
  height: 30vw;
  background: var(--blob-3);
  bottom: -10%;
  left: 20%;
  animation-duration: 40s;
  opacity: 0.4;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(15vw, 10vh) scale(1.1);
  }

  100% {
    transform: translate(-10vw, 20vh) scale(0.9);
  }
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

[data-theme="light"] .noise-overlay {
  opacity: 0.02;
}

/* ─── Shared Liquid Glass Class ─── */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-top: 1px solid var(--glass-border-1);
  border-left: 1px solid var(--glass-border-1);
  border-bottom: 1px solid var(--glass-border-2);
  border-right: 1px solid var(--glass-border-2);
  box-shadow:
    var(--glass-shadow-drop),
    var(--glass-shadow-inner-gloss),
    var(--glass-shadow-inner-depth);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4 {
  font-family: var(--f-heading);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
}

.text-accent {
  color: var(--c-accent);
  font-style: italic;
  transition: color 0.4s;
}

[data-theme="light"] .text-accent {
  font-style: normal;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-sec);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--c-text-sec);
  max-width: 600px;
}

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

.text-center .section-subtitle {
  margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

section {
  padding: 75px 0;
  position: relative;
}

/* ─── Liquid Glass Buttons (Revised) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  /* Original rounded shape */
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border-1);
  border-left: 1px solid var(--glass-border-1);
  border-bottom: 1px solid var(--glass-border-2);
  border-right: 1px solid var(--glass-border-2);
  cursor: pointer;
  text-decoration: none;
}

/* Primary Button (Accent colored liquid) */
.btn-primary {
  background: rgba(var(--c-accent-rgb), 0.12);
  color: var(--c-text);
  border: 1px solid rgba(var(--c-accent-rgb), 0.4);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 1px 1px 3px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-primary {
  background: rgba(93, 193, 200, 0.1);
  color: #5DC1C8;
  border-color: rgba(93, 193, 200, 0.3);
}

.btn-primary:hover {
  background: var(--c-accent);
  color: #000;
  border-color: var(--c-accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .btn-primary:hover {
  background: #5DC1C8;
  color: #fff;
  border-color: #5DC1C8;
  box-shadow: 0 15px 30px rgba(93, 193, 200, 0.2);
}

.btn-primary:active {
  transform: translateY(2px) scale(0.95);
}

.btn-block {
  width: 100%;
}

/* ─── Neumorphic Theme Switch ─── */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 15px;
  cursor: pointer;
}

.icon-sun,
.icon-moon {
  color: var(--n-icon);
  transition: color 0.4s;
}

.neumorphic-toggle {
  width: 56px;
  height: 30px;
  border-radius: 30px;
  position: relative;
  background: var(--n-bg);
  box-shadow: inset 3px 3px 6px var(--n-shadow-1), inset -3px -3px 6px var(--n-shadow-2);
  transition: background 0.4s, box-shadow 0.4s;
}

.toggle-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--n-ball);
  box-shadow: 2px 2px 4px var(--n-shadow-1), -2px -2px 4px var(--n-shadow-2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, box-shadow 0.4s;
}

.neumorphic-toggle .toggle-ball {
  transform: translateX(26px);
}

[data-theme="light"] .neumorphic-toggle .toggle-ball {
  transform: translateX(0);
}

[data-theme="light"] .icon-sun {
  color: var(--c-accent);
  filter: drop-shadow(0 0 2px var(--c-accent));
}

:not([data-theme="light"]) .icon-moon {
  color: #fff;
  filter: drop-shadow(0 0 2px #fff);
}


/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border-1);
  height: 80px;
  box-shadow: var(--glass-shadow-drop);
}

/* ─── Hamburger Button ─── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border-1);
  border-left: 1px solid var(--glass-border-1);
  border-bottom: 1px solid var(--glass-border-2);
  border-right: 1px solid var(--glass-border-2);
  box-shadow: var(--glass-shadow-drop);
  transition: all 0.3s ease;
  z-index: 1010;
  position: relative;
}

.hamburger-btn:hover {
  transform: scale(1.05);
  background: rgba(204, 168, 82, 0.1);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hamburger-btn.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile Menu Overlay ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 0;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  z-index: -1;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  padding: 20px;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: 16px;
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-text-sec);
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-nav-link:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-menu.is-open .mobile-nav-link:nth-child(2) {
  transition-delay: 0.10s;
}

.mobile-menu.is-open .mobile-nav-link:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-menu.is-open .mobile-nav-link:nth-child(4) {
  transition-delay: 0.20s;
}

.mobile-menu.is-open .mobile-nav-link:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-menu.is-open .mobile-nav-link:nth-child(6) {
  transition-delay: 0.30s;
}

.mobile-nav-link:hover {
  color: var(--c-accent);
  background: rgba(204, 168, 82, 0.08);
  transform: scale(1.02) !important;
}

.mobile-nav-link.accent-link {
  color: var(--c-accent);
  font-weight: 600;
}

.mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
  opacity: 0;
  transition: opacity 0.4s 0.2s;
}

.mobile-menu.is-open .mobile-menu-divider {
  opacity: 1;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 280px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open .mobile-menu-actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.mobile-theme-label {
  font-size: 0.9rem;
  color: var(--c-text-sec);
  font-weight: 500;
}

/* ─── Mobile Menu Topbar (Logo + Close) ─── */
.mobile-menu-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s 0.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open .mobile-menu-topbar {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-heading);
  font-size: 1.1rem;
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu-brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mobile-menu-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--c-text-sec);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.1) rotate(90deg);
}

/* Body lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* Hide regular nav when mobile menu is open to prevent overlap */
body.menu-open .nav {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}


.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--f-heading);
  font-size: 1.6rem;
  transition: color 0.4s;
}

.nav-brand img {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-sec);
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--c-accent);
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

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

.hero-desc {
  font-size: 1.2rem;
  color: var(--c-text-sec);
  margin: 30px 0 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Hero Visual with Stats */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 28px;
  box-shadow: var(--glass-shadow-drop);
}

/* ─── Hero Floating Cards (Pill/Bulles Edit) ─── */
.hero-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 32px;
  border-radius: 50px;
  /* true pill shape */
  z-index: 10;
  /* animation removed */
  /* Override basic glass-effect for specific dark clay liquid pill */
  background: rgba(112, 114, 118, 0.95) !important;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.08), inset -4px -4px 12px rgba(0, 0, 0, 0.4), 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.1), inset -2px -2px 5px rgba(0, 0, 0, 0.4);
}

.card-icon.gold {
  color: #cca852;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(204, 168, 82, 0.3);
}

.card-icon.blue {
  color: #007bff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--f-body);
  line-height: 1;
  letter-spacing: -0.5px;
}

.card-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-family: var(--f-body);
  letter-spacing: 0px;
  margin-top: 4px;
}

/* ─── Services Horizontal Scroll ─── */
.services-track-container {
  width: 100%;
  overflow-x: auto;
  padding: 40px 30px;
  margin-top: 40px;
  scrollbar-width: none;
  cursor: grab;
}

.services-track-container::-webkit-scrollbar {
  display: none;
}

.services-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-bottom: 20px;
}

.service-card {
  width: 280px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 260px;
  overflow: visible;
  border-radius: 16px;
  margin-bottom: 5px;
  perspective: 1200px;
}

.service-icon-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  animation: luxuryFloat 10s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

@keyframes luxuryFloat {

  0%,
  100% {
    transform: scale(var(--base-scale)) translateY(0) rotateY(0deg) rotateZ(0deg);
    filter: brightness(1) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  }

  33% {
    transform: scale(var(--base-scale)) translateY(-12px) rotateY(6deg) rotateZ(1deg);
    filter: brightness(1.08) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }

  66% {
    transform: scale(var(--base-scale)) translateY(-6px) rotateY(-6deg) rotateZ(-1deg);
    filter: brightness(0.95) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  }
}

#imgBlanchiment {
  --base-scale: 1.21;
  animation-delay: 0s;
}

.service-card:hover #imgBlanchiment {
  transform: scale(calc(var(--base-scale) + 0.1)) translateY(-15px) rotateY(15deg);
}

#imgEsthetique {
  --base-scale: 1.3;
  animation-delay: 0s;
}

.service-card:hover #imgEsthetique {
  transform: scale(calc(var(--base-scale) + 0.1)) translateY(-15px) rotateY(15deg);
}

#imgOrthodontie {
  --base-scale: 1.0;
  animation-delay: 0s;
}

.service-card:hover #imgOrthodontie {
  transform: scale(calc(var(--base-scale) + 0.1)) translateY(-15px) rotateY(15deg);
}

#imgChirurgie {
  --base-scale: 1.0;
  animation-delay: 0s;
}

.service-card:hover #imgChirurgie {
  transform: scale(calc(var(--base-scale) + 0.1)) translateY(-15px) rotateY(15deg);
}


.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.1),
    var(--glass-shadow-inner-gloss),
    var(--glass-shadow-inner-depth);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), var(--glass-shadow-inner-gloss), var(--glass-shadow-inner-depth);
}

/* ═══════════════════════════════════════════════════════
   3D Interactive Teeth Explorer Section
   ═══════════════════════════════════════════════════════ */

.teeth3d-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.teeth3d-grid {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 40px !important;
  width: 100% !important;
}

.teeth3d-info {
  flex: 1 1 58% !important;
  max-width: 58% !important;
}

.teeth3d-viewer-wrap {
  flex: 1 1 38% !important;
  max-width: 38% !important;
  margin-top: 140px !important;
}

.teeth3d-info h2 {
  margin-bottom: 16px;
}

.teeth3d-desc {
  font-size: 1.1rem;
  color: var(--c-text-sec);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
}

/* Feature pills */
.teeth3d-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.teeth3d-feat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  cursor: default;
}

.teeth3d-feat:hover {
  transform: translateX(6px);
}

.teeth3d-feat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(204, 168, 82, 0.1);
  color: var(--c-accent);
  border: 1px solid rgba(204, 168, 82, 0.2);
  transition: all 0.3s;
}

[data-theme="light"] .teeth3d-feat-icon {
  background: rgba(93, 193, 200, 0.1);
  border-color: rgba(93, 193, 200, 0.25);
}

.teeth3d-feat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 2px;
}

.teeth3d-feat span {
  font-size: 0.8rem;
  color: var(--c-text-sec);
}

/* ── 3D Viewer Container ── */
.teeth3d-viewer-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.teeth3d-viewer-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 364px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #090a0d, #14171d, #0d0f14) !important;
}

/* Light mode: elegant neutral-cool dark slate gray to contrast with white teeth */
[data-theme="light"] .teeth3d-viewer-container {
  background: linear-gradient(145deg, #2b353a, #3f4e55, #22292d) !important;
}

/* ── Theme-Aware Tinting (Mod #2) ── */
.teeth3d-viewer-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.6s ease;
  /* Dark mode: subtle dark shadow overlay for depth */
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(204, 168, 82, 0.15);
  border-top: 1px solid rgba(204, 168, 82, 0.12);
}

[data-theme="light"] .teeth3d-viewer-container::after {
  /* Light mode: dark slate depth shadow overlay (no light color washing) */
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(93, 193, 200, 0.15);
}

.teeth3d-viewer-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 168, 82, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: teeth3dGlowPulse 6s ease-in-out infinite alternate;
}

[data-theme="light"] .teeth3d-viewer-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 65%);
}

@keyframes teeth3dGlowPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* model-viewer styling */
model-viewer {
  position: relative;
  z-index: 1;
}

model-viewer::part(default-progress-bar) {
  display: none;
}

/* Poster Image Styling (Mod #7) */
model-viewer::part(default-poster) {
  object-fit: cover;
}

/* ── Floating Tooltip for Hovered Tooth ── */
.teeth3d-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0) scale(0.9);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(18, 20, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  pointer-events: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .teeth3d-tooltip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(93, 193, 200, 0.25);
  box-shadow: 0 10px 30px rgba(93, 193, 200, 0.12);
}

.teeth3d-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.teeth3d-tooltip-title {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-accent);
}

[data-theme="light"] .teeth3d-tooltip-title {
  color: #4ba6ac;
}

.teeth3d-tooltip-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .teeth3d-tooltip-subtitle {
  color: var(--c-text-sec);
}

/* ── Camera Preset Buttons (Mod #4) ── */
.teeth3d-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin: 14px auto 0 auto;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(18, 20, 21, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  width: 100%;
  max-width: 510px;
}

.teeth3d-preset-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 1px;
  flex-shrink: 0;
}

[data-theme="light"] .teeth3d-preset-divider {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .teeth3d-presets {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(93, 193, 200, 0.15);
}

.teeth3d-preset-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

[data-theme="light"] .teeth3d-preset-btn {
  color: var(--c-text-sec);
}

.teeth3d-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="light"] .teeth3d-preset-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--c-text);
}

.teeth3d-preset-btn.active {
  background: var(--c-accent);
  color: #000;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(204, 168, 82, 0.3);
}

[data-theme="light"] .teeth3d-preset-btn.active {
  background: #5DC1C8;
  color: #fff;
  box-shadow: 0 2px 12px rgba(93, 193, 200, 0.3);
}

.teeth3d-preset-btn svg {
  flex-shrink: 0;
}

/* ── Interactive FDI Dental Chart ── */
.teeth3d-chart-container {
  margin: 24px auto 0 auto;
  padding: 18px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 21, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .teeth3d-chart-container {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(93, 193, 200, 0.15);
}

.teeth3d-chart-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

[data-theme="light"] .teeth3d-chart-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.teeth3d-chart-title {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-accent);
}

[data-theme="light"] .teeth3d-chart-title {
  color: #4ba6ac;
}

.teeth3d-chart-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .teeth3d-chart-subtitle {
  color: var(--c-text-sec);
}

.teeth3d-jaw-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jaw-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .jaw-tag {
  color: var(--c-text-sec);
}

.teeth3d-chart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.teeth3d-quadrant {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.chart-midline {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
}

[data-theme="light"] .chart-midline {
  background: rgba(0, 0, 0, 0.1);
}

.tooth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .tooth-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--c-text);
}

.tooth-btn:hover {
  background: rgba(204, 168, 82, 0.15);
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
}

[data-theme="light"] .tooth-btn:hover {
  background: rgba(93, 193, 200, 0.1);
  border-color: #5DC1C8;
  color: #4ba6ac;
}

.tooth-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #000;
  box-shadow: 0 0 10px rgba(204, 168, 82, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .tooth-btn.active {
  background: #5DC1C8;
  border-color: #5DC1C8;
  color: #fff;
  box-shadow: 0 0 10px rgba(93, 193, 200, 0.35);
}

@media (max-width: 576px) {
  .teeth3d-chart-row {
    flex-direction: column;
    gap: 8px;
  }

  .chart-midline {
    display: none;
  }

  .teeth3d-quadrant {
    width: 100%;
    justify-content: space-between;
  }

  .tooth-btn {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    border-radius: 8px;
  }

  .teeth3d-presets {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border-radius: 20px;
    padding: 8px 10px;
  }

  .teeth3d-preset-divider {
    display: none;
  }
}

/* Custom Loading Progress */
.teeth3d-progress {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 10;
  transition: opacity 0.4s;
}

.teeth3d-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--c-accent), rgba(204, 168, 82, 0.5));
  transition: width 0.3s ease;
  animation: teeth3dLoadShimmer 1.5s ease-in-out infinite;
}

@keyframes teeth3dLoadShimmer {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Interaction Hint */
.teeth3d-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: teeth3dHintFloat 3s ease-in-out infinite;
}

.teeth3d-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  animation: none;
}

[data-theme="light"] .teeth3d-hint {
  background: rgba(255, 255, 255, 0.7);
  color: var(--c-text-sec);
  border-color: rgba(0, 0, 0, 0.08);
}

@keyframes teeth3dHintFloat {

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

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

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .teeth3d-grid {
    flex-direction: column !important;
    gap: 40px !important;
  }

  .teeth3d-info {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .teeth3d-viewer-wrap {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
  }

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

  .teeth3d-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .teeth3d-features {
    max-width: 380px;
    margin: 0 auto;
  }

  .teeth3d-viewer-container {
    max-width: 100%;
    aspect-ratio: 1 / 0.9;
  }

  .teeth3d-section {
    padding: 60px 0;
  }

  .teeth3d-preset-btn span {
    display: none;
  }

  .teeth3d-preset-btn {
    padding: 8px 12px;
  }

  .teeth3d-hotspot-popup {
    width: 160px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .teeth3d-feat {
    padding: 12px 16px;
    border-radius: 14px;
  }

  .teeth3d-feat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
  }
}


/* ─── Doctor Profile ─── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.profile-image img {
  border-radius: 28px;
  box-shadow: var(--glass-shadow-drop);
}

.profile-image-wrapper {
  transform: scale(0.9);
  transform-origin: top center;
}

.lead {
  font-size: 1.3rem;
  margin: 30px 0 40px;
  color: var(--c-accent);
  font-family: var(--f-heading);
  font-style: italic;
}

.profile-credentials {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-text-sec);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.cred-item svg {
  width: 24px;
  height: 24px;
  color: var(--c-accent);
}

/* ─── Award Badge (Product Hunt) ─── */
.award-badge-link {
  display: block;
  width: 80%;
  margin: 5px auto 28px;
  text-decoration: none;
  outline: none;
  cursor: default;
}

.award-badge-inner {
  transform-origin: center center;
  transition: transform 200ms ease-out;
  will-change: transform;
  filter: drop-shadow(0 8px 28px rgba(204, 168, 82, 0.25));
}

.award-badge-link:hover .award-badge-inner {
  filter: drop-shadow(0 14px 36px rgba(204, 168, 82, 0.45));
}

/* ── Dark mode badge (golden-metallic) ── */
.ab-bg-rect {
  fill: #16130a;
}

.ab-border-rect {
  stroke: rgba(204, 168, 82, 0.5);
}

.ab-text-label {
  fill: #cca852;
  letter-spacing: 1px;
}

.ab-text-title {
  fill: #e8d09a;
}

.ab-logo-path {
  fill: #cca852;
}

/* Metallic overlays colors - Dark Mode (Default) */
.ab-o1 {
  fill: #FFD700;
}

/* Gold */
.ab-o2 {
  fill: #1a1a1a;
}

/* Metallic Black */
.ab-o3 {
  fill: #D4AF37;
}

/* Metallic Gold */
.ab-o4 {
  fill: #333333;
}

/* Steel/Iron */
.ab-o5 {
  fill: #B8860B;
}

/* Dark Gold */
.ab-o6 {
  fill: #000000;
}

/* Deep Black */
.ab-o7 {
  fill: #CFB53B;
}

/* Old Gold */
.ab-o8 {
  fill: #FFFFFF;
}

/* Highlight */

/* ── Light mode badge (cyan-diamond) ── */
[data-theme="light"] .award-badge-inner {
  filter: drop-shadow(0 8px 28px rgba(0, 160, 200, 0.22));
}

[data-theme="light"] .award-badge-link:hover .award-badge-inner {
  filter: drop-shadow(0 14px 36px rgba(0, 160, 200, 0.42));
}

[data-theme="light"] .ab-bg-rect {
  fill: #e8f6fa;
}

[data-theme="light"] .ab-border-rect {
  stroke: rgba(0, 155, 195, 0.45);
}

[data-theme="light"] .ab-text-label {
  fill: #0077a0;
}

[data-theme="light"] .ab-text-title {
  fill: #004d6b;
}

[data-theme="light"] .ab-logo-path {
  fill: #009bbf;
}

/* Metallic overlays colors - Light Mode (Cyan Diamond) */
[data-theme="light"] .ab-o1 {
  fill: #00FFFF;
}

/* Cyan Diamond */
[data-theme="light"] .ab-o2 {
  fill: #F5F5F5;
}

/* Light Grey White */
[data-theme="light"] .ab-o3 {
  fill: #E0FFFF;
}

/* Light Cyan */
[data-theme="light"] .ab-o4 {
  fill: #FFFFFF;
}

/* Pure Diamond */
[data-theme="light"] .ab-o5 {
  fill: #AFEEEE;
}

/* Pale Turquoise */
[data-theme="light"] .ab-o6 {
  fill: #D3D3D3;
}

/* Light Silver */
[data-theme="light"] .ab-o7 {
  fill: #00CED1;
}

/* Dark Cyan Diamond */
[data-theme="light"] .ab-o8 {
  fill: #F0F8FF;
}

/* Alice Blue */


.award-badge-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

/* Idle shimmer animations for each rainbow polygon */
@keyframes ab-spin1 {

  0%,
  100% {
    transform: rotate(0deg)
  }

  50% {
    transform: rotate(10deg)
  }
}

@keyframes ab-spin2 {

  0%,
  100% {
    transform: rotate(10deg)
  }

  50% {
    transform: rotate(20deg)
  }
}

@keyframes ab-spin3 {

  0%,
  100% {
    transform: rotate(20deg)
  }

  50% {
    transform: rotate(30deg)
  }
}

@keyframes ab-spin4 {

  0%,
  100% {
    transform: rotate(30deg)
  }

  50% {
    transform: rotate(40deg)
  }
}

@keyframes ab-spin5 {

  0%,
  100% {
    transform: rotate(40deg)
  }

  50% {
    transform: rotate(50deg)
  }
}

@keyframes ab-spin6 {

  0%,
  100% {
    transform: rotate(50deg)
  }

  50% {
    transform: rotate(60deg)
  }
}

@keyframes ab-spin7 {

  0%,
  100% {
    transform: rotate(60deg)
  }

  50% {
    transform: rotate(70deg)
  }
}

@keyframes ab-spin8 {

  0%,
  100% {
    transform: rotate(70deg)
  }

  50% {
    transform: rotate(80deg)
  }
}

.ab-overlay {
  transform-origin: center center;
  transition: transform 200ms ease-out;
  will-change: transform;
}

.ab-o1 {
  animation: ab-spin1 5s infinite;
}

.ab-o2 {
  animation: ab-spin2 5s infinite;
}

.ab-o3 {
  animation: ab-spin3 5s infinite;
}

.ab-o4 {
  animation: ab-spin4 5s infinite;
}

.ab-o5 {
  animation: ab-spin5 5s infinite;
}

.ab-o6 {
  animation: ab-spin6 5s infinite;
}

.ab-o7 {
  animation: ab-spin7 5s infinite;
}

.ab-o8 {
  animation: ab-spin8 5s infinite;
}

/* Pause idle animation while user hovers (JS takes over) */
.award-badge-link.is-hovering .ab-overlay {
  animation: none;
}

/* ─── Before / After ─── */
.ba-slider-container {
  max-width: 700px;
  margin: 60px auto 0;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  user-select: none;
  background: var(--c-surface);
  /* helps blend contained borders */
}

.ba-slider-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ba-image-before {
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8) 10%, rgba(255, 255, 255, 0.8) 90%, transparent);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.ba-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 15px rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 16l-4-4 4-4m4 8l4-4-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: ew-resize;
}

[data-theme="light"] .ba-handle::after {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 30px rgba(0, 51, 160, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230033a0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M10 16l-4-4 4-4m4 8l4-4-4-4'/%3E%3C/svg%3E");
}

.ba-slider-container:hover .ba-handle::after {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .ba-slider-container:hover .ba-handle::after {
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 15px 40px rgba(0, 51, 160, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Premium Grid and Cards for Cas Cliniques */
.cas-cliniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: start;
  margin-top: 50px;
}

.cas-clinique-card {
  width: 100%;
  max-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cas-clinique-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), var(--glass-shadow-inner-gloss), var(--glass-shadow-inner-depth);
}

[data-theme="light"] .cas-clinique-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1), var(--glass-shadow-inner-gloss), var(--glass-shadow-inner-depth);
}

.cas-clinique-header {
  text-align: center;
}

.cas-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-accent);
  color: var(--c-bg);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(204, 168, 82, 0.3);
}

[data-theme="light"] .cas-badge {
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 51, 160, 0.3);
}

.cas-title {
  color: var(--c-text);
  font-size: 1.3rem;
  margin: 0;
  font-family: var(--f-heading);
}

.cas-clinique-card .ba-slider-container {
  margin: 0;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .cas-clinique-card .ba-slider-container {
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ─── Feedbacks ─── */
.feedbacks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feedback-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s;
}

.feedback-card .feedback-author-wrapper {
  order: -2;
  margin-top: 0 !important;
}

.feedback-card .feedback-stars {
  order: -1;
  margin-bottom: 10px;
}

.feedback-card .feedback-quote {
  order: 0;
}

.feedback-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1), var(--glass-shadow-inner-gloss), var(--glass-shadow-inner-depth);
}

[data-theme="dark"] .feedback-card:hover {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), var(--glass-shadow-inner-gloss), var(--glass-shadow-inner-depth);
}

.feedback-stars {
  color: #cca852;
  font-size: 1.2rem;
  display: flex;
  gap: 5px;
}

.feedback-quote {
  font-style: italic;
  color: var(--c-text-sec);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.feedback-author {
  font-weight: 600;
  font-family: var(--f-heading);
  color: var(--c-accent);
  font-size: 1.1rem;
}

/* Social icon hover */
.social-icon-link:hover {
  color: var(--c-accent) !important;
  border-color: var(--c-accent) !important;
  transform: scale(1.12);
}

/* ─── Doctor Visual Column ─── */
.doctor-visual-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .doctor-visual-column {
    align-items: center;
  }
}

/* ─── Hero Citation ─── */
.hero-citation {
  background: rgba(44, 46, 50, 0.92);
  /* Fond beaucoup plus opaque pour la citation */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 14px 28px;
  margin-top: 0;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  width: max-content;
  position: relative;
  box-shadow: var(--glass-shadow-drop);
  z-index: 5;
}

.hero-citation p {
  margin: 0;
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-text);
  font-weight: 500;
}

[data-theme="light"] .hero-citation {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.citation-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 168, 85, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-citation {
    margin: 20px auto 30px;
    max-width: 100%;
    width: 100%;
    text-align: left;
    flex-direction: row;
    gap: 12px;
    padding: 12px 16px;
  }

  .hero-citation p {
    font-size: 0.82rem;
  }

  .citation-icon {
    width: 32px;
    height: 32px;
  }
}

/* ─── Working Hours Section ─── */
.working-hours {
  padding-bottom: 2rem;
}

.hours-card {
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.hours-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}

.hours-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(10, 31, 92, 0.05);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-accent);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.hour-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hour-item:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 168, 85, 0.3);
}

.hour-item.is-today {
  border-color: var(--c-accent);
  background: rgba(200, 168, 85, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hour-day {
  display: block;
  font-weight: 700;
  color: var(--c-text-main);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.hour-time {
  font-size: 0.82rem;
  color: var(--c-text-sec);
}

.hour-time.closed {
  color: var(--c-danger);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ─── Booking Form ─── */
.booking-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.glass-panel {
  padding: 30px 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: center;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* The inputs also get the claymorphism treatment */
.form-control {
  width: 100%;
  padding: 12px 18px;
  min-height: 52px;
  /* Reduced for zoom out */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  display: block;
  box-sizing: border-box;
}

textarea.form-control {
  min-height: 90px;
  resize: none;
}

[data-theme="light"] .form-control {
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.05), inset -3px -3px 6px rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
  color: var(--c-text-sec);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.1);
}

select.form-control {
  appearance: none;
}

select.form-control option {
  background: var(--c-bg);
  color: var(--c-text);
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--c-text-sec);
  text-align: center;
  margin-top: 15px;
}

/* ─── Footer & Map ─── */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 0;
  margin-top: 100px;
}

.map-container {
  line-height: 0;
  transition: filter 0.4s;
}

.footer-content {
  padding-bottom: 40px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 60px;
}

.footer-grid h5 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--c-accent);
  font-family: var(--f-heading);
}

.footer-brand p {
  margin-top: 20px;
  color: var(--c-text-sec);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: var(--c-text-sec);
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--c-accent);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: var(--c-text-sec);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a:hover {
  color: var(--c-accent);
}

/* ─── Case Switcher Mobile ─── */
.cas-switcher-mobile {
  display: none;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {

  .hero-grid,
  .profile-grid,
  .glass-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-exp {
    right: 0;
  }

  .profile-image-wrapper .hero-float-card {
    left: -80px !important;
    /* Translation de ~2cm vers la gauche */
  }

  .hero-visual-wrapper {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual-wrapper {
    order: 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 80px;
  }

  .teeth3d-grid {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .teeth3d-info {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .teeth3d-viewer-wrap {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
  }

  /* ── Hide desktop nav, show hamburger ── */
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    display: flex !important;
    gap: 16px !important;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Override the inline flex style on the nav container */
  .nav>.container {
    display: flex !important;
  }

  /* ── Nav Brand smaller on mobile ── */
  .nav-brand img {
    height: 55px;
    width: 55px;
  }

  .nav-brand span {
    font-size: 1.2rem;
  }

  .nav-brand {
    gap: 10px;
  }

  /* ── Theme switch wrapper not inside nav on mobile ── */
  .theme-switch-wrapper {
    margin-right: 0;
  }

  /* ── Hero ── */
  .hero {
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-desc {
    font-size: 1rem;
    max-width: 100%;
    margin: 20px auto 30px;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  /* ── Profile ── */
  .profile-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .profile-image-wrapper {
    position: relative;
    max-width: 260px;
    margin: 0 auto;
    overflow: visible !important;
  }

  .profile-image-wrapper .hero-float-card {
    display: flex !important;
    position: absolute !important;
    z-index: 10 !important;
    transform: scale(0.585);
    transform-origin: left center;
    padding: 10px 18px;
    width: 210px !important;
    left: -72px !important;
    white-space: nowrap;
  }

  .profile-image-wrapper .card-exp {
    top: 12% !important;
    left: -72px !important;
  }

  .profile-image-wrapper .card-rating {
    bottom: 12% !important;
    left: -72px !important;
  }

  .profile-image-wrapper .hero-float-card .card-icon {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
  }

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

  /* ── Services (2x2 Grid instead of swipe) ── */
  .services-track-container {
    overflow-x: visible !important;
    padding: 0 6px 16px 6px !important;
    /* Très petite marge latérale et bas */
  }

  .services-track {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100% !important;
  }

  .service-card {
    width: 100%;
    padding: 14px;
  }

  .service-card h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }

  .service-card p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .service-icon-wrap {
    height: 120px;
  }

  #servicesControls {
    display: none !important;
  }

  /* ── Before & After (Single Case on Mobile) ── */
  .cas-cliniques-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cas-clinique-card {
    min-width: 100%;
    scroll-snap-align: start;
    flex: 0 0 100%;
    border-radius: 0;
  }

  .cas-switcher-mobile {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    /* Espace avec le texte au-dessus */
    margin-bottom: 25px;
    /* Espace avec les cartes en dessous */
  }

  .switcher-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--c-text-sec);
    padding: 10px 22px;
    /* Boutons plus grands */
    border-radius: 25px;
    font-size: 0.95rem;
    /* Texte un peu plus grand */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }

  .switcher-btn.active {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 4px 15px rgba(204, 168, 82, 0.3);
  }

  /* ── Feedbacks (2 columns) ── */
  .feedbacks-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feedback-card {
    padding: 16px 12px;
  }

  .feedback-author-wrapper {
    margin-bottom: 12px;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .feedback-author {
    font-size: 0.82rem;
    white-space: nowrap;
    letter-spacing: -0.012em;
    line-height: normal;
    transform: translateY(2px);
    /* Petit ajustement vers le bas */
  }

  .feedback-quote {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .feedback-author-wrapper div {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }

  /* ── Booking ── */
  .glass-panel {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }

  .booking-form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    align-items: start;
  }

  .footer-brand {
    grid-column: auto;
    text-align: left;
    margin-bottom: 0;
  }

  .footer-brand .nav-brand,
  .footer-contact h5 {
    height: 60px;
    /* Align headers/logo vertical space */
    margin: 0 0 10px 0 !important;
    display: flex;
    align-items: center;
  }

  .footer-brand p,
  .footer-contact p {
    margin: 0 !important;
    font-size: 0.8rem;
    line-height: 1.4;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .map-container iframe {
    height: 240px;
  }

  section {
    padding: 40px 0;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 90px;
  }

  h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  /* Services layout handled by previous media query grid */

  .contact-info-pill,
  .float-card {
    display: none;
  }

  .booking-wrapper {
    border-radius: 20px;
  }

  .glass-panel {
    padding: 20px 16px;
  }
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── Testimonial Stack - Premium Card Style ─── */



/* ─── Testimonial Stack - Editorial Signature Style ─── */
.testimonial-stack-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  width: 100%;
}

.testimonial-stack-container {
  position: relative;
  height: 420px;
  width: 100%;
  max-width: 600px;
  perspective: 2500px;
}

.testimonial-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 95%;
  max-width: 550px;
  height: 320px;
  background: #0a0a0a;
  /* Deep graphite */
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  transform-origin: center center;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

/* Spotlight Effect */
.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(212, 175, 55, 0.18),
      transparent 45%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .testimonial-card::before {
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(93, 193, 200, 0.25),
      transparent 45%);
}

/* Luxury border frame - Gold in Dark, Cyan in Light */
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.4s ease;
}

.testimonial-content-inner {
  position: relative;
  z-index: 1;
  padding: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quote-mark-bg {
  position: absolute;
  top: -10px;
  left: 40px;
  font-size: 200px;
  font-family: var(--f-heading);
  color: rgba(212, 175, 55, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: color 0.4s ease;
}

.testimonial-card-quote {
  font-size: 1.55rem;
  font-family: 'Amiri', serif;
  line-height: 1.7;
  color: #f5f5f5;
  /* Off-white */
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.4s ease;
}

.testimonial-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
}

.testimonial-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testimonial-card-name {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #d4af37;
  font-size: 0.8rem;
  transition: color 0.4s ease;
}

.testimonial-stars {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: #d4af37;
  opacity: 0.9;
  transition: color 0.4s ease;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.4s ease;
}

.verified-badge svg {
  color: #d4af37;
  transition: color 0.4s ease;
}

/* Shuffle Animation */
.testimonial-card.shuffle-exit {
  transform: translate(160%, -30%) rotate(35deg) scale(0.7) !important;
  opacity: 0;
  z-index: 10 !important;
}

/* ─── Light Mode Variation ─── */
[data-theme="light"] .testimonial-card {
  background: #fcfcfc;
  /* Editorial paper grey */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .testimonial-card::after {
  border-color: rgba(93, 193, 200, 0.3);
  /* New Turquoise */
}

[data-theme="light"] .testimonial-card-quote {
  color: #1a1a1a;
}

[data-theme="light"] .testimonial-card-name {
  color: #5DC1C8;
  /* New Turquoise */
}

[data-theme="light"] .testimonial-stars {
  color: #5DC1C8;
  /* New Turquoise */
}

[data-theme="light"] .verified-badge {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .verified-badge svg {
  color: #5DC1C8;
  /* New Turquoise */
}

[data-theme="light"] .quote-mark-bg {
  color: rgba(93, 193, 200, 0.1);
  /* New Turquoise */
}

/* Controls */
.testimonial-controls {
  margin-top: 40px;
}

#nextTestimonial {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  padding: 16px 48px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  border-radius: 0;
}

#nextTestimonial:hover {
  background: #d4af37;
  color: #0a0a0a;
  border-color: #d4af37;
  transform: translateY(-2px);
}

[data-theme="light"] #nextTestimonial {
  border-color: rgba(93, 193, 200, 0.5);
  /* New Turquoise */
  color: #5DC1C8;
  /* New Turquoise */
}

[data-theme="light"] #nextTestimonial:hover {
  background: #5DC1C8;
  /* New Turquoise */
  color: #fff;
  border-color: #5DC1C8;
}

/* Mobile Optimization for Testimonial Stack */
@media (max-width: 768px) {

  /* Hide 3D Model and Dental Schema on Mobile */
  .teeth3d-section {
    display: none !important;
  }

  #testimonialStack {
    height: 320px;
    /* Reduced height for smaller cards */
  }

  .testimonial-card {
    transform: translate(-50%, -50%) scale(0.67);
    transform-origin: center center;
  }

  /* Adjust shuffle exit to account for the mobile scale */
  .testimonial-card.shuffle-exit {
    transform: translate(140%, -20%) rotate(35deg) scale(0.4) !important;
  }

  .testimonial-content-inner {
    padding: 40px 30px;
    /* More compact padding on mobile */
  }

  .testimonial-card-quote {
    font-size: 1.3rem;
    /* Slightly smaller text for balance */
  }
}

/* ─── Luxe AI Chatbot UI ─── */
.luxe-bot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--c-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .luxe-bot-toggle {
  box-shadow: 0 10px 30px rgba(93, 193, 200, 0.3);
}

.luxe-bot-toggle:hover {
  transform: translateY(-5px) scale(1.05);
}

.luxe-bot-window {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 140px);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 10000;
  box-shadow: var(--glass-shadow-drop);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.luxe-bot-window.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.luxe-bot-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .luxe-bot-header {
  background: rgba(255, 255, 255, 0.5);
}

.luxe-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.luxe-bot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(var(--c-accent-rgb), 0.1);
  border: 1px solid rgba(var(--c-accent-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.luxe-bot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Scrollbar for chat */
.luxe-bot-messages::-webkit-scrollbar {
  width: 4px;
}

.luxe-bot-messages::-webkit-scrollbar-thumb {
  background: var(--glass-border-2);
  border-radius: 4px;
}

.bot-msg-wrap,
.user-msg-wrap {
  display: flex;
  width: 100%;
}

.bot-msg-wrap {
  justify-content: flex-start;
}

.user-msg-wrap {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 12px;
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bot-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-1);
  color: var(--c-text);
  border-bottom-left-radius: 2px;
}

[data-theme="light"] .bot-bubble {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.05);
}

.user-bubble {
  background: rgba(var(--c-accent-rgb), 0.15);
  border: 1px solid rgba(var(--c-accent-rgb), 0.3);
  color: var(--c-text);
  border-bottom-right-radius: 2px;
}

[data-theme="light"] .user-bubble {
  background: var(--c-accent);
  color: #fff;
}

.luxe-bot-input-area {
  padding: 15px 20px;
  border-top: 1px solid var(--glass-border-1);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .luxe-bot-input-area {
  background: rgba(255, 255, 255, 0.5);
}

#luxeBotInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-text);
  font-size: 0.95rem;
  font-family: inherit;
}

#luxeBotInput::placeholder {
  color: var(--c-text-sec);
}

#luxeBotSend {
  background: var(--c-accent);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

[data-theme="light"] #luxeBotSend {
  color: #fff;
}

#luxeBotSend:hover {
  transform: scale(1.1);
}

/* Typing indicator */
.typing-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 20px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--c-text-sec);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

.luxe-bot-quick-replies {
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--glass-border-1);
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .luxe-bot-quick-replies {
  background: rgba(255, 255, 255, 0.3);
}

.luxe-bot-quick-replies::-webkit-scrollbar {
  display: none;
}

.quick-reply-btn {
  background: rgba(var(--c-accent-rgb), 0.1);
  border: 1px solid rgba(var(--c-accent-rgb), 0.3);
  color: var(--c-accent);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
}

[data-theme="light"] .quick-reply-btn {
  background: rgba(93, 193, 200, 0.1);
  border-color: rgba(93, 193, 200, 0.3);
  color: #5DC1C8;
}

.quick-reply-btn:hover {
  background: var(--c-accent);
  color: #000;
  transform: translateY(-2px);
}

[data-theme="light"] .quick-reply-btn:hover {
  background: #5DC1C8;
  color: #fff;
}

/* Chat embedded date picker */
.chat-date-picker {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(var(--c-accent-rgb), 0.3);
  color: var(--c-text);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  margin-top: 10px;
  width: 100%;
  outline: none;
}

[data-theme="light"] .chat-date-picker {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(93, 193, 200, 0.3);
}

.chat-date-picker::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) hue-rotate(10deg) saturate(3);
  cursor: pointer;
}

[data-theme="light"] .chat-date-picker::-webkit-calendar-picker-indicator {
  filter: none;
}

/* Pulsing Notification Dot on Chatbot Toggle */
.luxe-bot-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #ff3b30; /* Neon red notification dot */
  border-radius: 50%;
  border: 2px solid #000; /* Contrast ring against the background button */
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulseDot 2s infinite;
  z-index: 10001;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .luxe-bot-toggle::after {
  border-color: #fff;
}

.luxe-bot-toggle.has-opened::after {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* Keyframes for the pulsing animation */
@keyframes pulseDot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }
  
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}
