/* ============================================================
   CARE DENTAL HOSPITAL — ULTRA PREMIUM ENHANCEMENTS v4.0
   Magnetic Glow · 3D Tilt · Animated Borders · Wave Dividers
   Ripple Effects · Text Reveals · Parallax Shapes
   ============================================================ */

/* ── NEW KEYFRAMES ────────────────────────────────── */
@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(60px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes neonPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0,207,255,0.5), 0 0 20px rgba(0,207,255,0.3), 0 0 40px rgba(0,91,255,0.2); }
  50% { text-shadow: 0 0 20px rgba(0,207,255,0.8), 0 0 40px rgba(0,207,255,0.5), 0 0 80px rgba(0,91,255,0.4); }
}
@keyframes textRevealChar {
  from { opacity: 0; transform: translateY(30px) rotateX(-40deg); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
}
@keyframes rippleExpand {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-25px) rotate(2deg); }
}
@keyframes waveMotion {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glowBorderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes counterFlip {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}
@keyframes magneticGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ── MAGNETIC CARD GLOW EFFECT ──────────────────── */
.magnetic-glow {
  position: relative;
  overflow: hidden;
}
.magnetic-glow::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,207,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.magnetic-glow:hover::before {
  opacity: 1;
}
.magnetic-glow > * {
  position: relative;
  z-index: 1;
}

/* ── 3D PERSPECTIVE TILT ON CARDS ───────────────── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tilt-card:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.tilt-card .tilt-inner {
  transform: translateZ(20px);
  transition: transform 0.4s ease;
}
.tilt-card:hover .tilt-inner {
  transform: translateZ(40px);
}

/* ── ANIMATED GRADIENT BORDERS ──────────────────── */
.glow-border {
  position: relative;
  overflow: visible;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #00cfff, #005bff, #a855f7, #ec4899, #00cfff);
  background-size: 300% 100%;
  animation: glowBorderSpin 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-border:hover::after {
  opacity: 1;
}

/* ── RIPPLE CLICK EFFECT ────────────────────────── */
.ripple-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
  width: 10px;
  height: 10px;
}

/* ── SVG WAVE SECTION DIVIDERS ──────────────────── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  padding: 0;
}
.wave-divider svg {
  width: 200%;
  height: 60px;
  animation: waveMotion 8s linear infinite;
}
.wave-divider.wave-flip {
  transform: rotate(180deg);
}
.wave-divider .wave-fill-1 { fill: rgba(0, 207, 255, 0.06); }
.wave-divider .wave-fill-2 { fill: rgba(0, 91, 255, 0.04); }
.wave-divider .wave-fill-3 { fill: var(--dark-2, #091329); }

@media (max-width: 768px) {
  .wave-divider svg {
    height: 35px;
  }
}

/* ── PARALLAX FLOATING SHAPES ───────────────────── */
.parallax-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.p-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(60px);
  animation: floatShape 12s ease-in-out infinite;
}
.p-shape-1 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #00cfff, #005bff);
  top: 10%; left: -5%;
  animation-delay: 0s;
}
.p-shape-2 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  top: 60%; right: -5%;
  animation-delay: -4s;
}
.p-shape-3 {
  width: 250px; height: 250px;
  background: linear-gradient(135deg, #22c55e, #00cfff);
  bottom: 5%; left: 30%;
  animation-delay: -8s;
}

/* ── SCROLL REVEAL CLASSES ──────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.85); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ── STAGGERED CHILDREN REVEAL ──────────────────── */
.stagger-children.revealed > * {
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stagger-children.revealed > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children.revealed > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children.revealed > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children.revealed > *:nth-child(12) { animation-delay: 0.6s; }
.stagger-children.revealed > *:nth-child(13) { animation-delay: 0.65s; }

/* ── NEON TEXT GLOW ON ACTIVE SECTION HEADERS ───── */
.section-title .gradient-text {
  transition: text-shadow 0.4s ease;
}
.section-header.in-view .section-title .gradient-text {
  animation: neonPulse 3s ease-in-out infinite;
}

/* ── ENHANCED STAT COUNTER STYLE ────────────────── */
.stat-card-num.counting,
.stat-num.counting {
  animation: counterFlip 0.3s ease both;
}

/* ── DYNAMIC GREETING BADGE ─────────────────────── */
.dynamic-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0,207,255,0.12), rgba(0,91,255,0.08));
  border: 1px solid rgba(0,207,255,0.2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1, #e2e8f0);
  backdrop-filter: blur(10px);
  margin-bottom: 12px;
  animation: subtleFloat 4s ease-in-out infinite;
}
.dynamic-greeting .greeting-emoji {
  font-size: 1.2rem;
  animation: wave 2s ease-in-out infinite;
  display: inline-block;
}

