@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
  /* Constant Typography & Layout */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-meta: 'Outfit', sans-serif;
  --container-width: 1280px;
  --header-height: 130px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Constant Accent Colors */
  --accent: #06B6D4;
  --accent-rgb: 6, 182, 212;
  --accent-hover: #8B5CF6;
  --accent-purple: #8B5CF6;
  --accent-purple-rgb: 139, 92, 246;
  --medical-cyan: #06B6D4;
  --medical-green: #059669;
  
  /* Strictly Dark Creative Theme Variables */
  --primary: #FFFFFF;
  --primary-rgb: 255, 255, 255;
  --secondary: #E2E8F0;
  --text-dark: #FFFFFF;
  --text-muted: #94A3B8;
  --text-light: #FFFFFF;
  --bg-light: #000000;
  --bg-white: #050608;
  --bg-dark: #000000;
  --bg-dark-section: #000000;
  --medical-light: rgba(14, 116, 144, 0.15);

  /* Creative Glassmorphism variables */
  --glass-bg: rgba(5, 6, 8, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  letter-spacing: -0.5px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Highlight */
::selection {
  background-color: rgba(var(--accent-rgb), 0.3);
  color: var(--primary);
}

/* ==========================================
   DYNAMIC AESTHETIC BACKGROUNDS
   ========================================== */
.ambient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: -2;
}

/* ==========================================
   ORBITING LIGHTS BACKGROUND (Theme: Orbiting Lights)
   Hidden unless body.theme-bg-orbit is active (see theme switching below)
   ========================================== */
.background-orbit {
  display: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: #1d323f;
  overflow: hidden;
  z-index: -3;
  pointer-events: none;
}
body.theme-bg-orbit .background-orbit {
  display: block;
}
body.theme-bg-orbit #ambientCanvas,
body.theme-bg-orbit .ambient-overlay {
  display: none;
}

/* ── Light Theme Background ── */
.background-light {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 50%, #EEF2FF 100%);
}
body.theme-bg-light .background-light {
  display: block;
}
body.theme-bg-light #ambientCanvas,
body.theme-bg-light .ambient-overlay,
body.theme-bg-light .grid-overlay {
  display: none;
}
body.theme-bg-light {
  color: #0F172A;
}
body.theme-bg-light .nav-link {
  color: #334155;
}
body.theme-bg-light .nav-link:hover,
body.theme-bg-light .nav-link.active {
  color: #0633d4;
}
body.theme-bg-light header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}
body.theme-bg-light .section-label {
  background: rgba(6, 51, 212, 0.08);
  color: #0633d4;
  border-color: rgba(6, 51, 212, 0.2);
}
body.theme-bg-light .service-card,
body.theme-bg-light .testimonial-card,
body.theme-bg-light .floating-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
body.theme-bg-light .service-card h3,
body.theme-bg-light .testimonial-card h4,
body.theme-bg-light .service-card p,
body.theme-bg-light .testimonial-card p {
  color: #0F172A;
}
body.theme-bg-light .text-muted {
  color: #64748B;
}
body.theme-bg-light .hero-badge {
  background: rgba(6, 51, 212, 0.08);
  border-color: rgba(6, 51, 212, 0.2);
  color: #0633d4;
}
body.theme-bg-light .stat-number,
body.theme-bg-light h1, body.theme-bg-light h2,
body.theme-bg-light h3, body.theme-bg-light h4 {
  color: #0F172A;
}
body.theme-bg-light p {
  color: #334155;
}
body.theme-bg-light footer {
  background: #0F172A;
  color: #F1F5F9;
}
body.theme-bg-light .btn-secondary {
  border-color: #0633d4;
  color: #0633d4;
}
body.theme-bg-light .btn-secondary:hover {
  color: #FFFFFF;
}

/* ── Custom Backgrounds (solid / gradient / video / custom) ── */
.background-custom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.background-custom video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.theme-bg-custom .background-custom {
  display: block;
}
body.theme-bg-custom #ambientCanvas {
  display: none;
}

