body {
  width: 100%;
  padding: 0%;
  margin: 0%;
  font-family: "Inter", sans-serif;
  height: auto;
}

.fadeInAnimation {
  opacity: 1;
  animation-name: fadein;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-direction: alternate;
}

.delay3 {
  animation-duration: 3s;
}

.delay5 {
  animation-duration: 5s;
}

.delay7 {
  animation-duration: 7s;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  /* stylelint-disable-next-line rule-empty-line-before */
  100% {
    opacity: 1;
  }
}

.heading {
  background-image: url(images/header-illsutration-mobile@2x.png);
  background-repeat: no-repeat;
  background-size: cover, auto;
}

.bar {
  width: 1.5rem;
  height: 3px;
  background-color: black;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.container {
  display: flex;
  flex-flow: column;
  padding: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

a {
  text-decoration: none;
  color: #172b4d;
  font-weight: 600;
  padding: 0%;
}

.burgerButton {
  background-color: #fff;
  border: hsl(0, 0%, 100%);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
}

.burgerButton.active .bar:nth-child(1) {
  transform: translate(0, 9px) rotate(-45deg);
}

.burgerButton.active .bar:nth-child(2) {
  opacity: 0;
}

.burgerButton.active .bar:nth-child(3) {
  transform: translate(0, -7px) rotate(45deg);
}

#mobile-navbar {
  display: flex;
  flex-flow: column;
  align-items: end;
  padding: 0.5rem;
  gap: 0.3rem;
}

@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: flex-end;
    max-width: border-box;
  }

  .burgerButton.active {
    position: fixed;
    z-index: 3;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    margin: 5%;
    transition: 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0%;
    left: 0%;
    width: 100%;
    height: 100vh;
    padding: 4rem 0 0 1rem;
    background-color: #fff;
  }
}

.titlesClass {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #172b4d;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin: 0.2rem;
  padding: 3%;
}

#first-title {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #172b4d;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin: 0.2rem;
  margin-right: 3rem;
  margin-left: 3rem;
}

#presentation-title {
  display: flex;
  justify-content: center;
  align-content: center;
  color: #36b37e;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin: 0.2rem;
  padding: 0%;
}

p {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #172b4d;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.85rem;
  margin: 0.5rem;
}

.skill img {
  transition: all 0.5s ease-in-out;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.938rem;
  margin-bottom: 3.125rem;
}

.logos a img {
  transition: all 0.5 ease-in;
}

.skill:hover img {
  transform: rotate(360deg);
}

.logos a img:hover {
  transform: scale(1.2);
}

h3 {
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #344563;
}

.indicator {
  margin: auto auto;
  margin-top: 0.938rem;
  margin-bottom: 3.875rem;
  width: 3rem;
  height: 0.25rem;
  background-color: #36b37e;
  border-radius: 1.25rem;
}

.works {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 3.875rem;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: hsl(0, 0%, 100%);
  color: #3a4a42;
  font-weight: 600;
  width: 20.438rem;
  height: 29.625rem;
  border: 1px #d0d9d4 solid;
  border-radius: 8px;
  margin: 0%;
}

.project-img {
  display: flex;
  width: 100%;
  height: 60%;
  background-color: #ebf0ee;
  border-radius: 8px;
}

ul {
  display: flex;
  flex-direction: row;
  text-align: center;
  align-self: center;
  align-content: center;
  font-size: 0.75rem;
  gap: 1rem;
  list-style-type: none;
  padding: 0%;
}

.popup-section {
  scrollbar-gutter: stable;
  display: flex;
  position: fixed;
  box-sizing: border-box;
  flex-direction: column;
  overflow-y: scroll;
  z-index: 100;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 95vh;
  transform: translate(-50%, -50%);
  margin: auto;
  padding: 1rem;
  gap: 0.5rem;
  background-color: hsl(0, 0%, 100%);
  border: 1px #ebecf0 solid;
  border-radius: 8px;
}

.close-button {
  font-size: 1rem;
  display: inline;
  align-self: flex-end;
  justify-self: end;
  color: hsl(0, 0%, 100%);
  margin: 0%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  border: 1px;
  border-radius: 4px;
  background-color: transparent;
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.popup-title {
  text-align: left;
  font-size: 1.8rem;
  justify-content: start;
  align-self: start;
  width: 70%;
  margin: 0;
}

.popup-items {
  margin: 0;
  align-self: start;
  gap: 1rem;
}

.popup-text {
  font-size: 1rem;
  text-align: start;
  justify-content: start;
  align-self: start;
  margin: 0;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 30%);
  backdrop-filter: blur(5px);
}

section .skills .skill .placeholder ul {
  display: flex;
  flex-direction: row;
  text-align: center;
  align-self: center;
  align-content: center;
  font-size: 0.75rem;
  gap: 0.938rem;
  list-style-type: none;
  list-style-position: inside;
  padding: 0%;
}

#desktop-nav ul {
  flex-direction: column;
}

li {
  display: flex;
  flex-direction: row;
  text-align: center;
  padding: 12px 8px;
  background: #ebf0ee;
  border-radius: 4px;
}

section .skills .skill .placeholder li {
  padding: 8px 8px;
  background-color: hsl(0, 0%, 100%);
  border: 1px hsl(0, 0%, 100%) solid;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #36b37e;
}

