/* ==========================================================================
   Poorti Advanced Sonography Centre - Themed Medical Floating Animations
   High-End, 60fps GPU-Accelerated Polish for All Mobile Phones & Computers
   ========================================================================== */

:root {
  --medical-cyan: #00d2ff;
  --medical-blue: #0066ff;
  --medical-glow: rgba(0, 210, 255, 0.4);
  --medical-pulse: rgba(0, 102, 255, 0.25);
  --success-green: #10b981;
  --wa-green: #25d366;
}

/* --------------------------------------------------
   1. Card & Logo Floating Physics (Smooth 60fps)
   -------------------------------------------------- */
#header .content {
  animation: floatCard 6s ease-in-out infinite alternate !important;
  will-change: transform;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-9px);
  }
}

#header .logo {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 2;
  animation: floatLogo 5s ease-in-out infinite alternate !important;
  will-change: transform;
}

@keyframes floatLogo {
  0% {
    transform: translateY(0px) scale(1);
  }
  100% {
    transform: translateY(-7px) scale(1.02);
  }
}

.logo img {
  position: relative;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: drop-shadow(0 4px 18px rgba(0, 210, 255, 0.35));
}

.logo:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 26px rgba(0, 210, 255, 0.7));
}

/* --------------------------------------------------
   2. Ultrasound Sonar Wave Radar Pulses
   -------------------------------------------------- */
.sonar-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.sonar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-top: -45px;
  margin-left: -45px;
  border-radius: 50%;
  border: 1.5px solid var(--medical-cyan);
  box-shadow: 0 0 16px var(--medical-glow);
  opacity: 0;
  animation: sonarPulse 3.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
  will-change: transform, opacity;
}

.sonar-wave:nth-child(2) {
  animation-delay: 1.2s;
}

.sonar-wave:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes sonarPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
    border-color: #00d2ff;
  }
  50% {
    opacity: 0.4;
    border-color: #0088ff;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
    border-color: rgba(0, 102, 255, 0);
  }
}

/* --------------------------------------------------
   3. Themed Floating Particles (Ultrasound, ECG, Cells)
   -------------------------------------------------- */
.floating-theme-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-item {
  position: absolute;
  color: rgba(0, 210, 255, 0.32);
  text-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
  will-change: transform, opacity;
}

.float-item i {
  display: block;
}

/* Individual Floating Elements */
.float-item-1 {
  top: 15%;
  left: 8%;
  font-size: 2.4rem;
  animation: floatDrift1 9s ease-in-out infinite alternate;
}

.float-item-2 {
  top: 22%;
  right: 10%;
  font-size: 2.8rem;
  color: rgba(140, 44, 240, 0.3);
  text-shadow: 0 0 18px rgba(140, 44, 240, 0.4);
  animation: floatDrift2 11s ease-in-out infinite alternate;
}

.float-item-3 {
  bottom: 25%;
  left: 6%;
  font-size: 2rem;
  animation: floatDrift3 10s ease-in-out infinite alternate;
}

.float-item-4 {
  bottom: 30%;
  right: 8%;
  font-size: 2.3rem;
  color: rgba(16, 185, 129, 0.3);
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  animation: floatDrift1 12s ease-in-out infinite alternate;
}

.float-item-5 {
  top: 8%;
  left: 48%;
  font-size: 1.8rem;
  animation: floatDrift2 8s ease-in-out infinite alternate;
}

.float-item-6 {
  bottom: 12%;
  left: 20%;
  font-size: 2.2rem;
  animation: floatDrift3 10.5s ease-in-out infinite alternate;
}

.float-item-7 {
  top: 42%;
  right: 4%;
  font-size: 2rem;
  animation: floatDrift1 13s ease-in-out infinite alternate;
}

@keyframes floatDrift1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(25px, -28px, 0) rotate(8deg);
  }
  100% {
    transform: translate3d(-18px, 20px, 0) rotate(-6deg);
  }
}

@keyframes floatDrift2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.95);
  }
  50% {
    transform: translate3d(-30px, 32px, 0) rotate(-10deg) scale(1.05);
  }
  100% {
    transform: translate3d(20px, -22px, 0) rotate(6deg) scale(0.98);
  }
}

@keyframes floatDrift3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, 30px, 0) scale(1.1);
  }
  100% {
    transform: translate3d(-24px, -18px, 0) scale(0.92);
  }
}

/* Acoustic Cavitation Ultrasound Bubbles */
.float-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(0, 210, 255, 0.2) 60%, rgba(0, 102, 255, 0.05) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
  animation: bubbleRise 14s linear infinite;
  will-change: transform, opacity;
}

.bubble-1 { width: 34px; height: 34px; left: 12%; bottom: -40px; animation-duration: 15s; }
.bubble-2 { width: 22px; height: 22px; left: 28%; bottom: -40px; animation-duration: 12s; animation-delay: 2s; }
.bubble-3 { width: 44px; height: 44px; left: 72%; bottom: -40px; animation-duration: 18s; animation-delay: 4s; }
.bubble-4 { width: 18px; height: 18px; left: 85%; bottom: -40px; animation-duration: 11s; animation-delay: 1s; }
.bubble-5 { width: 30px; height: 30px; left: 52%; bottom: -40px; animation-duration: 16s; animation-delay: 6s; }
.bubble-6 { width: 26px; height: 26px; left: 40%; bottom: -40px; animation-duration: 13s; animation-delay: 3s; }

@keyframes bubbleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(30px, -110vh, 0) scale(1.15);
    opacity: 0;
  }
}

/* --------------------------------------------------
   4. Live Doppler Frequency & ECG Monitor Widget
   -------------------------------------------------- */
