/* Sana Dental Care - Luxury Clinical Styling & Smooth UI/UX Animations */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0b2545;
  --primary-dark: #040d1a;
  --accent-teal: #0ea5e9;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --clinical-bg: #f8fafc;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--clinical-bg);
  color: #0f172a;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px -5px rgba(11, 37, 69, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.glass-card-dark {
  background: rgba(4, 13, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -10px rgba(4, 13, 26, 0.5);
}

/* 3D Perspective & Tilt Card */
.perspective-container {
  perspective: 1000px;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-3d:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 20px 40px -10px rgba(11, 37, 69, 0.14), 0 10px 15px -3px rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.4);
}

/* Animated Gradient Text */
.gradient-text-navy-cyan {
  background: linear-gradient(135deg, #0b2545 0%, #0369a1 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll Reveal Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Image Zoom on Card Hover */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover .img-zoom-container img,
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Comparison Slider */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 20px 35px -10px rgba(9, 32, 63, 0.25);
  user-select: none;
  -webkit-user-select: none;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ffffff;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  z-index: 25;
}

.comparison-slider-handle::after {
  content: '⮂ ⮀';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #0284c7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
  border: 3px solid #ffffff;
}

/* WhatsApp Floating Button */
.whatsapp-pulse {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: waPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes waPulse {
  to {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hero Full-Width Slider Robust Standalone Styling */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 600px;
  overflow: hidden;
  background-color: #040d1a;
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    min-height: 520px;
    height: 540px;
  }
}

@media (max-width: 480px) {
  .hero-slider-wrapper {
    min-height: 490px;
    height: 500px;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out, visibility 0.75s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 5 !important;
}

.hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 13, 26, 0.94) 0%, rgba(4, 13, 26, 0.82) 55%, rgba(4, 13, 26, 0.40) 100%);
  z-index: 6;
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 15;
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
}

.hero-slider-indicator {
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-slider-indicator.active {
  width: 2.25rem !important;
  background-color: #0ea5e9 !important;
}