:root {
  --warna-utama: rgb(211, 18, 18);
  --warna-secondary: rgb(224, 65, 65);
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0px auto;
}

nav img {
  width: 50px;
  height: 50px;
}

.nav-modifier {
  padding: 20px 0px;
  background-color: white;
  width: 100%;
  position: fixed;
  top: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.nav-modifier h1 a {
  color: var(--warna-utama);
  text-decoration: none;
}

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

.nav-list {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-list li {
  list-style-type: none;
}

.nav-list a {
  text-decoration: none;
  color: black;
  position: relative;
  transition: all 0.5s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--warna-utama);
  transition: width 0.5s ease;
}

.nav-list a.active::after {
  width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--warna-utama);
}

.nav-list-mobile {
  display: none;
  font-size: 24px;
  cursor: pointer;
  order: 2;
}

.dropdown-mobile {
  display: none;
}

.banner {
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner img {
  top: 0;
  width: 100%;
  height: 700px;
  object-fit: cover;
  position: absolute;
  z-index: -99;
  opacity: 80%;
}

.banner .banner-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.banner-welcome {
  text-align: center;
  margin-top: 150px;
  font-weight: bolder;
  position: relative;
  z-index: 1;
}

.banner h1 {
  color: white;
  font-size: 54pt;
  margin-bottom: 5px;
}

.banner p {
  color: white;
  margin-bottom: 50px;
  font-size: 18pt;
}

.about-me {
  padding: 100px 0px;
  text-align: center;
}

.about-me h1 {
  color: var(--warna-utama);
  margin: 40px 0;
  font-size: 32pt;
}

.about-me-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: justify;
  gap: 50px;
}

.about-me-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.about-me-content img {
  width: 500px;
  height: 350px;
  object-fit: contain;
}

.about-me-content p {
  font-size: 12pt;
  color: black;
  line-height: 30px;
  font-weight: 300;
}

.education {
  background-color: var(--warna-secondary);
  padding: 100px 0px;
}

.education h1 {
  color: white;
  margin: 40px 0;
  font-size: 32pt;
  text-align: center;
}

.education-content {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: white;
}

.dotline {
  display: flex;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--warna-utama);
  border-radius: 50%;
  margin: 0 5px;
  margin-left: 3px;
  display: inline-block;
}

.line {
  width: 100%;
  height: 1px;
  background-color: black;
  margin: 20px 0;
}

.experience {
  padding: 180px 0px;
  background-color: #f9f9f9;
}

.experience h1 {
  text-align: center;
  color: var(--warna-utama);
  font-size: 32pt;
  margin: 40px 0;
}

.experience-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.experience-content h3 {
  font-size: 24pt;
  font-weight: 400;
  margin-bottom: 10px;
  align-self: start;
}

.experience-content h6 {
  font-size: 12pt;
  margin-bottom: 5px;
}

.experience-content p {
  font-size: 10pt;
}

.experience-item {
  text-align: center;
  padding: 2rem;
  flex: 1;
}

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

.exp-line {
  width: 2px;
  height: 200px;
  background-color: var(--warna-utama);
  margin: 1rem 0;
}
.exp-button {
  font-size: 12pt;
  text-align: center;
  margin-top: 50px;
}

.exp-button a {
  text-decoration: none;
  color: var(--warna-utama);
  padding: 10px 20px;
  border: 1px solid var(--warna-utama);
  border-radius: 10px;
}

.exp-button a:hover {
  color: white;
  background-color: var(--warna-utama);
  border: 2px solid white;
  border-radius: 10px;
}

.skills {
  padding: 100px 0px;
}

.skills h1 {
  text-align: center;
  color: var(--warna-utama);
  font-size: 32pt;
  margin: 40px 0;
}

.skills h2 {
  margin: 50px 0;
  color: var(--warna-secondary);
}

.row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.card {
  max-width: 70%;
  padding: 20px 40px;
  box-shadow: 0 0 10px black;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
}

.head-card {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.head-card img {
  width: 200px;
}

.row2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: safe;
  align-items: center;
  font-size: 10pt;
  gap: 20px;
}

.mini-card {
  box-shadow: 0 0 10px black;
  border-radius: 20px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.mini-card:hover {
  transform: scale(1.05);
}

.mini-body-card {
  padding: 25px 50px;
  text-align: center;
}

.body-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.body-card h3 {
  font-family: Poppins;
  font-size: 18pt;
  color: var(--warna-secondary);
  font-weight: 600;
}

.body-card p {
  font-family: Poppins;
  font-size: 12pt;
  color: black;
  font-weight: 300;
  text-align: justify;
}

.body-card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.body-card-logo img {
  width: 50px;
  height: 50px;
}

.my-project {
  background-color: var(--warna-secondary);
  padding: 100px 0px;
}

.my-project h1 {
  color: white;
  font-size: 32pt;
  text-align: center;
  margin: 40px 0;
}

.my-project-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 20px 50px 20px 50px;
  gap: 20px;
}

