/* normalise */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* allows to use rem units as 10px instead of 16px for easier calculations */
  font-size: 62.5%;
}

body {
  background-color: #F2EADE;
  font-family: neue-haas-grotesk-display, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #1E1E1E;
  height: 100vh;
}

main {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* perspective for parallax effect */
  perspective: 300px;
}
main > div, main .about-me--decoration, main .about-me__second-page--decoration {
  /* set up for parrallax effect */
  transform-style: preserve-3d;
}
main > div img, main .about-me--decoration img, main .about-me__second-page--decoration img {
  /* pushes elements in the back */
  transform: translateZ(-40px);
  /* restore inital scale in order to only keep the parrallax effect */
  scale: 1.0666666667;
}

nav {
  /* position sticky allows the nav to sit on top of the screen */
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #F2EADE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3.2rem;
  box-shadow: 0 2px 0 0 #1E1E1E;
  z-index: 100;
}
@media screen and (max-width: 900px) {
  nav {
    display: none;
  }
}
nav a {
  color: #1E1E1E;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 3.2rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
}
@media screen and (max-width: 900px) {
  .home {
    display: grid;
  }
}
.home h1 {
  font-size: 7rem;
  line-height: 7rem;
  display: flex;
  flex-direction: column;
  translate: 35%;
}
.home h1 span:nth-child(2) {
  translate: -22%;
}
@media screen and (max-width: 900px) {
  .home h1 span:nth-child(2) {
    translate: 0;
  }
}
.home h1 span:nth-child(3) {
  translate: -15%;
}
@media screen and (max-width: 900px) {
  .home h1 span:nth-child(3) {
    translate: 0;
  }
}
@media screen and (max-width: 1200px) {
  .home h1 {
    font-size: 5rem;
    line-height: 5rem;
  }
}
@media screen and (max-width: 900px) {
  .home h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: 3rem;
    line-height: 3rem;
    translate: 0;
    text-align: center;
  }
}
.home img {
  height: 70vh;
  max-height: 70rem;
  translate: -15%;
  z-index: -1;
}
@media screen and (max-width: 1200px) {
  .home img {
    max-height: 50rem;
  }
}
@media screen and (max-width: 900px) {
  .home img {
    grid-column: 1;
    grid-row: 1;
    translate: 0 0;
  }
}

button, .projects a, .contact a {
  cursor: pointer;
  color: #1E1E1E;
  font-size: 3rem;
  font-weight: 700;
  font-family: neue-haas-grotesk-display, sans-serif;
  white-space: nowrap;
  width: fit-content;
  background-color: #F2EADE;
  border: #1E1E1E 2px solid;
  box-shadow: #1E1E1E 1px 1px 0 0;
  border-radius: 0.5em;
  padding: 0.3em 0.5em;
  z-index: 2;
  /* focus for tab navigation */
}
@media screen and (max-width: 1200px) {
  button, .projects a, .contact a {
    font-size: 2.4rem;
  }
}
button:hover, button:focus, .projects a:hover, .projects a:focus, .contact a:hover, .contact a:focus {
  background-color: #e4d3b9;
}
button:active, .projects a:active, .contact a:active {
  box-shadow: none;
  translate: 1px 1px;
}

