/* stylelint-disable no-descending-specificity */
/* stylelint-disable-next-line comment-empty-line-before */
/* General Styling */

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

body {
  font-family: "Inter", sans-serif;
  font-style: normal;
  overflow-x: hidden;
}

.backgrnd-clr {
  background-color: white;
}

.main-content {
  height: 100vh;
}

/* Styling the header section (tool bar) */
.header,
.portfolio-wrapper {
  width: 90%;
  margin: 0 auto 5%;
  padding: 10px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navlist {
  display: none;
}

.navbar > img {
  height: 20px;
}

.navlistmoblie > .nav-items a {
  text-decoration: none;
}

.bars {
  background: transparent;
  border: none;
}

/* Styling the headline section */
.head-line {
  display: flex;
  background-image: url("../images/icons/stripe.png");
  background-image: url("../images/icons/header-illsutration-mobile@3x.png");
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 500px;
  padding: 10px;
}

/* styling the social media section */
.social-media {
  display: flex;
  justify-content: center;
  width: 70%;
  gap: 10%;
  margin-bottom: 10%;
}

.social-links {
  flex-basis: content;
}

/* styling the headline introductory message (typography) */
.greeting-text {
  font-weight: 700;
  font-size: 25px;
  line-height: 40px;
}

.text-color {
  display: block;
  color: #36b37e;
}

.scroll {
  margin-bottom: 10%;
}

/* Styling the supporting Text in the headline section */
.supportig-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  padding: 0 16%;
  flex: none;
  flex-grow: 0;
  width: 95%;
}

.headline-box {
  margin-top: 3%;
  font-family: "Inter", sans-serif;
  font-style: normal;
  text-align: center;
  color: #172b4d;
}

/* Creating a grid items wrapping effect */
.portfolio-project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 377px));
  gap: 30px;
  justify-content: center;
}

.project-item {
  border: 1px solid #d0d9d4;
  border-radius: 8px;
  text-align: center;
}

.project-item > * + * {
  margin-block-start: 16px;
}

.project-item-img {
  display: block;
  width: 100%;
  height: auto;
}

.project-item-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 16px;
}

.project-item-stack {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 8px;
}

.project-item-stack li {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.03em;
  color: #3a4a42;
  background: #ebf0ee;
  border-radius: 4px;
}

.work-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 10% 0;
}

.line {
  width: 50px;
  height: 5px;
  background: #36b37f;
  border-radius: 10px;
}

.project-item-btn {
  width: fit-content;
  margin-block: 13px 24px;
  padding: 12px;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #fff;
  background: #36b37f;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

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

.project-item-btn:active {
  background-color: #008552;
}

/* About Style
------------------------------------ */
.about-wrapper > * {
  width: 100%;
  text-align: center;
}

.about-content-header {
  margin-inline: 20px;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  text-align: center;
  color: #172b4d;
}

.about-content-text {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #172b4d;
  width: 90%;
  text-align: center;
  margin: 30px auto;
}

.about-content {
  background-image:
    url("../images/icons/Group.png"),
    url("../images/icons/MaskGroup.png");
  background-size: 50px 90px;
  background-repeat: no-repeat;
  background-position: bottom left, top right;
}

.about-content-btn {
  width: fit-content;
  padding: 12px;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.03em;
  color: #fff;
  background: #36b37f;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

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

.about-content-btn:active {
  background-color: #008552;
}

/* Creating a grid items wrapping effect */
.about-tech {
  padding-block: 59px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 377px));
  gap: 32px;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
}

.about-tech-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 40px 24px;
  background: #ebf0ee;
  border: 1px solid #c1c7d0;
  border-radius: 8px;
}

.about-tech-img {
  width: 80px;
  height: 80px;
  margin-block-end: 64px;
  border-radius: 50%;
  padding: 18px;
  background-color: #fff;
}

.about-tech-img img {
  display: block;
  width: 100%;
  height: auto;
}

