/* ===== CSS VARIABLES & RESET ===== */
:root {
  --primary: #004d54;
  --secondary: #28b5c4;
  --light-bg: #e8f4f5;
  --white: #FFFFFF;
  --black: #000000;
  --dark-bg: #003a40;
  --text-body: #333333;
  --text-muted: #666666;
  --border-radius: 12px;
  --shadow-sm: 0 4px 12px rgba(0, 77, 84, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 77, 84, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 77, 84, 0.15);
  --shadow-hover: 0 20px 50px rgba(0, 77, 84, 0.2);
  --transition: 0.3s ease;
  --font-serif: 'Cambria', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --gradient: linear-gradient(135deg, #004d54, #28b5c4);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gold: #fbbf24;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 48px; font-weight: 800; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }

p { font-size: 16px; line-height: 1.6; color: var(--text-body); }
small, .subtext { font-size: 14px; color: var(--text-muted); }

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 16px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* ===== HEADER / NAVIGATION (Glassmorphism) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  padding: 16px 0;
}

.header.scrolled {
  background: rgba(0, 60, 65, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* White text on transparent header (hero pages) */
.header:not(.scrolled) .logo span:first-child,
.header:not(.scrolled) .logo span:last-child,
.header:not(.scrolled) .logo i,
.header:not(.scrolled) .nav-links a {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header:not(.scrolled) .hamburger span {
  background: var(--white);
}

/* Brand colors on scrolled header */
.header.scrolled .logo span:first-child { color: var(--primary); }
.header.scrolled .logo span:last-child { color: var(--secondary); }
.header.scrolled .logo i { color: var(--white); }
.header.scrolled .nav-links a { color: var(--white); }
.header.scrolled .hamburger span { background: var(--primary); }

/* Header on inner pages (no hero video) - glassmorphism */
.header.header-solid {
  background: rgba(0, 60, 65, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.header.header-solid .logo span:first-child { color: var(--white); }
.header.header-solid .logo span:last-child { color: var(--white); }
.header.header-solid .logo i { color: var(--white); }
.header.header-solid .nav-links a { color: var(--white); }
.header.header-solid .hamburger span { background: var(--white); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span:first-child { color: var(--white); }
.logo span:last-child { color: var(--white); }

.logo i {
  color: var(--white);
  font-size: 28px;
  transition: color 0.4s ease;
}

.logo span {
  transition: color 0.4s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}

.header:not(.scrolled) .nav-links a {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--white);
  color: var(--primary) !important;
  padding: 35px 55px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--secondary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 77, 84, 0.4);
}

.nav-cta::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== BUTTONS (Gradient + Shine + Ripple) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

/* Shine sweep effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient);
  background-size: 150% 150%;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 77, 84, 0.3);
  animation: gradientShift 4s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 77, 84, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 77, 84, 0.3);
}

/* Hero-specific secondary button (white outline) */
.hero .btn-secondary {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-sm {
  padding: 6px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ===== HERO SECTION (Video + Particles) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video,
.hero-video-bg .hero-video-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-video-fallback {
  background: linear-gradient(135deg, #004d54, #28b5c4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 77, 84, 0.75), rgba(40, 181, 196, 0.6));
  z-index: 1;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
}

.hero-badge i { color: var(--gold); }

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: 1px;
}

.hero h1 .highlight {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

/* Staggered word animation */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordIn 0.6s ease forwards;
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing cursor effect */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--secondary);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
  margin-left: 4px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .number {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
}

.hero-stat .label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tooth-glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tooth-glow::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 181, 196, 0.45) 0%, rgba(0, 77, 84, 0.3) 40%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-tooth-glow svg {
  position: relative;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-image svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #003d43 0%, #004d54 50%, #005a62 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
  color: var(--white);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ===== CARDS (Glassmorphism + Gradient Border) ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* Animated gradient border on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-icon i {
  font-size: 28px;
  color: var(--secondary);
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--secondary);
}

.card:hover .card-icon i {
  color: var(--white);
  transform: scale(1.1);
}

.card h4 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  border-bottom-color: var(--secondary);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== DOCTOR CARD ===== */
.doctor-card {
  text-align: center;
  padding: 32px 24px;
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 40px;
  font-weight: 800;
  overflow: hidden;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h4 {
  margin-bottom: 4px;
  color: var(--primary);
}

.doctor-specialty {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-info {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.doctor-info i {
  color: var(--secondary);
  margin-right: 6px;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 12px 0 16px;
}

.expertise-tag {
  background: var(--light-bg);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 600;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.stars {
  color: #ffc107;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.testimonial-author h5 {
  color: var(--primary);
  font-size: 16px;
}

.testimonial-author small {
  color: var(--text-muted);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ===== STATS COUNTER SECTION ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item .label {
  font-size: 16px;
  color: var(--text-muted);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-bg);
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 77, 84, 0.1);
}

.form-control.error {
  border-color: #e74c3c;
  animation: shake 0.4s;
}

.form-control.success {
  border-color: #27ae60;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c757e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Captcha */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-display {
  background: var(--light-bg);
  border: 2px solid var(--light-bg);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--primary);
  font-family: monospace;
  user-select: none;
  font-style: italic;
  text-decoration: line-through;
}

.captcha-refresh {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  font-size: 18px;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: var(--transition);
  position: relative;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border: 2px solid var(--light-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--secondary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
}

.faq-question i {
  transition: var(--transition);
  color: var(--secondary);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-logo span:first-child { color: var(--white); }
.footer-logo span:last-child { color: var(--white); }

.footer-tagline {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--white);
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--white);
}

/* ===== ANIMATIONS ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== STEP INDICATOR (Appointment) ===== */
.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 150px;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 8px;
  transition: var(--transition);
  z-index: 1;
}

.step.active .step-circle {
  background: var(--primary);
  color: var(--white);
}

.step.completed .step-circle {
  background: var(--secondary);
  color: var(--white);
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.step.active .step-label { color: var(--primary); }

.step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--light-bg);
  z-index: 0;
}

.step:last-child::after { display: none; }

.step.completed::after { background: var(--secondary); }

/* ===== FILTER / SEARCH BAR ===== */
.filter-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--light-bg);
  border-radius: 50px;
  font-family: var(--font-serif);
  font-size: 15px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid var(--light-bg);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== DOCTOR PROFILE PAGE ===== */
.doctor-profile-header {
  background: linear-gradient(135deg, #f0f8f9, #e8f4f5);
  padding: 140px 0 60px;
}

.doctor-profile-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.profile-image-large {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 64px;
  font-weight: 800;
  margin: 0 auto 24px;
}

.profile-stat-box {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.profile-stat-box .number {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary);
}

.profile-stat-box .label {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-info h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.profile-info .specialization {
  color: var(--secondary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.info-block {
  margin-bottom: 24px;
}

.info-block h4 {
  color: var(--primary);
  margin-bottom: 8px;
}

.info-block p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.7;
}

.booking-section {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-top: 40px;
}

.booking-section h3 {
  margin-bottom: 8px;
}

.booking-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== CONTACT INFO COLUMNS ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-info-card i {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.contact-info-card h4 {
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== PATIENT JOURNEY ===== */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.journey-step {
  text-align: center;
  position: relative;
}

.journey-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.journey-step h4 {
  margin-bottom: 8px;
}

.journey-step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  height: 200px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--light-bg), #c4e8ec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 40px;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--light-bg);
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== ACCREDITATIONS ===== */
.accreditation-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.accreditation-badge {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 40px;
  text-align: center;
  transition: var(--transition);
}

.accreditation-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.accreditation-badge i {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.accreditation-badge h5 {
  color: var(--primary);
  font-size: 14px;
}

/* ===== APPOINTMENT FORM CARD ===== */
.appointment-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.confirmation-box {
  text-align: center;
  padding: 40px;
}

.confirmation-box .check-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #27ae60;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.confirmation-details {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.confirmation-details p {
  margin-bottom: 8px;
}

.confirmation-details strong {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }

  .doctor-profile-content {
    grid-template-columns: 1fr;
  }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }

  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 36px; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 28px; }

  .booking-section { padding: 24px; }
  .appointment-card { padding: 24px; }
  .modal { padding: 24px; }

  .step { min-width: 100px; }
  .step-label { font-size: 12px; }

  .filter-bar { flex-direction: column; align-items: stretch; }
}

/* ===== MOBILE MENU OVERLAY ===== */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
}

/* ===== ABOUT CLINIC IMAGE ===== */
.about-clinic-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.about-clinic-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 77, 84, 0.85));
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.since-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
}

.since-subtext {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-top: 4px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 77, 84, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 77, 84, 0.4);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulseGreen 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.4s ease;
  border-left: 4px solid var(--secondary);
}

.toast.success { border-left-color: #27ae60; }
.toast.success .toast-icon { color: #27ae60; }
.toast.error { border-left-color: #e74c3c; }
.toast.error .toast-icon { color: #e74c3c; }

.toast-icon { font-size: 20px; color: var(--secondary); }
.toast-message { font-size: 14px; color: var(--text-body); flex: 1; }

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}

/* ===== TOOTH PATTERN BACKGROUND ===== */
.tooth-pattern-bg {
  position: relative;
}

.tooth-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 20 C 30 20, 22 28, 22 38 C 22 48, 28 55, 30 62 C 31 66, 34 70, 38 70 C 42 70, 42 62, 40 55 C 42 62, 42 70, 46 70 C 50 70, 53 66, 54 62 C 56 55, 62 48, 62 38 C 62 28, 54 20, 44 20 C 42 20, 41 20, 40 20 Z' fill='%23004d54' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 0;
  pointer-events: none;
}

.tooth-pattern-bg > * { position: relative; z-index: 1; }

/* ===== PARALLAX ===== */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-bg {
  position: relative;
  overflow: hidden;
}

/* ===== SECTION TITLE DECORATION ===== */
.section-title-decorated {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title-decorated::before,
.section-title-decorated::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 16px;
}

/* ===== DOCTOR CARD SOCIAL ICONS ===== */
.doctor-card .doctor-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-socials {
  opacity: 1;
  transform: translateY(0);
}

.doctor-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  transition: var(--transition);
}

.doctor-socials a:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
}

.doctor-card .doctor-avatar {
  transition: all 0.4s ease;
  border: 4px solid transparent;
}

.doctor-card:hover .doctor-avatar {
  border-color: var(--secondary);
  transform: scale(1.05);
}

/* ===== BEFORE/AFTER SLIDER ===== */
.ba-slider {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 20px 0;
  cursor: ew-resize;
  user-select: none;
}

.ba-slider .ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider .ba-after .ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 2;
}