.about-me {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30vh;
  margin-bottom: 15vh;
}
@media screen and (max-width: 900px) {
  .about-me {
    display: grid;
  }
}
.about-me--decoration {
  translate: -5% -20%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
@media screen and (max-width: 900px) {
  .about-me--decoration {
    grid-column: 1;
    grid-row: 1;
    translate: 0 0;
  }
}
.about-me--decoration img {
  height: 50rem;
  rotate: -35deg;
  grid-column: 1;
  grid-row: 1;
  z-index: -1;
}
@media screen and (max-width: 1200px) {
  .about-me--decoration img {
    height: 40rem;
  }
}
.about-me--decoration span {
  display: flex;
  justify-content: end;
  align-items: flex-end;
  color: #F2EADE;
  font-size: 8rem;
  grid-column: 1;
  grid-row: 1;
  width: 30%;
  height: 50%;
  rotate: -10deg;
}
@media screen and (max-width: 1200px) {
  .about-me--decoration span {
    font-size: 6rem;
  }
}
.about-me--content {
  display: grid;
  grid-template-columns: 3fr 5rem 1fr;
  width: 50rem;
  height: 50rem;
  translate: -35%;
}
@media screen and (max-width: 1200px) {
  .about-me--content {
    width: 40rem;
    height: 40rem;
  }
}
@media screen and (max-width: 900px) {
  .about-me--content {
    grid-column: 1;
    grid-row: 1;
    translate: 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
}
.about-me--content--text {
  background-color: #F2EADE;
  border: #1E1E1E 2px solid;
  box-shadow: 1px 1px 0 0 #1E1E1E;
  border-radius: 40px;
  grid-column: 1/3;
  grid-row: 1;
  display: grid;
  rotate: 8deg;
}
@media screen and (max-width: 900px) {
  .about-me--content--text {
    rotate: 0deg;
    width: 90vw;
    border-radius: 0.5em;
  }
}
.about-me--content--text p {
  font-size: 3rem;
  line-height: 3rem;
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  padding: 1.5em 1.7em;
  opacity: 0;
}
.about-me--content--text p:nth-child(1) {
  opacity: 1;
}
@media screen and (max-width: 1200px) {
  .about-me--content--text p {
    font-size: 2.4rem;
    line-height: 2.4rem;
  }
}
@media screen and (max-width: 900px) {
  .about-me--content--text p {
    padding: 1em 1.2em;
  }
}
.about-me--content--buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  grid-column: 2/4;
  grid-row: 1;
  align-self: flex-end;
  margin-bottom: 2em;
}
@media screen and (max-width: 1200px) {
  .about-me--content--buttons {
    margin-bottom: 1em;
  }
}
@media screen and (max-width: 900px) {
  .about-me--content--buttons {
    margin-bottom: 0;
    align-self: center;
  }
  .about-me--content--buttons button {
    width: 90vw;
  }
}

.about-me__second-page {
  display: flex;
  justify-content: center;
}
@media screen and (max-width: 900px) {
  .about-me__second-page {
    display: grid;
    justify-content: center;
    align-items: center;
  }
}
.about-me__second-page--decoration {
  display: grid;
  grid-template-rows: min-content;
  translate: -20% 0;
  z-index: -1;
}
@media screen and (max-width: 1200px) {
  .about-me__second-page--decoration {
    translate: -20% 5%;
  }
}
@media screen and (max-width: 900px) {
  .about-me__second-page--decoration {
    grid-column: 1;
    grid-row: 1;
    translate: 0 0;
  }
}
.about-me__second-page--decoration img {
  height: 70rem;
  grid-column: 1;
  grid-row: 1;
  rotate: -25deg;
  z-index: -1;
}
@media screen and (max-width: 1200px) {
  .about-me__second-page--decoration img {
    height: 50rem;
  }
}
.about-me__second-page--decoration span {
  color: #F2EADE;
  font-size: 8rem;
  height: 65%;
  width: 100%;
  display: flex;
  justify-content: right;
  align-items: flex-end;
  grid-column: 1;
  grid-row: 1;
  rotate: 15deg;
}
@media screen and (max-width: 1200px) {
  .about-me__second-page--decoration span {
    font-size: 6rem;
  }
}
@media screen and (max-width: 900px) {
  .about-me__second-page--decoration span {
    display: none;
  }
}
.about-me__second-page--content {
  width: min-content;
  height: min-content;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content;
  background-color: #F2EADE;
  border: #1E1E1E 2px solid;
  box-shadow: 1px 1px 0 0 #1E1E1E;
  padding: 2rem;
  border-radius: 30px;
  translate: 20% 20%;
}
@media screen and (max-width: 900px) {
  .about-me__second-page--content {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 90vw;
    padding: 0;
    border: none;
    box-shadow: none;
    translate: 0;
    margin: 0 auto;
    background-color: transparent;
  }
}
.about-me__second-page--content--buttons {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 2rem;
  gap: 1rem;
}
@media screen and (max-width: 900px) {
  .about-me__second-page--content--buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  .about-me__second-page--content--buttons button {
    width: 90vw;
    margin-bottom: 0;
  }
}
.about-me__second-page--content--text {
  display: grid;
}
@media screen and (max-width: 900px) {
  .about-me__second-page--content--text {
    width: 100%;
  }
}
.about-me__second-page--content--text ul {
  grid-column: 1;
  grid-row: 1;
  font-size: 3rem;
  line-height: 3.5rem;
  font-weight: 600;
  padding: 0.7rem;
  opacity: 0;
}
.about-me__second-page--content--text ul > li {
  margin-left: 2rem;
}
.about-me__second-page--content--text ul:nth-child(1) {
  opacity: 1;
}
@media screen and (max-width: 1200px) {
  .about-me__second-page--content--text ul {
    font-size: 2.4rem;
    line-height: 2.8rem;
  }
}
@media screen and (max-width: 900px) {
  .about-me__second-page--content--text ul {
    padding: 1em 1.2em;
    background-color: #F2EADE;
    border: #1E1E1E 2px solid;
    box-shadow: 1px 1px 0 0 #1E1E1E;
    border-radius: 0.5em;
  }
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 6rem;
  width: min-content;
  margin: 0 auto;
  gap: 10rem;
  padding-top: 20rem;
}
@media screen and (max-width: 1200px) {
  .projects {
    gap: 5rem;
  }
}
.projects h2 {
  font-size: 6rem;
  grid-column: 1;
  grid-row: 1;
}
@media screen and (max-width: 1200px) {
  .projects h2 {
    font-size: 4rem;
  }
}
@media screen and (max-width: 900px) {
  .projects h2 {
    text-align: center;
    width: 100vw;
  }
}
.projects > img {
  height: 50rem;
  grid-column: 1;
  grid-row: 1;
  translate: -20rem -5rem;
}
@media screen and (max-width: 1200px) {
  .projects > img {
    height: 40rem;
  }
}
@media screen and (max-width: 900px) {
  .projects > img {
    translate: 0 0;
  }
}
.projects--container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
}
@media screen and (max-width: 1200px) {
  .projects--container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 900px) {
  .projects--container {
    grid-template-columns: 1fr;
  }
}
.projects--container--card {
  width: 100%;
}
@media screen and (max-width: 900px) {
  .projects--container--card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
  }
}
.projects--container--card a {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: inherit;
  border-radius: 0.5em;
  padding: 0;
  /* focus for tab navigation */
}
.projects--container--card a img {
  height: 30rem;
  width: 30rem;
  object-fit: contain;
  filter: saturate(0);
  border-radius: inherit;
  padding: 5.5rem;
}
.projects--container--card a img.get-your-poster--image {
  padding: 3rem;
}
.projects--container--card a img.cover {
  object-fit: cover;
  padding: 0;
}
@media screen and (max-width: 1400px) {
  .projects--container--card a img {
    height: 25rem;
    width: 25rem;
  }
}
.projects--container--card a:hover > img, .projects--container--card a:focus > img {
  filter: saturate(1);
}
.projects--container--card h3, .projects--container--card h4 {
  white-space: nowrap;
  padding: 0 1rem;
}
.projects--container--card h3 {
  font-size: 2.4rem;
  line-height: 1em;
  margin-top: 1em;
}
.projects--container--card h4 {
  font-weight: 500;
}

