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

html {
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
}

.welcome {
  width: 90px;
  height: 28px;
  top: 10px;
}

.nav-bar-list {
  display: none;
  gap: 40px;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
  color: #3a4a42;
}

.d-block {
  display: block;
  padding-top: 10%;
}

.d-block li {
  text-align: left;
  margin-left: 10%;
  margin-top: 10%;
  list-style: none;
  font-weight: 600;
  line-height: 44px;
  font-style: normal;
  font-size: 32px;
  font-family: 'Inter', sans-serif;
}

.d-block .mobile {
  position: fixed;
  right: 5%;
  top: -2%;
  font-size: 1.5rem;
  color: #67798e;
}

a {
  text-decoration: none;
  color: #505f79;
}

.font-f {
  font-family: Inter, sans-serif;
  font-style: normal;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px 20px;
}

.main-content {
  background-image: url("header.png");
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  width: 100%;
  justify-content: center;
  padding: 24px;
}

.introduction-text {
  color: rgb(23, 43, 77);
  font-size: 40px;
  margin-top: 74px;
  margin-bottom: 58px;
  transition: font-size, 500ms, 1000ms;
}

.introduction-text.head-trans:hover {
  font-size: 60px;
}

.common {
  font-weight: bold;
  line-height: 52px;
  text-align: center;
  font-size: 40px;
}

.green-text {
  color: rgb(54, 179, 126);
}

