/* Animated background balls for full page and banner */
.animated-balls-fullpage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
  background: transparent;
}

.ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  filter: blur(2px);
}

.ball1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 10%;
  animation-name: move1;
  animation-duration: 8s;
  background: rgba(0, 0, 0, 0.7);
}

.ball2 {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 80%;
  animation-name: move2;
  animation-duration: 10s;
  background: rgba(0, 0, 0, 0.5);
}

.ball3 {
  width: 100px;
  height: 100px;
  top: 70%;
  left: 30%;
  animation-name: move3;
  animation-duration: 7s;
  background: rgba(0, 0, 0, 0.4);
}

.ball4 {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 70%;
  animation-name: move4;
  animation-duration: 9s;
  background: rgba(0, 0, 0, 0.6);
}

.ball5 {
  width: 90px;
  height: 90px;
  top: 60%;
  left: 85%;
  animation-name: move5;
  animation-duration: 6s;
  background: rgba(0, 0, 0, 0.5);
}

@keyframes move1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 20px); }
}

@keyframes move2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-40px, 30px); }
}

@keyframes move3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, -30px); }
}

@keyframes move4 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, -20px); }
}

@keyframes move5 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(25px, 25px); }
}

/* Loading screen overlay */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Dual-ring spinner */
#loading-spinner {
  display: inline-block;
  width: 64px;
  height: 64px;
}
#loading-spinner:after {
  content: " ";
  display: block;
  width: 48px;
  height: 48px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #000000;
  border-color: #000000 transparent #000000 transparent;
  animation: dual-ring-spin 1.2s linear infinite;
}

@keyframes dual-ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
