/* ==========================================================================
   Interactive Blood Cells & Cloud Vascular Ambience
   hokilotug - Dialok
   ========================================================================== */

#bloodCellsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.5s ease;
}

/* Cloud Ambient Background Lighting */
.cloud-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 18% 12%, rgba(224, 242, 254, 0.7) 0%, transparent 45%),
    radial-gradient(circle at 82% 28%, rgba(191, 219, 254, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(240, 249, 255, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(224, 231, 255, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f0f7ff 35%, #e8f3fc 70%, #f1f6fd 100%);
  overflow: hidden;
}

/* Floating Ambient Erythrocyte Elements (CSS Parallax layer) */
.floating-cells-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-cell {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  will-change: transform;
}

.floating-cell-1 {
  top: 14%;
  left: 4%;
  width: 44px;
  height: 44px;
  background: url('../images/erythrocyte.svg') no-repeat center center / contain;
  opacity: 0.75;
  filter: drop-shadow(0 8px 14px rgba(220, 38, 38, 0.25));
  animation: floatCellDrift1 14s ease-in-out infinite alternate;
}

.floating-cell-2 {
  top: 38%;
  right: 5%;
  width: 58px;
  height: 58px;
  background: url('../images/erythrocyte.svg') no-repeat center center / contain;
  opacity: 0.8;
  filter: drop-shadow(0 10px 18px rgba(220, 38, 38, 0.28));
  animation: floatCellDrift2 18s ease-in-out infinite alternate;
}

.floating-cell-3 {
  top: 68%;
  left: 6%;
  width: 38px;
  height: 38px;
  background: url('../images/erythrocyte.svg') no-repeat center center / contain;
  opacity: 0.65;
  filter: drop-shadow(0 6px 12px rgba(220, 38, 38, 0.2));
  animation: floatCellDrift1 16s ease-in-out infinite alternate-reverse;
}

.floating-cell-4 {
  top: 85%;
  right: 8%;
  width: 50px;
  height: 50px;
  background: url('../images/erythrocyte-blue.svg') no-repeat center center / contain;
  opacity: 0.7;
  filter: drop-shadow(0 8px 16px rgba(2, 132, 199, 0.25));
  animation: floatCellDrift2 20s ease-in-out infinite alternate;
}

.floating-cell-5 {
  top: 24%;
  right: 22%;
  width: 32px;
  height: 32px;
  background: url('../images/erythrocyte-blue.svg') no-repeat center center / contain;
  opacity: 0.55;
  filter: drop-shadow(0 6px 12px rgba(2, 132, 199, 0.2));
  animation: floatCellDrift1 15s ease-in-out infinite alternate;
}

@keyframes floatCellDrift1 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(25px, -35px) rotate(45deg) scale(1.08);
  }
  100% {
    transform: translate(-20px, 30px) rotate(90deg) scale(0.95);
  }
}

@keyframes floatCellDrift2 {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-30px, 40px) rotate(-55deg) scale(1.12);
  }
  100% {
    transform: translate(25px, -25px) rotate(-110deg) scale(0.92);
  }
}
