* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --white: #fff;
  --black: #000;
  --N800: #172b4d;
  --N700: #253858;
  --N600: #344563;
  --N100: #7a869a;
  --N60: #b3bac5;
  --B500: #396df2;
  --B400: #6070ff;
  --B300: #7f8cff;
  --B50: #ebebff;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  background-color: #f7f7f9;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  overflow-x: hidden;
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.04);
}

/* --------------- Navbar -------------------- */
#header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4rem;
  background-color: white;
  width: 100%;
}

.header {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 2rem;
  color: #6070ff;
  text-decoration: none;
}

form ul {
  list-style: none;
}

.nav-items ul {
  display: none;
}

.menu {
  width: 24px;
  height: 24px;
}

#menu-btn {
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
}

#menu-btn:active {
  background-color: #f6f6ff;
}

.menu-container {
  background-color: rgba(0, 26, 255, 0.6);
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  padding: 1.2rem;
  backdrop-filter: blur(6px);
  transform: translateX(-100%);
  transition: all 0.5s;
}

.nav-links {
  display: flex;
  flex-direction: column;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 4.4rem;
  padding: 1.6rem;
}

.image-container {
  text-align: right;
  padding: 2.8rem;
}

/* --------------- Hero Section -------------------- */
.hero-section {
  background-image: url(../images/header-shapes-mobile.svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-bottom-left-radius: 70px;
  background-color: white;
  height: 96.4vh;
  min-height: 626px;
  margin-bottom: 11.4rem;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 5.2rem;
  color: #172b4d;
  text-align: left;
  padding: 1.2rem 2.4rem;
  width: 70%;
}

.hero-section p {
  padding: 0 2.4rem;
  width: 90%;
}

.connect-text {
  padding: 1.2rem 2.4rem;
}

.connect-text a {
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #7f8cff;
  text-decoration: none;
}

.social-media li {
  text-align: center;
}

.social-media ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  padding: 0 2.4rem;
  column-gap: 2rem;
}

.social-media a {
  text-decoration: none;
  padding: 0;
}

/* --------------- Works Section -------------------- */
.works {
  display: grid;
  grid-template-rows: repeat(1, 1fr);
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}

.cards-container {
  grid-column: 2/3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  row-gap: 8.8rem;
}

.card-works {
  background-color: white;
  padding: 1.6rem;
  border: 1px solid #dfe1e6;
  border-radius: 1.6rem;
  height: auto;
  transition-property: border, box-shadow, transform;
  transition-duration: 0.12s, 0.5s, 0.5s;
}

.portofolio-details {
  width: 295px;
  margin-top: 1.2rem;
}

.portofolio-details p {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 160%;
  color: #344563;
  width: 295px;
}

.portofolio-details h2 {
  max-width: 290px;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 138%;
  color: #172b4d;
}

.frame {
  margin: 1.2rem 0;
}

.frame ul {
  display: flex;
  column-gap: 1.2rem;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
}

.tag li {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.6rem;
  letter-spacing: 0.03em;
  color: #6070ff;
  background: #ebebff;
  border-radius: 0.8rem;
  padding: 0.4rem 1.2rem;
}

.hidden {
  display: none;
}

.frame ul li {
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.6rem;
  color: #7a869a;
}

.tags {
  margin-top: 1.2rem;
  margin-bottom: 2.4rem;
}

.tags ul {
  display: flex;
  list-style: none;
  column-gap: 0.8rem;
}

.languages-list ul li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #f7f7f9;
  border-radius: 0.8rem;
  padding: 1.2rem;
}

.frame ul li:first-child {
  color: #344563;
}

.btn-container {
  padding: 1.5rem 0;
}

.btn {
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 2.4rem;
  color: #396df2;
  border: 1px solid #6070ff;
  border-radius: 0.8rem;
  padding: 1.2rem;
  background-color: transparent;
  transition: all 0.5s ease-out;
  cursor: pointer;
}

.btn:active {
  background: #2230d2;
  box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
  color: #fff;
}

.snapshoot-portfolio {
  width: 295px;
  height: 220px;
  border-radius: 0.8rem;
}

.desktop-image {
  display: none;
}

/* --------------- About Section -------------------- */
.about {
  background-color: white;
  border-top-right-radius: 70px;
  width: 100%;
  height: auto;
  padding: 13rem 2.4rem;
  margin-top: 11.4rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.skills-list {
  padding: 1.2rem;
  padding-top: 0;
}

.about-text h1 {
  font-weight: 700;
  font-size: 4rem;
  line-height: 5.2rem;
  width: 100%;
  padding-bottom: 1.2rem;
  color: #172b4d;
}

.about p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #344563;
  padding-bottom: 1.2rem;
}

.about .connect-text {
  padding: 0;
  padding-bottom: 1.6rem;
}

