.main-landing,
.overlay,
.overlay img,
.overlay-color {
  height: 100vh;
}

.main-landing::before {
  content: "";
  inset: 0;

  z-index: 1;
}
.main-landing {
  position: relative;

  /* background-image: url("/assets/index/landing-back.jpg"); */
  background-image: url("/project-2/assets/index/landing-back.jpg");

  background-position: center;
  background-size: cover;
}

.overlay-color {
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.overlay,
.overlay img,
.overlay-color {
  width: 100%;
}

.overlay {
  position: absolute;
  bottom: 0;

  z-index: 6;
}

.overlay img {
  object-position: center;
  object-fit: cover;
}

h1 {
  text-align: center;

  position: absolute;

  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: rgba(255, 255, 255, 0.8);

  z-index: 5;
}

h1 span {
  display: block;
}

h1 span:nth-child(1) {
  color: red;

  color: rgba(255, 255, 255, 1);
  font-family: "Taviraj", sans-serif;
  margin-bottom: 1rem;
}

.title {
  /* used min-max calculator to help me find ideal size i wanted with clamp */
  font-size: clamp(5rem, 4.6rem + 5vw, 12rem);
}

.title:nth-of-type(2) {
  margin-bottom: -0.5rem;
}

/* quick links section*/
.info {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  align-items: center;
  gap: 1rem;

  padding: 1rem;
}

.info-wrapper {
  display: flex;
  flex-direction: column;

  align-items: center;
  gap: 1rem;
}

.info h2 {
  margin: 2rem 0;
  width: 18.75rem;
  text-align: left;
}

.info-card,
.info-card img,
.blur {
  border-radius: 20px;
}

.info-card,
.contact-form {
  box-shadow: var(--boxShadow);
}

.info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  position: relative;
  height: 25rem;
  width: 18.75rem;

  color: var(--whiteColor);
}

.info-text {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.info-card h3 {
  font-weight: 200;
  font-size: 2.5rem;
}

.info-card p {
  color: rgba(255, 255, 255, 0.7);
}

.info-card a {
  display: block;

  border-radius: 15px;
  text-align: center;
  color: var(--darkColor);
  width: 100%;
  background-color: var(--whiteColor);
}

.info-card img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;

  height: 100%;

  object-fit: cover;
  z-index: -2;
}

.blur {
  position: absolute;
  bottom: 0;
  top: auto;
  rotate: 180deg;
  /* gradient blur referenced from 
  https://codepen.io/QuiteQuinn/pen/jOBxGjr
   */
  mask: linear-gradient(black, black, transparent);
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.4);
  height: 70%;
  width: 100%;
  z-index: -1;
}

/* contact form section */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  gap: 1rem;

  margin-bottom: 3rem;
}

.contact-form {
  border-radius: 10px;
}

.contact-form img {
  width: 100%;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.contact-form input,
.contact textarea {
  border: none;
  background-color: #79797921;
  border-radius: 10px;
  padding: 1rem;
}

.contact input[type="submit"] {
  cursor: pointer;
  color: var(--whiteColor);
  background-color: var(--highlightColor);
}

@media (min-width: 48em) {
  /* landing section */
  h1 {
    width: 100%;
    top: 37.5%;
  }
  .title {
    display: inline-block;
  }

  .title {
    margin-left: 5rem;
  }

  /* info section */

  .info {
    justify-content: center;
    align-items: center;
  }
  .info-wrapper {
    flex-direction: row;
  }

  .info h2 {
    text-align: center;
  }
  .info-card {
    width: 100%;
    max-width: 350px;
  }

  /* contact section */

  .contact h2 {
    margin-bottom: 2rem;
  }

  .contact-form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    max-width: 67.625rem;
    max-height: 31.25rem;
    align-items: center;
  }

  .contact-form figure {
    min-width: 21.875rem;
    width: 100%;
    max-width: 37.5rem;
    align-self: stretch;
  }

  .contact-form img {
    object-position: top;
    object-fit: cover;
    height: 100%;
    border-radius: 0 10px 10px 0;
  }

  .contact-form form {
    gap: 1rem;
    padding: 3rem;
    min-width: 21.875rem;
    width: 100%;
    max-width: 31.25rem;
    max-height: 31.25rem;
  }
}
