@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Sci-Fi Medical Palette */
  --primary: #0ea5e9;
  /* Cyan/Blue Neon */
  --secondary: #00ff88;
  /* Cyber Green */
  --accent: #d4af37;
  /* Gold remains for premium feel */
  --dark: #f8fafc;
  /* Text is now Light */
  --light: #050b14;
  /* Background is now Dark */
  --bg-gradient: linear-gradient(135deg, #050b14 0%, #0a192f 100%);

  /* Dark Glass */
  --glass-bg: rgba(10, 25, 47, 0.7);
  --glass-border: rgba(14, 165, 233, 0.3);
  /* Blue neon border */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  /* Headings in Neon Blue */
}

/* Custom Scrollbar - Dark Mode */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

body {
  background: var(--light);
  /* Fallback */
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  /* Deep Space Effect */
  color: #e2e8f0;
  /* Off-white text */
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

/* Ambient Background Blobs - Sci-Fi Glows */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -2;
  opacity: 0.15;
  animation: floatOrb 20s infinite alternate;
}

body::before {
  background: radial-gradient(#0ea5e9, transparent 70%);
  /* Blue Glow */
  top: -20%;
  left: -10%;
}

body::after {
  background: radial-gradient(#00ff88, transparent 70%);
  /* Green Glow */
  bottom: -20%;
  right: -5%;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 30px) scale(1.2);
  }

  100% {
    transform: translate(-20px, 50px) scale(1);
  }
}

/* --- ADVANCED UI START --- */

/* 1. Custom Cursor */
.cursor {
  position: fixed;
  background-color: var(--primary);
  width: 10px;
  height: 10px;
  border-radius: 100%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s;
}

.cursor-follower {
  position: fixed;
  border: 1px solid var(--primary);
  width: 30px;
  height: 30px;
  border-radius: 100%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.15s, width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower.active {
  width: 50px;
  height: 50px;
  background: rgba(37, 117, 252, 0.1);
  border-color: transparent;
}

/* 2. Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(37, 117, 252, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 3. Scroll Reveal Transitions */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* 4. Audio Button */
#audio-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  cursor: none;
  /* Handled by custom cursor */
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

/* --- ADVANCED UI END --- */

/* 5. Contact Info Styles */
.contact-info {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
  max-width: 800px;
}

.info-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  flex: 1;
  min-width: 280px;
  box-shadow: var(--glass-shadow);
}

.info-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.info-item p {
  color: #ccc;
  line-height: 1.5;
}

.info-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.info-item a:hover {
  color: var(--primary);
}

/* 3D Background Canvas */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Changed from -1 to 0 */
  pointer-events: none;
}

/* Ensure content is above canvas */
.hero,
.doctors,
.services,
.contact,
footer {
  position: relative;
  z-index: 1;
}

/* Glassmorphism Header */
/* --- 3D HEADER REDESIGN --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: 0.3s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(10, 25, 47, 0.85);
  /* Darker Nav */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  /* Neon Border */
  border-radius: 50px;
  padding: 1rem 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  /* Deep Shadow */
}

nav .logo {
  height: 80px;
  /* Large, prominent logo */
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav .logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* 3D Button Container */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

/* 3D Neumorphic Buttons */
.nav-links a {
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  /* Pill Shape */

  /* 3D Effect - Dark Shadows */
  background: linear-gradient(145deg, #0a192f, #050b14);
  box-shadow: 5px 5px 10px #03060b,
    -5px -5px 10px #0f2544;

  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(14, 165, 233, 0.1);
}

/* Hover - Lift Up & Highlight */
.nav-links a:hover {
  transform: translateY(-3px);
  color: var(--secondary);
  /* Green Neon Hover */
  box-shadow: 8px 8px 15px #03060b,
    -8px -8px 15px #0f2544,
    0 0 10px var(--secondary);
  /* Glow */
}

/* Active/Click - Press Down */
.nav-links a:active {
  transform: translateY(1px);
  background: #050b14;
  box-shadow: inset 5px 5px 10px #03060b,
    inset -5px -5px 10px #0f2544;
}

/* Advanced Feature: Live Status Indicator */
.live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseGreen 2s infinite;
}

.status-dot.closed {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444;
  animation: pulseRed 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
  }
}