.languages-list ul {
  list-style: none;
  row-gap: 1.2rem;
  display: flex;
  flex-direction: column;
}

.about .social-media ul {
  padding: 0;
  padding-bottom: 1.2rem;
}

.languages-list ul li:first-child {
  margin-top: 1.2rem;
}

.languages-list ul li h5 {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #253858;
  margin-left: 1.6rem;
}

.skills-list-style {
  display: flex;
  width: 100%;
  padding: 2.4rem 0;
  column-gap: 1.5rem;
}

.skills-list-style h4 {
  font-weight: 500;
  font-size: 2rem;
  line-height: 2.4rem;
  width: 100%;
}

.lang:nth-child(1) {
  padding: 0;
}

hr {
  background-color: #dfe1e6;
  border: none;
  height: 1px;
}

/* --------------- Contact Me Section -------------------- */
.contact-me {
  background-color: #6070ff;
  background-image: url(../images/contact-bg-mobile.svg);
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  min-height: 779px;
  background-position: center right;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top-left-radius: 7rem;
  padding-bottom: 3rem;
}

form {
  width: 100%;
}

.input-container {
  padding: 2.4rem;
}

#textarea {
  width: 100%;
}

.text {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 10.3rem;
}

.text h2 {
  font-weight: 700;
  font-size: 4rem;
  line-height: 5.2rem;
  color: white;
}

.text p {
  font-weight: 400;
  font-size: 2rem;
  line-height: 2.8rem;
  color: #ebebff;
  margin-top: 1.2rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 327px;
}

input {
  width: 100%;
  height: 48px;
}

input,
textarea {
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  margin: 1.2rem 0;
  padding: 1.2rem;
}

.form-btn {
  background-color: white;
  border-radius: 0.8rem;
  padding: 1.2rem 1.6rem;
  border: none;
  width: 140px;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 2.4rem;
  color: #6070ff;
  cursor: pointer;

  /* flex-grow: 1; */
}

.form-btn:active {
  background-color: #2230d2;
  color: white;
}

.bg {
  background-color: white;
}

::placeholder {
  color: #b3bac5;
}

/* --------------- Form Validation -------------------- */
.validate-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.validate {
  background-color: white;
  width: 50%;
  padding: 0.7rem;
  color: red;
  border-radius: 0.8rem;
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  transform: translateX(500%);
}

/* --------------- Popup Section -------------------- */
#overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(106, 110, 117, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  backdrop-filter: blur(5px);
  transform: translateX(-100%);
}

.popup-container {
  position: fixed;
  width: 95%;
  height: 90%;
  padding: 1.8rem 1.6rem;
  margin: auto;
  background-color: white;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  border: 1px solid #ebecf0;
  box-shadow: 0 48px 48px rgba(37, 47, 137, 0.08);
  border-radius: 16px;
  z-index: 300;
  opacity: 0;
  transform: translateX(200%);
  transition: opacity 1s;
  overflow: scroll;
}

.project-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.title-container img {
  padding: 1.4rem;
}

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

.project-title-container img {
  cursor: pointer;
  align-self: flex-start;
}

.project-image img {
  width: 100%;
}

.project-text p {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 2.4rem;
  color: #344563;
}

.buttons {
  display: flex;
  column-gap: 1.2rem;
}

.buttons button {
  width: 100%;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 2rem;
  color: #396df2;
  border: 1px solid #6070ff;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
}

.buttons button:active {
  background-color: #2230d2;
  color: white;
}

.hide {
  display: none;
}