.ba-slider .ba-handle::after {
  content: '\f337';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.ba-label {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
}

.ba-label-before { left: 12px; background: rgba(0,0,0,0.5); color: var(--white); }
.ba-label-after { right: 12px; background: var(--gradient); color: var(--white); }

/* ===== 3D TESTIMONIAL CAROUSEL ===== */
.carousel-3d {
  perspective: 1200px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  height: 400px;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.carousel-3d-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%;
  max-width: 500px;
  margin-left: -250px;
  height: 100%;
  backface-visibility: hidden;
  transition: opacity 0.5s ease;
}

.carousel-3d-item:not(.active) {
  opacity: 0;
  pointer-events: none;
}

.carousel-3d-item.active {
  opacity: 1;
}

.carousel-3d-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-3d-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--light-bg);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-nav button:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}

.carousel-3d-dots {
  display: flex;
  gap: 8px;
}

.carousel-3d-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--light-bg);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-3d-dots button.active {
  background: var(--gradient);
  width: 30px;
  border-radius: 5px;
}

/* Gold stars */
.stars .fa-star { color: var(--gold) !important; }

/* ===== SOCIAL PROOF / VISITOR COUNTER ===== */
.social-proof {
  background: var(--gradient);
  padding: 30px 0;
  color: var(--white);
}