.my-project-content img {
  width: 400px;
  height: 400px;
  box-shadow: 0 0 10px black;
  object-fit: fill;
}

.my-project-desc h3 {
  font-size: 24pt;
  font-weight: 500;
}

.my-project-desc {
  text-align: justify;
  color: white;
  font-size: 12pt;
}

.my-project-desc li {
  margin-left: 20px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.my-project-desc a {
  align-items: center;
  text-decoration: none;
  color: white;
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 10px;
  position: absolute;
  margin-top: 20px;
}

.my-project-desc a:hover {
  color: var(--warna-utama);
  background-color: white;
  border: 1px solid white;
}

.certificate {
  padding: 100px 0px;
  text-align: center;
}

.certificate h1 {
  color: var(--warna-utama);
  font-size: 32pt;
  margin: 40px 0;
}

.certificate img {
  width: 50%;
  height: 50%;
}

.certificate-desc {
  margin-top: 20px;
}

.certificate-desc p {
  font-size: 12pt;
  color: black;
  line-height: 30px;
  font-weight: 300;
}

.contact {
  background-color: var(--warna-secondary);
  padding: 100px 0px;
}

.contact h1 {
  color: white;
  font-size: 32pt;
  text-align: center;
  margin: 40px 0;
}

.contact-logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  font-size: 48pt;
}

.contact-logo i {
  color: white;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.contact-logo i:hover {
  transform: scale(1.2);
}

.contact-logo a {
  text-decoration: none;
  color: white;
  text-align: center;
}

.contact-logo a p {
  font-size: 12pt;
  text-align: center;
}

footer {
  padding: 20px;
  color: white;
  background-color: var(--warna-utama);
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .container {
    max-width: 100%;
    width: 924px;
    margin: 0px auto;
    overflow-x: hidden;
  }

  .my-project-content img {
    width: 350px;
    height: 350px;
  }

  .my-project-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 70px;
    gap: 20px;
  }

  .project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 100px;
  }
}

@media screen and (max-width: 840px) {
  .container {
    max-width: 100%;
    width: 820px;
    margin: 0px auto;
    overflow-x: hidden;
  }

  .nav-content {
    padding: 0px 20px;
  }

  .nav-list {
    display: none;
  }

  .nav-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
  }

  .nav-list-mobile li {
    list-style-type: none;
  }

  .nav-list-mobile a {
    text-decoration: none;
    color: black;
    position: relative;
    transition: all 0.5s ease;
  }

  .nav-list-mobile a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--warna-utama);
    transition: width 0.5s ease;
  }

  .nav-list-mobile a.active::after {
    width: 100%;
  }

  .nav-list-mobile a:hover,
  .nav-list-mobile a.active {
    color: var(--warna-utama);
  }

  .language-selector {
    order: 1;
  }

  .language-selector select {
    padding: 10px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    background: #f1f1f1;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
  }

  .language-selector select:focus {
    outline: none;
  }

  .dropdown-mobile {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    z-index: 3;
  }

  .about-me-content {
    padding: 0px 20px;
    flex-direction: column-reverse;
    text-align: justify;
  }

  .about-me-content img {
        width: 200px;
        height: 200px;
    }

    .education-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        padding: 0px 20px;
    }

   .sd,
    .smp,
    .sma,
    .kuliah {
        flex-basis: calc(50% - 10px);
        max-width: none;
    }

    .experience-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .exp-line {
        width: 100%;
        height: 2px;
        background-color: var(--warna-utama);
        margin: 1rem 0;
    }

    .card{
        max-width: 90%;
    }

    .skills-content{
      padding-bottom: 10px;
    }
}

@media screen and (max-width: 430px) {
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .banner h1 {
    font-size: 36pt;
  }

  .banner p {
    font-size: 14pt;
  }

  .dropdown-mobile {
    right: 10px;
  }

  .head-card{
    display: none;
  }

  .body-card h3{
    text-align: center;
  }
}

@media screen and (max-width: 380px) {
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 370px;
  }

  .body-card-logo{
    flex-wrap: wrap;
    justify-content: start;
  }
}

@media screen and (max-width: 325px) {
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 305px;
  }

  .my-project-content {
    padding: 100px 150px;
  }

  .my-project-content img {
    width: 200px;
    height: 200px;
  }
}