.contact {
  position: relative;
  max-width: 70rem;
  margin: 50rem auto 30vh auto;
}
@media screen and (max-width: 1200px) {
  .contact {
    max-width: 50rem;
    margin: 30rem auto 25vh auto;
  }
}
@media screen and (max-width: 900px) {
  .contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
.contact h2 {
  color: #F2EADE;
  font-size: 6rem;
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 4rem;
}
@media screen and (max-width: 1200px) {
  .contact h2 {
    font-size: 4rem;
  }
}
.contact a, .contact button {
  position: relative;
  font-size: 6rem;
  padding: 0em 0.5em;
  text-decoration: none;
  color: #1E1E1E;
  border-radius: 0.2em;
}
@media screen and (max-width: 1200px) {
  .contact a, .contact button {
    font-size: 4rem;
  }
}
.contact img {
  position: absolute;
  height: 40rem;
  top: 0;
  left: 0;
  translate: -10rem -10rem;
}
@media screen and (max-width: 1200px) {
  .contact img {
    height: 30rem;
  }
}
@media screen and (max-width: 900px) {
  .contact img {
    translate: 0 -10rem;
  }
}
.contact .mail-button::before {
  content: "Copied";
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1E1E1E;
  background-color: #F2EADE;
  font-size: 3rem;
  height: 100%;
  width: 100%;
  opacity: 0;
  border-radius: inherit;
}
.contact .mail-button.anim::before {
  animation: 3s ease 0s 1 normal fade;
}
.contact--infos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*# sourceMappingURL=main.css.map */