.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.visitor-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-counter .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.visitor-counter .count { font-size: 22px; font-weight: 700; }
.visitor-counter .label { font-size: 13px; opacity: 0.8; }

/* Reviews ticker */
.reviews-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.reviews-ticker-track {
  display: inline-block;
  animation: tickerScroll 25s linear infinite;
}

.reviews-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 40px;
  font-size: 14px;
}

.reviews-ticker-item .fa-star { color: var(--gold); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-badge i { font-size: 24px; color: var(--secondary); }
.trust-badge span { font-weight: 600; font-size: 14px; color: var(--primary); }

/* ===== ACCESSIBILITY CONTROLS ===== */
.a11y-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.a11y-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--light-bg);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  transition: var(--transition);
}

.a11y-btn:hover, .a11y-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* Font size adjuster */
[data-fontsize="large"] { font-size: 18px; }
[data-fontsize="large"] h1 { font-size: 56px; }
[data-fontsize="large"] h2 { font-size: 40px; }
[data-fontsize="large"] p { font-size: 18px; }

[data-fontsize="xlarge"] { font-size: 20px; }
[data-fontsize="xlarge"] h1 { font-size: 64px; }
[data-fontsize="xlarge"] h2 { font-size: 44px; }
[data-fontsize="xlarge"] p { font-size: 20px; }

