html {
    scroll-behavior: smooth;
  }

* {
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1, h2, h3, .navbar > a {
  font-family: 'Hanken Grotesk', sans-serif;
}

h1 {
  font-size: 2em;
  letter-spacing: .6rem;
  text-transform: uppercase;
}

section, .header-introduction, footer {
  width: 100%;
  padding: 5%;
}

p {
  font-size: 20px;
}

a {
  text-decoration: none;
}

button, button > a {
  background-color: #313F2E;
  color: white;
  font-size: 18px;
  padding: 10px;
  width: fit-content;
  border-radius: 10px;
  border: none;
}

/* navbar  */
.navbar {
  background-color: #313F2E;
  width: 100%;
  height: 100px;
  overflow: hidden;
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  transition: opacity 2s;
}

.navbar-collapsed {
  display: flex;
  justify-content: space-around;
  width: 43%;
  align-items: center;
  font-family: 'Hanken Grotesk', sans-serif;
}

.navbar:hover {
  opacity: .8;
}

.navbar-collapsed > a {
  font-weight: bold;
}

.navbar > a, .navbar-collapsed > a {
  font-size: 24px;
  text-transform: uppercase;
  margin: 0 3%;
  transition: padding 1s;
  text-decoration: none;
  color: white;
}

.navbar-social-icons {
  margin: 0 3%;
  transition: border 1s ease-in;
}

.navbar > a:hover, .navbar-collapsed > a:hover {
  border: 1px solid white;
  padding: 5px;
  border-radius: 10px;
}

.navbar-social-icons > a:hover {
  border-bottom: 1px solid white;
  padding-bottom: 15px;
}

.menu-icon {
  display: none !important;
}

/* header  */

.header-introduction {
  text-align: center;
  margin-bottom: 7%;
  height: 75vh;
}

.brand-image {
  height: 70vh;
  max-width: 99%;
  object-fit: contain;
}

/* about me */

.about-me, .projects {
  background-color: #F8F8F8;
}

.about-me-image {
  float: right;
  width: 35%;
  padding: 0 0 3% 3%;
}

.about-me-buttons > button {
  margin-right: 10px;
}

/* skills grid */

.skills {
  display: flex;
  justify-content: space-around;
}

.skills-items {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.skills-items > li {
  padding: 20px;
  background-image: url("./img-v2/check-mark.png");
  background-repeat: no-repeat;
  background-position: 1px;
  padding-left: 50px;
}

/* projects */

.left-aligned-project, .right-aligned-project {
  display: flex;
  align-items: center;
  margin: 5% 0;
  margin-bottom: 10%;
}

.right-aligned-project {
  flex-direction: row-reverse;
}

.left-aligned-project-info, .right-aligned-project-info {
  display: flex;
  flex-direction: column;
}

.left-aligned-project-info > p, .left-aligned-project-info > a, .left-aligned-project-info > ul {
  text-align: right;
}

.right-aligned-project-info > p, .right-aligned-project-info > a, .right-aligned-project-info > ul {
  text-align: left;
}

.left-aligned-project-info > a, .right-aligned-project-info > a {
  color: #313F2E;
  text-transform: uppercase;
  font-size: 30px;
  text-decoration: none;
}

.left-aligned-project-info > p, .right-aligned-project-info > p {
  background-color: #313F2E;
  color: white;
  position: relative;
  max-width: 60vw;
  width: 140%;
  z-index: 3;
  padding: 4%;
  right: 20%;
  margin-left: -20%; 
  margin-bottom: 7%;
  border-radius: 10px;
}

.left-aligned-project-info > p {
  right: 20%;
  margin-left: -20%; 
}

.right-aligned-project-info > p {
  left: 20%;
  margin-right: -20%; 
}

.left-aligned-project-info > ul, .right-aligned-project-info > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.left-aligned-project-info > ul > li, .right-aligned-project-info > ul > li {
  display: inline-block;
  background-color: #313F2E;
  color: white;
  width: fit-content;
  padding: 5px;
  margin: 5px 3px;
  border-radius: 10px;
}

.left-aligned-project-links {
  margin-top: 7%;
  text-align: right;
}

.right-aligned-project-links {
  margin-top: 7%;
  text-align: left;
}

i {
  margin: 5px;
}

.left-project-image, .right-project-image {
  max-width: 750px;
  opacity: 0.6;
  transition: opacity 2s;
  border: 2px solid #313F2E;
  border-radius: 10px;
  height: 400px;
  object-fit: fill;
}

.left-project-image:hover, .right-project-image:hover {
  opacity: 1; 
}

/* contact section */

.contact-me {
  display: flex;
  align-items: flex-start;
}

.contact-me-info {
  padding: 4%;
  margin-right: 2%;
  padding-left: 0;
}

.contact-me-image {
  border-radius: 10px;
}

.contact-me-email {
  display: flex;
  align-items: center;
}

.contact-me-email > i {
  margin-right: 15px;
}

.contact-me-email > a {
  text-decoration: underline;
  color: black;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F8F8F8;
}

.footer-buttons {
  display: flex;
  justify-content: center;
}

.show-v1-button {
  margin: 10px;
}

footer > h3 {
  margin-top: 3%;
  margin-bottom: 0;
}

/* media queries */

@media all and (max-width: 1000px) {
  /* projects */

  .left-aligned-project, .right-aligned-project {
    flex-direction: column;
    background-color: white;
    padding: 20px 0;
    border: 2px solid #313F2E;
    border-radius: 10px;
  }

  .left-aligned-project > a, .right-aligned-project > a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .left-project-image, .right-project-image {
    width: 90%;
    border: none;
    height: auto;
    border-radius: 10px;
  }

  .left-aligned-project-info, .right-aligned-project-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .left-aligned-project-info > p {
    margin-left: 0;
  }

  .right-aligned-project-info > p {
    margin-right: 0;
  }

  .left-aligned-project-info > p, .right-aligned-project-info > p {
    max-width: 100%;
    text-align: center;
    position: static;
    margin: 10px;
    width: 90%;
  }

  .left-aligned-project-info > ul, .right-aligned-project-info > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 5%;
    margin-left: 5%;
  }

  .left-aligned-project-info > a, .right-aligned-project-info > a {
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  /* contact */
  .contact-me {
    flex-direction: column;
    align-items: center;
  }
}

@media all and (max-width: 900px) {

  .navbar > a, .navbar-collapsed > a {
    font-size: 18px;
  }

  .navbar > a {
    margin-right: 4%;
  }

  .about-me-image {
    width: 50%;
  }

  .skills {
    display: block;
  }

  .skills-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
  }
}

@media all and (max-width: 650px) {

  /* about me */

  .about-me-image {
    width: 100%;
    padding: 3% 0;
  }

  .about-me-buttons {
    display: flex;
    justify-content: center;
  }

  .about-me-buttons > button {
    margin: 10px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 19px;
  }

  .menu-icon {
    position: absolute;
    display: block !important;
    right: 20px;
    top: 43px;
  }

  .navbar {
    justify-content: flex-start;
  }

  .navbar-collapsed, .navbar-social-icons {
    align-items: left;
    display: none;
  }

  .navbar-collapsed:first-child {
    margin-top: 16px;
    align-self: flex-start;
  }

  .navbar-collapsed > a {
    margin-bottom: 10px;
  }

  .navbar > a:first-child, .menu-icon {
    margin-left: 30px;
  }

  .navbar-responsive {
    flex-direction: column;
    align-items: left;
    height: fit-content;
    padding: 5%;
    display: block;
  }
  
  .navbar-links-responsive {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 15px;   
    width: auto;
    margin-top: 5px;
  }

  .navbar-icons-responsive {
    display: block;
    text-align: left;
    margin-top: 13px;
    margin-left: 22px;
  }

  /* contact */

  .contact-me-image, .contact-me-info  {
    width: 90%;
  }

  .contact-me-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .contact-me-info h2 {
    text-align: center;
  }
}

@media all and (max-width: 400px) {
  .skills-items {
    grid-template-columns: 1fr;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}