body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
}
.math-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Basic style for each symbol */
.math-bg span {
  position: absolute;
  font-size: 10rem;
  color: rgba(0, 0, 0, 0.08);
  animation: floatSymbol 10s linear infinite;
  user-select: none;
}

/* Floating + rotation effect */
@keyframes floatSymbol {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(5px, -10px) rotate(180deg) scale(2);
    opacity: 2;
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
    opacity: 1;
  }
}

/* Random scattered positions + animation delay */
.math-bg span:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.math-bg span:nth-child(2) {
  top: 30%;
  left: 70%;
  animation-delay: 0.05s;
}
.math-bg span:nth-child(3) {
  top: 60%;
  left: 40%;
  animation-delay: 0s;
}
.math-bg span:nth-child(4) {
  top: 75%;
  left: 80%;
  animation-delay: 0.02s;
}
.math-bg span:nth-child(5) {
  top: 50%;
  left: 10%;
  animation-delay: 0s;
}
.math-bg span:nth-child(6) {
  top: 20%;
  left: 50%;
  animation-delay: 0.09s;
}
.math-bg span:nth-child(7) {
  top: 85%;
  left: 25%;
  animation-delay: 0.05s;
}
.math-bg span:nth-child(8) {
  top: 15%;
  left: 85%;
  animation-delay: 0.07s;
}
.math-bg span:nth-child(9) {
  top: 35%;
  left: 30%;
  animation-delay: 0.02s;
}
.math-bg span:nth-child(10) {
  top: 65%;
  left: 60%;
  animation-delay: 0.05s;
}
@media (max-width: 768px) {
  /* Basic style for each symbol */
  .math-bg span {
    position: absolute;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.08);
    animation: floatSymbol 10s linear infinite;
    user-select: none;
  }

  /* Floating + rotation effect */
  @keyframes floatSymbol {
    0% {
      transform: translate(0, 0) rotate(0deg) scale(1);
      opacity: 1;
    }
    50% {
      transform: translate(5px, -10px) rotate(180deg) scale(2);
      opacity: 2;
    }
    100% {
      transform: translate(0, 0) rotate(360deg) scale(1);
      opacity: 1;
    }
  }
}
