/*------------GLOBAL--------------*/
:root {
  ---primary: #046b99;
  ---secondary: #8ba6ca;
  ---main: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-border-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(---main);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.container {
  width: 100%; 
  margin: 0 auto;
  padding: 40px 40px;
}

.section:nth-child(2n) {
  background-color: #f4f4f4;
}

.section {
  padding: 40px 0;
}

h1 {
  font-size: 35px;
  font-weight: 700;
  line-height: 45px;
  margin: 0;
}

h2 {
  display: table;
  text-align: center;
  color: var(---main);
  background-color: var(---secondary);
  font-size: 18px;
  line-height: 25px;
  text-transform: uppercase;
  margin: 0 auto;
  padding: 4px 8px;
}

h3 {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 29px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 10px auto 0 auto;
  color: var(---secondary);
}

p {
  font-size: 15px;
  line-height: 30px;
  font-weight: 200;
  font-style: normal;
}

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

/*-------------HEADER---------------*/

.header {
  height: 520px;
  background-image: url("img/water.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.header-container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header-links {
  position: absolute;
  display: flex;
  top: 48px;
  right: 25px;
}

.icon-picture {
  width: 40px;
  height: 40px;
  margin: 5px; 
}

.header-text {
  position: absolute;
  width: 220px;
  left: 24px;
  top: 121px;
  color: var(---main);
}

.portfolio-owner {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bold {
  font-weight: 700;
}

.other-titles {
  font-weight: bold;
  font-size: 22px;
  line-height: 40px;
}

.profile-picture {
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -16px;
  right: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(---main);
}

/*-------------SUMMARY SECTION---------------*/

.line {
  border: 1px solid var(---primary);
  width: 40px;
  display: inline-block;
  margin-bottom: 4px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: var(---primary);
  border-radius: 50%;
  display: inline-block;
}

/*---------STYLING CONTAINER TITLES-----------*/

.title-box {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.subtitle-box {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
}

.title {
  font-size: 22px;
  line-height: 122%;
  color: var(---main);
  background-color: var(---primary);
  padding: 0 4px;
  text-transform: uppercase;
  text-align: center;
}

/*--------TECH SECTION------------*/

.tech-text {
  margin-top: 24px;
  text-align: center;
}

.color {
  color: #008Bf8;
}

/*------PROJECTS SECTIONS-----------*/

.project-container {
  width: 100%;
}

.project {
  margin-top: 30px;
}

.project-image-group {
  position: relative;
  margin-top: 32px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image {
  width: 100%;
  display: inherit;
}

.project-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.5s ease;
}

.text-over-image {
  color: var(---main);
  background-color: transparent;
  font-size: 24px;
  position: absolute;
  top: 45%;
  left: 0;
  bottom: 0;
  right: 0;
  transition: 0.5s ease;
  text-align: center;
}

.project-image-group:hover .project-overlay,
.project-image-group:hover .text-over-image {
  background-color: transparent;
  color: transparent;
}

.project-text-group {
  margin-top: 7px auto;
}

.featured-project-title {
  margin: 7px auto;
  line-height: 171%;
}

.project-description {
  font-family: "Roboto", sans-serif;
}

.other-project {
  margin-top: 40px;
}

.subtitle {
  background-color: transparent;
  color: var(---primary);
}

.other-project-title {
  line-height: 132%;
  color: #000;
}

.other-project-description {
  font-family: "Roboto", sans-serif;
  line-height: 171%;
  color: var(---primary);
}

.arrow {
  color: #000;
  text-decoration: underline #000;
}

.tag-wrapper {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 5px;
}

.tag {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 5px;
  margin: 2px;
  color: var(---main);
  background-color: var(---primary);
}

/*---------TOUGHTS SECTION-----------------*/

.thoughts {
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.thoughts-image {
  border-radius: 10%;
  width: 45%;
  padding: 20px;
}

/*----------SKILLS SECTION---------------*/

.skills-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills {
  text-align: center;
  margin: 10px;
}

.skills-heading {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 171%;
  text-transform: uppercase;
}

.skills-list {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 171%;
  letter-spacing: 0.02em;
  list-style: none;
}

/*------------FOR MORE SECTION-----------------*/

.more-icons {
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
}

.image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  width: 80px;
  height: 80px;
}

.icon-text {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 118%;
  color: #000;
}

/*-------------FOOTER---------------*/

footer {
  height: 300px;
  background: var(---secondary);
}
.contact {
  text-align: center;
  text-decoration: none;
  color: var(---main);
}

.footer-title {
  padding-top: 40px;
  margin-bottom: 24px;
  background-color: transparent;
}

.footer-text {
  font-weight: bold;
}

.contact a {
  color: var(---main);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/*-----------MEDIA QUERIES TABLET----------------*/

@media screen and (min-width: 768px) {
  h1 {
    font-size: 55px;
    line-height: 80px;
  }

  .header-container {
    width: 718px;
  }

  .header-text {
    width: 400px;
  }

  .portfolio-owner {
    font-size: 20px;
    line-height: 30px;
  }

  .other-titles {
    font-size: 30px;
    line-height: 50px;
  }

  .icon-picture {
    width: 60px;
    height: 60px;
  }

  .profile-picture {
    width: 200px;
    height: 200px;
  }

  .project-image-group {
    width: 100%;
  }

  .tablet-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project {
    margin: 5px 10px;
  }

  .title-box {
    margin-bottom: 60px;
  }

  .more-icons {
    display: flex;
    justify-content: space-evenly;
  }
}
/*---------MEDIA QUERIES DESKTOP--------------*/

@media screen and (min-width: 1200px) {
  h1 {
    font-size: 60px;
    line-height: 85px;
  }

  h2 {
    font-size: 25px;
    line-height: 30px;
    padding: 5px 10px;
  }

  h3, p, a {
    font-size: 20px;
    line-height: 34px;
  }

  .header-container {
    width: 800px;
  }

  .icon-picture {
    height: 80px;
    width: 80px;
    margin: 10px;
  }

  .icon-picture:hover {
    transform: scale(1.2);
  }

  .profile-picture {
    width: 260px;
    height: 260px;
  }

  .tag {
    font-size: 20px;
    padding: 10px;
  }

  .other-project-title,
  .other-project-description {
    display: inline;
  }

  .underline {
    text-decoration: underline;
    text-underline-position: under;
  }

  .title-box {
    margin-bottom: 80px;
  }

  .title {
    font-size: 25px;
  }

  .more-icons {
    font-size: 50px;
  }

  .image-link {
    width: 110px;
    height: 110px;
  }

  .image-link:hover {
    transform: scale(1.1);
  }

  .icon-text {
    font-size: 18px;
  }
}