@keyframes pulseRed {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centered text */
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.hero-text {
  max-width: 800px;
  background: rgba(255, 255, 255, 0.4);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
}

.btn {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 117, 252, 0.5);
}

/* Sections Common */
.doctors,
.services,
.contact {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* .doctors h2, .services h2, .contact h2 styles removed to use global 3D style */

/* Cards (Glass Style) */
.cards {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 2.5rem;
  width: 300px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  /* Ensure face is not cut off */
  margin-bottom: 1.5rem;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Fix for Dr. Shilpi's photo specifically - lower/* Specific adjustment for Dr. Shilpi's photo */
img[alt*="Shilpi"] {
  object-position: 50% 35%;
  /* Shift focus down source image = moves face UP in view */
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.4rem;
}

/* Services List */
.services ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.services li {
  background: var(--glass-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
  color: #fff;
}

.services li:hover {
  transform: translateX(10px);
  background: rgba(14, 165, 233, 0.15);
}

/* Smile Scanner */
.scanner {
  padding: 6rem 1rem;
  text-align: center;
}

.scanner-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  border: 2px solid var(--primary);
  border-radius: 20px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}

#webcam {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  /* Mirror effect */
}

.hud-corners .corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--secondary);
}

.corner.tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner.tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.corner.bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.corner.br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
  animation: scanMove 3s infinite linear;
  display: none;
  /* Hidden by default */
}

@keyframes scanMove {
  0% {
    top: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.scanner-controls {
  padding: 1.5rem;
  background: rgba(10, 25, 47, 0.9);
  border-top: 1px solid var(--secondary);
}

#scan-result {
  margin-top: 1rem;
  color: #fff;
}

#scan-result h3 {
  color: var(--secondary);
  text-transform: uppercase;
}

.score-val {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.hidden {
  display: none;
}

/* Virtual Waiting Room Game */
#game-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  /* Opposite to WhatsApp */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}

#game-trigger:hover {
  transform: scale(1.1) rotate(20deg);
}

.game-content {
  background: rgba(5, 11, 20, 0.95) !important;
  border: 2px solid var(--secondary);
  text-align: center;
  max-width: 700px;
}

#game-canvas {
  background: #111;
  border: 1px solid #333;
  margin: 1rem 0;
  cursor: crosshair;
  width: 100%;
  max-width: 600px;
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

#game-score {
  font-size: 1.5rem;
  color: var(--secondary);
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

