/* Stars background component */
body {
  background: #0a0a0f;
  position: relative;
}

/* Stars background layers */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

/* Small stars layer */
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, white, transparent),
    radial-gradient(1px 1px at 60px 70px, white, transparent),
    radial-gradient(1px 1px at 50px 160px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(1px 1px at 140px 150px, white, transparent);
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.5;
  animation: twinkle 3s ease-in-out infinite;
}

/* Medium stars layer */
body::after {
  background-image:
    radial-gradient(2px 2px at 100px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 200px 150px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 150px 200px, rgba(255,255,255,0.8), transparent);
  background-size: 300px 300px;
  background-repeat: repeat;
  opacity: 0.4;
  animation: twinkle 4s ease-in-out infinite reverse;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
