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

body {
  font-size: 1.3rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 100;
}

p,
body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

p {
  line-height: 1.5;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

.first-section,
.work {
  padding: 30px;
  margin-bottom: 50px;
}

.first-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  overflow: hidden;
}

.first-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #008ca7;
  transform: skewY(-30deg);
  transform-origin: top left;
  z-index: 1;
}

.profile,
.about {
  position: relative;
  z-index: 2;
}

.profile {
  margin-top: 20px;
}

.profile,
.about,
.work,
.work-title,
.first-section,
.contact,
.contact-container,
.contact-all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.contact {
  background-color: rgb(21, 105, 122);
  color: aliceblue;
  padding-top: 30px;
}

.contact-container {
  padding: 0 20px;
}
.about,
.contact-text {
  font-size: 1.7rem;
}

.profile {
  margin-bottom: 10px;
  position: relative;
}

.profile h1 {
  position: absolute;
  color: white;
  font-size: 3.2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 30%);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 1;
  margin: 0;
}

.icon,
.project-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 2rem;
}

.project-title {
  justify-content: space-between;
}

.project-img,
.hero-img {
  width: 90%;
}

.contact-img {
  width: 100%;
  display: block;
}

.share {
  width: 2rem;
}

.shadow,
.project {
  box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25);
}

.project {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

@media (768px <= width <= 1199px) {
  .first-section::before {
    top: 0%;
    height: 65%;
  }

  .first-section {
    display: block;
    padding: 140px max(80px, calc((100% - 900px) / 2)) 100px;
    margin: 0;
    max-width: 100%;
    min-height: auto;
    margin-bottom: -50px;
  }

  .profile {
    display: block;
    float: left;
    width: 50%;
    max-width: 350px;

    margin-top: -100px;
    margin-left: -40px;
    margin-right: 30px;
    margin-bottom: 10px;

    position: relative;
    z-index: 2;
  }

  .hero-img {
    width: 100%;
    display: block;
  }

  .about {
    display: block;
    background-color: white;
    box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25);
    padding: 40px;
    position: relative;
    z-index: 1;
  }

  .about::after {
    content: "";
    display: table;
    clear: both;
  }

  .about h2 {
    margin-bottom: 20px;
  }
  .about p {
    margin-bottom: 30px;
  }
  .about .icon {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
  }

  .profile h1 {
    top: 0px;
    left: 75%;
    transform: none;
    text-align: left;
    width: max-content;
  }

  .work {
    display: grid;
    grid-template-rows: 1fr 6fr 6fr 6fr;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    padding: 50px;
  }
  .work-title {
    align-items: flex-start;
    grid-area: 1/ 1 / 2 / 3;
  }

  .contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 50px;
  }
  .contact-container,
  .contact-all {
    align-items: start;
    padding: 0;
  }
  .contact-container {
    margin-bottom: 15px;
  }
}

@media (min-width: 1200px) {
  h2 {
    font-size: 3.5rem;
  }
  h3 {
    font-size: 2.5rem;
  }

  .about {
    font-size: 2rem;
  }

  .first-section {
    display: flex;
    flex-direction: row;
    gap: 0px;
    padding: 0 150px;
    margin-top: -160px;
    margin-bottom: 50px;
  }

  .first-section::before {
    transform: skewY(-15deg);
    height: 100%;
    min-height: auto;
  }

  .profile {
    max-width: 700px;
    z-index: 3;
  }
  .profile h1 {
    font-size: 4rem;
    top: 70%;
    left: 30%;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 1;
    margin: 0;
  }
  .hero-img {
    width: 100%;
  }

  .about {
    background-color: white;
    box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25);
    padding: 40px 60px;
  }
  .about h2 {
    align-self: flex-start;
  }
  .about .icon {
    align-self: flex-end;
  }

  .work {
    display: grid;
    grid-template-rows: 1fr 6fr 6fr;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 100px 100px;
    margin-top: -200px;
    gap: 60px;
    position: relative;
    z-index: 10;
  }
  .work-title {
    align-items: flex-start;
    grid-area: 1/ 1 / 2 / 4;
    margin-bottom: -80px;
  }

  .contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 80px 150px;
  }
  .contact-container,
  .contact-all {
    align-items: start;
    padding: 0;
  }
  .contact-container {
    margin-bottom: 15px;
  }
}