.background-orbit span {
  width: 42vmin;
  height: 42vmin;
  border-radius: 42vmin;
  backface-visibility: hidden;
  position: absolute;
  animation-name: orbit-move;
  animation-duration: 27s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes orbit-move {
  100% { transform: translate3d(0, 0, 1px) rotate(360deg); }
}

.background-orbit span:nth-child(1) {
  color: #614aa1; top: 35%; left: 67%;
  animation-duration: 51s; animation-delay: -33s;
  transform-origin: 0vw -19vh;
  box-shadow: 84vmin 0 11.097322580281379vmin currentColor;
}
.background-orbit span:nth-child(2) {
  color: #201b64; top: 3%; left: 51%;
  animation-duration: 202s; animation-delay: -76s;
  transform-origin: 5vw -7vh;
  box-shadow: -84vmin 0 10.982926756927679vmin currentColor;
}
.background-orbit span:nth-child(3) {
  color: #5189b3; top: 55%; left: 13%;
  animation-duration: 111s; animation-delay: -201s;
  transform-origin: -19vw -7vh;
  box-shadow: -84vmin 0 11.248152671397143vmin currentColor;
}
.background-orbit span:nth-child(4) {
  color: #614aa1; top: 98%; left: 19%;
  animation-duration: 178s; animation-delay: -223s;
  transform-origin: 1vw 25vh;
  box-shadow: 84vmin 0 11.452418877150842vmin currentColor;
}
.background-orbit span:nth-child(5) {
  color: #201b64; top: 83%; left: 38%;
  animation-duration: 42s; animation-delay: -116s;
  transform-origin: 24vw 8vh;
  box-shadow: 84vmin 0 10.707366872802003vmin currentColor;
}
.background-orbit span:nth-child(6) {
  color: #3a547e; top: 15%; left: 4%;
  animation-duration: 184s; animation-delay: -136s;
  transform-origin: 25vw 6vh;
  box-shadow: 84vmin 0 10.892640018049901vmin currentColor;
}
.background-orbit span:nth-child(7) {
  color: #3a547e; top: 49%; left: 80%;
  animation-duration: 142s; animation-delay: -73s;
  transform-origin: -23vw -20vh;
  box-shadow: 84vmin 0 11.098358707448892vmin currentColor;
}
.background-orbit span:nth-child(8) {
  color: #5189b3; top: 22%; left: 11%;
  animation-duration: 59s; animation-delay: -149s;
  transform-origin: 21vw 19vh;
  box-shadow: 84vmin 0 11.35317764821751vmin currentColor;
}
.background-orbit span:nth-child(9) {
  color: #3a547e; top: 82%; left: 91%;
  animation-duration: 130s; animation-delay: -143s;
  transform-origin: -3vw 22vh;
  box-shadow: -84vmin 0 10.776564507261972vmin currentColor;
}
.background-orbit span:nth-child(10) {
  color: #201b64; top: 32%; left: 26%;
  animation-duration: 193s; animation-delay: -133s;
  transform-origin: 12vw 24vh;
  box-shadow: 84vmin 0 11.00963828344005vmin currentColor;
}
.background-orbit span:nth-child(11) {
  color: #5189b3; top: 62%; left: 12%;
  animation-duration: 53s; animation-delay: -101s;
  transform-origin: 15vw 21vh;
  box-shadow: 84vmin 0 11.21860786014742vmin currentColor;
}
.background-orbit span:nth-child(12) {
  color: #5189b3; top: 58%; left: 72%;
  animation-duration: 154s; animation-delay: -117s;
  transform-origin: -1vw -14vh;
  box-shadow: 84vmin 0 10.750216544155176vmin currentColor;
}
.background-orbit span:nth-child(13) {
  color: #5189b3; top: 83%; left: 14%;
  animation-duration: 206s; animation-delay: -66s;
  transform-origin: 10vw -24vh;
  box-shadow: 84vmin 0 10.8524885134755vmin currentColor;
}
.background-orbit span:nth-child(14) {
  color: #614aa1; top: 79%; left: 65%;
  animation-duration: 14s; animation-delay: -85s;
  transform-origin: 15vw -21vh;
  box-shadow: 84vmin 0 10.59333378380145vmin currentColor;
}
.background-orbit span:nth-child(15) {
  color: #614aa1; top: 73%; left: 90%;
  animation-duration: 46s; animation-delay: -64s;
  transform-origin: 5vw -22vh;
  box-shadow: -84vmin 0 10.980970028049414vmin currentColor;
}
.background-orbit span:nth-child(16) {
  color: #3a547e; top: 78%; left: 81%;
  animation-duration: 119s; animation-delay: -110s;
  transform-origin: 7vw 0vh;
  box-shadow: 84vmin 0 11.410150758830403vmin currentColor;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(9, 13, 26, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 13, 26, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.blob {
  display: none;
}
.blob-primary {
  background: radial-gradient(circle, rgba(14, 116, 144, 0.22) 0%, transparent 80%);
}
.blob-secondary {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 80%);
}
.blob-accent {
  background: radial-gradient(circle, rgba(5, 150, 105, 0.14) 0%, transparent 80%);
}
.blob-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -10%;
  animation: morph 20s infinite alternate, float-slow 25s infinite alternate;
}
.blob-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -10%;
  animation: morph 15s infinite alternate-reverse, float-slow 20s infinite alternate-reverse;
}
.blob-3 {
  width: 700px;
  height: 700px;
  top: 35%;
  right: 10%;
  animation: morph 22s infinite alternate, float-slow 30s infinite alternate;
}
.blob-4 {
  width: 450px;
  height: 450px;
  top: 10%;
  left: 20%;
  animation: morph 18s infinite alternate, float-slow 22s infinite alternate;
}
.blob-5 {
  width: 550px;
  height: 550px;
  bottom: -5%;
  right: -5%;
  animation: morph 22s infinite alternate-reverse, float-slow 28s infinite alternate-reverse;
}
.blob-6 {
  width: 400px;
  height: 400px;
  top: 30%;
  left: -5%;
  animation: morph 17s infinite alternate, float-slow 24s infinite alternate;
}
.blob-7 {
  width: 480px;
  height: 480px;
  bottom: 5%;
  left: 25%;
  animation: morph 21s infinite alternate, float-slow 26s infinite alternate;
}
.blob-8 {
  width: 520px;
  height: 520px;
  top: 20%;
  right: -10%;
  animation: morph 23s infinite alternate-reverse, float-slow 27s infinite alternate-reverse;
}

