/* Imports */
@import url(variables.css);
@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;
}

header {
  height: 80vh;
  min-height: 667px;
  width: 100%;
  background: url("../media/svgs/Simple\ Shiny.svg") no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  position: relative;
  display: flex;
  align-items: center;
}

section {
  padding-top: 10em;
  scroll-margin: 89px;
}

#hero-content {
  margin: auto;
  width: var(--width-large);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-content-left {
  max-width: 40em;
}

.hero-content-left p {
  font-size: 20px;
  margin: 1em 0;
}

.location p {
  display: inline-block;
  margin: 0.5em 0;
}

.hero-content-right > img {
  height: 350px;
}

.hero-content-left .socials {
  justify-content: flex-start;
  align-items: center;
}

.hero-text {
  margin: 0;
  animation: reveal 600ms ease forwards;
  transform: translateY(1.2em);
  animation-delay: 0.2s;
  line-height: 1.1;
}

.cover {
  z-index: 1;
  overflow: hidden;
  transition: none;
}

#ht2 {
  animation-delay: 0.4s;
}

@keyframes reveal {
  to {
    transform: translateY(0);
  }
}

#hero-buttons {
  display: flex;
  justify-content: flex-start;
}

.in-site-buttons {
  display: flex;
  gap: 1em;
  justify-content: flex-start;
  position: relative;
}

#hero-background {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#technologies {
  padding-top: 4em;
}

#technologies > h2 {
  text-align: center;
  margin: 0em auto 1em auto;
}

.techLogos {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
  justify-content: center;
}

.tech-logo-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.tech-logo-wrapper p {
  margin: 16px auto 0 auto;
  text-align: center;
  width: min-content;
}

.techLogo {
  height: 75px;
  object-fit: contain;
}

#about {
  display: flex;
  justify-content: center;
  width: 100%;
  column-gap: 4em;
  row-gap: 1em;
  border-radius: 5px;
  align-items: center;
  overflow: hidden;
}

#about-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition-delay: 0.6s;
}

#lenni {
  object-fit: cover;
  width: 100%;
  max-width: 500px;
  border-radius: 5px;
}

#about-txt > h2 {
  margin: 0;
}

#about-txt > div > p {
  font-size: 1.3rem;
  margin-top: 0.5em;
}

#projects h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75em;
}

#projects-anchor {
  scroll-margin: 89px;
}

.project {
  border-radius: 10px;
  background-color: #102834;
}

#project-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2em;
  height: 75svh;
  margin: auto;
}

.project-main {
  grid-row: 1 / span 3;
  grid-column: 1 / span 2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 51.72%, rgba(0, 0, 0, 0.8) 100%),
    url(../media/images/index/assignments.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease-out;
}

.project-main:hover::before {
  transform: scale(1.05);
}

#project-main {
  min-height: 400px;
  text-decoration: none;
}

.description-main {
  transition: all ease 0.5s;
  position: relative;
}

.description-main > h3 {
  font-size: 2rem;
  margin: 0;
  font-weight: lighter;
}

.desc {
  margin: 0;
  font-size: 1.25rem;
}

.link-arrow {
  transform: rotate(-90deg);
  margin: 1em;
  width: 1em;
  opacity: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.assignments:hover > .inline .link-arrow,
.phone:hover > .inline .link-arrow,
.project-main:hover > .inline .link-arrow {
  opacity: 1;
}

.project-main:hover > .inline .desc {
  opacity: 1;
  transition-delay: 0.3s;
}

.description-sub {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: calc(100% - 2em - 3em);
}

.assignments {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 51.72%, rgba(0, 0, 0, 0.8) 100%),
    url(../media/images/construction.jpg) no-repeat;
}

.assignments:hover > .inline .desc {
  opacity: 1;
  transition: all ease 0.5s;
  transition-delay: 0.2s;
}

.phone {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 51.72%, rgba(0, 0, 0, 0.8) 100%),
    url(../media/images/phone.jpg) no-repeat;
}

.phone:hover > .inline .desc {
  opacity: 1;
  transition: all ease 0.5s;
  transition-delay: 0.2s;
}

.project-sub {
  grid-row: 3 / span 2;
  grid-column: 1 / span 2;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.inline {
  border: 2px solid var(--text-color);
  height: calc(100% - 2em);
  width: calc(100% - 2em);
  background-color: transparent;
  border-radius: 10px;
  z-index: 1;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1em;
}

.description-sub > .desc {
  min-height: 56px;
  margin: 4px;
}

.description-sub > h3 {
  margin: 4px;
  font-size: 2rem;
  font-weight: lighter;
}

.description-sub > .tools {
  justify-content: center;
}

.ts-link-arrow {
  opacity: 1;
}

/* Media queries */
@media (prefers-reduced-motion: reduce) {
  #lenni {
    transition: none;
  }
}

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

  .hero-content-right > img {
    height: 300px;
  }

  .techLogo {
    height: 64px;
  }

  #lenni {
    max-width: 400px;
  }
}

@media (max-width: 1264px) {
  #hero-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    margin: 0 2em 2em 2em;
  }

  .in-site-buttons {
    justify-content: center;
  }

  .hero-content-right > img {
    height: auto;
    max-width: 400px;
    width: 80%;
    margin-top: 2em;
  }

  .hero-content-left .socials {
    justify-content: center;
  }

  #about {
    flex-direction: column;
  }

  #lenni {
    max-width: 100%;
  }

  #about-txt {
    transition-delay: 0s;
  }
}

@media (min-width: 1000px) {
  #technologies.hidden {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  header {
    height: 100svh;
    align-items: flex-start;
    padding-top: 80px;

    background-color: #0f2e42;
    background-position: 0 0;
    background-size: 100% 50%;
  }

  #hero-content {
    gap: 0px;
  }

  .hero-content-left {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .in-site-buttons {
    flex-direction: column-reverse;
    position: absolute;
    bottom: 32px;
    width: calc(100% - 4em);
  }

  #hero-buttons {
    justify-content: center;
  }

  section {
    padding: 3em 0px 0 0;
  }

  .in-site-buttons > .primary-button,
  .in-site-buttons > .secondary-button,
  #about .primary-button {
    width: 100%;
  }

  #technologies {
    padding-top: 3em;
  }

  .techLogo {
    height: 45px;
  }

  #about h2 {
    text-align: left;
  }

  #project-grid {
    grid-template-rows: repeat(1, 1fr);
    grid-template-columns: repeat(1, 1fr);
  }

  .inline {
    justify-content: center;
  }

  #projects .tools {
    margin: 0 8px;
    justify-content: center;
  }

  .project-main {
    grid-row: 1;
    grid-column: 1;
    background-size: cover;
    background-position: center;
    text-align: center;
  }

  .assignments {
    grid-row: 2;
    grid-column: 1;
  }
}

@media (max-width: 570px) {
  #hero-content {
    margin: 0 1em 2em 1em;
  }

  #about-description > .primary-button {
    width: 100%;
  }

  .in-site-buttons {
    width: calc(100% - 2em);
  }
}

@media (max-width: 350px) {
  #description-main > h3 {
    font-size: 10vw;
  }

  #description-main > .desc {
    font-size: 7vw;
  }
}

@media (max-height: 900px) and (max-width: 1264px) {
  .hero-content-right > img {
    max-height: 200px;
  }
}

@media (max-height: 750px) and (max-width: 1264px) {
  .hero-content-right img {
    margin-top: 0.75em;
    max-height: 155px;
  }
  .in-site-buttons {
    gap: 0;
    bottom: 1em;
  }
}

@media (max-height: 380px) {
  .inline {
    align-items: center;
  }
}
