.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 80px;
  padding-right: clamp(16px, 4vw, 64px);
  padding-left: clamp(16px, 4vw, 64px);

  background-image: url("../images/background3.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  gap: 8px 56px;
}

.hero .container {
  position: relative;
  width: 400px;
  height: max-content;
  justify-self: end;
}

.hero-divImg {
  position: relative;
  z-index: 1;
  width: 130%;
  margin-top: -64px;
  overflow: hidden;
}

.hero-divImg img {
  display: block;
  width: 130%;
  height: auto;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
}

.text {
  position: absolute;
  top: 80%;
  left: -32px;
  z-index: 10;
  width: min(320px, 85%);
  padding: 16px;

  color: var(--text);
  font-family: var(--font-mono);
  background-color: rgba(0, 2, 0, 0.82);
  border-radius: 24px;
}

.hero-div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 450px;
  height: 450px;
  margin-top: 16px;
  margin-left: 32px;
}

.hero-h1 {
  color: #ffffff;
  text-align: left;
  font-family: "Space Grotesk", monospace;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: clamp(6px, 1.7vw, 18px);
  text-shadow: 0 4px 12px black;
}

.hero-p {
  padding-top: 4px;

  color: #ffffff;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  text-shadow: 0 4px 12px black;
}

.hero-btn {
  display: inline-block;
  width: 256px;
  margin-top: 16px;
  padding: 8px 24px;

  color: #073555;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  background-color: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  cursor: pointer;

  transition:
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hero-btn:hover {
  color: black;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(-2px);
}

.hero-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 128px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-layout {
    max-width: 100%;
    column-gap: 16px;
  }

  .hero .container {
    width: min(34vw, 320px);
    justify-self: center;
  }

  .hero-div {
    margin-left: 16px;
  }

  .hero-h1 {
    font-size: 5rem;
    letter-spacing: 6px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    row-gap: 24px;
  }

  .hero .container {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(72vw, 280px);
    height: auto;
    margin-bottom: 32px;
    justify-self: center;
  }

  .hero-divImg {
    order: 1;
    width: 100%;
  }

  .text {
    order: 2;
    position: static;
    width: min(240px, 84vw);
    margin-top: -16px;
    text-align: left;
    background-color: rgba(0, 2, 0, 0.86);
  }

  .hero-div {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    height: auto;
    margin-top: -32px;
    margin-left: 0;
    justify-self: center;
  }

  .hero-h1 {
    font-size: 3.5rem;
    letter-spacing: 4px;
    text-align: center;
  }

  .hero-p {
    align-self: center;
    font-size: 2rem;
  }

  .hero-btn {
    width: 60%;
    font-size: 1.5rem;
    align-self: center;
    background-color: var(--accent);
    color: black;
  }
}