/* ── CONFETTI PARTICLES ─────────────────────────── */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-in forwards;
}

/* ── ENHANCED SCROLL-TO-TOP WITH PROGRESS RING ── */
.fab-btn.scroll-top {
  position: relative;
}
.scroll-progress-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
}
.scroll-progress-ring circle {
  fill: none;
  stroke: var(--blue-1, #00cfff);
  stroke-width: 2.5;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.15s linear;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-linecap: round;
}

/* ── INTERACTIVE SERVICE CARD FLIP ──────────────── */
.service-card-flipper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card.flipped .service-card-flipper {
  transform: rotateY(180deg);
}
.service-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  background: var(--card-bg, rgba(13,27,56,0.7));
  border-radius: inherit;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  backdrop-filter: blur(16px);
}
.service-card-back h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1, #ffffff);
}
.service-card-back p {
  font-size: 0.85rem;
  color: var(--text-2, rgba(255,255,255,0.7));
  line-height: 1.6;
}

/* ── ENHANCED TESTIMONIAL AUTO-SCROLL SHIMMER ──── */
.testimonials-track-outer.auto-scrolling .testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,207,255,0.04), transparent);
  animation: shimmer 2s ease-in-out infinite;
  pointer-events: none;
}

/* ── SMOOTH FOCUS INDICATORS FOR ACCESSIBILITY ── */
*:focus-visible {
  outline: 2px solid var(--blue-1, #00cfff);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── ENHANCED GALLERY HOVER ─────────────────────── */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,207,255,0.15), rgba(0,91,255,0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}
.gallery-item:hover::after {
  opacity: 1;
}
.gallery-item .gallery-hover-overlay {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-item:hover .gallery-hover-overlay {
  backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-hover-overlay i {
  transform: scale(1.3) rotate(15deg);
  text-shadow: 0 0 20px rgba(0,207,255,0.8);
}

/* ── ENHANCED JOURNEY TIMELINE ──────────────────── */
.journey-step {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.journey-step:hover {
  transform: translateY(-8px);
}
.journey-step:hover .journey-step-circle {
  box-shadow: 0 0 30px rgba(0,207,255,0.5), 0 0 60px rgba(0,91,255,0.3);
  transform: scale(1.12);
}
.journey-step-circle {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── ENHANCED TECH CARDS ────────────────────────── */
.tech-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-1, #00cfff), var(--blue-2, #005bff));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.tech-card:hover::before {
  transform: scaleX(1);
}
.tech-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,207,255,0.15);
}
.tech-card-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tech-card:hover .tech-card-icon {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 30px rgba(0,207,255,0.4);
}
.tech-card-badge {
  transition: all 0.3s ease;
}
.tech-card:hover .tech-card-badge {
  background: linear-gradient(135deg, var(--blue-1, #00cfff), var(--blue-2, #005bff));
  color: #fff;
  transform: translateY(-2px);
}

/* ── ENHANCED AWARD CARDS ───────────────────────── */
.award-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.award-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0,207,255,0.2);
}
.award-card:hover .award-icon {
  transform: scale(1.3);
  filter: drop-shadow(0 0 12px rgba(0,207,255,0.6));
}
.award-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.award-num {
  transition: all 0.3s ease;
}
.award-card:hover .award-num {
  text-shadow: 0 0 20px rgba(0,207,255,0.5);
}

/* ── ENHANCED FAQ INTERACTION ───────────────────── */
.faq-item {
  position: relative;
  overflow: hidden;
}
.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-1, #00cfff), var(--blue-2, #005bff));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.faq-item.active::before,
.faq-item:hover::before {
  transform: scaleY(1);
}

/* ── ENHANCED APPOINTMENT SECTION ───────────────── */
.appt-contact-item {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.appt-contact-item:hover {
  transform: translateX(8px);
  background: rgba(0,207,255,0.06);
}
.appt-contact-item:hover .appt-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 20px rgba(0,207,255,0.35);
}

/* ── INTERACTIVE SYMPTOM CHIP PULSE ─────────────── */
.symptom-chip.selected {
  animation: breathe 2s ease-in-out infinite;
}
.symptom-chip.selected i {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ── SMOOTH PAGE TRANSITIONS ────────────────────── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── ENHANCED PRELOADER EXIT ────────────────────── */
#preloader.hidden {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── GLASS NOISE TEXTURE OVERLAY ────────────────── */
.glass-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* ── MOBILE BOTTOM BAR GLASS EFFECT ─────────────── */
@media (max-width: 768px) {
  .mobile-quick-bar .bar-inner {
    background: rgba(13, 27, 56, 0.85) !important;
    backdrop-filter: blur(24px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
    border-top: 1px solid rgba(0,207,255,0.15);
  }
  .bar-btn:active {
    transform: scale(0.92) !important;
    transition: transform 0.1s ease !important;
  }
}

/* ── HOVER TOOLTIP HINTS ────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,207,255,0.2);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   CARE DENTAL HOSPITAL — MASTERPIECE 4-CORNER LOGO SYSTEM
   ============================================================ */

/* Top-Left Logo (In Navbar): Glow & Verification Badge */
.nav-logo .logo-icon {
  position: relative;
  background: linear-gradient(135deg, rgba(0,207,255,0.2), rgba(0,91,255,0.25));
  border: 1.5px solid rgba(0,207,255,0.5);
  box-shadow: 0 0 16px rgba(0,207,255,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-logo:hover .logo-icon {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 24px rgba(0,207,255,0.6);
  border-color: #00cfff;
}
.logo-verified-tag {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  border: 1.5px solid #050c1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Top-Right Corner Hospital Accreditation Emblem */
.corner-logo-tr-fixed {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(5, 12, 26, 0.88);
  border: 1px solid rgba(0,207,255,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 18px rgba(0,207,255,0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #fff;
}
.corner-logo-tr-fixed:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #00cfff;
  box-shadow: 0 12px 34px rgba(0,0,0,0.5), 0 0 28px rgba(0,207,255,0.4);
}
.corner-logo-tr-img-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,207,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid rgba(0,207,255,0.4);
  flex-shrink: 0;
}
.corner-logo-tr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.corner-logo-tr-text {
  display: flex;
  flex-direction: column;
}
.corner-logo-tr-text strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.corner-logo-tr-text strong i {
  color: #f59e0b;
  font-size: 0.65rem;
}
.corner-logo-tr-text span {
  font-size: 0.62rem;
  color: #00cfff;
  font-weight: 600;
}

/* Bottom-Left Corner Hospital Status & Watermark Emblem */
.corner-logo-bl-fixed {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: rgba(5, 12, 26, 0.9);
  border: 1px solid rgba(0,207,255,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 20px rgba(0,207,255,0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #fff;
}
.corner-logo-bl-fixed:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #00cfff;
  box-shadow: 0 12px 34px rgba(0,0,0,0.55), 0 0 28px rgba(0,207,255,0.4);
}
.corner-logo-bl-img-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,207,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid rgba(0,207,255,0.4);
  flex-shrink: 0;
  position: relative;
}
.corner-logo-bl-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.corner-logo-bl-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #050c1a;
  box-shadow: 0 0 8px #10b981;
  animation: breathe 1.8s ease-in-out infinite;
}
.corner-logo-bl-text {
  display: flex;
  flex-direction: column;
}
.corner-logo-bl-text strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.corner-logo-bl-text span {
  font-size: 0.62rem;
  color: #10b981;
  font-weight: 600;
}

/* Bottom-Right Corner: Enhanced Chatbot & Floating Hub with Logo */
.chatbot-bubble {
  position: relative;
  background: linear-gradient(135deg, #005bff, #00cfff) !important;
  box-shadow: 0 8px 30px rgba(0, 91, 255, 0.45), 0 0 20px rgba(0, 207, 255, 0.4) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.chatbot-logo-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  background: #050c1a;
  border: 1.5px solid #00cfff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.chatbot-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── CORNER WATERMARKS ACROSS MASTER SECTIONS ── */
.section-corner-watermark {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(0,207,255,0.5));
  transition: opacity 0.5s ease;
}
.section-corner-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.watermark-tl { top: 16px; left: 16px; }
.watermark-tr { top: 16px; right: 16px; }
.watermark-bl { bottom: 16px; left: 16px; }
.watermark-br { bottom: 16px; right: 16px; }

/* Section container positioning context */
.hero, .about-section, .doctors-section, .appointment-section, .footer {
  position: relative;
  overflow: hidden;
}

/* Responsive Handling for Corner Logos on Mobile & Laptop */
@media (max-width: 1024px) {
  .corner-logo-tr-fixed {
    top: 72px;
    right: 16px;
    padding: 6px 12px 6px 8px;
  }
  .corner-logo-bl-fixed {
    bottom: 80px;
    left: 16px;
  }
}

@media (max-width: 900px) {
  /* On mobile and tablet screens, hide fixed corner emblems to keep viewport and mobile bottom bar 100% clean */
  .corner-logo-tr-fixed,
  .corner-logo-bl-fixed {
    display: none !important;
  }
  .section-corner-watermark {
    width: 70px;
    height: 70px;
    opacity: 0.03;
  }
}

/* ── PRINT STYLES ───────────────────────────────── */
@media print {
  .wave-divider,
  .parallax-shapes,
  .confetti-container,
  .floating-actions,
  .mobile-quick-bar,
  .chatbot-wrapper,
  .corner-logo-tr-fixed,
  .corner-logo-bl-fixed,
  .section-corner-watermark,
  #particleCanvas,
  .custom-cursor,
  .cursor-follower,
  .emergency-banner,
  #preloader { display: none !important; }
}

/* ── HERO VIDEO CONTROLS FLOATING BADGE ────────── */
.hero-video-controls {
  position: absolute;
  top: 92px;
  right: 28px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.hero-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: rgba(5, 12, 26, 0.85);
  border: 1.5px solid rgba(0, 207, 255, 0.4);
  border-radius: 30px;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 207, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-video-btn:hover {
  background: rgba(0, 91, 255, 0.4);
  border-color: #00cfff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 207, 255, 0.45);
}
.hero-video-btn:active {
  transform: scale(0.94);
}
.hero-video-btn i {
  color: #00cfff;
  font-size: 0.82rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.hero-video-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #a7f3d0;
}
.hero-video-btn.active i {
  color: #10b981;
}
.hero-video-btn.paused {
  border-color: #f59e0b;
}
.hero-video-btn.paused i {
  color: #f59e0b;
}

@media (max-width: 1024px) {
  .hero-video-controls {
    top: 80px;
    right: 18px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .hero-video-controls {
    top: auto;
    bottom: 16px;
    right: 14px;
    gap: 6px;
  }
  .hero-video-btn {
    padding: 5px 11px;
    font-size: 0.7rem;
  }
}

