:root {
  --slider-width: 1000px;
  --slider-height: 600px;

  --title-size: clamp(1.25rem, 10vw, 5.625rem);
  --subtitle-size: clamp(0.95rem, 4.5vw, 3rem);
  --subsubtitle-size: clamp(0.9rem, 1vw, 1rem);
  --resume-size: clamp(1rem, 2.5vw, 1.5rem);

  --content-title-size: clamp(1.5rem, 4vw, 2rem);

  --services-items-size: clamp(1rem, 2vw, 1.4rem);
  --contact-items-size: clamp(1rem, 2vw, 1.4rem);

  --more-details-title-size: clamp(1rem, 2vw, 1.4rem);
  --more-details-subtitle-size: clamp(1rem, 2vw, 1.05rem);
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  color: lightgray;
  font-family: Roboto, sans-serif;
}

address {
  font-style: normal;
}

.img-container {
  position: absolute;
  height: 100%;
  width: 100%;
  filter: brightness(0.3);
  transform: scale(1.1);
}

.img-container > img {
  object-fit: cover;
  height: auto;
  width: 100%;
  min-height: 100%;
}

main {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5rem;
  padding: 0 2rem;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
}

main > * {
  width: 100%;
}

.essentials {
  display: flex;
  flex-direction: column;
  gap: 7rem;
}

ul {
  list-style: none;
  padding: 0;
}

.presentation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
  gap: 1rem;
}

.more-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;

  div {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    ul {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      gap: 1rem;

      li {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 3rem;

        span {
          text-align: left;
        }

        span:first-of-type {
          font-weight: bold;
          font-size: var(--more-details-title-size);
          min-width: clamp(210px, 12vw, 230px);
        }

        span:last-of-type {
          font-weight: lighter;
          font-size: var(--more-details-subtitle-size);
        }
      }
    }
  }
}

h1,
h2,
h3,
h5 {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: var(--title-size);
  color: gold;
}

h2 {
  font-size: var(--subtitle-size);
}

h3 {
  font-size: var(--content-title-size);
  text-align: center;
  color: gold;
}

h4 {
  font-size: var(--subsubtitle-size);
  font-style: italic;
  font-weight: lighter;
  color: darkorange;
}

h5 {
  max-width: 800px;
  font-size: var(--resume-size);
  text-align: center;
  font-weight: lighter;
  font-style: italic;

  color: silver;
}

.contents {
  display: flex;
  justify-content: space-around;
  padding: 0 5rem;

  > * {
    flex: 0 0 40%;
  }
}

.contact-items {
  font-size: var(--contact-items-size);
}

.contact,
.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-around;
  align-items: center;

  > * {
    flex: 0 0 25%;
    text-align: center;
    font-size: var(--services-items-size);
  }
}

.contact > ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-around;

  > li {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-left: 10rem;

    > .icon {
      height: clamp(1.5rem, 4vw, 2rem);
      width: clamp(1.5rem, 4vw, 2rem);

      > img {
        height: auto;
        width: 100%;
      }
    }
  }
}

.illustrations-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: clamp(1.8rem, 5vw, 2.3rem);

  > span {
    height: clamp(2rem, 5vw, 3rem);
    width: clamp(2rem, 5vw, 3rem);

    > img {
      width: 100%;
      height: auto;
    }
  }
}

.illustrations-slider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.chevron {
  width: 48px;
  height: 48px;
  padding: clamp(1rem, 3vw, 4rem);
  z-index: 1;
  transition: all 0.3s ease-in-out;

  :hover {
    cursor: pointer;
    scale: 1.5;
  }

  > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.right {
  left: 70rem;
  rotate: -90deg;
}

.left {
  right: 70rem;
  rotate: 90deg;
}

.slider-wrapper {
  width: var(--slider-width);
  height: auto;
  display: flex;
  flex-direction: flex-start;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: all 0.3s ease-in-out;
}

figure {
  align-self: center;
  flex: 0 0 100%;
  margin: 0;
}

figure > img {
  width: 100%;
  height: auto;
  max-height: var(--slider-height);
  object-fit: cover;
}

/* Media Queries */

@media screen and (max-width: 1024px) {
  .contents {
    flex-direction: column;
    gap: 5rem;
    padding: 0;
  }

  .contact > ul > li {
    padding: 0;
    align-self: center;
  }

  .services > ul {
    justify-content: center;
    > * {
      flex: 0 0 33%;
    }
  }

  .more-details > div > ul > li {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;

    span {
      text-align: center;
    }
  }
}
