.hero {
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
background-color: rgb(18, 13, 36);
  padding: 0;
  display: flex;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 75vh;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn {
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-text);
  border: none;
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn:hover {
  transform: translateY(-2px);
  backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header-text {
  position: absolute;
  top: 0;
  left: 0;
  text-align: left;
}

.scene {
  position: absolute;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../assets/earth_stars.svg");
  background-position: center;
  background-size: 200%;
}

.scene::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  background-image: url("../assets/earth_moon.svg");
}

/* Moving planet CSS code */
.earth-container {
  transform: scale(0.6);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 600px;
  height: 600px;
}

.earth-container > * {
  position: absolute;
}

.earth-clouds {
  width: 100%;
  height: 100%;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 238px,
    rgba(0, 0, 0, 0) 239px
  );
  background-image: url("../assets/earth_clouds.svg");
  background-size: 200% 100%;
  background-position: 0 0;
  animation: move-clouds 30s linear infinite;
  opacity: 0.7;
}

@keyframes move-clouds {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

.earth-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    text-shadow: 1px 1px 1px black;
  }

  .hero p {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
  }

  .header-text {
    position: relative;
    text-align: center;
  }
}
