/* Optional JeevanSetu Life and Health background motion; remove this file and
   its stylesheet link in index.html to revert the effect. */
.home-page > #main .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-page > #main .hero::before {
  position: absolute;
  z-index: 0;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 17% 38%, rgb(240 24 58 / 15%), transparent 36%),
    radial-gradient(ellipse at 77% 24%, rgb(17 113 194 / 17%), transparent 35%),
    radial-gradient(ellipse at 68% 83%, rgb(22 158 109 / 14%), transparent 34%);
  content: '';
  animation: jeevansetu-insurance-glow 24s ease-in-out infinite alternate;
}

.home-page > #main .hero-grid {
  position: relative;
  z-index: 1;
}

.home-page > #main .insurance-card {
  isolation: isolate;
  overflow: hidden;
}

.home-page > #main .insurance-card::before {
  position: absolute;
  z-index: 0;
  top: -65px;
  right: -45px;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid rgb(10 47 99 / 17%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(10 47 99 / 13%), rgb(10 47 99 / 0%) 69%);
  content: '';
  animation: jeevansetu-insurance-orbit 18s ease-in-out infinite alternate;
}

.home-page > #main .insurance-card.health-card::before {
  border-color: rgb(18 142 120 / 19%);
  background: radial-gradient(circle, rgb(18 142 120 / 14%), rgb(18 142 120 / 0%) 69%);
  animation-delay: -7s;
}

.home-page > #main .insurance-card > :not(.line-icon) {
  position: relative;
  z-index: 1;
}

.home-page > #main .insurance-card .line-icon {
  z-index: 1;
}

@keyframes jeevansetu-insurance-glow {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-0.5%, 1.5%, 0) scale(1.02);
  }
}

@keyframes jeevansetu-insurance-orbit {
  from {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  to {
    transform: translate3d(-12px, 10px, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page > #main .hero::before,
  .home-page > #main .insurance-card::before {
    animation: none;
  }
}