@keyframes morph {
  0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  50% { border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
  100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
}

/* Custom Cursor */
.custom-cursor {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
  display: none;
}
.custom-cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  display: none;
}
.custom-cursor.hovered {
  width: 52px;
  height: 52px;
  background-color: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.8);
  mix-blend-mode: normal;
}

/* Text Gradient Overlay */
.text-gradient {
  background: linear-gradient(135deg, var(--medical-cyan) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ==========================================
   UTILITY CLASSES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.section {
  padding: 3rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

.bg-dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.bg-dark-section h2, .bg-dark-section h3 {
  color: var(--text-light);
}
.bg-dark-section .grid-overlay {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-meta);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--btn-grad-from, #0633d4) 0%, var(--btn-grad-to, #5c75f6) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(9, 13, 26, 0.15);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.25);
  color: var(--primary);
}
.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  border: 2px solid var(--btn-grad-to, #5c75f6);
  color: var(--text-light);
  font-family: var(--font-meta);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--btn-grad-from, #0633d4) 0%, var(--btn-grad-to, #5c75f6) 100%);
  border-color: transparent;
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6, 51, 212, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

/* Gradient Border Card Layout */
.gradient-border-card {
  position: relative;
  background: linear-gradient(135deg, rgba(9, 13, 26, 0.08), rgba(212, 175, 55, 0.04));
  padding: 1px;
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  height: 100%;
}
.gradient-border-card:hover {
  background: linear-gradient(135deg, var(--medical-cyan) 0%, var(--accent) 100%);
  box-shadow: 0 20px 45px rgba(14, 116, 144, 0.1);
}
.gradient-border-card .service-card, .gradient-border-card .booking-card {
  border: none;
  background-color: var(--bg-white);
  height: 100%;
}

/* Section Header */
.section-header {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}
.section-header .tag {
  display: inline-block;
  font-family: var(--font-meta);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--medical-green);
  background-color: var(--medical-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.75rem;
  }
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(9, 13, 26, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-meta);
  font-weight: 800;
  font-size: 1.5rem;
  color: #FFFFFF;
}
.logo-img {
  height: var(--logo-height, 100px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.header.scrolled .logo-img {
  height: var(--logo-height-scrolled, 80px);
}
.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--medical-cyan);
}
.logo span {
  color: var(--accent);
}

.nav {
  display: none;
}
@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
  .nav-link {
    font-family: var(--font-meta);
    font-weight: 500;
    color: #FFFFFF;
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
  }
  .nav-link:hover {
    color: var(--accent-hover);
  }
  .nav-link:hover::after {
    width: 100%;
  }
}

.nav-cta {
  display: none;
}
@media (min-width: 1024px) {
  .nav-cta {
    display: block;
  }
}

/* Mobile Menu Button */
.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}
@media (min-width: 1024px) {
  .burger-menu {
    display: none;
  }
}
.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}
.burger-menu.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
  opacity: 0;
}
.burger-menu.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transition: cubic-bezier(0.85, 0, 0.15, 1) 0.6s;
  padding: 2rem;
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu-link {
  font-family: var(--font-meta);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.mobile-menu-link:hover {
  color: var(--accent);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3.5rem;
  min-height: var(--hero-min-height, 90vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
/* Hero layout: boxed vs full-width (controlled from Admin > Hero) */
.hero .container {
  position: relative;
  z-index: 2;
}
body.hero-boxed .hero .container {
  max-width: 1100px;
}
body.hero-align-center .hero-grid {
  text-align: center !important;
}
body.hero-align-center .hero-content {
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}
body.hero-align-center .btn-group {
  justify-content: center !important;
}
body.hero-align-right .hero-content {
  align-items: flex-end !important;
  text-align: right !important;
  margin-left: auto !important;
}
body.hero-align-right .btn-group {
  justify-content: flex-end !important;
}
/* Vertical alignment of hero content */
body.hero-valign-top .hero { align-items: flex-start; }
body.hero-valign-bottom .hero { align-items: flex-end; }
/* Element toggles */
body.hero-hide-visual .hero-visual { display: none !important; }
body.hero-hide-visual .hero-grid { grid-template-columns: 1fr !important; }
body.hero-hide-badge .hero-badge { display: none !important; }
body.hero-hide-stats .hero-stats { display: none !important; }
/* Optional text-colour override */
body.hero-text-override .hero-content h1,
body.hero-text-override .hero-content p,
body.hero-text-override .stat-item h3,
body.hero-text-override .stat-item p {
  color: var(--hero-text-color) !important;
}

/* ── Hero background layers ── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: none;
}
.hero-bg-layer.active { display: block; }
.hero-bg-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--hero-fade, 1s) ease-in-out;
}
.hero-slide.active { opacity: 1; }
/* Slide (carousel) mode */
.hero-bg-layer.slide-mode { display: block; }
.hero-slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform var(--hero-fade, 1s) cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-bg-layer.slide-mode .hero-slide {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
  background: var(--hero-overlay-color, rgba(0, 0, 0, 0.5));
}
.hero-overlay.active { display: block; }

.hero-content {
  max-width: 650px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #06B6D4;
  font-family: var(--font-meta);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 5rem;
  }
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(9, 13, 26, 0.08);
  padding-top: 2rem;
}
.stat-item h3 {
  font-size: 2rem;
  color: var(--medical-cyan);
  font-family: var(--font-meta);
}
.stat-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* 3D Tilt visual card & Video loop layout */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tilt-card-container {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
}
.main-card {
  width: 100%;
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(9, 13, 26, 0.12);
  z-index: 2;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}
.hero-video-bg, .hero-img-bg {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transform: translateZ(20px);
  background-color: var(--bg-dark);
}
.tilt-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(212, 175, 55, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* Overlapping Floating Cards */
.floating-card {
  position: absolute;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(9, 13, 26, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: float 6s infinite ease-in-out;
}
.floating-card-1 {
  bottom: 30px;
  left: -20px;
  animation-delay: 0s;
}
.floating-card-2 {
  top: 40px;
  right: -10px;
  animation-delay: 3s;
}
.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--medical-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medical-green);
}
.fc-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.fc-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-meta);
}
.fc-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 116, 144, 0.06);
  color: var(--medical-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
  background-color: var(--medical-cyan);
  color: var(--text-light);
  transform: rotate(5deg) scale(1.05);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-link {
  font-family: var(--font-meta);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--medical-cyan);
}
.service-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}
.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(9, 13, 26, 0.05);
  position: relative;
}
.why-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.why-img-wrapper:hover img {
  transform: scale(1.05);
}
.why-img-wrapper-tall {
  grid-row: span 2;
  height: 420px;
}
.why-img-wrapper-short {
  height: 200px;
}

