footer {
  --footer-parallax-height: 580px;
  height: var(--footer-parallax-height) !important;
  min-height: var(--footer-parallax-height) !important;
}
@media (max-width: 640px) {
  footer {
    --footer-parallax-height: 640px;
    height: var(--footer-parallax-height) !important;
  }
}
.footer-parallax-layer {
  overflow: hidden;
  height: var(--footer-parallax-height);
}
.footer-parallax-item {
  position: absolute;
}
.footer-parallax-item--a {
  left: 220px;
  top: 50px;
}
.footer-parallax-item--b {
  right: -40px;
  top: 180px;
}
.footer-parallax-item--c {
  left: 50%;
  top: 260px;
  transform: translateX(calc(-50% + 80px));
}
.footer-parallax-dot {
  border-radius: 9999px;
  background:
    radial-gradient(circle at 35% 30%,
      color-mix(in srgb, var(--bubble-color) 70%, transparent 30%),
      color-mix(in srgb, var(--bubble-color) 25%, transparent 75%) 45%,
      transparent 70%);
  opacity: 0.45;
  mix-blend-mode: normal;
  filter: saturate(1.02) brightness(0.92);
  box-shadow:
    inset calc(var(--fx, 0px) * -0.6) calc(var(--fy, 0px) * -0.6) 22px rgba(255, 255, 255, 0.2),
    inset calc(var(--fx, 0px) * 0.8) calc(var(--fy, 0px) * 0.8) 32px rgba(0, 0, 0, 0.22),
    calc(var(--fx, 0px) * 0.6) calc(var(--fy, 0px) * 0.6) 22px rgba(0, 0, 0, 0.09);
  animation: none;
}
[data-theme="dark"] .footer-parallax-dot {
  opacity: 0.26;
  filter: saturate(0.95) brightness(0.9);
  box-shadow:
    inset 0 6px 14px rgba(255, 255, 255, 0.1),
    inset 0 -10px 22px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.18);
}
.footer-parallax-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 28%,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.18) 34%,
      rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 72% 70%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.footer-parallax-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 35%,
      rgba(255, 120, 200, 0.18),
      rgba(255, 120, 200, 0) 55%),
    radial-gradient(circle at 70% 40%,
      rgba(120, 220, 255, 0.18),
      rgba(120, 220, 255, 0) 58%),
    radial-gradient(circle at 55% 70%,
      rgba(120, 255, 180, 0.16),
      rgba(120, 255, 180, 0) 60%),
    radial-gradient(circle at 40% 75%,
      rgba(255, 210, 120, 0.16),
      rgba(255, 210, 120, 0) 62%);
  opacity: 0.28;
  filter: blur(12px);
  -webkit-mask-image: none;
  mask-image: none;
  mix-blend-mode: screen;
  animation: bubble-spin 16s linear infinite reverse;
  pointer-events: none;
}
[data-theme="dark"] .footer-parallax-dot::before {
  opacity: 0.55;
}
[data-theme="dark"] .footer-parallax-dot::after {
  opacity: 0.4;
}
.footer-parallax-dot--xl {
  width: 420px;
  height: 420px;
}
.footer-parallax-dot--lg {
  width: 320px;
  height: 320px;
}
.footer-parallax-dot--sm {
  width: 160px;
  height: 160px;
}
@media (max-width: 640px) {
  .footer-parallax-item:nth-child(3) {
    display: none;
  }
  .footer-parallax-item--a {
    left: -30px;
    top: 18px;
  }
  .footer-parallax-item--b {
    right: -40px;
    top: 100px;
  }
  .footer-parallax-dot--xl {
    width: 300px;
    height: 300px;
  }
  .footer-parallax-dot--lg {
    width: 240px;
    height: 240px;
  }
}
.footer-parallax-dot--a {
  --bubble-color: rgba(255, 130, 155, 0.98);
  animation-delay: -2s;
}
.footer-parallax-dot--b {
  --bubble-color: rgba(130, 230, 255, 0.98);
  animation-delay: -4s;
}
.footer-parallax-dot--c {
  --bubble-color: rgba(120, 255, 190, 1);
  opacity: 0.3;
  animation-delay: -1s;
}
@keyframes footer-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-parallax-dot {
    animation: none;
  }
  .footer-parallax-item {
    transform: none !important;
  }
  .footer-parallax-dot::before,
  .footer-parallax-dot::after {
    animation: none;
  }
}
@keyframes bubble-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.footer-gradient{
  background:
    radial-gradient(1100px 800px at 15% 20%, rgba(255,130,155,0.36), rgba(255,130,155,0) 70%),
    radial-gradient(1100px 800px at 85% 25%, rgba(130,230,255,0.36), rgba(130,230,255,0) 70%),
    radial-gradient(1000px 800px at 35% 80%, rgba(120,255,190,0.32), rgba(120,255,190,0) 70%),
    radial-gradient(900px 700px at 70% 85%, rgba(255,210,120,0.32), rgba(255,210,120,0) 70%),
    radial-gradient(900px 700px at 55% 50%, rgba(170,140,255,0.30), rgba(170,140,255,0) 70%),
    var(--color-bg);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.4) 30%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.4) 30%, #000 60%);
}

:root[data-theme="dark"] .footer-gradient,
:root.dark .footer-gradient{
  opacity: 0.75;
  filter: saturate(1.35) brightness(1.02);
}