/* --------------- Tablets Media Query -------------------- */
@media (min-width: 768px) {
  .hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url('../images/desktop-bg.svg');
    background-position: center;
  }

  .hero-section h1 {
    font-size: 4.8rem;
    font-weight: 700;
  }

  .hero-section p {
    font-size: 2rem;
    font-weight: 400;
    color: #344563;
  }

  .hero-container {
    width: 80%;
  }

  /* Works Section */
  .works {
    grid-template-columns: 1fr 20fr 1fr;
  }

  .cards-container {
    row-gap: 14.2rem;
  }

  .card-works {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    column-gap: 2.2rem;
    padding: 2.4rem;
    transition-property: border, box-shadow, transform;
    transition-duration: 0.12s, 0.5s, 0.5s;
  }

  .card-works:hover {
    border: 2px solid #a7aeff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.008);
    z-index: 1;
  }

  .card-works:nth-child(2),
  .card-works:last-child {
    height: auto;
  }

  .snapshoot-portfolio {
    width: 100%;
    height: 100%;
  }

  .mobile-image {
    display: none;
  }

  .desktop-image {
    display: initial;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .portofolio-details {
    margin: 0;
    width: 100%;
    height: 100%;
    padding: 2.4rem;
  }

  .portofolio-details h2 {
    font-size: 4rem;
    line-height: 5.2rem;
    color: var(--Neturals-1);
  }

  .hidden {
    display: initial;
  }

  .frame ul {
    list-style: none;
  }

  .frame ul li {
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 400;
  }

  .languages-list ul li {
    flex-direction: column;
    align-items: flex-start;
    height: 122px;
    width: 100%;
    max-width: 122px;
    max-height: 120px;
  }

  .frame ul li:first-child {
    font-weight: 500;
  }

  .row-reverse {
    flex-direction: row-reverse;
  }

  /* About Section */
  .about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(3, 0.1fr);
    column-gap: 2.5rem;
    padding: 7% 7%;
    min-height: 0;
  }

  .skills-list {
    width: 100%;
    padding: 2.4rem;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .about-head {
    width: 100%;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 2.4rem;
  }

  .skills-list-style {
    padding: 2.4rem 2.4rem;
  }

  .languages-list ul {
    display: flex;
    width: 50%;
    column-gap: 1.2rem;
    height: 100%;
    min-width: 414px;
    flex-direction: row;
  }

  .languages-list ul li:first-child {
    margin-top: 0;
  }

  .languages-list ul li h5 {
    margin-left: 0.5rem;
    margin-top: 1.6rem;
    width: 100%;
  }

  .about h1 {
    padding: 0;
  }

  .about p {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 0;
  }

  .about .social-media ul {
    padding: 0;
    margin-bottom: 2.4rem;
  }

  .about-text p {
    width: 100%;
    max-width: 447px;
  }

  .contact-me {
    background-image: url('../images/desktop-contact-me-be.svg');
    background-size: contain;
    background-position: 70% 70%;
  }

  input,
  #textarea {
    border-radius: 0;
  }

  .text p {
    width: 33%;
    min-width: 569px;
  }

  form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    text-align: center;
  }

  .input-container {
    width: 100%;
    min-width: 447px;
  }
}

/* --------------- Desktop Media Query -------------------- */
@media (min-width: 1024px) {
  :root {
    --Neturals-1: #091e42;
  }

  body {
    display: initial;
    background-color: #f4f5f7;
  }

  .btn {
    transition: all 0.5s;
  }

  .btn:hover {
    background: #6070ff;
    box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
    color: #fff;
  }

  .menu-container {
    display: none;
  }

  /* --------------- Hero Section -------------------- */
  .hero-section,
  #header-container {
    width: 100%;
  }

  .buttons button:hover {
    background: #6070ff;
    box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
    color: white;
  }

  #header-container {
    padding: 2.5rem 15rem;
  }

  .nav-items li a {
    text-decoration: none;
    color: var(--N600);
  }

  #header-container a {
    padding: 1rem 1.2rem;
  }

  #header-container button {
    display: none;
  }

  .nav-items ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.8rem;
  }

  .nav-items li {
    padding: 1rem 1.2rem;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .hero-section {
    background-image: url(../images/desktop-bg.svg);
    background-size: 100% 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-section h1 {
    width: 100%;
    font-size: 4.8rem;
    line-height: 6rem;
  }

  .hero-section p {
    width: 80%;
    font-size: 2rem;
    line-height: 2.8rem;
  }

  .hero-container {
    width: 50%;
  }

  /* --------------- Works Section -------------------- */
  .works {
    grid-template-columns: 1fr auto 1fr;
  }

  .cards-container {
    row-gap: 14.2rem;
  }

  .card-works {
    transition-property: border, box-shadow, transform;
    transition-duration: 0.12s, 0.5s, 0.5s;
  }

  .card-works:hover {
    border: 2px solid #a7aeff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.008);
    z-index: 1;
  }

  /* --------------- Contact Me Section -------------------- */
  form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    text-align: center;
  }

  .input-container {
    width: 100%;
    min-width: 447px;
  }

  .form-btn {
    transition-property: color, background-color, box-shadow;
    transition-duration: 0.5s;
  }

  .form-btn:hover {
    color: white;
    background-color: #2230d2;
    box-shadow: 0 8px 16px rgba(64, 83, 252, 0.24);
  }

  /* --------------- Popup Section -------------------- */

  .project-title-container {
    align-items: flex-start;
  }

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

  .project-title-container img {
    cursor: pointer;
    align-self: flex-start;
  }

  .project-image {
    height: 58.6rem;
    margin-bottom: 5.9rem;
  }

  .project-image img {
    object-fit: cover;
    height: 58.6rem;
  }

  .project-description {
    display: flex;
    align-items: flex-start;
    column-gap: 2.4rem;
    margin-bottom: 5rem;
  }

  .project-text {
    flex-grow: 1;
    width: 70%;
  }

  .popup-tags {
    flex-grow: 1;
  }

  .project-text p {
    font-size: 16px;
    line-height: 30px;
  }
}