.doppler-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 20, 35, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 14px;
  padding: 10px 18px;
  margin: 1.2rem auto 0;
  max-width: 580px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 210, 255, 0.08);
  animation: floatCard 5.5s ease-in-out infinite alternate;
}

.doppler-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--medical-cyan);
  text-transform: uppercase;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--medical-cyan);
  box-shadow: 0 0 10px var(--medical-cyan);
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

.equalizer-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 24px;
  padding: 2px 0;
}

.bar {
  width: 4px;
  background: linear-gradient(180deg, #00d2ff 0%, #0066ff 100%);
  border-radius: 2px;
  animation: eqJump 1.2s ease-in-out infinite alternate;
}

.bar-1  { height: 40%; animation-delay: 0.1s; }
.bar-2  { height: 80%; animation-delay: 0.4s; }
.bar-3  { height: 60%; animation-delay: 0.2s; }
.bar-4  { height: 100%; animation-delay: 0.6s; }
.bar-5  { height: 50%; animation-delay: 0.3s; }
.bar-6  { height: 90%; animation-delay: 0.5s; }
.bar-7  { height: 70%; animation-delay: 0.15s; }
.bar-8  { height: 40%; animation-delay: 0.35s; }
.bar-9  { height: 85%; animation-delay: 0.55s; }
.bar-10 { height: 60%; animation-delay: 0.25s; }

@keyframes eqJump {
  0% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.4); }
}

.ecg-line-svg {
  width: 100%;
  max-width: 320px;
  height: 22px;
  stroke: var(--medical-cyan);
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 6px var(--medical-cyan));
}

.ecg-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: ecgSweep 2.8s linear infinite;
}

@keyframes ecgSweep {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------
   5. Staggered Floating Medical Trust Badges
   -------------------------------------------------- */
.trust-badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.5rem auto 1rem;
  max-width: 740px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.trust-badge:nth-child(1) { animation: floatBadge 4.2s ease-in-out 0.1s infinite alternate; }
.trust-badge:nth-child(2) { animation: floatBadge 4.8s ease-in-out 0.4s infinite alternate; }
.trust-badge:nth-child(3) { animation: floatBadge 4.4s ease-in-out 0.7s infinite alternate; }
.trust-badge:nth-child(4) { animation: floatBadge 5.1s ease-in-out 0.3s infinite alternate; }
.trust-badge:nth-child(5) { animation: floatBadge 4.6s ease-in-out 0.6s infinite alternate; }

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.trust-badge i {
  color: var(--medical-cyan);
  font-size: 0.85rem;
}

.trust-badge:hover {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--medical-cyan);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 18px var(--medical-glow);
  color: #ffffff;
}

/* --------------------------------------------------
   6. Ambient Background Glow Mesh
   -------------------------------------------------- */
.ambient-glow-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.38;
  animation: floatOrb 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.42) 0%, rgba(0, 102, 255, 0) 70%);
  top: -80px;
  left: -80px;
}

.glow-orb-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(0, 210, 255, 0) 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(45px, 45px, 0) scale(1.2);
  }
}

/* --------------------------------------------------
   7. Floating Quick Action Bar (Mobile & Desktop)
   -------------------------------------------------- */
.floating-action-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 210, 255, 0.25);
  z-index: 9999;
  animation: slideUpDock 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 92vw;
}

@keyframes slideUpDock {
  0% {
    transform: translate(-50%, 60px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.dock-btn-call {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  position: relative;
}

.dock-btn-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: callPulse 2s infinite;
}

@keyframes callPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dock-btn-whatsapp {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.dock-btn-map {
  background: linear-gradient(135deg, #0284c7 0%, #00d2ff 100%);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.4);
}

.dock-btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.12);
}

.dock-btn:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------------------------------------
   8. Interactive Navigation & Hover Shimmer
   -------------------------------------------------- */
#header nav ul li a {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 6px;
}

#header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--medical-cyan), transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

#header nav ul li a:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 18px var(--medical-glow);
  transform: translateY(-3px);
}

#header nav ul li a:hover::after {
  width: 80%;
  left: 10%;
}

/* --------------------------------------------------
   9. Content Article Animations & Polish
   -------------------------------------------------- */
#main article {
  border: 1px solid rgba(0, 210, 255, 0.18);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

#main article ul li {
  padding: 6px 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

#main article ul li:hover {
  transform: translateX(5px);
  color: #ffffff;
}

#main article ul li strong {
  color: #38bdf8;
}

/* Doctor Profile Styling */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(0, 210, 255, 0.22);
}

.profile img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--medical-cyan);
  box-shadow: 0 0 22px var(--medical-glow);
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile:hover img {
  transform: scale(1.06) rotate(1deg);
  box-shadow: 0 0 32px var(--medical-cyan);
}

/* --------------------------------------------------
   10. Mobile Responsiveness Tweaks
   -------------------------------------------------- */
@media screen and (max-width: 736px) {
  .trust-badges-container {
    gap: 6px;
  }
  
  .trust-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  
  .floating-action-dock {
    bottom: 12px;
    padding: 6px 10px;
    gap: 8px;
  }
  
  .dock-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
  
  .profile {
    flex-direction: column;
    text-align: center;
  }
  
  .sonar-wave {
    width: 75px;
    height: 75px;
    margin-top: -37.5px;
    margin-left: -37.5px;
  }

  .doppler-monitor {
    padding: 8px 12px;
    max-width: 92%;
  }

  .float-item {
    opacity: 0.22;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .sonar-wave,
  .glow-orb,
  .float-item,
  .float-bubble,
  .dock-btn-call::before,
  #header .content,
  #header .logo,
  .doppler-monitor,
  .bar,
  .ecg-path {
    animation: none !important;
  }
}
