*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;

  font-family: "Barlow", sans-serif;
}

body {
  box-sizing: border-box;
  overflow-x: hidden;
}

.header {
  color: var(--cool-grey-900);
  background: var(--cool-grey-050);
  height: 100vh;
  padding: 0 10rem;
  display: flex;
  flex-direction: column;
}

.header-title {
  padding-top: 30vh;
  font-size: 8rem;
}

.header-title > span {
  color: var(--blue-vivid-700);
}

.header-subtitle {
  margin-top: 1rem;
  font-size: 8rem;
}

.header-button {
  margin-top: 5rem;
  padding: 2rem 4rem;
  font-size: 2rem;
  width: 25rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-radius: 4px;
  color: var(--cool-grey-050);
  background: var(--blue-vivid-700);
  transition: background 0.2s;
}

.header-button:hover {
  background: var(--blue-vivid-600);
}

.header-image {
  position: absolute;
  bottom: 0;
  right: 8rem;
  height: 45rem;
}

.projects {
  color: var(--cool-grey-050);
  background: var(--cool-grey-900);
  padding: 0 10rem 5rem;
}

.projects-title {
  text-align: center;
  padding-top: 5rem;
  font-size: 5rem;
}

.projects-slider {
  user-select: none;
  margin-top: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-screen-wrapper {
  width: 75%;
  height: 60vh;
  border-radius: 4px;
  overflow-y: hidden;
}

.project-screen {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  background: var(--cool-grey-050);
  color: var(--cool-grey-900);
  transition: transform 0.4s;
}

.project-screen.hidden {
  transform: translateY(60vh);
}

.project-screen-image {
  width: 60%;
  height: 100%;
  background-position: center;
  background-size: cover;
}

.project-screen-content {
  padding: 4rem 4rem 8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-screen-title {
  font-size: 3.6rem;
  font-weight: bold;
}

.project-screen-description {
  font-size: 2rem;
  margin-top: 2rem;
}

.project-screen-links {
  margin-top: auto;
  display: flex;
}

.project-screen-link-github {
  margin-right: 5%;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 4px;
  color: var(--cool-grey-050);
  background: var(--blue-vivid-700);
  transition: background 0.2s;
  user-select: none;
}

.project-screen-link-github:hover {
  background: var(--blue-vivid-600);
}

.project-screen-link-demo {
  margin-right: 5%;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 4px;
  color: var(--cool-grey-050);
  background: var(--blue-vivid-700);
  transition: background 0.2s;
  user-select: none;
}

.project-screen-link-demo:hover {
  background: var(--blue-vivid-600);
}

.project-slider-left,
.project-slider-right {
  font-size: 4rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.project-slider-left:hover,
.project-slider-right:hover {
  transform: scale(1.3);
}

.project-slider-left {
  margin-right: 4rem;
}

.project-slider-right {
  margin-left: 4rem;
}

.project-navigation {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.project-navigation > .point {
  width: 20px;
  height: 5px;
  border-radius: 2px;
  background: var(--cool-grey-100);
  margin: 0 1rem;
  transition: background 0.8s, transform 0.2s;
  cursor: pointer;
}

.project-navigation > .point.active {
  background: var(--blue-vivid-600);
}

.project-navigation > .point:hover {
  transform: scale(1.5);
}

.projects-mobile {
  display: none;
  color: var(--cool-grey-050);
  background: var(--cool-grey-900);
  padding: 0 6rem 2rem;
}

.project-mobile-cards {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
}

.project-mobile-card {
  background: var(--cool-grey-050);
  color: var(--cool-grey-900);
  border-radius: 4px;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
}

.project-mobile-screen-title {
  font-size: 2.6rem;
  font-weight: bold;
}

.project-mobile-screen-description {
  font-size: 2rem;
  margin-top: 2rem;
}

.project-mobile-screen-links {
  display: flex;
  margin-top: 2rem;
}

.project-mobile-screen-link-github {
  margin-right: 5%;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 4px;
  color: var(--cool-grey-050);
  background: var(--blue-vivid-700);
  transition: background 0.2s;
  user-select: none;
}

.project-mobile-screen-link-github:hover {
  background: var(--blue-vivid-600);
}

.project-mobile-screen-link-demo {
  margin-right: 5%;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 4px;
  color: var(--cool-grey-050);
  background: var(--blue-vivid-700);
  transition: background 0.2s;
  user-select: none;
}

.project-mobile-screen-link-demo:hover {
  background: var(--blue-vivid-600);
}


.divider {
  background: var(--cool-grey-900);
  display: flex;
  justify-items: center;
}

.divider > .line {
  height: 4px;
  border-radius: 2px;
  width: 75vw;
  margin-left: auto;
  margin-right: auto;
  background: var(--cool-grey-400);
}

.tech {
  color: var(--cool-grey-050);
  background: var(--cool-grey-900);
  padding: 0 10rem 5rem;
}

.tech-title {
  text-align: center;
  padding-top: 5rem;
  font-size: 5rem;
}

.tech-panel {
  margin-top: 10rem;
  padding: 0 20rem;
  display: flex;
  align-content: space-between;
  justify-items: flex-start;
  flex-wrap: wrap;
}

.tech-container {
  flex-grow: 1;
  flex-basis: 20%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  margin: 2rem;
}

.tech-container > .name {
  opacity: 0;
  transition: opacity 0.2s;
}

.tech-container:hover > .name {
  opacity: 1;
}

.tech-container > .name {
  margin-top: -1.5rem;
  font-size: 2.5rem;
  border-radius: 10rem;
  background: var(--blue-vivid-800);
  padding: 1rem 1.5rem;
  z-index: 5;
}

.tech-container > .logo {
  font-size: 6rem;
  border-radius: 4px;
  background: var(--blue-vivid-600);
  padding: 3rem;
  z-index: 4;
}

.contact {
  color: var(--cool-grey-050);
  background: var(--cool-grey-900);
  padding: 0 10rem 5rem;
}

.contact-title {
  text-align: center;
  padding-top: 5rem;
  font-size: 5rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  padding-top: 8rem;
}

.contact-buttons > a {
  font-size: 5rem;
  margin: 0 3rem;
  color: var(--blue-vivid-600);
  transition: color 0.2s;
}

.contact-buttons > a:hover {
  color: var(--blue-vivid-700);
}

.contact-copyright {
  font-size: 1.6rem;
  margin-top: 5rem;
  text-align: center;
}

/* 900px */
@media (max-width: 56.25em) {
  html {
    font-size: 50%;
  }

  .header-title {
    text-align: center;
    font-size: 5rem;
  }

  .header-subtitle {
    text-align: center;
    font-size: 5rem;
  }

  .tech-container {
    margin: 0;
  }

  .projects {
    display: none;
  }

  .projects-mobile {
    display: block;
  }

  .tech,
  .contact {
    padding: 0 6rem 5rem;
  }

  .tech-panel {
    margin-top: 3rem;
  }

  .projects-title,
  .tech-title,
  .contact-title {
    font-size: 3.6rem;
  }

  .contact-buttons {
    padding-top: 3rem;
  }
}

/* 1200px */
@media (max-width: 75em) {
  html {
    font-size: 56.25%;
  }

  .header {
    padding: 0 1rem;
  }

  .header-title {
    text-align: center;
  }

  .header-subtitle {
    text-align: center;
  }

  .header-image {
    display: none;
  }

  .header-button {
    margin-left: auto;
    margin-right: auto;
  }

  .tech {
    padding: 0 1rem;
  }

  .tech-container {
    margin: 1rem;
  }
}

/* 1500px */
@media (max-width: 93.75em) {
  .header-image {
    height: 30rem;
  }

  .tech-panel {
    padding: 0 5rem;
  }
}