.introduction-text-2 {
  width: 320px;
  font-weight: normal;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: rgb(23, 43, 77);
  margin-top: 14px;
  margin-bottom: 58px;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.social-icons a {
  color: #505f79;
  padding: 20px;
  width: 30.99px;
  height: 19.96px;
  font-size: 20px;
}

.down-arrow {
  margin-bottom: 22px;
}

.recent-works {
  width: 327px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.green-indicator {
  margin-top: 24px;
  margin-bottom: 62px;
}

.post-stories {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
}

.container {
  width: 327px;
  height: 474px;
  border-radius: 8px;
  border: 1px solid #d0d9d4;
  background-color: #ebf0ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bottom-card {
  background-color: white;
  height: 222px;
  width: 327px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.bottom-card h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  margin: 16px 0;
}

.green-btn {
  background: #36b37f;
  border-radius: 4px;
  padding: 12px;
  border: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  color: #fff;
  margin-top: 15px;
  margin-bottom: 24px;
}

.bottom-card ul {
  display: flex;
  list-style: none;
}

.buttons {
  padding: 6px 10px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.03em;
  color: #3a4a42;
  border: none;
  background: #ebf0ee;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 29px;
  flex-wrap: wrap;
}

.sec {
  margin: 5px;
}

.about-me-section {
  margin-top: 68px;
}

.about-me-h2 {
  margin: 24px 0;
}

.about-me-text {
  background-image: url('img/illustration2.svg'), url('img/illustration.svg');
  background-position: top right, bottom left;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.text-for-about-me {
  width: 327px;
  font-weight: normal;
  font-size: 20px;
  line-height: 28px;
  color: #172b4d;
  margin-top: 14px;
}

.about-me-cards {
  border-bottom: 8px;
  background-color: #ebf0ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-me-btns {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tec-list {
  list-style: none;
}

.about-me-btns li {
  color: #36b37f;
  background-color: #fff;
  display: flex;
  flex-direction: row;
}

.container-last {
  height: 352px;
  width: 327px;
  border-radius: 8px;
  background: #ebf0ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #d0d9d4;
}

.card-heading {
  color: #344563;
  font-weight: 600px;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.green-btn:hover {
  box-shadow: 0 8px 16px rgba(54, 179, 127, 0.24);
  cursor: pointer;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url(img/Frame.png);
  background-repeat: no-repeat;
  background-position: bottom right;
}

.form {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  align-items: center;
}

.contact-header {
  width: 321px;
}

.form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input {
  width: 327px;
  height: 48px;
  border: 1px solid #d0d9d4;
  border-radius: 4px;
  padding: 15px 16px;
  margin-bottom: 24px;
}

.text-area {
  height: 114px;
  color: #091e42;
}

label {
  display: none;
}

.footer-email {
  margin-bottom: 17.04px;
}

.bg-popup {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(182, 177, 177, 0.801);
  width: 100%;
  overflow-y: scroll;
}

.btns {
  display: flex;
  list-style: none;
  margin: 12px 0;
  align-self: flex-start;
}

.popup-data {
  width: 95%;
  margin: 20px auto;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 15px 80px 15px;
  border-radius: 16px;
}

.bottom-card-popup {
  background-color: white;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: auto;
}

.popup-text {
  font-weight: normal;
  font-size: 16px;
  color: #344563;
  text-align: justify;
  line-height: 24px;
}

.img-block {
  border-radius: 8px;
  margin-bottom: 12px;
  width: 100%;
  display: block;
}

.card-heading-popup {
  height: 135px;
  width: 259px;
  color: #172b4d;
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  margin-top: 15px;
  align-self: flex-start;
}

.popup-btns {
  display: flex;
}

.popup-btn-container {
  margin-bottom: 24px;
}

.popup-btn {
  width: 158px;
  height: 48px;
  background: #36b37f;
  border-radius: 4px;
  padding: 12px;
  border: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  color: #ffff;
}

.popup-close-btn {
  align-self: flex-end;
  font-size: 32px;
  align-items: center;
  display: flex;
  padding: 4px;
  border-radius: 3px;
  margin-bottom: 12px;
  top: 20px;
  background: rgba(235, 236, 240, 1);
  color: rgba(103, 121, 142, 1);
}

.popup-modal {
  list-style: none;
}

.error-message {
  width: auto;
  color: red;
  height: auto;
  background-color: #f1a0a9;
  border-radius: 5px;
  padding: 5px 15px;
  display: none;
}

.btn-list-popup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
}

@media screen and (min-width: 992px) {
  .mobile {
    display: none;
  }

  .nav-bar-list {
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
    background: transparent;
    position: static;
  }

  .nav-bar-list li {
    margin-top: 5px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 15px;
    color: rgba(52, 69, 99, 1);
  }

  .main-content {
    background-image: url("img/Header-llustration-desktop@2x.png");
    background-position: center;
    background-size: cover;
  }

  .introduction-text {
    margin-top: 15px;
    margin-bottom: 24px;
    width: 40%;
    font-size: 30px;
  }

  .introduction-text-2 {
    width: 40%;
    margin: 0 50px;
  }

  .down-arrow {
    margin-top: 84px;
  }

  .green-indicator {
    display: none;
  }

  .recent-works h2 {
    width: 447px;
    height: 48px;
    margin-top: 102px;
  }

  .card-list {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 24px;
  }

  .about-me-text {
    background-image: url(img/illustration-about\ me-1-desktop-about-left.svg), url(img/illustration-about\ me-1-desktop-about-right.png);
    background-position: center left, top right;
    width: 100%;
    background-size: 11%;
    margin-top: 120px;
    margin-bottom: 52px;
  }

  .text-for-about-me {
    width: 768px;
    height: 92px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .cards-margin {
    margin-bottom: -164px;
  }

  .footer {
    background-image:
      url("img/footing-bg-1-desktop.svg"),
      url("img/footing-bg-2-desktop.svg"),
      url("img/footing-bg-3-desktop.svg");
    background-position: bottom left, 13rem bottom, bottom right;
    background-size: 10%;
  }

  .form {
    display: flex;
    width: 85%;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 225px;
    margin-top: 0;
    justify-content: space-around;
  }

  .input {
    width: 680px;
  }

  .contact-header {
    width: 463px;
    height: 256px;
    line-height: 52px;
  }

  .footer-line {
    border-top: 1px solid #dfe1e6;
  }

  .social-icons li {
    padding-top: 24px;
  }

  .footer-icons a {
    font-size: 23px;
  }

  .footer-icons {
    margin-bottom: 1px;
  }

  form {
    width: 60%;
  }

  .form form {
    display: block;
  }

  .popup-data {
    height: auto;
    width: 744px;
  }

  .img-block {
    height: auto;
    width: 93%;
  }

  .card-heading-popup {
    width: 589px;
    font-weight: bold;
    line-height: 44px;
    letter-spacing: 0;
    text-align: left;
    height: 82px;
  }

  .popup-close-btn {
    margin-bottom: 14px;
  }

  .popup-data i {
    font-size: 15px;
  }

  .btns {
    margin: 0;
  }

  .cont {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-me-h2:hover {
    animation: bounce 2s ease-out;
  }

  @keyframes bounce {
    0% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.5);
    }

    75% {
      transform: scale(2);
    }

    100% {
      transform: scale(1);
    }
  }
}