/* Tech layout coordinates labels */
.architect-tag {
  position: absolute;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--accent);
  background-color: rgba(3, 4, 6, 0.75);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 10;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tag-top-left { top: 12px; left: 12px; }
.tag-bottom-right { bottom: 12px; right: 12px; }
.tag-top-right { top: 12px; right: 12px; }

.why-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.why-feature {
  display: flex;
  gap: 1.5rem;
}
.why-feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.why-feature-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.why-feature-text p {
  color: var(--text-muted);
}

/* ==========================================
   TESTIMONIALS (Dynamic Slider)
   ========================================== */
.testimonials {
  position: relative;
  overflow: hidden;
}
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: auto;
}
.testimonial-wrapper {
  overflow: hidden;
  width: 100%;
}
.testimonial-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 1.5rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}
.testimonial-slide {
  flex: 0 0 85%;
  max-width: 85%;
  scroll-snap-align: center;
  padding: 3.5rem 2rem 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}
@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 46%;
    max-width: 46%;
  }
}
.testi-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.testi-stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.testi-quote {
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-heading);
  line-height: 1.5;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  font-style: italic;
}
@media (min-width: 768px) {
  .testi-quote {
    font-size: 1.85rem;
  }
}
.testi-quote::before, .testi-quote::after {
  content: '"';
  color: rgba(var(--accent-rgb), 0.25);
  font-size: 5rem;
  position: absolute;
  line-height: 1;
}
.testi-quote::before {
  top: -2.5rem;
  left: -2rem;
}
.testi-quote::after {
  bottom: -4.5rem;
  right: -2rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.testi-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testi-author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.testi-author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Slider Navigation Controls */
.slider-nav {
  display: none !important;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.slider-dot.active {
  width: 24px;
  border-radius: var(--radius-full);
  background-color: var(--accent);
}

/* ==========================================
   ABOUT THE CLINIC
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.about-visual {
  position: relative;
}
.about-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(9, 13, 26, 0.1);
  transition: transform 0.15s ease-out;
}
.about-overlay-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(9, 13, 26, 0.15);
  max-width: 280px;
  z-index: 10;
}
.about-overlay-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-family: var(--font-meta);
  font-weight: 700;
}
.about-overlay-card p {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 0;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .about-content h2 {
    font-size: 3.5rem;
  }
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.about-feat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.about-feat-icon {
  color: var(--medical-green);
  flex-shrink: 0;
}
.about-feat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.about-feat span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================
   CONTACT & BOOKING FORM
   ========================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .booking-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.booking-info-item {
  display: flex;
  gap: 1.5rem;
}
.bii-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-md);
  background-color: rgba(14, 116, 144, 0.08);
  color: var(--medical-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bii-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.bii-text h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.bii-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.bii-text a:hover {
  color: var(--accent);
}

.bii-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bii-hour-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(9, 13, 26, 0.08);
  padding-bottom: 0.25rem;
}
.bii-hour-row span:last-child {
  font-weight: 600;
  color: var(--primary);
}

/* Booking Form Styles */
.booking-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}
@media (min-width: 768px) {
  .booking-card {
    padding: 2.5rem 2rem;
  }
}
.booking-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.booking-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form-group-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.form-control {
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(9, 13, 26, 0.1);
  background-color: var(--bg-white);
  color: var(--primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--medical-cyan);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.5rem;
  padding-right: 2.5rem;
}

/* Success State Message */
.form-success-msg {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}
.form-success-msg.visible {
  display: block;
}
.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--medical-light);
  color: var(--medical-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
}
.success-icon svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}
.form-success-msg h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-meta);
  font-weight: 700;
}
.form-success-msg p {
  color: var(--text-muted);
}