#desktop-nav ul li {
  font-size: 2.5rem;
  flex-direction: column;
  text-decoration: none;
  padding: 0;
  background-color: #fff;
}

.button {
  display: flex;
  justify-content: center;
  align-self: center;
  text-align: center;
  margin: 2% 0;
  font-size: 1.063rem;
  font-weight: 500;
  background-color: #36b37f;
  color: hsl(0, 0%, 100%);
  border-radius: 4px;
  border: 4px;
  padding: 12px 16px;
  transition-duration: 0.4s ease;
  gap: 0.8rem;
}

small {
  animation: fadeIn 5s;
}

#about {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 3rem;
}

#about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 3.125rem;
  margin-top: 3.125rem;
  background-image: url(images/header-illsutration-mobile@2x.png);
  background-repeat: no-repeat;
  background-size: cover, auto;
}

.skills {
  display: grid;
  place-content: center;
  text-align: center;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 19.75rem;
  height: 20.438rem;
  border: #c1c7d0;
  border-radius: 8px;
}

.placeholder {
  display: grid;
  justify-items: center;
  align-items: center;
  width: 20.438rem;
  height: 19.75rem;
  background-color: #ebf0ee;
  border: 2px #c1c7d0 solid;
  border-radius: 0.5rem;
  margin: 1.25rem;
}

.circle {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin-top: 2.5rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 3.125rem;
}

.icon {
  width: 3rem;
  height: 3rem;
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding: 0%;
  gap: 1.5rem;
  width: 327px;
  height: 330px;
}

#contact-form form ul {
  width: 3rem;
}

textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.938rem;
  line-height: 1.5rem;
  color: #6b778c;
  background: hsl(0, 0%, 100%);
  border: 1px solid #d0d9d4;
  border-radius: 4px;
  padding: 4%;
  box-sizing: border-box;
}

input {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.938rem;
  line-height: 1.5rem;
  color: #6b778c;
  background: hsl(0, 0%, 100%);
  border: 1px solid #d0d9d4;
  border-radius: 4px;
  padding: 4%;
  width: 100%;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
  transition: all 0.5s ease-out;
}

input:hover::placeholder,
textarea:hover::placeholder {
  transform: translateX(20px);
}

.button:active {
  background: #008552;
  color: #fff;
  transform: scale(0.96);
}

.button:hover {
  background: #36b37f;
  box-shadow: 1px 8px 16px rgba(54, 179, 127, 0.24);
  border-radius: 4px;
}

#First-name { display: none; }

#Last-name { display: none; }

.desktop {
  display: none;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

  * {
    margin: 0 auto;
  }

  header {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-image: url(images/Header-llustration-desktop@2x.jpg);
    background-repeat: no-repeat;
    background-size: cover, auto;
    background-position: center center;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 12%;
  }

  #desktop-nav {
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
  }

  #desktop-nav ul {
    justify-content: center;
    align-items: center;
    flex-flow: row;
    background-color: #fff;
    padding: 0%;
  }

  #desktop-nav ul li {
    text-align: center;
    font-size: 0.75rem;
    background-color: #fff;
    padding: 0%;
  }

  a {
    text-decoration: none;
    color: #172b4d;
    font-weight: 600;
    transition-duration: 0.4s ease;
  }

  #mobile-navbar {
    display: none;
  }

  .heading {
    background-image: none;
    padding-top: 6%;
    padding-bottom: 12%;
  }

  #recent_works {
    justify-content: space-around;
    margin-bottom: 5%;
  }

  .works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: 75%;
    margin: auto;
    margin-top: -5rem;
    justify-content: space-around;
  }

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

  .title-buttons {
    display: flex;
    justify-content: space-between;
    margin: 0%;
  }

  .popup-buttons {
    width: 40%;
    float: right;
    display: inline;
    position: relative;
    justify-content: end;
    align-items: flex-start;
    margin: 0%;
  }

  .popup-section {
    width: 65vw;
    gap: 0.5rem;
  }

  .popup-title {
    font-size: 1.6rem;
    width: 50%;
  }

  .close-button {
    color: #3a4a42;
    background-color: #ebecf0;
    position: relative;
  }

  #about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    padding: 10rem;
    margin-left: auto;
    margin-right: auto;
    background-image: none;
  }

  #background-about {
    max-width: 1280px;
    background-image: url(images/illustration-about-me-2-desktop@2x.png), url(images/Frame.png);
    background-repeat: no-repeat, no-repeat;
    background-size: 175px, 175px;
    background-position: 0% 70%, 100% 40%;
  }

  #about-me-button {
    padding: 2%;
    margin: 0 auto;
  }

  .skills {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    justify-content: space-around;
  }

  #contact-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 5%;
    padding-left: 0.938rem;
    padding-right: 0.938rem;
    margin-left: auto;
    margin-right: auto;
  }

  #contact-form-title {
    display: flex;
    width: 40%;
    padding-left: 10%;
    padding-bottom: 0%;
  }

  .form {
    justify-content: flex-start;
    height: auto;
    width: 80%;
    padding-right: 10%;
  }

  #First-name {
    display: grid;
    margin-right: 1px;
  }

  #Last-name {
    display: grid;
    margin: 1px;
  }

  .name-complete {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    gap: 2px;
  }

  .desktop {
    display: flex;
  }

  .mobile {
    display: none;
  }
}
