/* ===== Container for the Night Sky ===== */
.sky {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: #060010;
  background: var(--gradient-sky-bot);
  filter: contrast(120%) brightness(110%) saturate(80%);
  transform: scale(1.5);
  overflow: hidden;
  z-index: 1;
}

/* ===== Stars and Star Animation ===== */
.stars {
  position: absolute;
  display: none;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  transition: all 10s linear;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background-color: white;
  opacity: 0.8;
  border-radius: 0;
  box-shadow: none;
}

.star.blink {
  animation: blink 8s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.star-0 { width: 1px; height: 1px; }
.star-1 { width: 2px; height: 2px; }
.star-2 { width: 3px; height: 3px; }
.star-3 { width: 4px; height: 4px; }
.star-4 { width: 5px; height: 5px; box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }

.star-5 {
  height: 3.5px;
  width: 3.5px;
  box-shadow: 0px 0px 6px 1px rgba(255,255,255,0.7);
}
/* Clouds Animation ===== */
.clouds {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  z-index: 2;
  transition: opacity 1s ease-in-out;
  animation: cloudMove 10s linear infinite reverse;
  background:
  radial-gradient(circle at 10% 0%, rgb(0, 0, 0, 0.5), transparent 50%),
  radial-gradient(circle at 25% 20%, rgb(255, 255, 255), transparent 70%),
  radial-gradient(circle at 50% 30%, rgb(122, 122, 122), transparent 40%),
  radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.295), transparent 20%),
  radial-gradient(circle at 100% 90%, rgba(0, 0, 0, 0.5), transparent 50%);
  filter: blur(200px);
  transform: scale(0.10);
}

.cloud {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.cloud-1 { 
  width: 15vw; 
  height: 20vh; 
  top: 10vh; 
  left: -15vw;
  animation-duration: 80s;
}
.cloud-2 { 
  width: 18vw; 
  height: 12vh; 
  top: 30vh; 
  left: -20vw;
  animation-duration: 70s;
}
.cloud-3 { 
  width: 12vw; 
  height: 8vh; 
  top: 50vh; 
  left: -12vw;
  animation-duration: 30s;
}
.cloud-4 { 
  width: 20vw; 
  height: 15vh; 
  top: 20vh; 
  left: -25vw;
  animation-duration: 40s;
}
.cloud-5 { 
  width: 16vw; 
  height: 10vh; 
  top: 60vh; 
  left: -18vw;
  animation-duration: 50s;
}

@keyframes cloudMove {
  0% {
    transform: translateX(-100vw) translateY(0);
  }
  100% {
    transform: translateX(200vw) translateY(0);
  }
}
/* ===== Welcome Container Styling ===== */
#homepageContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px;
  max-width: 100%;
  text-shadow: 
  2px 2px 0 black,
  -2px 2px 0 black,
  2px -2px 0 black,
  -2px -2px 0 black;
}

#homepageContainer .WelcomeBox {
  overflow:hidden;
}

#homepageContainer h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

#homepageContainer p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  margin-bottom: 1.5rem;
}

#homepageContainer blockquote {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  padding: 1.2rem;
  color: #ddd;
  background: rgba(0, 0, 0, 0.6);
  border-left: 4px solid #1d365a;
  margin: 1em auto;
  animation: gentlePulse 4s infinite ease-in-out alternate;
}

.cta-btn {
  display: inline-block;
  font-size: clamp(1rem, 4vw, 1.2rem);
  padding: 12px 24px;
  text-align: center;
  background: rgba(18, 63, 122, 0.5);
  color: white;
  border: 2px solid #dcaf3e3f;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.cta-btn:hover {
  background: rgba(52, 104, 172, 0.7);
  color: #dcb03e;
  transform: scale(1.05);
  border: 2px solid #dcb03e;
}

.cta-btn:active {
  transform: scale(0.98);
}

@keyframes gentlePulse {
  0% {
    transform: scale(1);
    opacity: 1;
    color: white;
  }
  100% {
    transform: scale(1.01);
    opacity: 0.8;
    color: whitesmoke;
  }
}

/* ===== Mobile/Tablet View Adjustments ===== */
@media (max-width: 768px) {
  #homepageContainer {
    max-height: 90vh;
    overflow-y: auto;
    padding: 5vw;
  }

  #homepageContainer h1 {
    font-size: 6vw;
    margin-bottom: 3vw;
  }

  #homepageContainer p {
    font-size: 4vw;
    margin-bottom: 4vw;
  }

  #homepageContainer blockquote {
    font-size: 3vw;
    padding: 1em;
    border-left: 3px solid #1d365a;
    animation: none;
  }

  .cta-btn {
    font-size: 4vw;
    padding: 10px 18px;
  }

  .cta-btn:hover {
    transform: none;
  }
}

/* ===== Landscape Adjustment (Small Devices) ===== */
@media (orientation: landscape) and (max-width: 768px) {
  #homepageContainer .WelcomeBox {
    justify-items: center;
    align-items: start;
    min-height: 50vh;
    overflow-y: auto;
    padding: 1vw;
  }

  #homepageContainer h1 {
    font-size: 2.5vw;
    text-align: center;
    color: white;
    margin: 0 auto;
  }

  #homepageContainer p {
    font-size: 1.5vw;
    text-align: center;
    color: white;
    margin: 0 auto;
  }

  #homepageContainer blockquote {
    font-size: 1.5vw;
    border-left: 4px solid #1d365a;
    text-align: center;
    margin: 0 auto;
  }

  .cta-btn {
    font-size: 1.5vw;
    padding: 12px 24px;
    text-align: center;
    margin: 0 auto;
  }

  .cta-btn:hover {
    transform: scale(1.03);
  }

  .cta-btn:active {
    transform: scale(0.98);
  }
}