/* ==========================================
   BOXLY AI CHAT BOT WIDGET
   ========================================== */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}
.chat-toggle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--medical-cyan) 0%, var(--primary) 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.35);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  border: 2px solid var(--accent);
  padding: 0;
  overflow: visible;
}
.chat-toggle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 15px 35px rgba(14, 116, 144, 0.45);
}
.chat-toggle-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.chat-toggle-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #25D366;
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 8px #25D366;
}

/* Chat window overlay slider */
.chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9998;
}
.chat-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.chat-window-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 480px;
  max-width: 92%;
  height: 600px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 9999;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background: rgba(3, 4, 6, 0.45) !important; /* Transparent glass background */
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-window-overlay.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.chat-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.6);
  transform: scale(1.05);
  z-index: -1;
}

.chat-overlay-header {
  height: 60px;
  flex-shrink: 0;
}

.chat-overlay-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  justify-content: flex-end;
}
.chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  overflow-y: visible;
}

/* Chat bubble structures */
.chat-msg-row {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  max-width: 88%;
  animation: slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-msg-row.user-msg-row {
  align-self: flex-end;
  justify-content: flex-end;
  max-width: 80%;
}
.chat-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--accent);
}
.chat-msg-bubble {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 0.9rem 1.15rem;
  border-radius: 18px;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(9, 13, 26, 0.1);
  font-size: 0.925rem;
  line-height: 1.45;
}
.chat-msg-row.user-msg-row .chat-msg-bubble {
  background-color: var(--medical-cyan);
  color: var(--text-light);
  border-radius: 18px;
  border-top-right-radius: 4px;
  border-top-left-radius: 18px;
}

