@import url("./variables.css");
@import url("./common.css");
@import url("./global_menu.css");

.main {
  margin-top: 32px;
  margin-bottom: 75px;
}

.main > div:not(.menu) {
  margin-bottom: 50px;
}

h1 {
  font-size: 2.5em;
  margin: 32px 0 16px;
}

h2 {
  margin: 16px 0 32px;
}

h3 {
  font-size: 1.25em;
}

.presentation button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.presentation,
.skills,
.pro-experiences,
.projects,
.personal {
  margin: 16px;
}

.landingLogo {
  width: 50vw;
}

.presentation .buttons {
  display: flex;
  justify-content: space-evenly;
}

.about {
  background-color: var(--green);
  color: var(--white);
  padding: 32px 16px;
}

.tech-skills-list {
  margin: 32px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  font-weight: bold;
}

.tech-skills-list .main-tech {
  font-size: 1.1em;
  color: var(--orange);
}

/* Experiences */

.experience {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.experience-header img {
  width: 64px;
  flex: 0 0 64px;
}

.experience-header .header h4 {
  font-size: 1.2em;
}

.experience-header .header h5,
.experience-header .header .dates {
  font-size: 0.8em;
  color: grey;
  font-weight: normal;
  font-style: italic;
}

.experience-link {
  align-self: flex-end;
  margin-right: 8px;
}

@media screen and (min-width: 1080px) {
  .card {
    padding: 24px 32px;
    text-align: left;
  }
  
  .presentation {
    position: fixed;
    left: 5vw;
    width: 40vw;
    height: 90vh;

    margin: 5vh 0 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .presentation .buttons {
    width: 100%;
  }

  .landingLogo {
    width: 50%;
  }

  .main {
    position: absolute;
    width: 50vw;
    top: 0;
    right: 0;

    margin: 0;
  }

  .main > div:not(.menu) {
    margin-bottom: 150px;
  }

  .about {
    margin-right: 32px;
    height: 225px;
    --about-top-bottom-margin: calc((100vh - 225px) / 2);
    margin-top: var(--about-top-bottom-margin);
    margin-bottom: var(--about-top-bottom-margin) !important;
    display: flex;
    align-items: center;
    border-radius: 24px;
  }

  .skills {
    border: none;
    display: block;
    text-align: left;
    margin: 0 16px;
    padding: 0;
    border-radius: 0;
  }

  .tech-skills-list {
    font-size: 1.2em;
    margin: 32px 0 0;
    row-gap: 16px;
    column-gap: 32px;
  }

  .tech-skills-list li {
    border: 3px solid var(--green);
    border-radius: 8px;
    padding: 8px;
    font-weight: bold;
  }

  .experience {
    margin-top: 40px;
  }

  .experience-header {
    margin-bottom: 32px;
  }

  .experience-header .dates {
    min-width: 64px;
  }
}

@media screen and (min-width: 1280px) {
  .tech-skills-list {
    row-gap: 25px;
    column-gap: 64px;
  }

  .experience-header .dates,
  button.tag {
    min-width: 75px;
  }
}