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

html {
  box-sizing: border-box;
  font-size: 59.5%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  background-color: #e5e5e5;
  height: 100vh;
}

.button {
  display: inline-block;
  font-size: 1.7rem;
  text-decoration: none;
  color: #396df2;
  border: 0.1rem solid #6070ff;
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: all 0.3s;
}

.button:hover {
  color: #396df2;
  background-color: #fff;
  box-shadow: 0 0.8rem 1.6rem 0 rgb(64, 83, 252, 24%);
}

.button:active {
  color: #396df2;
  background-color: #2230d2;
  border: 0.1rem solid #2230d2;
  box-shadow: none;
}

.button-disabled {
  color: #5e6c84;
  border: 0.1rem solid #c1c7d0;
  transition: none;
  pointer-events: none;
}

.navigation {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7.68rem;
  background-color: #fff;
  padding: 0 3.6rem;
}

/* MOBILE MENU */

.hidden {
  display: none;
}

.sections-list {
  position: fixed;
  width: 35.1rem;
  height: 18.4rem;
  left: 1.2rem;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
  list-style: none;
  font-size: 3.2rem;
  font-weight: 500;
}

.option {
  color: white;
  text-decoration: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 27, 182, 0.548);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.close-overlay {
  border: none;
  background: none;
  position: absolute;
  top: 4rem;
  right: 4rem;
}

/* MOBILE MENU END */

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6070ff;
}

.logo:hover {
  transform: scale(1.3);
  transition-duration: 0.1s;
}

.item-navigation {
  display: none;
}

.header {
  height: calc(100vh - 7.68rem);
  background-color: #fff;
  border-bottom-left-radius: 10rem;
  background-image: url(images/header-shapes-mobile.svg);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: 0 2rem;
}

.header-text {
  display: flex;
  flex-direction: column;
  margin: 0 2.4rem;
  gap: 1.2rem;
}

.heading-primary {
  font-size: 4rem;
  font-weight: 700;
  color: #172b4d;
}

.text-primary {
  font-size: 1.6rem;
  font-weight: 400;
  color: #344563;
}

.connect-btn {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 500;
  color: #7f8cff;
  text-decoration: none;
  transition: color 0.2s;
}

.connect-btn:hover {
  color: #396df2;
}

.connect-btn:active {
  color: #6070ff;
}

/* POPUP WINDOW */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 24, 24, 0.158);
  backdrop-filter: blur(0.6rem);
  z-index: 100;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  transform: translate(-50%, -50%);
  z-index: 100;
  height: 75%;
}

.text-secondary.mob {
  overflow: hidden;
  height: 5rem;
  margin-bottom: 1rem;
}

.popup-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-self: center;
  gap: 1rem;
  position: relative;
  bottom: 10px;
}

.btn-element {
  display: inline-flex;
  flex-direction: row;
  gap: 1rem;
}

.popup-close-btn {
  height: 1rem;
  position: absolute;
  width: 1.4rem;
  right: 2rem;
  top: 2.8rem;
}

/* Popup window end */

.work {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 8.8rem;
  padding: 10rem 2.4rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-radius: 1.6rem;
  background-color: #fff;
  padding: 0.2rem;
  border: 0.2rem solid transparent;
}

.card:hover {
  border: 0.2rem solid #a7aeff;
  transition-duration: 0.1s;
}

.card-img {
  height: 22rem;
  object-fit: cover;
  border-radius: 0.8rem;
}