/* ===== NEWSLETTER SIGNUP ===== */
.newsletter-section {
  background: var(--dark-bg);
  padding: 60px 0;
  text-align: center;
}

.newsletter-section h3 { color: var(--white); margin-bottom: 8px; }
.newsletter-section p { color: rgba(255, 255, 255, 0.7); margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-family: var(--font-sans);
}

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 3000;
  pointer-events: none;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== STAGGERED ANIMATION ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(40px);
}

.stagger-item.visible {
  animation: staggerIn 0.6s ease forwards;
}

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 767px) {
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .whatsapp-float { bottom: 75px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
  .toast-container { right: 10px; left: 10px; top: 70px; }
  .toast { min-width: auto; max-width: 100%; }
  .hero h1 { font-size: 40px; }
  .carousel-3d-item { margin-left: -40%; width: 80%; }
  .social-proof-bar { flex-direction: column; text-align: center; }
}

/* ===== FORM SUCCESS MESSAGE ===== */
.form-success {
  display: none;
  background: #e8f5e9;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  color: #27ae60;
  font-weight: 600;
}

/* ===== NEW TESTIMONIAL HIGHLIGHT ===== */
@keyframes testimonialHighlight {
  0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6); transform: scale(0.97); opacity: 0; }
  30% { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.3); transform: scale(1.01); opacity: 1; }
  60% { box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15); transform: scale(1); }
  100% { box-shadow: var(--shadow-md); transform: scale(1); opacity: 1; }
}

.testimonial-card.new-testimonial {
  animation: testimonialHighlight 1.2s ease forwards;
  border: 2px solid rgba(39, 174, 96, 0.4);
  transition: border-color 2s ease 1.5s, box-shadow 2s ease 1.5s;
}

.testimonial-card.new-testimonial.settled {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ===== STEP PANEL ===== */
.step-panel {
  animation: fadeIn 0.4s ease;
}

/* ===== UTILITY ===== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===== PATIENT PORTAL ===== */
.patient-portal-section {
  background: linear-gradient(135deg, var(--dark-bg), var(--primary));
  position: relative;
  overflow: hidden;
}

.patient-portal-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(40, 181, 196, 0.15), transparent 70%);
  border-radius: 50%;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portal-info h2,
.portal-info h3 { color: var(--white); }

.portal-info p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

.portal-features {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.portal-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.portal-feature i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 181, 196, 0.2);
  border-radius: 10px;
  color: var(--secondary);
  font-size: 18px;
  flex-shrink: 0;
}