/* Holographic UI Overlay */
/* Medical Form Styling */
.contact form {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.contact input,
.contact select,
.contact textarea {
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  background: rgba(10, 25, 47, 0.6);
  /* Dark Input BG */
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  width: 100%;
  color: #fff;
  /* Light Text */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230284c7%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.8rem auto;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
  background: #fff;
  color: var(--light);
}

.contact button {
  grid-column: span 2;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1.2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.contact button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

/* Mobile Form Response */
@media (max-width: 600px) {
  .contact form {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .contact button {
    grid-column: span 1;
  }
}

/* Google Reviews + Map Layout */
.contact-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* Map gets slightly more space */
  gap: 2rem;
  margin-top: 4rem;
  align-items: stretch;
}

.map {
  margin-top: 0;
  /* Reset margin since grid handles it */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  /* Match height */
}

/* Reviews Widget Styles */
.reviews-widget {
  background: rgba(255, 255, 255, 0.05);
  /* Very transparent white for dark mode */
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 400px;
  border: 1px solid var(--glass-border);
  color: #fff;
}

.google-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.g-logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Product Sans', Arial, sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.g-logo .blue {
  color: #4285F4;
}

.g-logo .red {
  color: #DB4437;
}

.g-logo .yellow {
  color: #F4B400;
}

.g-logo .green {
  color: #0F9D58;
}

.rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.score {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.review-count {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-review {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-review:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary);
  color: #fff;
}

.review-list {
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar for reviews */
.review-list::-webkit-scrollbar {
  width: 6px;
}

.review-list::-webkit-scrollbar-thumb {
  background: #ddd;
}

.g-review {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g-review:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.g-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.g-avatar {
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.g-user div {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.9rem;
}

.g-stars {
  font-size: 0.8rem;
  margin-top: 2px;
}

.g-time {
  margin-left: auto;
  color: #aaa;
  font-size: 0.8rem;
}

.g-review p {
  font-size: 0.95rem;
  color: #e2e8f0;
  /* Light Text */
  line-height: 1.5;
  text-align: left;
}


/* Mobile for Reviews Grid */
@media (max-width: 900px) {
  .contact-bottom-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  text-align: center;
  padding: 2rem;
  background: #050b14;
  /* Dark footer */
  margin-top: 4rem;
  color: #888;
  border-top: 1px solid #1e293b;
}


/* Interactive Services */
.services li {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.services li::after {
  content: 'Click for details';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0;
  transition: 0.3s;
  color: var(--primary);
}

.services li:hover::after {
  opacity: 1;
  right: 2rem;
}

.services li:active {
  transform: scale(0.98);
}

/* Modal Styling */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 2000;
  /* Above header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.modal p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}


/* Gallery Section */
.gallery {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Global 3D Section Headings */
section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;

  /* 3D Depth Effect */
  text-shadow:
    0 1px 0 #0270a9,
    0 2px 0 #026496,
    0 3px 0 #025784,
    0 4px 0 #014b71,
    0 5px 0 #013e5f,
    0 6px 1px rgba(0, 0, 0, .1),
    0 0 5px rgba(0, 0, 0, .1),
    0 1px 3px rgba(0, 0, 0, .3),
    0 3px 5px rgba(0, 0, 0, .2),
    0 5px 10px rgba(0, 0, 0, .25),
    0 10px 10px rgba(0, 0, 0, .2),
    0 20px 20px rgba(0, 0, 0, .15);

  transition: transform 0.3s ease;
}

section h2:hover {
  transform: translateY(-5px);
  text-shadow:
    0 1px 0 #0270a9,
    0 2px 0 #026496,
    0 3px 0 #025784,
    0 4px 0 #014b71,
    0 5px 0 #013e5f,
    0 6px 0 #01314d,
    0 7px 0 #01253a,
    0 12px 20px rgba(0, 0, 0, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 250px;
  box-shadow: var(--glass-shadow);
  border: 4px solid var(--glass-border);
  transition: transform 0.3s;
}

/* --- NEW FEATURES CSS --- */

/* 1. Smile Makeover Slider */
.makeover {
  text-align: center;
  padding: 6rem 1rem;
}

.section-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--primary);
  margin-top: 1rem;
  /* Fixed overlap - positive margin */
  margin-bottom: 4rem;
  /* More breathing room */
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.before-after-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.ba-slider {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.ba-slider h3 {
  margin-top: 1.5rem;
  color: var(--dark);
  font-size: 1.2rem;
}

.ba-image-container {
  position: relative;
  width: 100%;
  /* Aspect Ratio for consistency */
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 4px solid #fff;
  margin: 0 auto;
}

.img-after {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #fff;
  will-change: width;
}

.img-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ba-handle::after {
  content: '↔';
  color: var(--primary);
  font-weight: bold;
}

/* 2. Testimonials Carousel */
.testimonials {
  text-align: center;
  padding: 6rem 1rem;
  overflow: hidden;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem;
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  /* Space for scrollbar/shadows */
  -webkit-overflow-scrolling: touch;
  width: 100%;
  justify-content: flex-start;
  /* Alignment for scroll */
}

/* Hide scrollbar for cleaner look but keep functionality */
.testimonial-track::-webkit-scrollbar {
  height: 6px;
}

.testimonial-track::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.3);
  border-radius: 10px;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 20px;
  min-width: 300px;
  /* Fixed min width for carousel */
  flex: 0 0 300px;
  /* Don't shrink */
  scroll-snap-align: center;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(14, 165, 233, 0.15);
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

.stars {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-card h4 {
  color: var(--primary);
  text-align: right;
  font-weight: 700;
}

/* 3. FAQ Accordion */
.faq {
  padding: 6rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Playfair Display', serif;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: 0.3s;
}

.accordion-header.active::after {
  transform: rotate(45deg);
  color: var(--secondary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(255, 255, 255, 0.03);
}

.accordion-content p {
  padding: 1.5rem;
  padding-top: 0;
  line-height: 1.6;
  color: #ddd;
}

/* 3D Carousel */
.gallery {
  padding: 6rem 1rem;
  overflow: hidden;
  perspective: 1000px;
}

.carousel-container {
  width: 100%;
  height: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel {
  width: 300px;
  height: 200px;
  position: absolute;
  transform-style: preserve-3d;
  animation: rotateCarousel 20s infinite linear;
}

.carousel:hover {
  animation-play-state: paused;
}

.carousel-item {
  position: absolute;
  width: 300px;
  height: 200px;
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.carousel-item:hover img {
  opacity: 1;
}

/* 9 items = 360 / 9 = 40 degrees apart. Radius ~ 450px */
.carousel-item.a {
  transform: rotateY(0deg) translateZ(450px);
}

.carousel-item.b {
  transform: rotateY(40deg) translateZ(450px);
}

.carousel-item.c {
  transform: rotateY(80deg) translateZ(450px);
}

.carousel-item.d {
  transform: rotateY(120deg) translateZ(450px);
}

.carousel-item.e {
  transform: rotateY(160deg) translateZ(450px);
}

.carousel-item.f {
  transform: rotateY(200deg) translateZ(450px);
}

.carousel-item.g {
  transform: rotateY(240deg) translateZ(450px);
}

.carousel-item.h {
  transform: rotateY(280deg) translateZ(450px);
}

.carousel-item.i {
  transform: rotateY(320deg) translateZ(450px);
}

@keyframes rotateCarousel {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

/* Blog Section */
.blog {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Specific styling for the Blog Modal to be active/transparent/small */
.blog-modal-content {
  background: rgba(10, 25, 47, 0.85);
  /* Darker, more opaque for readability but still glassy */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
  width: 90%;
  max-width: 600px;
  /* Small box */
  padding: 3rem;
  text-align: left;
  color: #e2e8f0;
}

#blog-modal-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

#blog-modal-body {
  line-height: 1.8;
  font-size: 1.1rem;
}



/* Interactive Anatomy */
.anatomy {
  padding: 6rem 1rem;
  text-align: center;
}

.anatomy-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 500px;
  margin: 3rem auto;
  background: rgba(10, 25, 47, 0.5);
  /* Semi-transparent container */
  border: 1px solid var(--primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.1);
}

#anatomy-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.holo-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Let clicks pass through to canvas */
  display: flex;
  justify-content: space-between;
  padding: 2rem;
}

.holo-card {
  width: 300px;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  text-align: left;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.holo-card h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
}

.holo-card p {
  color: #a0aec0;
  font-family: 'Consolas', monospace;
  font-size: 0.9rem;
}

.holo-stats {
  width: 250px;
  align-self: flex-end;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid var(--primary);
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.stat-row {
  margin-bottom: 1rem;
  text-align: left;
}

.stat-row span {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transition: width 1s ease;
}

.bar.red div {
  background: #ff4444;
  box-shadow: 0 0 10px #ff4444;
}

.blink {
  animation: blinker 1.5s linear infinite;
  color: var(--secondary);
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.blog-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(37, 117, 252, 0.9);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.blog-content p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
  align-self: flex-start;
  position: relative;
}

.read-more::after {
  content: ' →';
  transition: margin-left 0.3s;
}

.read-more:hover {
  color: var(--primary);
}

.read-more:hover::after {
  margin-left: 5px;
}

/* Staggered Grid Effect */
.gallery-item:nth-child(even) {
  margin-top: 2rem;
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  nav {
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    position: relative;
  }

  /* Hamburger Menu Toggle */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: 0.3s;
  }

  /* Nav Links - Mobile View */
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    /* Full width */
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    transform: translateY(-150%);
    /* Start hidden above */
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  /* Show menu when active */
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .logo {
    height: 40px;
  }
}

/* Desktop default: Hide toggle */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waPulse 3s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.wa-icon {
  width: 35px;
  height: 35px;
  fill: white;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --- MOBILE UI IMPROVEMENTS --- */

section {
  scroll-margin-top: 100px;
  /* Header Offset for anchor links */
}

@media (max-width: 768px) {

  /* 1. Fix Header & Padding */
  header {
    padding: 0.5rem 0;
    background: rgba(10, 25, 47, 0.95);
    /* More opaque on mobile */
  }

  nav {
    padding: 0.8rem 1.5rem;
  }

  .logo {
    height: 50px;
  }

  /* Prevent content cut-off */
  .hero,
  .doctors,
  .services,
  .contact,
  #blog,
  #testimonials {
    padding-top: 8rem;
  }

  /* 2. Mobile Menu Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    margin: 1.2rem 0;
    border: 1px solid rgba(14, 165, 233, 0.3);
    width: 80%;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-toggle {
    z-index: 1001;
  }

  /* 3. Typography & Layout */
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* 4. Floating Elements & Form */
  #game-trigger {
    bottom: 90px;
    left: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .whatsapp-float {
    bottom: 90px;
    right: 10px;
    width: 50px;
    height: 50px;
  }

  .wa-icon {
    width: 28px;
    height: 28px;
  }

  .testimonial-card p {
    font-size: 1rem;
  }
}

/* --- CAROUSEL LANDSCAPE FIX --- */
.carousel-item.landscape-fix {
  /* position: absolute;  <-- Inherited from .carousel-item. DO NOT OVERRIDE with relative */
  background: #000;
  overflow: hidden;
  /* Ensure blurred edges don't bleed */
}

.landscape-fix .blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  opacity: 0.6;
}

.landscape-fix img {
  position: relative;
  z-index: 2;
  object-fit: contain;
  /* Show full image */
  width: 100%;
  height: 100%;
  background: transparent;
}



/* --- CONTACT LAYOUT --- */
.contact-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- GOOGLE MAP FIX --- */
.map {
  width: 100%;
  height: 400px;
  /* Slightly taller */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  /* margins removed in favor of flex gap */
  z-index: 1;
  position: relative;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- REVIEWS CAROUSEL --- */
.reviews-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  /* Constrain width for better alignment */
  margin: 0 auto;
  /* Center the carousel */
  overflow: visible;
  /* Changed from hidden to avoid cutting off shadows */
  padding: 3rem 0;
  /* Increased from 1rem to 3rem for more space */
}

.reviews-carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.review-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5rem;
  width: 100%;
  /* Ensure track takes full width */
}

/* Individual Card Styling Update for Carousel */
.carousel-card {
  min-width: 100%;
  /* Show one at a time on mobile */
  flex: 0 0 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .carousel-card {
    min-width: 48%;
    /* Show 2 on tablet/desktop roughly */
    flex: 0 0 48%;
    margin-right: 0;
    /* Let gap handle spacing */
  }
}

/* Ensure reviews widget centers content */
.reviews-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Navigation Buttons */
.carousel-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  /* Prevent shrinking */
}

.carousel-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.prev-btn {
  margin-right: 1rem;
}

.next-btn {
  margin-left: 1rem;
}

/* --- Google Review Card Styles --- */
.g-review {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--glass-shadow);
}

.g-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g-avatar {
  width: 40px;
  height: 40px;
  background: #4285F4;
  /* Default Google blue */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.g-user div {
  display: flex;
  flex-direction: column;
}

.g-user strong {
  font-size: 1rem;
  color: #fff;
}

.g-stars {
  font-size: 0.8rem;
  margin-top: 2px;
}

.g-time {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.g-review p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* --- ROTATING BACKGROUND LOGO --- */
.bg-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmin;
  height: 70vmin;
  background-image: url('../assets/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  animation: spinLogo 60s linear infinite;
  filter: grayscale(100%) brightness(1.5);
}

@keyframes spinLogo {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* --- CLICKABLE GALLERY LIGHTBOX --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(14, 165, 233, 0.5);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

/* Make gallery images look clickable */
.carousel-item img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel-item img:hover {
  transform: scale(1.02);
}

.logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.1);
}

/* Mobile Overrides - Added by Antigravity */
@media (max-width: 768px) {
  .logo {
    height: 70px !important;
  }

  .card {
    margin: 0.5rem 0;
    padding: 1.5rem;
    min-height: auto;
  }

  .card img {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5rem;
  }

  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

/* --- DOCTOR PREVIEW MODAL --- */
#doctor-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.doctor-modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 3rem;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
}

.close-doctor-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.close-doctor-modal:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.doc-modal-body {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.doc-img-wrapper {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#doc-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.doc-info {
  text-align: left;
}

#doc-modal-name {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

#doc-modal-deg {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#doc-modal-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
}

@media (max-width: 768px) {
  .doc-modal-body {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .doc-info {
    text-align: center;
  }

  .doc-img-wrapper {
    width: 180px;
    height: 180px;
  }

  #doc-modal-name {
    font-size: 2rem;
  }

  .doctor-modal-content {
    padding: 2rem;
  }
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- RADIANT SMILES INTERACTION --- */
.ba-slider {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ba-slider:hover {
  transform: translateY(-5px);
}

/* Procedure Modal Close Button (Specific) */
.close-procedure-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.close-procedure-modal:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

/* --- 3D CAROUSEL STYLES --- */
.carousel-3d-scene {
  position: relative;
  width: 100%;
  height: 600px;
  /* Space for the 3D objects */
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 4rem 0;
}

.carousel-3d-ring {
  width: 320px;
  height: 420px;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  /* Smooth linear movement for JS loop */
}

/* Items in the ring */
.carousel-3d-ring .ba-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgba(5, 11, 20, 0.9);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backface-visibility: hidden;
  /* Hide back side */
}

.carousel-3d-ring .ba-slider:hover {
  transform: none;
  /* Disable the lift effect from previous CSS to avoid layout issues */
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
  background: rgba(10, 25, 47, 0.95);
  border-color: #fff;
}

/* Slider internal layout */
.carousel-3d-ring .ba-image-container {
  width: 100%;
  height: 280px;
  /* Fixed height for consistency */
  border-radius: 12px;
  overflow: hidden;
  cursor: ew-resize;
  position: relative;
}

.carousel-3d-ring .ba-slider h3 {
  font-size: 1.2rem;
  text-align: center;
  margin-top: auto;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-3d-ring .img-after,
.carousel-3d-ring .img-before {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- MARQUEE TESTIMONIALS --- */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
  padding: 1rem 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Shift by half since we duplicated content */
}

/* Updated Testimonial Card */
.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  min-width: 350px;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: scale(1.05);
  /* Slight pop on hover */
  background: rgba(10, 25, 47, 0.9);
  border-color: var(--secondary);
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card h4 {
  text-align: right;
  color: var(--primary);
  font-weight: 700;
}

/* --- TRIANGULAR PRISM CAROUSEL --- */
.prism-scene {
  width: 100%;
  height: 600px;
  perspective: 2000px;
  /* Deep perspective */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0;
  overflow: hidden;
}

.prism-carousel {
  width: 900px;
  /* Wider to fit 2 cards */
  height: 500px;
  position: absolute;
  transform-style: preserve-3d;
  /* transform controlled by JS */
}

.prism-face {
  position: absolute;
  width: 900px;
  height: 500px;
  /* background: rgba(255, 0, 0, 0.1); Debug */
  display: flex;
  justify-content: center;
  /* Center the pair of cards */
  gap: 2rem;
  align-items: center;
  backface-visibility: hidden;
  /* Hide when turned away */
}

/* 
  Triangular Prism Logic:
  Width (W) = 900px
  Triangle side = 900px (equilateral for seamless) - wait, this is a carousel.
  Number of faces (n) = 3
  Angle = 120 deg
  
  Apothem (radius to center of face) = (W / 2) / tan(180/n)
  r = 450 / tan(60) = 450 / 1.732 ≈ 260px
*/

.prism-face.face-1 {
  transform: rotateY(0deg) translateZ(260px);
}

.prism-face.face-2 {
  transform: rotateY(120deg) translateZ(260px);
}

.prism-face.face-3 {
  transform: rotateY(240deg) translateZ(260px);
}

/* Override Blog Grid Layout for Prism */
.prism-face .blog-card {
  width: 400px;
  /* Specific width for carousel */
  margin: 0;
  transform: none !important;
  /* Reset hover transforms handled effectively by parent */
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

  /* Radiant Smiles - Adjust height */
  .carousel-3d-scene {
    height: 350px;
    margin: 2rem 0;
  }

  /* Marquee Testimonials - Smaller cards */
  .testimonial-card {
    min-width: 280px;
    padding: 1.5rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  /* Prism Carousel - Adjust container */
  .prism-scene {
    height: 400px;
    /* Reduced height */
    margin: 2rem 0;
  }

  /* Blog Cards inside Prism - simpler layout */
  .prism-face .blog-card {
    width: 280px;
    /* Smaller width per card */
    padding: 1rem;
  }

  .prism-face {
    gap: 1rem;
  }

  .prism-face .blog-img {
    height: 140px;
  }

  .prism-face h3 {
    font-size: 1rem;
  }
}