/* SKY BASE */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at bottom, #020111, #000);
}

/* Stars */
.stars {
  position: absolute;

  width: 120%;
  height: 120%;

  top: -10%;
  left: -10%;

  pointer-events: none;
  will-change: transform;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px white;
  opacity: 0.8;

  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  animation: twinkle 2s infinite alternate;
}

.star:hover {
  transform: scale(2);
  opacity: 1;
}

.star.special:hover {
  background: #00ccff;
  box-shadow: 0 0 20px #00ccff;
}

/*Parallax Depth*/
.stars-back .star {
  opacity: 0.3;
  transform: scale(0.7);
}

.stars-mid .star {
  opacity: 0.6;
  transform: scale(1);
}

.stars-front .star {
  opacity: 1;
  transform: scale(1.3);
}

/* Constellations */
.temp-star {
  position: fixed;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 12px #00ccff;
  pointer-events: none;

  opacity: 0;
  animation: starFade 0.6s ease forwards;
}

.temp-line {
  position: fixed;
  height: 2px;
  background: #00ccff;
  transform-origin: left center;
  pointer-events: none;

  opacity: 0;
  animation: lineDraw 0.6s ease forwards;
}

/* Shooting Stars */
.shooting-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;

  box-shadow: 0 0 8px white, 0 0 15px #00ccff;

  opacity: 0;
  transform: rotate(45deg);
}

.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -120px;
  width: 120px;
  height: 2px;

  background: linear-gradient(
    to left,
    rgba(0, 204, 255, 0.8),
    transparent
  );

  transform: translateY(-50%);
}

/* CLOUDS */
.clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cloud {
  position: absolute;
  width: 300px;
  height: 120px;

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.08),
    transparent 70%
  );

  filter: blur(20px);
  opacity: 0.5;

  animation: drift linear infinite;
}

.cloud.fast {
  animation-duration: 20s;
  opacity: 0.2;
}

.cloud.slow {
  animation-duration: 60s;
  opacity: 0.5;
}

.cloud.glow {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 204, 255, 0.15),
    transparent 70%
  );

  opacity: 0.5;
  filter: blur(25px);
  transition: 0.2s;
}

/* SKY GLOW */
.sky-glow {
  position: absolute;
  width: 300px;
  height: 300px;

  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(0, 204, 255, 0.15),
    transparent 70%
  );

  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Animations */
@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* star fade in */
@keyframes starFade {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* line drawing effect */
@keyframes lineDraw {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

/* ANIMATION */
@keyframes shoot {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(400px, 400px) rotate(45deg);
  }
}

/* MOVEMENT */
@keyframes drift {
  from {
    transform: translateX(-200px);
  }
  to {
    transform: translateX(110vw);
  }
}