.portal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.portal-card h3 {
  text-align: center;
  margin-bottom: 8px;
  color: var(--white);
}

.portal-card .portal-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 28px;
}

.portal-card .form-group { margin-bottom: 20px; }

.portal-card label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
}

.portal-card .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.portal-card .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }

.portal-card .form-control:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.portal-card .btn-primary { width: 100%; margin-bottom: 16px; }

.portal-links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.portal-links a { color: var(--secondary); font-family: var(--font-sans); }

.portal-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.portal-divider::before,
.portal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.portal-divider::before { left: 0; }
.portal-divider::after { right: 0; }

/* ===== BLOG SECTION ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 77, 84, 0.06);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image i {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.blog-card:hover .blog-card-image i { transform: scale(1.15); }

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-body { padding: 24px; }

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-sans);
}

.blog-card-body h4 {
  font-size: 18px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.blog-card:hover .blog-card-body h4 { color: var(--secondary); }

.blog-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.blog-card-read-more:hover { gap: 10px; }

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 77, 84, 0.06);
}

.blog-card-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-sans);
}

.blog-card-author-info span {
  display: block;
  font-size: 13px;
  color: var(--text-body);
  font-weight: 600;
  font-family: var(--font-sans);
}

.blog-card-author-info small { font-size: 12px; color: var(--text-muted); }

/* ===== ACCESSIBILITY CONTROLS ===== */
.accessibility-panel {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.accessibility-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.accessibility-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  background: var(--white);
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
  font-weight: 700;
}

.accessibility-btn:hover {
  background: var(--secondary);
  color: var(--white);
  transform: scale(1.1);
}

.accessibility-btn.active {
  background: var(--gradient);
  color: var(--white);
  border-color: var(--primary);
}

.accessibility-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 1201;
}

.accessibility-toggle:hover { transform: scale(1.1); }

.accessibility-toggle.active { transform: rotate(360deg); }

/* Font size modes */
[data-fontsize="large"] { font-size: 18px; }
[data-fontsize="large"] h1 { font-size: 56px; }
[data-fontsize="large"] h2 { font-size: 40px; }
[data-fontsize="large"] h3 { font-size: 32px; }
[data-fontsize="large"] h4 { font-size: 22px; }
[data-fontsize="large"] p { font-size: 18px; }

[data-fontsize="small"] { font-size: 14px; }
[data-fontsize="small"] h1 { font-size: 40px; }
[data-fontsize="small"] h2 { font-size: 32px; }
[data-fontsize="small"] h3 { font-size: 24px; }
[data-fontsize="small"] h4 { font-size: 18px; }
[data-fontsize="small"] p { font-size: 14px; }

/* ===== CONTACT LOCATIONS ===== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.location-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 77, 84, 0.06);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.location-card-image {
  height: 160px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.location-card-image i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.5);
}

.location-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.location-card-body { padding: 20px; }

.location-card-body h4 {
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-sans);
}

.location-card-body p i {
  color: var(--secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

.location-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.location-card-actions .btn { flex: 1; font-size: 13px; }

.click-to-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.click-to-call:hover { color: var(--primary); }

/* ===== MAP INTERACTIVE ===== */
.map-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.map-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.map-tab.active,
.map-tab:hover {
  background: var(--gradient);
  color: var(--white);
  border-color: var(--primary);
}

.map-container-large {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  position: relative;
}

.map-container-large iframe { width: 100%; height: 100%; border: 0; }

/* ===== RESPONSIVE FOR NEW SECTIONS ===== */
@media (max-width: 767px) {
  .portal-grid { grid-template-columns: 1fr; gap: 32px; }
  .portal-card { padding: 28px 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .accessibility-panel { bottom: 70px; left: 12px; }
  .accessibility-toggle { width: 40px; height: 40px; }
  .accessibility-btn { width: 40px; height: 40px; font-size: 14px; }
}
