#about {
  overflow: hidden;
  position: relative;
  background-image: url("../assets/earth_stars.svg");
  background-position: -100% 50%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 98%, rgba(0, 0, 0, 0) 100%);
  padding-bottom: 1rem;
}
#about .container {
  padding: 5rem 0 0 0;
}
#about-text-wrapper {
  max-width: 37.5rem;
  font-size: 1.25em;
}

.feature-card p {
  font-family: var(--bold-font);
}

.feature-cards {
  display: grid;
  transform: translate(10%, -10%) rotate(-96deg);
  justify-items: start;
  grid-template-rows: repeat(4);
  grid-template-columns: repeat(2);
}

.feature-card:nth-child(n) {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.feature-card:nth-child(1) {
  grid-row: 1;
  grid-column: 2;
  animation: bob 5s ease-in-out 2s infinite;
  background-image: url("../assets/about_planet_1.svg");
}

.feature-card:nth-child(3) {
  grid-row: 3;
  grid-column: 2;
  animation: bob 5s ease-in-out 1s infinite;
  background-image: url("../assets/about_planet_2.svg");
}

.feature-card:nth-child(2) {
  grid-row: 2;
  grid-column: 1;
  justify-self: end;
  animation: bob 5s ease-in-out 1.5s infinite;
  background-image: url("../assets/about_planet_3.svg");
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(0) rotate(96deg);
  }

  50% {
    transform: translateX(-20px) rotate(96deg);
  }
}

.feature-card {
  transform: rotate(96deg);
  list-style: none;
  width: 12rem;
  font-size: 1.4em;
  aspect-ratio: 1;
  border-radius: 50%;

  background: linear-gradient(180deg, #f4d489 0%, #fba226 100%);
  color: black;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-nebula {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 953.45px;
  height: 1068px;
  bottom: -450px;
  left: -400px;
  z-index: -1;
}

.about-nebula img {
  position: absolute;
  opacity: 0.8;
}

.about-nebula img:nth-child(1) {
  animation: nebula-spin 30s linear 1.5s infinite;
}

.about-nebula img:nth-child(2) {
  animation: nebula-spin 25s linear 1s infinite reverse;
}

.about-nebula img:nth-child(3) {
  animation: nebula-spin 20s linear infinite;
}

@keyframes nebula-spin {
  from {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
  to {
    transform: rotate(0deg);
  }
  
}

@media (max-width: 990px) {
  #about {
    height: unset;
    overflow: hidden;
  }

  .feature-cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: rotate(0);
    animation: none;
  }

  .feature-card {
    transform: rotate(0);
    animation: none !important;
  }
}
