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

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--neutrals-n-10, #f7f7f9);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  background: #fff;
}

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

.navbar .my-logo {
  color: var(--primary-b-400, #6070ff);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  margin-left: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

@media screen and (max-width: 375px) {
  .hamburger {
    display: block;
    cursor: pointer;
    margin-right: 24px;
    margin-top: 12px;
  }

  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--primary-b-400, #6070ff);
  }

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

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

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

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 28px;
    padding-top: 62px;
    padding-bottom: 547px;
    mix-blend-mode: multiply;
    background: var(--theme-1-primary-colors-2, #6070ff);
    width: 100%;
    backdrop-filter: blur(0.4rem);
    transition: 0.3s;
    height: 100vh;
  }

  .nav-item {
    list-style: none;
  }

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

  .nav-link {
    text-decoration: none;
    color: var(--theme-1-neutrals-11, #fff);
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
  }

  .popup-cards-container {
    display: none;
    padding: 5px;
    z-index: 99999;
    background-color: #c1c7d0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
  }

  .popup-cards {
    border-radius: 16px;
    border: 1px solid var(--neutrals-n-30-l, #ebecf0);
    background: var(--white, #fff);
    box-shadow: 0 48px 48px 0 rgba(37, 47, 137, 0.08);
    margin: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .open-window {
    display: block;
  }

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

  .popup-cards-title h2 {
    color: var(--theme-1-neutrals-1, #091e42);
    font-size: 32px;
    font-weight: 700;
    line-height: 52px;
    margin-top: 16px;
    margin-left: 10px;
  }

  .popup-cards-title img {
    width: 24px;
    height: 24px;
    margin-top: 32px;
    margin-right: 32px;
  }

  .popup-cards-details {
    display: flex;
    gap: 1%;
    margin-left: 16px;
    align-items: flex-end;
  }

  .popup-cards-details h6,
  div {
    color: var(--neutrals-n-100, #7a869a);
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
  }

  .popup-cards-details h6:nth-child(1) {
    color: var(--neutrals-n-600, #344563);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
  }

  .popup-cards-img img {
    margin-left: 6px;
  }

  .popup-cards-description {
    display: flex;
    flex-direction: column;
    margin-right: 16px;
  }

  .popup-cards-para p {
    color: var(--neutrals-n-600, #344563);
    font-size: 15px;
    font-weight: 400;
    line-height: 30px;
    margin-left: 16px;
    overflow-y: auto;
    max-height: 50vh;
  }

  .popup-cards-tech ul {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    margin: 10px 0 10px 16px;
    gap: 8px;
  }

  .popup-cards-tech ul li {
    list-style: none;
    color: var(--primary-b-400, #6070ff);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.36px;
    border-radius: 8px;
    background: var(--primary-b-50, #ebebff);
    padding: 4px 12px;
    text-align: center;
  }

  .popup-cards-button {
    display: flex;
    gap: 5px;
  }

  .popup-cards-button button {
    color: var(--primary-b-500, #396df2);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.51px;
    border-radius: 8px;
    border: 1px solid var(--primary-b-400, #6070ff);
    padding: 15px 15px;
    background: #fff;
    cursor: pointer;
    margin-left: 16px;
    margin-bottom: 16px;
  }

  .popup-cards-button button:hover {
    color: #fff;
    background: var(--theme-1-primary-colors-2, #6070ff);
  }

  .popup-cards-button button:active {
    color: #fff;
    background: var(--theme-1-primary-colors-1, #2230d2);
  }

  .popup-cards-button button img {
    vertical-align: middle;
  }

  .popup-cards-button button .white {
    display: none;
  }

  .popup-cards-button button:hover .white {
    display: inline-block;
  }

  .popup-cards-button button:hover .purple {
    display: none;
  }
}

/* HEADLINE */

.headline-container {
  background: #fff;
  background-image: url(./images/header-shapes\ mobile@2x.svg);
  background-repeat: no-repeat;
  background-size: cover;
  gap: 0.75rem;
  border-radius: 0 0 0 75px;
}

.headline-heading h1 {
  color: var(--neutrals-n-800, #172b4d);
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  margin-left: 24px;
  margin-top: 114px;
}

.headline-para p {
  color: var(--neutrals-n-600, #344563);
  font-size: 16px;
  line-height: 24px;
  margin-left: 24px;
  margin-right: 24px;
  margin-bottom: 10px;
}

.headline-link p {
  color: var(--primary-b-300, #7f8cff);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-left: 24px;
  cursor: pointer;
}

.social-icons ul {
  display: flex;
  margin-left: 24px;
  gap: 1rem;
  margin-top: 5px;
  margin-bottom: 114px;
  cursor: pointer;
}

.social-icons ul li {
  list-style: none;
}

/* CARDS */

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(327px, 1fr));
  gap: 5.5rem;
  padding: 2.125rem 1.5rem;
}

.cards {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--neutrals-n-40, #dfe1e6);
  background: var(--neutrals-n-0, #fff);
}

.cards-heading h3 {
  color: var(--neutrals-n-800, #172b4d);
  font-size: 32px;
  font-weight: 700;
  line-height: 44px;
}

.cards-details {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cards-details h6,
div {
  color: var(--neutrals-n-100, #7a869a);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}

.cards-details h6:nth-child(1) {
  color: var(--neutrals-n-600, #344563);
  text-transform: uppercase;
}

.cards-para {
  color: var(--neutrals-n-600, #344563);
  font-size: 15px;
  line-height: 24px;
  margin-top: 10px;
}

.cards-languages ul {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.cards-languages ul li {
  list-style: none;
  color: var(--primary-b-400, #6070ff);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.36px;
  border-radius: 8px;
  background: var(--primary-b-50, #ebebff);
  padding: 4px;
}

.cards-button {
  color: var(--primary-b-500, #396df2);
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.51px;
  border-radius: 8px;
  border: 1px solid var(--primary-b-400, #6070ff);
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.cards-button:hover {
  color: #fff;
  background: var(--theme-1-primary-colors-2, #6070ff);
}

.cards-button:active {
  color: #fff;
  background: var(--theme-1-primary-colors-1, #2230d2);
}

/* ABOUT ME */

.about-container {
  width: 100%;
  background: #fff;
  border: 1px solid #fff;
  padding: 16px;
  border-radius: 0 75px 0 0;
}

.about-container h3 {
  color: var(--neutrals-n-800, #172b4d);
  font-size: 40px;
  font-weight: 700;
  line-height: 52px;
  margin-top: 114px;
}

.about-container p {
  color: var(--neutrals-n-600, #344563);
  font-size: 16px;
  line-height: 24px;
  margin-top: 10px;
}

.about-container a {
  color: var(--primary-b-300, #7f8cff);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: 10px;
  text-decoration: none;
}

.about-social-icons ul {
  display: flex;
  gap: 1rem;
  margin-top: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.about-social-icons ul li {
  list-style: none;
}

.about-social-icons ul li a {
  margin-left: 0;
}

.about-button {
  color: var(--primary-b-500, #396df2);
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.51px;
  border-radius: 8px;
  border: 1px solid var(--primary-b-400, #6070ff);
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.about-button:hover {
  color: #fff;
  background: var(--theme-1-primary-colors-2, #6070ff);
}

.about-button:active {
  color: #fff;
  background: var(--theme-1-primary-colors-1, #2230d2);
}

.about-languages {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  margin-top: 48px;
  margin-left: 24px;
  margin-right: 58px;
}

.about-languages p {
  color: #000;
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
}

.about-languages img {
  width: 24px;
  height: 24px;
  align-self: end;
}

.languages {
  border-radius: 8px;
  background: var(--neutrals-n-10, #f7f7f9);
  margin: 12px;
  display: flex;
  align-items: center;
}

.languages img {
  margin-left: 12px;
  margin-top: 9px;
  margin-bottom: 9.7px;
}

.languages p {
  margin-left: 16px;
}

.frame-skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfe1e6;
  margin-right: 26px;
}

.frame-skill p {
  color: #000;
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  padding: 12px 0;
  margin-left: 12px;
}

.frame-skill img {
  width: 24px;
  height: 24px;
  align-self: end;
}

/* CONTACT FORM */

.contact-form-container {
  background: #fff;
}

.contact-form {
  background: #6070ff;
  background-image: url(./images/form-background.svg);
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: 1rem;
  border-radius: 4.6875rem 0 0 0;
  margin-top: 114px;
}

.contact-form h1 {
  color: var(--neutrals-n-0, #fff);
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  line-height: 52px;
  margin-bottom: 12px;
  padding-top: 103px;
}

.contact-form p {
  color: var(--primary-b-50, #ebebff);
  text-align: center;
  font-size: 20px;
  line-height: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 103px;
}

.form input {
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  color: var(--neutral-n-800, #172b4d);
  font-size: 17px;
  line-height: 20px;
  padding: 15px 34px 15px 16px;
  margin: 0 24px;
}

.form textarea {
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  color: var(--neutrals-n-60, #b3bac5);
  font-size: 15px;
  line-height: 24px;
  padding: 15px 34px 56px 16px;
  margin: 0 24px;
}

.contact-form button {
  color: var(--primary-b-500, #396df2);
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.51px;
  border-radius: 8px;
  border: 1px solid var(--primary-b-400, #6070ff);
  padding: 12px;
  background: #fff;
  cursor: pointer;
  margin-left: 24px;
  margin-top: 22px;
  margin-bottom: 45px;
}

.contact-form button:hover {
  color: #fff;
  background: var(--theme-1-primary-colors-2, #6070ff);
}

.contact-form button:active {
  color: #fff;
  background: var(--theme-1-primary-colors-1, #2230d2);
}

.error {
  display: none;
  color: rgb(190, 54, 54);
  width: 50%;
  position: relative;
  bottom: 112px;
  margin-left: 25px;
  font-size: 12px;
}

/* RESPONSIVE DESIGN */

/* DESKTOP VERSION */

@media (width >= 768px) {
  .nav-menu {
    display: block;
  }

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

  .navbar {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    margin-left: 150px;
  }

  .navbar .my-logo {
    color: var(--primary-b-400, #6070ff);
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    margin-left: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    text-decoration: none;
  }

  .navbar ul {
    display: flex;
    gap: 32px;
    margin-left: 796px;
    margin-top: 12px;
  }

  .navbar ul li {
    list-style: none;
  }

  .navbar ul li a {
    text-decoration: none;
    color: var(--neutrals-n-600, #344563);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
  }

  .headline-container {
    background-image: url(./images/desktop-bg.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 4%;
    padding-bottom: 10%;
  }

  .headline-heading h1 {
    color: var(--theme-1-neutrals-1, #091e42);
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 0.37px;
    margin-top: 239px;
    margin-left: 260px;
  }

  .headline-para p {
    color: var(--theme-1-neutrals-3, #344563);
    font-size: 20px;
    line-height: 28px;
    margin-left: 260px;
    margin-right: 260px;
  }

  .headline-link p {
    margin-left: 260px;
  }

  .social-icons {
    margin-left: 240px;
    margin-top: 10px;
    margin-bottom: 289px;
  }

  .cards-container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 11px 142px;
  }

  .cards:nth-child(3) .cards-img {
    grid-column: 2 / 3;
    grid-row: 1 / span2;
  }

  .cards-img img {
    width: 100%;
    padding: 5%;
  }

  .cards-heading {
    margin-top: 48px;
    margin-left: 48px;
    padding: 5%;
  }

  .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5%;
  }

  .about-section-one {
    margin-left: 143px;
  }

  .about-section-one h3 {
    margin-left: 0;
  }

  .about-section-one p {
    margin-bottom: 20px;
    margin-right: 24px;
  }

  .about-social-icons ul {
    margin: 20px 0;
  }

  .about-section-two {
    margin-top: 55px;
  }

  .languages-container {
    display: flex;
  }

  .languages {
    display: flex;
    width: 122px;
    padding: 12px 12px 20px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: 8px;
    background: var(--neutrals-n-10, #f7f7f9);
  }

  .contact-form {
    background-image: url(./images/desktop-form-bg.svg);
    background-position: center;
  }

  .contact-form p {
    margin: 0 35%;
  }

  .form {
    margin: 3% 30% 0 30%;
  }

  .form textarea {
    padding: 15px 34px 111px 16px;
  }

  .contact-form button {
    margin-left: 46%;
    margin-bottom: 127px;
  }

  .error {
    display: none;
    color: rgb(190, 54, 54);
    width: 50%;
    position: relative;
    bottom: 190px;
    margin-left: 32%;
    font-size: 12px;
  }

  /* Popup Window */

  .popup-cards-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px;
    z-index: 99999;
    overflow-y: auto;
  }

  .popup-cards {
    border-radius: 16px;
    border: 1px solid var(--neutrals-n-30-l, #ebecf0);
    background: var(--white, #fff);
    box-shadow: 0 48px 48px 0 rgba(37, 47, 137, 0.08);
    margin: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .open-window {
    display: block;
  }

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

  .popup-cards-title h2 {
    color: var(--theme-1-neutrals-1, #091e42);
    font-size: 40px;
    font-weight: 700;
    line-height: 52px;
    margin-top: 24px;
    margin-left: 24px;
  }

  .popup-cards-title img {
    width: 24px;
    height: 24px;
    margin-top: 40px;
    margin-right: 32px;
  }

  .popup-cards-details {
    display: flex;
    gap: 1%;
    margin-left: 30px;
    align-items: flex-end;
  }

  .popup-cards-details h6,
  div {
    color: var(--neutrals-n-100, #7a869a);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    font-style: normal;
  }

  .popup-cards-details h6:nth-child(1) {
    color: var(--neutrals-n-600, #344563);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
  }

  .popup-cards-img img {
    margin-left: 24px;
    width: 97%;
  }

  .popup-cards-description {
    display: flex;
    justify-content: space-between;
    margin-bottom: 111px;
    margin-right: 32px;
  }

  .popup-cards-para p {
    color: var(--neutrals-n-600, #344563);
    font-size: 16px;
    line-height: 30px;
    margin-left: 24px;
    margin-right: 19px;
    margin-top: 30px;
  }

  .popup-cards-tech ul {
    display: flex;
    gap: 8px;
    padding-right: 20px;
    margin-top: 30px;
  }

  .popup-cards-tech ul li {
    list-style: none;
    color: var(--primary-b-400, #6070ff);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.36px;
    border-radius: 8px;
    background: var(--primary-b-50, #ebebff);
    padding: 4px 12px;
  }

  .popup-cards-button {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  .popup-cards-button button {
    color: var(--primary-b-500, #396df2);
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.51px;
    border-radius: 8px;
    border: 1px solid var(--primary-b-400, #6070ff);
    padding: 12px;
    background: #fff;
    cursor: pointer;
  }

  .popup-cards-button button:hover {
    color: #fff;
    background: var(--theme-1-primary-colors-2, #6070ff);
  }

  .popup-cards-button button:active {
    color: #fff;
    background: var(--theme-1-primary-colors-1, #2230d2);
  }

  .popup-cards-button button img {
    vertical-align: middle;
  }

  .popup-cards-button button .white {
    display: none;
  }

  .popup-cards-button button:hover .white {
    display: inline-block;
  }

  .popup-cards-button button:hover .purple {
    display: none;
  }

  /* Animation & Transition */

  .fade-in-text {
    animation: fadeIn ease-out 3s;
  }

  @keyframes fadeIn {
    from {
      transform: translateY(-500%);
    }

    to {
      transform: translateY(1%);
    }
  }

  .fade-out-text {
    animation: para ease-in 3s;
  }

  @keyframes para {
    from {
      opacity: 0;
    }

    50% {
      opacity: 20%;
    }

    to {
      opacity: 100%;
    }
  }

  .fade-in-out-text {
    animation: icons ease-in-out 3s;
  }

  @keyframes icons {
    from {
      transform: translateX(-100%);
    }

    to {
      transform: translateX(0);
    }
  }
}
