@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

html {
  font-family: "Poppins", sans-serif;
  background-color: #f7f7f9;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.header {
  background-color: #fff;
  color: #6070ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.logo {
  margin-left: 12px;
  width: 100px;
  height: 33px;
}

.logo a {
  color: inherit;
  animation: flicker 0.5s ease-in-out;
}

@keyframes flicker {
  0% {
    opacity: 0.5;
    text-shadow: 2px 2px 10px #2962ff;
  }

  100% {
    opacity: 1;
    text-shadow: 2px 2px 20px #2962ff;
  }
}

.menu {
  float: right;
  display: flex;
  height: 16px;
  margin-right: 10px;
  color: #2230d2;
}

.mobile-menu {
  background: #6070ff;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  padding-top: 36px;
  display: none;
  opacity: 0.9;
}

.mobile-menu .close-icon {
  color: #fff;
  float: right;
  display: flex;
  height: 16px;
  margin-right: 10px;
  margin-bottom: 30px;
}

.mobile-link {
  margin-left: 24px;
  font-weight: 600;
  font-size: 32px;
}

.mobile-link > a {
  color: #fff;
}

.mobile-menu > li {
  margin-top: 35px;
}

.menu-link {
  display: none;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(resources/header-shape.png);
  min-height: 591px;
  width: auto;
  border-radius: 0 0 0 4em;
  background-color: #fff;
  background-size: 100%;
  background-position-x: center;
  background-repeat: no-repeat;
  padding-top: 10px;
  padding-bottom: 10px;
}

.headline {
  margin-left: 25px;
}

.heading {
  margin: 10px 0;
  display: flex;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 41px;
  line-height: 52px;
  align-items: center;
  color: #172b4d;
}

.heading:hover {
  color: #6070ff;
}

.headline-paragraph {
  margin: 10px 0;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  color: #344563;
}

.mini-headline {
  font-weight: 500;
  line-height: 24px;
  color: #7f8cff;
}

.social-icons {
  display: flex;
}

.social-icons > a,
i {
  color: #505f79;
  font-size: 1.25rem;
  padding-right: 1em;
}

.proj li {
  color: #7a869a;
  margin-right: 12px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 16px;
}

.language li {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: #6070ff;
  display: flex;
  padding: 4px 12px;
  background: #ebebff;
  border-radius: 8px;
  margin-right: 8px;
  letter-spacing: 0.1em;
}

.social-icons > li:hover {
  transform: scale(1.5);
  transition: 0.5s;
}

.about {
  background-color: #fff;
  border-radius: 0 6em 0 0;
  margin: 8em 0 0 0;
}

.about-container {
  padding: 5em 7% 0 7%;
}

.skill-section {
  display: flex;
  flex-direction: column;
  padding: 2em 1em;
  width: 100%;
}

.languages {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  font-size: 20px;
  line-height: 24px;
  margin-left: -20px;
  margin-right: -12px;
}

.skill-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skills {
  display: flex;
  justify-content: flex-start;
  background-color: #f7f7f9;
  border-radius: 0.5em;
  padding: 0.5em;
  align-items: center;
}

.skill-name {
  font-weight: 600;
  line-height: 20px;
  color: #253858;
  font-size: 15px;
  padding-top: 4%;
}

.skill-heading {
  display: flex;
  justify-content: space-between;
  padding: 2em 1em 2em 0;
}

.about-subheading {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
}

.skill-container > hr {
  height: 2px;
  background: #dfe1e6;
  border: none;
}

.form-container {
  display: flex;
  flex-direction: column;
  margin: 6em 0 0 0;
  padding: 3em;
  border-radius: 5em 0 0 0;
  background-color: #6070ff;
  background-image: url(resources/formimg.png);
  background-repeat: no-repeat;
  background-position-x: right;
}

.form-heading {
  text-align: center;
  margin-top: 0.75em;
  font-family: inherit;
  color: #fff;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 52px;
}

.form-paragraph {
  text-align: center;
  margin-top: 0.75em;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #ebebff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 0.75em;
}

.form-input {
  margin-top: 0.75em;
  padding: 0.75em;
  border: 1px solid #cfd8dc;
  font-size: 17px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
}

.form-button {
  align-self: flex-start;
}

.contact-form > input:focus,
textarea:focus {
  outline: none !important;
  border: 1px solid #f7f7f9;
  box-shadow: 0 0 2px #f7f7f9;
}

button {
  font-family: inherit;
  background: #fff;
  color: #396df2;
  border: 1px solid #6070ff;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: 0.03em;
  width: auto;
  margin: 1em 0;
  cursor: pointer;
}

.btn-width {
  width: 126px;
}

button:hover {
  background: #6070ff;
  box-shadow: 0 0.5em 1em #4053fc3d;
  color: #fff;
}

button:active {
  background: #2230d2;
  color: #fff;
}

button:disabled {
  border: 1px solid #c1c7d0;
  color: #5e6c84;
}

/* popup section */
.blur-bg {
  padding: 114px 24px;
  display: grid;
  justify-content: center;
}

