* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #130327;
  min-height: 2000px;
  color: #fff;
}
.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.8em 5%;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid #7127ba;
}
.navbar .navbar-logo img {
  width: 7%;
}
.navbar .navbar-nav ul li {
  list-style: none;
  display: inline-block;
  margin-right: 1rem;
  font-size: 1rem;
  font-weight: 500;
}
.navbar .navbar-nav a {
  color: #fff;
}
.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.7em;
  border-bottom: 1px solid #fff;
  transform: scaleX(0);
  transition: 0.3s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(1);
}
#hamburger-menu {
  display: none;
}

/* Hero  Section */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .head-content {
  max-width: 60rem;
  padding: 1.4rem 7%;
}
.hero .head-content .title-hero {
  font-size: 2.5rem;
  margin: 1.5rem 0;
}
.hero .head-content .title-hero p {
  font-size: 1rem;
  font-style: italic;
  color: #575555;
  font-weight: bold;
}
/* .hero .head-content .hero-extra{
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    background-color: #f0f0f0;
    padding: 0.8rem;
} */

.hero .head-content .en {
  background-color: #7127ba;
  padding: 1rem 3rem;
  width: 80%;
  font-size: 1.3rem;
  margin-top: 3rem;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  &:hover {
    background-color: #130327;
    border: 1px solid #7127ba;
  }
  &:active {
    background-color: #b3aea1;
  }
}
.hero .head-content .title-hero .en a {
  color: #fff;
  font-weight: bold;
}
.image-container {
  background-image: url('../images/Gradient.png');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0 1rem;
  border-radius: 100%;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
  &:hover {
    transform: scale(1.05);
    transition: 0.5s;
  }
}
.img-profile {
  width: 75%;
  margin-left: 2rem;
  margin-top: 3rem;
}

/* About Section */
.about,
.skills,
.contact {
  margin: auto;
  padding: 5rem 7% 1.4rem;
}
.about {
  background-color: #230845;
}
.section-title {
  text-align: center;
  letter-spacing: 2px;
  width: 25%;
  margin: auto;
  font-weight: bold;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.about p {
  margin-top: 3rem;
  font-weight: 300;
  line-height: 2rem;
}
.about ul {
  margin-top: 1rem;
  line-height: 2rem;
}
.about button {
  position: relative;
  cursor: pointer;
  margin: 5rem auto;
  background-color: #230845;
  color: #fff;
  border: none;
  display: flex;
  font-weight: bold;
  font-size: 18px;
  width: 15%;
  align-items: center;
  letter-spacing: 3px;
}
.about span {
  flex: 1;
  height: 4px;
  margin: 0 0.5rem;
  padding: 0 1rem;
  background-color: white;
  width: 10rem;
}

.about .container {
  display: flex;
  width: 90%;
  margin: 5rem auto;
  justify-content: space-between;
}

.about .container .personality {
  width: 40%;
}
.about .container {
  display: none;
}
.about .container.active {
  display: flex;
}
/* Skill section */
.skills .container {
  margin: 2rem 5rem;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
}

.skills .list-skill {
  cursor: pointer;
}
.skills .list-skill .img-skill {
  width: 128px;
}
/* Project Section */
.project {
  padding: 2rem 0;
  background-color: #230845;
}
.project .container {
  display: flex;
  margin: 2rem auto;
  justify-content: space-evenly;
}
.project .list-project {
  width: 40%;
  background-color: #130327;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s ease;
  will-change: transform;
  &:hover {
    transform: scale(1.05);
    background-color: #230845;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }
}
.project .project-img {
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.project .text-content {
  width: 80%;
  font-size: 0.8rem;
  margin: 0 auto;
  line-height: 1.3rem;
}
.project h3,
p {
  margin: 1rem auto;
}
/* .btn-project {
  cursor: pointer;
  padding: 0.8rem;
  font-weight: 600;
  background-color: #230845;
  color: #fff;
  border: none;
  border-radius: 15px;
} */

/* Form Section */
form {
  width: 50%;
  margin: 3rem auto;
}
form label {
  display: block;
  font-weight: bold;
  margin-top: 0.8rem;
}
form input,
textarea {
  width: 100%;
  margin-top: 0.8rem;
  background-color: #130327;
  padding: 0.5rem;
  border: none;
  color: #fff;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  font-size: 1rem;
}
.btn {
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  cursor: pointer;
  background-color: #7127ba;
  color: #fff;
  font-weight: bold;
  border: 1px solid #7127ba;
  border-radius: 0.5rem;
  &:hover {
    background-color: #130327;
    border: 1px solid #7127ba;
  }
}
/* form textarea{
    width: 100%;
    background-color: #130327;
    border: none;
    color: #fff;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
} */
.custom-alert {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 9999;
}

/* Alert warna hijau */
.custom-alert.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Saat muncul */
.custom-alert.show {
  opacity: 1;
  visibility: visible;
}

/* Footer Section */
footer {
  padding: 1rem 0 1rem;
  text-align: center;
  background-color: #7127ba;
}
footer .up a {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
}
footer .social {
  width: 20%;
  display: flex;
  margin: auto;
  justify-content: space-evenly;
}
footer a {
  color: #fff;
  transition: 0.3s;
  &:hover {
    color: #130327;
  }
}
/* Media Query */
/* ===== TABLET (≤ 991px) ===== */
@media (max-width: 991px) {
  html {
    font-size: 60%;
  }
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .image-container {
    width: 220px;
  }

  .head-content {
    padding: 1rem 5%;
  }
}
/* ===== SMARTPHONE (≤ 768px) ===== */
@media (max-width: 540px) {
  html {
    font-size: 55%;
  }
  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #482c6bff;
    width: 20rem;
    height: 100vh;
    transition: all 0.5s ease-in-out;
  }
  .navbar .navbar-nav.active {
    right: 0;
  }
  .navbar .navbar-nav ul li {
    display: block;
    margin: 1.5em 1em;
  }
  #hamburger-menu {
    display: inline-block;
    color: #fff;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .en {
    margin: auto;
  }

  .img-profile {
    display: none;
  }

  .title-hero {
    font-size: 1.2rem;
  }

  .title-hero p {
    font-size: 0.9rem;
  }
  .about .container {
    flex-direction: column;
  }
  .about .reveal-btn {
    font-size: 0.8rem;
  }
  .about .container .personality {
    width: 100%;
  }
  .about .container .weakness {
    margin-top: 2rem;
  }
  .section-title {
    font-size: 1rem;
    padding: 1rem;
  }
  .skills .container {
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
  }
  .project .container {
    flex-direction: column;
  }
  .project .list-project {
    margin: 2rem auto;
    width: 70%;
  }
  .project .text-content {
    font-size: 0.8rem;
  }
  .btn {
    font-size: 1rem;
  }
  footer .social {
    width: 40%;
  }
}