/* Option Grid styling */
.chat-option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
  width: 100%;
  animation: slide-up-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-opt-card {
  background-color: var(--bg-white);
  color: var(--primary);
  border-radius: var(--radius-sm);
  border: none;
  padding: 1rem 0.75rem;
  font-family: var(--font-meta);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(9, 13, 26, 0.05);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.chat-opt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(9, 13, 26, 0.12);
  background-color: var(--medical-cyan);
  color: var(--text-light);
}

/* Sticky footer styles */
.chat-overlay-footer {
  padding: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(to top, rgba(3, 4, 6, 0.95) 0%, rgba(3, 4, 6, 0.4) 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-sticky-actions {
  display: flex;
  gap: 0.75rem;
}
.chat-sticky-btn {
  flex-grow: 1;
  flex-basis: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-meta);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.chat-sticky-btn.whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.chat-sticky-btn.whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}
.chat-sticky-btn.whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.chat-sticky-btn.book {
  border: 2px solid #FF5A5F;
  background-color: transparent;
  color: white;
}
.chat-sticky-btn.book:hover {
  background-color: #FF5A5F;
  transform: translateY(-2px);
}
.chat-sticky-btn.book svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chat-bottom-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.25rem;
}
.chat-close-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(9, 13, 26, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.chat-close-round:hover {
  background-color: #EF4444;
  color: var(--text-light);
  transform: rotate(90deg);
}
.chat-close-round svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chat-by-boxly {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 600;
  font-family: var(--font-meta);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.chat-lightning {
  color: #EAB308;
  font-weight: 700;
}

/* User inputs in overlay */
.chat-overlay-input-container {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  background-color: rgba(9, 13, 26, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-overlay-input-container input {
  flex-grow: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}
.chat-overlay-input-container input:focus {
  border-color: var(--medical-cyan);
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}
.chat-overlay-input-container button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--medical-cyan);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.chat-overlay-input-container button:hover {
  background-color: var(--accent);
  color: var(--primary);
}
.chat-overlay-input-container button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Animations */
@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .chat-window-overlay {
    width: 94% !important;
    max-height: 88vh !important;
    padding: 6px !important;
  }
  .chat-option-grid {
    grid-template-columns: 1fr !important;
  }
  .chat-opt-card {
    height: 52px !important;
    font-size: 0.85rem !important;
  }
  .chat-sticky-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .chat-sticky-btn {
    width: 100% !important;
    flex-basis: auto !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  .chat-sticky-btn svg {
    flex-shrink: 0 !important;
  }
  .chat-msg-bubble {
    max-width: 90% !important;
    font-size: 0.9rem !important;
  }
  .chat-toggle {
    width: 55px !important;
    height: 55px !important;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: rgba(3, 4, 6, 0.6) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  color: rgba(248, 250, 252, 0.7);
  padding: 3rem 0 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  position: relative;
  z-index: 2;
}
.footer h3, .footer h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-family: var(--font-meta);
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  }
}

.footer-brand p {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}
.social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.85rem;
}
.footer-links a {
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  flex-grow: 1;
}
.newsletter-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
}
.newsletter-form .btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}
.footer-legal-links a:hover {
  color: var(--accent);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 2;
}
.reveal.js-ready {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.reveal-left.js-ready { transform: translateX(-40px); }
.reveal.reveal-right.js-ready { transform: translateX(40px); }
.reveal.js-ready.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Sequence Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

h1 {
  font-weight: 800 !important;
  letter-spacing: -1.5px !important;
}

/* Background Section Headers & Hero Texts (White Contrast against Dark Canvas) */
.hero-content h1,
.section-header h2,
.testimonials h2,
.about-content h2,
.booking h2,
.why-feature-text h3 {
  color: #FFFFFF !important;
}

.hero-content p,
.section-header p,
.why-feature-text p,
.about-content p,
.booking p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.stat-item h3 {
  color: #FFFFFF !important;
}
.stat-item p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Translucent Dark Glass scrolled Header */
.header.scrolled {
  background: rgba(3, 4, 6, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
.header.scrolled .logo {
  color: #FFFFFF !important;
}
.header.scrolled .nav-link {
  color: #E2E8F0 !important;
}
.header.scrolled .nav-link:hover {
  color: var(--accent-hover) !important;
}
.header.scrolled .burger-menu span {
  background-color: #FFFFFF !important;
}

/* Dark form fields on booking card */
.form-control {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}
.form-control:focus {
  border-color: #06B6D4 !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Glass cards inner styling (Dark Theme) */
.service-card,
.booking-card {
  background-color: var(--bg-white) !important;
  color: var(--text-dark) !important;
}
.service-card p,
.booking-card p {
  color: var(--text-muted) !important;
}

/* Hero Section — two-column layout on desktop */
.hero-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  align-items: center !important;
  text-align: left !important;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr !important;
    text-align: left !important;
  }
}
.hero-content {
  max-width: 640px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
@media (max-width: 1023px) {
  .hero-content {
    align-items: center !important;
    text-align: center !important;
    max-width: 100% !important;
  }
}
.hero-badge {
  margin-bottom: 2rem !important;
}
.hero-content h1 {
  font-size: 3.5rem !important;
  line-height: 1.15 !important;
  margin-bottom: 1.5rem !important;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem !important;
  }
}
.hero-content p {
  font-size: 1.1rem !important;
  margin-bottom: 2.5rem !important;
  max-width: 560px !important;
}
.btn-group {
  justify-content: flex-start !important;
  width: 100% !important;
  margin-bottom: 2rem !important;
}
@media (max-width: 1023px) {
  .btn-group {
    justify-content: center !important;
  }
}
.hero-stats {
  justify-content: flex-start !important;
  gap: 2rem !important;
  width: 100% !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 2rem !important;
}
@media (max-width: 1023px) {
  .hero-stats {
    justify-content: center !important;
  }
}

/* Mobile booking button in nav */
.mobile-menu-book-btn {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/* Dr. Dan Pop card override (No button scale/twitching) */
.about-overlay-card {
  background: rgba(5, 6, 8, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  transition: none !important;
  transform: none !important;
}
.about-overlay-card:hover {
  transform: none !important;
  background: rgba(5, 6, 8, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.about-overlay-card h4 {
  color: #FFFFFF !important;
}
.about-overlay-card p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.header.scrolled .burger-menu span {
  background-color: #090D1A !important;
}

/* ==========================================
   AMBIENT FLUID CANVAS BACKGROUND (TYMPANUS INDEX2)
   ========================================== */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

/* ==========================================
   RUH DENTAL COMPLIANT REDESIGNED CHAT MODAL
   ========================================== */
.chat-window-overlay {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.9) !important;
  width: 460px !important;
  max-width: 90% !important;
  height: auto !important;
  max-height: 86vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  padding: 10px !important;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.chat-window-overlay.open {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
  pointer-events: auto !important;
}
.chat-window-overlay::-webkit-scrollbar {
  display: none !important;
}

/* Floating message bubbles style */
.chat-msg-row {
  display: flex !important;
  gap: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  align-items: flex-end !important;
  max-width: 100% !important;
  width: 100% !important;
}
.chat-msg-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}
.chat-msg-bubble {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  padding: 1.1rem 1.4rem !important;
  border-radius: 22px !important;
  border-bottom-left-radius: 4px !important;
  border-top-left-radius: 22px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  max-width: 82% !important;
  border: none !important;
}
/* User message bubble stand out */
.chat-msg-row.user-msg-row {
  align-self: flex-end !important;
  justify-content: flex-end !important;
}
.chat-msg-row.user-msg-row .chat-msg-bubble {
  background: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%) !important;
  color: #FFFFFF !important;
  border-radius: 22px !important;
  border-bottom-right-radius: 4px !important;
  border-bottom-left-radius: 22px !important;
  border-top-left-radius: 22px !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2) !important;
}

/* White option grid box container */
.chat-option-grid-container {
  background: #FFFFFF !important;
  border-radius: 24px !important;
  padding: 1.5rem !important;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.12) !important;
  width: 100% !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
  animation: slide-up-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-option-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin: 0 !important;
}
.chat-opt-card {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 0.85rem 0.5rem !important;
  font-family: var(--font-meta);
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.3 !important;
  height: 64px !important;
}
.chat-opt-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
  background-color: rgba(6, 182, 212, 0.02) !important;
  color: #06B6D4 !important;
}

/* User text inputs styled white container card */
.chat-input-card {
  background: #FFFFFF !important;
  border-radius: 24px !important;
  padding: 1.1rem !important;
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.12) !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  gap: 0.75rem !important;
  align-items: center !important;
  animation: slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-input-card input {
  flex-grow: 1 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  color: #090D1A !important;
  border-radius: 30px !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}
.chat-input-card input:focus {
  border-color: #06B6D4 !important;
  background: #FFFFFF !important;
}
.chat-input-card button {
  background: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2) !important;
  transition: transform 0.2s ease !important;
}
.chat-input-card button:hover {
  transform: scale(1.06) !important;
}
.chat-input-card button svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