.works {
  padding: 16px;
  margin-top: 88px;
  background: #fff;
  width: 327px;
  height: auto;
  border: 1px solid #dfe1e6;
  border-radius: 16px;
  flex-direction: column;
}

h3 {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  margin-top: 12px;
  color: #172b4d;
  width: 250px;
}

.img-transition {
  width: 100%;
  height: 200px;
}

.proj {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-content: center;
}

.dot {
  margin-top: 4px;
  width: 8px;
  height: 8px;
  background: #c1c7d0;
  border-radius: 50%;
}

.proj a {
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  color: #344563;
}

.pro {
  color: #344563;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 20px;
}

.language {
  display: grid;
  grid-template-columns: auto auto auto;
  margin-top: 12px;
}

.button {
  display: inline-grid;
  padding: 12px;
  background: #fff;
  border: 1px solid #396df2;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  color: #396df2;
}

.button:hover {
  color: #fff;
  background: #396df2;
  transition: 0.5s;
}

.button-mg {
  margin-top: 24px;
}

/* -----------------------------pop up-------- */
.my-pop-up {
  width: 100vh;
  height: 100vh;
  position: fixed;
  z-index: 3;
  overflow: auto;
}

.popup-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100vh;
  z-index: 3;
  position: fixed;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: auto;
  backdrop-filter: blur(5px);
}

.popup {
  padding: 16px;
  background: #fff;
  width: 327px;
  height: 780px;
  border: 1px solid #dfe1e6;
  border-radius: 16px;
}

.fa-xmark {
  color: #67798e;
  cursor: pointer;
  width: 25px;
  height: 25px;
  margin-left: 280px;
}

.popupImage {
  width: 100%;
  height: 200px;
}

.popup img {
  margin-top: 20px;
}

.mobile-popup-info {
  display: block;
}

.desktop-popup-info {
  display: none;
}

.popup-buttons {
  margin-right: 12px;
  margin-top: 0;
}

.lagu-desktop {
  display: none;
}

.thin-line {
  background: #ebecf0;
  height: 1px;
  width: 303px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.popupLink {
  color: #6070ff;
}

.popupLink:hover {
  color: #fff;
}

@media screen and (min-width: 768px) {
  .logo > a {
    margin-left: 50px;
    font-size: 18px;
  }

  .menu {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .menu-link {
    position: absolute;
    top: 0;
    right: 120px;
    display: flex;
    margin-top: 15px;
    padding: 0;
    font-size: 18px;
  }

  .nav-link {
    margin: 0 10px;
    cursor: pointer;
    color: #344563;
    font-size: 15px;
  }

  .main-container {
    background-image: url(resources/Headerbg.png);
    background-size: 96%;
    height: 100vh;
  }

  .headline {
    width: 751px;
    height: 268px;
    margin: 10px 0 10px 83px;
  }

  .social-icons {
    margin-block: 10px;
  }

  .about-container {
    display: flex;
    flex-direction: row;
    height: 590px;
  }

  .sub-container {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    width: 40%;
  }

  .languages {
    margin-top: -28px;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #344563;
  }

  .skill-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .skills {
    flex-direction: column;
    height: 120px;
    margin-top: 36px;
    padding-top: 2%;
    padding-left: 2%;
    width: 122px;
    align-items: flex-start;
  }

  .skill-section {
    width: 60%;
  }

  .form-container {
    background-color: #6070ff;
    background-image: url(resources/formbg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    align-content: center;
    padding: 10% 25%;
    margin-top: 0;
  }

  .form-input {
    border-radius: 0;
  }

  .contact-form {
    margin: 7% 13% 0 13%;
  }

  .form-button {
    align-self: center;
  }

  /* popup section */

  /* ------------------------------projects------- */
  .blur-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .works {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 1156px;
    height: auto;
  }

  .works:nth-child(even) {
    flex-direction: row-reverse;
  }

  .card-work {
    padding: 46px;
  }

  .card-work h3 {
    font-size: 40px;
  }

  .proj {
    display: flex;
  }

  .proj li {
    font-size: 18px;
  }

  .proj a {
    font-size: 18px;
  }

  .pro {
    font-size: 16px;
    margin-top: 32px;
  }

  .language {
    display: flex;
    font-size: 12px;
    margin-top: 24px;
  }

  .img-transition {
    width: 544px;
    height: 400px;
    transition-duration: 0.5s;
  }

  .img-transition:hover {
    transform: scale(1.1);
  }

  .button {
    justify-content: center;
  }

  /* ----------------------------popup------------- */

  .popup {
    width: 1156px;
    height: 1163px;
  }

  .fa-xmark {
    margin-left: 1100px;
  }

  .popup img {
    width: 1108px;
    height: 586px;
  }

  .left-popup {
    width: 728px;
    float: left;
  }

  .right-popup {
    float: right;
    margin-right: 30px;
  }

  .mobile-popup-info {
    display: none;
  }

  .desktop-popup-info {
    display: block;
  }

  .thin-line {
    width: 298px;
  }

  .popup-buttons {
    width: 142px;
  }
}
