@import url(./layout/layout.css);

@font-face {
  font-family: "Viga";
  src: url("../media/fonts/Viga-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Outfit";
  src: url("../media/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-family: "Yesteryear";
  src: url("../media/fonts/Yesteryear-Regular.ttf") format("truetype");
}

main {
  padding-top: 0;
}

h1 {
  margin: 0;
}

p {
  margin-top: 0em;
}

.header-content {
  padding-top: var(--top);
  width: var(--width-large);
  margin: auto;
  min-height: 100svh;
}

#intro-txt {
  font-size: 32px;
  line-height: 1;
  width: 75%;
  margin: 2.5em auto 5em auto;
  font-weight: 600;
  line-height: 1.3;
  transition-delay: 1.25s;
}

#intro-txt span {
  color: var(--primary-color);
  text-wrap: nowrap;
}

#intro-img {
  width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  animation: reveal 1s ease forwards;
  animation-delay: 250ms;
  border-radius: 5px;
}

@keyframes reveal {
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}

.about-containers {
  display: flex;
  flex-direction: column;
  gap: 12em;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-direction: row-reverse;
}

.about-container:nth-child(odd) {
  flex-direction: row;
}

.about-container img {
  border-radius: 5px;
  max-width: 50%;
}

.about-container-text {
  transition-delay: 0.7s;
}

.about-container-text h2 {
  margin: 0 0 8px 0;
}

.about-container-text p {
  font-size: 1.25rem;
}

@media (max-width: 1920px) {
  .header-content {
    width: var(--width-medium);
  }

  #intro-txt {
    transition-delay: 0.25s;
  }
}

@media (max-width: 1264px) {
  .header-content {
    padding: 64px 2em 0 2em;
    width: 100%;
  }

  #intro-txt {
    text-align: center;
    width: auto;
    margin: 32px auto;
    font-size: 1.5rem;
    transition-delay: 1.25s;
  }

  main h2 {
    text-align: left;
  }
}

@media (max-width: 1000px) {
  .header-content {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 600px;
  }

  #intro-img {
    flex-grow: 1;
  }

  #intro-txt {
    margin: 32px auto;
  }

  .about-containers {
    gap: 3em;
  }

  .about-container,
  .about-container:nth-child(odd) {
    flex-direction: column;
    align-items: center;
  }

  .about-container-text,
  .about-container img {
    max-width: 100%;
    transition-delay: 0s;
  }

  .about-container-text {
    opacity: inherit;
    transform: inherit;
  }
}

@media (max-width: 850px) and (min-height: 800px) {
  #intro-img {
    object-position: bottom 0 right -150px;
  }
  #intro-txt {
    margin-top: 16px;
  }
}

@media (max-width: 570px) {
  .header-content {
    padding: 64px 1em 0 1em;
  }
}
