.home-hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    url("../assets/mood.jpeg") center / cover no-repeat;
  text-align: center;
}

.home-hero__content {
  padding: 0 1.5rem;
}

.home-hero__title {
  min-height: 1.25em;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.125rem);
  font-weight: 700;
}

.home-hero__cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 5px;
  animation: home-cursor-blink 1s infinite;
  background-color: #fff;
  vertical-align: bottom;
}

.home-hero__scroll {
  position: absolute;
  bottom: 5%;
  left: 50%;
  color: #fff;
  font-size: 1.875rem;
  text-decoration: none;
  transform: translateX(-50%);
}

.home-hero__scroll span {
  display: inline-block;
  animation: home-arrow-bounce 2s infinite;
}

.home-intro {
  padding: 3rem 0;
  background-color: #000;
  text-align: center;
}

.home-intro__container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-intro__heading {
  margin: 0 0 1.5rem;
  color: #fff;
}

.home-intro__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.home-intro__card {
  width: min(100%, 20rem);
  margin: 0;
  padding: 1.25rem;
  border-radius: 0.625rem;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.home-intro__avatar {
  width: 6.25rem;
  height: 6.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.home-intro__name {
  margin: 0.625rem 0;
}

.home-intro__quote {
  margin: 1.25rem 0 0;
  color: #555;
  font-size: 0.875rem;
  line-height: 1.6;
}

@keyframes home-cursor-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes home-arrow-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__cursor,
  .home-hero__scroll span {
    animation: none;
  }
}
