@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  list-style-type: none;
  box-sizing: border-box;
}

body {
  width: 100%;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.692);
}

.logo p {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #4a5cff;
}

a {
  text-decoration: none;
}

.logo a {
  text-decoration: none;
}

.nav-bar ul {
  display: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  margin-top: 20px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #4a5cff;
}

.hamburger {
  display: block;
  cursor: pointer;
}

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

.hamburger.active .bar:nth-child(1) {
  background-color: #fff;
  transform: translateY(8px) rotate(48deg);
}

.hamburger.active .bar:nth-child(3) {
  background-color: #fff;
  transform: translateY(-8px) rotate(-48deg);
}

.nav-menu {
  position: fixed;
  left: -150%;
  top: -20px;
  padding-top: 80px;
  gap: 0;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: 0.3s;
  backdrop-filter: blur(10px);
  padding-left: 20px;
  background: #6070ffe0;
}

.nav-item {
  margin: 16px 0;
}

.nav-item a {
  font-weight: 600;
  font-size: 32px;
  line-height: 44px;
  color: #fff;
}

.nav-menu.active {
  left: 0;
}

main {
  background-color: #e5e5e5;
  width: 100%;
  overflow: hidden;
}

button:hover {
  background-color: #6070ff;
  color: white;
}

button:active {
  background-color: blue;
  color: white;
}

footer h2 {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 52px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

.footer-p {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #ebebff;
  margin-left: 10%;
}

/* work section */

.work-wrapper {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #dfe1e6;
  width: calc(80% - 24px);
  margin: auto;
  margin-top: 10%;
  background-color: white;
  transition: 0.3s ease-in-out;
}

.work-place-img {
  width: 100%;
  height: 100%;
  transition: 0.5s ease-in-out;
}

.sec-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
}

.reversed-wrapper .sec-content {
  grid-row-start: 1;
}

.sec-content h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  color: #091e42;
}

.sec-content-div {
  display: flex;
  align-items: center;
}

.sec-content-div span {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.sec-content-div i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 10px;
  background-color: #c1c7d0;
}

.sec-content p {
  color: #344563;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.sec-content ul {
  display: flex;
  gap: 10px;
}

.sec-content ul li {
  list-style: none;
  background-color: #ebebff;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  color: #6070ff;
}

.sec-content button {
  height: 48px;
  width: fit-content;
  padding: 12px;
  margin-top: 10px;
  outline: none;
  border-radius: 8px;
  border: 1px  solid #7f8cff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background-color: white;
  color: #7f8cff;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.sec-content button:hover {
  background-color: #7f8cff;
  color: white;
  box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
}

.sec-content button:focus {
  background-color: #2230d2;
  color: white;
  box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
}

.p-intro {
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  color: #344563;
}

.h1-intro {
  height: 150px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 35px;
  line-height: 52px;
  color: #172b4d;
}

.intro {
  padding-top: 40px;
}

.navbar-items {
  display: none;
}

.second-intro {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 40px;
  position: relative;
  top: 15px;
  color: #172b4d;
}

.connect {
  margin-top: 20px;
  width: 100%;
}

.let-connect {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #7f8cff;
}

.social-media {
  display: flex;
  column-gap: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  list-style-type: none;
}

.wrapper {
  padding: 80px 10px 10px 15px;
  background-image: url(images/mobile.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: white;
  border-bottom-left-radius: 5rem;
}

.desktop {
  display: none;
}

.about {
  background-color: white;
  display: grid;
  gap: 24px;
  padding: 10%;
  margin: auto;
  margin-top: 10%;
  border-top-right-radius: 5rem;
}

.workplace-image {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  margin-top: 10px;
}

.see-project {
  padding: 12px;
  margin-top: 10px;
  outline: none;
  border-radius: 8px;
  border: 1px solid #396df2;
  font-family: 'Poppins', sans-serif;
  width: fit-content;
  font-size: 17px;
  height: 48px;
  font-weight: 500;
  background-color: white;
  color: #396df2;
  cursor: pointer;
}

.get-resume {
  cursor: pointer;
  height: 48px;
  width: fit-content;
  padding: 12px;
  margin-top: 10px;
  outline: none;
  border-radius: 8px;
  border: 1px solid #396df2;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  background-color: white;
  color: #396df2;
}

.framework {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

#icon {
  display: flex;
  justify-content: flex-end;
  position: relative;
  bottom: 50px;
}

.separator {
  position: absolute;
  margin-top: 30px;
}

.lang-h {
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
}

.dot-style {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.tek-p {
  margin-top: 15px;
}

.tek-js {
  margin-bottom: 15px;
  background: #f7f7f9;
  border-radius: 8px;
  border: 1px solid #f7f7f9;
  display: grid;
  padding: 5px 10px;
  grid-template-columns: 20% 80px;
  gap: 20px;
}

.tek-html {
  background: #f7f7f9;
  border-radius: 8px;
  border: 1px solid #f7f7f9;
  margin-bottom: 15px;
  display: grid;
  padding: 5px 10px;
  grid-template-columns: 20% 80px;
  gap: 20px;
}

.tek-css {
  background: #f7f7f9;
  border-radius: 8px;
  border: 1px solid #f7f7f9;
  display: grid;
  padding: 5px 10px;
  grid-template-columns: 20% 80px;
  gap: 20px;
}

footer {
  background-color: #6070ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 5rem;
  row-gap: 20px;
  padding: 7.5rem 0;
  width: 100%;
  background-image: url(images/contact-mobile-1.png);
  background-repeat: no-repeat;
  background-size: 110%;
}

.alert {
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: red;
}

.feedback {
  display: grid;
  row-gap: 20px;
}

.name,
.email {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  height: 48px;
  padding: 5px 20px;
  font-weight: 400;
  font-size: 17px;
  line-height: 20px;
  color: #172b4d;
}

.feedback textarea {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  color: #b3bac5;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  padding: 5px 20px;
}

.get-in-touch {
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  color: #6070ff;
  width: 140px;
  padding: 12px 16px;
  background-color: #fff;
  border-radius: 8px;
  border: none;
  margin-top: 12px;
}

.get-in-touch:hover {
  background-color: #6070ff;
  color: white;
}

.get-in-touch:active {
  background-color: blue;
  color: white;
}

/* popup */
.model-container {
  position: fixed;
  transform: translate(0%, 0%) scale(0);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  background-color: rgba(64, 83, 252, 0.24);
  backdrop-filter: blur(4px);
  transition: 0.3s ease-in-out;
}

.popup-wrapper {
  height: 90%;
  padding: 10px;
  border-radius: 24px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
}

.popup-sub-wrapper {
  height: calc(100% - 40px);
  padding: 20px 20px 20px 10px;
  overflow: auto;
  display: grid;
  row-gap: 30px;
}

.popup-header {
  display: flex;
  justify-content: space-between;
}

.popup-header h2 {
  color: #091e42;
  font-size: 48px;
  font-weight: 700;
  line-height: 52px;
}

#popupClose {
  font-size: 25px;
  color: #253858;
  cursor: pointer;
  height: auto;
}

#popupClose:hover {
  color: #6070ff;
}