.tech-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #344563;
  margin-block-end: 24px;
}

.about-tech-items {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 8px;
}

.about-tech-items li {
  padding: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.03em;
  color: #36b37e;
  background-color: #fff;
  border-radius: 8px;
}

/* contact form styling */
.contact {
  display: flex;
  flex-wrap: wrap;
  margin: 10%;
  justify-content: center;
  align-content: center;
  background-image: url(../img/Frame.svg);
  background-repeat: no-repeat;
  background-size: 50px, 100px, 50px;
  background-position: bottom right, left bottom, bottom right;
}

.contact-message {
  width: 99%;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: #172b4d;
  margin: 30px auto;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  height: 363px;
  width: 327px;
  margin: 50px auto;
  justify-content: flex-start;
}

input {
  height: 48px;
  width: 327px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d0d9d4;
  outline: none;
  padding: 10px;
}

textarea {
  height: 114px;
  width: 327px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #60c095;
  outline: none;
  text-align-last: left;
  margin: 30px auto;
  padding: 10px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75%;
  height: 50px;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: #42526e;
  margin-left: 12%;
}

.address-style {
  text-decoration: none;
}

a:hover,
a:active {
  color: #36b37f;
}

.sbtn {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 12px;
  gap: 10px;
  width: 140px;
  height: 48px;
  background: #36b37f;
  border-radius: 4px;
  text-align: center;
  border: solid #36b37f;
}

.btn {
  display: flex;
  justify-content: center;
  margin-left: 20%;
  margin-right: 20%;
  flex: 1;
}

input:focus {
  outline: solid #36b37f 2px;
}

textarea:focus {
  outline: solid #36b37f 2px;
}

input:valid {
  outline: solid #36b37f 2px;
}

.form-element {
  font-size: 10px;
}

.open {
  flex-direction: column;
  gap: 30px;
  background-color: rgb(243, 232, 232);
  backdrop-filter: blur(5px);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
}

.close {
  display: flex;
  width: 90%;
  margin: 4% auto 0;
  padding: 8px;
  text-align: left;
}

.close > img {
  margin-left: auto;
}

.show {
  display: flex;
}

.hidden {
  display: none;
}

.project-name {
  margin-left: 30px;
}

.see-project {
  margin-right: 30px;
  margin-top: 5px;
}

/* Desktop version and media queries */

@media screen and (min-width: 768px) {
  .contact-message {
    flex-basis: 40%;
    margin: 0;
    padding-top: 5%;
    text-align: left;
    font-size: 25px;
    transition: ease-in 1s;
  }

  .open {
    display: none;
  }

  .contact-form {
    margin: 0;
    flex-basis: 57%;
  }

  .form-element {
    width: 100%;
  }

  input,
  textarea {
    width: 100%;
    margin: 0;
  }

  .btn {
    justify-content: unset;
    margin: 0;
  }

  .email {
    display: none;
  }

  .about-tech {
    grid-template-columns: repeat(auto-fit, minmax(30%, 31.5%));
    gap: 2%;
  }

  .portfolio-project {
    grid-template-columns: repeat(auto-fit, minmax(30%, 31.5%));
    gap: 2%;
  }

  .bars {
    display: none;
  }

  .navbar > a,
  .navbar > img {
    display: none;
  }

  .navlist {
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    gap: 2%;
  }

  .navlinks {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    color: #555353;
  }

  .head-line {
    background-image: url("../img/Header-llustration-desktop.png");
  }

  .contact {
    background-image: url(../img/footer-background2.png), url(../img/footer-background3.png), url(../img/Frame.svg);
    background-repeat: no-repeat;
    background-size: 100px, 100px, 50px;
    background-position: 20px 350px, 120px 400px, bottom right;
    width: 90%;
    margin: 0 auto;
    justify-content: flex-start;
    gap: 3%;
    height: 500px;
  }

  .social-media {
    gap: 3%;
  }
}