.img-desktop {
  display: none;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.heading-secondary {
  font-size: 2.2rem;
  font-weight: 700;
  color: #172b4d;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 0;
}

.input-text {
  color: #7a869a;
}

.card-info li {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 1.3rem;
}

.card-info .card-info-dot {
  height: 0.8rem;
  width: 0.8rem;
}

.text-secondary {
  font-size: 1.5rem;
  font-weight: 400;
  color: #344563;
}

.card-tags {
  display: flex;
  gap: 0.8rem;
  position: relative;
  top: 18px;
}

.card-tags li {
  list-style: none;
  padding: 0.4rem 1.2rem;
  color: #6070ff;
  background-color: #ebebff;
  border-radius: 0.8rem;
}

.card-button {
  display: block;
  padding: 1.2rem 0;
}

.about {
  background-color: #fff;
  border-top-right-radius: 10rem;
  padding: 8rem 2.4rem 18rem 2.4rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.first-part {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-button {
  display: block;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.skills-list {
  font-size: 2rem;
  font-weight: 500;
}

.list-btn {
  display: flex;
  justify-content: space-between;
  padding: 2.4rem 1.2rem;
}

.list-btn img {
  transform: rotate(-90deg);
}

.list-btn-active img {
  transform: rotate(0);
}

.list-selectors {
  display: none;
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 0.8rem;
  padding: 1.2rem;
  transition: display 3s;
}

.list-selectors li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background-color: #f7f7f9;
  border-radius: 0.8rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  border: 0.1rem solid transparent;
  transition: transform 0.3s;
}

.list-selectors li:hover {
  border: 0.1rem solid #6070ff;
  transform: scale(1.05);
  cursor: pointer;
}

.social-icons {
  display: flex;
  list-style: none;
  gap: 1.9rem;
}

.social-icons li img {
  height: 2rem;
}

.social-icons li a img {
  transition: 0.3s;
}

.card img:hover {
  transform: scale(1.01);
  transition-duration: 0.1s;
}

.social-icons li a img:hover {
  transform: scale(1.3);
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  background-color: #6070ff;
  height: 77.9rem;
  border-top-left-radius: 10rem;
  margin-top: -20rem;
  padding: 10.3rem 2.4rem 4.5rem 2.4rem;
  overflow: hidden;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.heading-tertiary {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin-top: -50px;
}

.secondary-text {
  font-size: 2rem;
  font-weight: 400;
  color: #ebebff;
  text-align: center;
}

.secondary-text:hover,
.heading-tertiary:hover {
  transition-duration: 1s;
  transform: translate(0.01rem, 1rem);
}

.contact-bg {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 90%;
}

.contact-form {
  width: 100%;
  margin-top: -46px;
}

.contact-form ul {
  display: flex;
  flex-direction: column;
  align-content: center;
  list-style: none;
  gap: 2rem;
}

/* Alert message start */
.show-msg {
  color: brown;
  background-color: #fff;
  border-radius: 0.6rem;
  display: none;
  font-size: 1.3rem;
  padding: 0.5rem;
  text-align: center;
  animation: show-msg 1s 1;
  margin-top: -2rem;
  margin-bottom: 0.4rem;
}

@keyframes show-msg {
  from {
    visibility: hidden;
    background-color: #fff;
  }

  to {
    border-radius: 1rem;
  }
}

.contact-element {
  border: 0.1rem solid #cfd8dc;
  padding: 1.5rem;
  border-radius: 0.8rem;
  width: 100%;
  outline: none;
  font-size: 1.4rem;
}

.contact-element:focus::placeholder {
  color: #3a3c3f;
}

.btn-contact {
  display: inline-block;
  background-color: #fff;
}

@media only screen and (min-width: 992px) {
  html {
    font-size: 50%;
  }

  .header {
    background-image: url(images/header-shapes-mobile.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: unset;
  }

  .navigation {
    padding: 2.4rem 15.5rem;
  }

  .hamburger {
    display: none;
  }

  .item-navigation {
    display: flex;
    list-style: none;
    gap: 3rem;
    font-size: 1.5rem;
    font-weight: 500;
    align-items: flex-end;
  }

  .item-navigation li a {
    text-decoration: none;
    color: #344563;
  }

  .item-navigation li a::after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: '';
    display: block;
    height: 0.2rem;
    left: 50%;
    background-color: rgb(78, 77, 77);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }

  .item-navigation li a:hover::after {
    width: 100%;
  }

  .header-text {
    padding: 2rem 39rem;
  }

  .work {
    align-items: center;
    justify-content: space-evenly;
  }

  .card.popup.desk {
    height: 57rem;
    width: 100rem;
  }

  .card-content.desk {
    padding: 0;
    display: flex;
  }

  .heading-secondary.desk {
    margin-top: -1rem;
  }

  .card-info.desk {
    margin-top: -3rem;
  }

  .card-img.desk {
    margin-top: -2rem;
    height: 35rem;
    width: 95rem;
  }

  .desk-pop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }

  .first {
    width: 70%;
  }

  .text-secondary.desk {
    width: 80%;
    height: 15rem;
  }

  .second {
    margin-top: -5rem;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .card-tags.desk {
    display: flex;
    justify-content: center;
  }

  .popup-button.desk {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    margin-bottom: 6rem;
  }

  .button.btn-element.desk {
    font-size: 1.3rem;
  }

  /* POPUP MEDIA END */

  .card {
    display: flex;
    flex-direction: row;
    padding: 2.4rem 2.2rem;
  }

  .card-2,
  .card-4 {
    flex-direction: row-reverse;
  }

  .card-img {
    height: 44.8rem;
    width: 54.4rem;
  }

  .card-content {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
  }

  .text-secondary {
    width: 40.4rem;
  }

  .about-text {
    flex-direction: row;
    padding: 14.2rem;
    justify-content: space-between;
    align-items: center;
  }

  .first-part {
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
    width: 50%;
  }

  .skills-list {
    width: 45%;
  }

  .list-selectors {
    display: flex;
    flex-direction: row;
  }

  .list-selectors li {
    width: 10rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.2rem;
    font-weight: 500;
  }

  .contact img {
    display: none;
  }

  .contact {
    height: 100vh;
    background-image: url(desktop/contact-background.svg);
    background-repeat: no-repeat;
    background-position-y: 100%;
    background-position-x: 50%;
    background-size: 80%;
  }

  .contact-text {
    padding: 0 30rem;
  }

  .contact-form {
    padding-left: 51rem;
    padding-right: 51rem;
  }

  .btn-contact {
    align-self: flex-end;
  }
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 62.5%;
  }
}

@media screen and (min-width: 1800px) {
  html {
    font-size: 75%;
  }
}

@media screen and (min-width: 500px) {
  .card-tags {
    display: flex;
    gap: 0.8rem;
    position: relative;
    bottom: 8px;
  }
}

@media screen and (min-width: 2100px) {
  html {
    font-size: 81.25%;
  }
}

@media screen and (min-width: 2500px) {
  html {
    font-size: 87.5%;
  }
}