.popup-img {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
}

.popup-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center;
}

.popup-skills-cont {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 40px;
}

.popup-skills-cont p {
  color: #344563;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.popup-skills-badge {
  display: flex;
  flex-direction: column;
}

.popup-skills-badge ul li {
  list-style: none;
  background-color: #ebebff;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  color: #6070ff;
  float: left;
  margin: 0 10px 10px 0;
}

.popup-link-cont {
  float: left;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 10px;
}

.popup-link {
  width: fit-content;
  padding: 12px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #7f8cff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background-color: white;
  color: #7f8cff;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.popup-link:hover {
  background-color: #7f8cff;
  color: white;
  box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
}

.popup-link i {
  font-size: 18px;
  margin-left: 10px;
}

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

  .desktop {
    display: flex;
  }

  .about {
    display: grid;
    grid-template-columns: 55% 55%;
  }

  .intro-about {
    position: relative;
    right: 100px;
    bottom: 72px;
  }

  .intro-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 120px;
  }

  .languages {
    position: relative;
    right: 60px;
  }

  .second-intro {
    margin-bottom: 60px;
    line-height: 52px;
  }

  .p-intro {
    font-size: 20px;
    line-height: 28px;
    margin-top: -30px;
    word-wrap: break-word;
  }

  .nav-bar {
    padding: 0 80px;
  }

  .nav-bar ul {
    display: flex;
    flex-direction: row;
  }

  .nav-menu {
    position: relative;
    left: 0;
    top: 0;
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    background-color: transparent;
  }

  .hamburger {
    display: none;
    cursor: pointer;
  }

  .nav-item a {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #344563;
    padding-right: 0;
  }

  .nav-item {
    margin: 0;
  }

  .wrapper {
    padding: 120px 40px;
    background-image: url(images/wrapper\ desk.png);
    background-repeat: no-repeat;
  }

  .image-div {
    flex: 1;
    margin-right: 40px;
  }

  .workplace-image {
    height: auto;
    width: 100%;
  }

  .popup-wrapper {
    width: calc(80% - 20px);
  }

  .blue {
    background-color: #4053fc;
    color: #fff;
  }

  .set-margin {
    position: relative;
    bottom: 30px;
  }

  .d-margin {
    position: relative;
    bottom: 10px;
  }

  .f-margin {
    position: relative;
    top: 20px;
  }

  .b-margin {
    position: relative;
    top: 30px;
  }

  .tek-js {
    display: flex;
    flex-direction: column;
  }

  .tek-css {
    display: flex;
    flex-direction: column;
  }

  .tek-html {
    display: flex;
    flex-direction: column;
  }

  .language-ul {
    display: grid;
    grid-template-columns: 20% 20% 20%;
    gap: 20px;
  }

  footer {
    background-image: url(images/contact-form-bg.png);
    background-repeat: no-repeat;
    background-size: 100%;
  }

  .footer-p {
    height: 102px;
    width: 569px;
    left: 116px;
    top: 68px;
  }

  .name,
  .email {
    height: 48px;
    width: 447px;
  }

  .feedback textarea {
    width: 447px;
    height: 170px;
  }
}

@media (max-width: 637px) {
  .work-wrapper {
    width: 100%;
    overflow: hidden;
    grid-template-columns: auto;
  }

  .sec-content {
    padding: 24px 0;
    gap: 20px;
  }

  .reversed-wrapper .sec-content {
    grid-row-start: auto;
  }

  .popup-skills-cont {
    grid-template-columns: auto;
  }

  .popup-skills-cont p {
    margin-bottom: 20px;
  }

  .popup-link-main-cont {
    margin-top: 20px;
  }
}