/* Sticky Action Controls overrides */
.chat-sticky-btn.whatsapp {
  background-color: #25D366 !important;
  color: white !important;
}
.chat-sticky-btn.book {
  border: 2px solid #8B5CF6 !important;
  background-color: transparent !important;
  color: #FFFFFF !important;
}
.chat-sticky-btn.book:hover {
  background-color: #8B5CF6 !important;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Global H4 Override for solid white text on dark background */
h4 {
  color: #FFFFFF !important;
}

/* ==========================================
   THEME ENGINE: HOVER & REVEAL ANIMATION PRESETS
   (toggled via body classes set by the active theme)
   ========================================== */
/* Button hover presets */
body.hover-anim-glow .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 0 24px var(--btn-grad-to, #5c75f6), 0 8px 30px rgba(0,0,0,0.25) !important;
}
body.hover-anim-scale .btn:hover {
  transform: scale(1.06) !important;
}
body.hover-anim-none .btn:hover {
  transform: none !important;
}

/* Reveal animation presets */
body.reveal-anim-fade .reveal.js-ready {
  transform: none !important;
}
body.reveal-anim-zoom .reveal.js-ready {
  transform: scale(0.92) !important;
}
body.reveal-anim-zoom .reveal.js-ready.visible {
  transform: scale(1) !important;
}
body.reveal-anim-none .reveal.js-ready {
  opacity: 1 !important;
  transform: none !important;
}
