@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&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins";
}

section {
  max-width: 1200px; /* batasi lebar maksimal */
  margin: 0 auto; /* auto margin kiri-kanan untuk posisi tengah */
  padding: 0 20px; /* beri jarak dari tepi layar */
  box-sizing: border-box; /* pastikan padding tidak menambah lebar total */
}

body {
  width: 100%;
  font-family: "Poppins";
  background: url("bg.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10%;
  gap: 1rem; /* tambah jarak moderat antar elemen */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 350;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin: 0 auto; /* supaya header di tengah */
  box-sizing: border-box;
}

.header.scrolled {
  background: linear-gradient(to top, #00000000, #000000);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.logo {
  font-size: 32px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  filter: drop-shadow(0 0 5px #000 0.3);
}
.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar a {
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  margin-left: 35px;
  transition: 0.5s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar a:hover,
.navbar a.active {
  color: #e7e7e7;
  transform: scale(1.02);
}
button {
  position: relative;
  margin: 0;
  padding: 10px 15px;
  outline: none;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: #ffffff;
  font-weight: 500;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
  pointer-events: auto;
  -webkit-transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
  -moz-transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
  -ms-transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
  -o-transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}

button span {
  color: #164ca7;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.7px;
}

button:hover {
  animation: rotate624 0.7s ease-in-out both;
}

button:hover span {
  animation: storm1261 0.7s ease-in-out both;
  animation-delay: 0.06s;
}

@keyframes rotate624 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }

  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}

@keyframes storm1261 {
  0% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }

  25% {
    transform: translate3d(4px, 0, 0) translateZ(0);
  }

  50% {
    transform: translate3d(-3px, 0, 0) translateZ(0);
  }

  75% {
    transform: translate3d(2px, 0, 0) translateZ(0);
  }

  100% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
}
.auth-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-popup:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}
.auth-popup.hidden {
  display: flex;
  opacity: 0;
  pointer-events: none;
}
.auth-container {
  position: relative;
  width: 90%;
  max-width: 420px;
  perspective: 1200px;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  opacity: 0;
}
.auth-popup:not(.hidden) .auth-container {
  transform: scale(1);
  opacity: 1;
}
.auth-close,
.auth-back {
  position: fixed;
  top: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  z-index: 2100;
  /* background: rgba(255,255,255,0.2); */
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
/* .auth-close:hover, .auth-back:hover {
  background: rgba(255,255,255,0.4);
} */
.auth-close {
  right: 40px;
}
.auth-back {
  left: 35px;
}

.checkbox {
  display: none;
}
.card-3d-wrapper {
  width: 100%;
  position: relative;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  min-height: 580px;
}
.checkbox:checked ~ .auth-container .card-3d-wrapper {
  transform: rotateY(180deg);
}
.card-face {
  color: #fff;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0c0b3c 0%, #08062a 100%);
  border: 2px solid #39acf0;
  box-shadow: 0 0 15px #39acf0;
  border-radius: 12px;
  padding: 40px 30px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.card-back {
  transform: rotateY(180deg);
}
.auth-logo {
  width: 90px;
  height: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}
.form-group {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}
.form-style {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.form-style:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px #39acf0;
  outline: none;
}
.form-style::placeholder {
  color: #ccc;
}
.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 18px;
  color: #39acf0;
}
.btn-auth {
  width: 100%;
  padding: 12px;
  background: #39acf0;
  color: #000000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 16px;
  margin-top: 8px;
}
.btn-auth:hover {
  background: #2f7db8;
  color: #fff;
}
.card-face h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 5px 0 10px;
}
.switch-label {
  margin-top: 5px;
  font-size: 14px;
}
.switch-label span {
  color: #39acf0;
  cursor: pointer;
  text-decoration: underline;
}

#menu-icon {
  color: #000000;
  display: none;
}

.login-icon {
  font-size: 28px;
  color: #000000;
  cursor: pointer;
}
.last-result-icon {
  font-size: 26px;
  color: #000000;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.last-result-icon:hover {
  color: #39acf0;
  transform: scale(1.2);
}

.nav-controls {
  color: #000000;
  display: flex;
  align-items: center;
  gap: 1rem; /* beri jarak antara ikon menu & login */
  position: relative;
  z-index: 1001;
}

.main {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}
.main.active {
  filter: blur(15px);
  pointer-events: none;
}

.container {
  display: block !important;
}

section:not(.quiz-section) {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  padding: 10rem 9% 2rem !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.quiz-section {
  position: fixed;
  top: 0;
  left: -100%;
  /* left: 0%; */
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0b0841, #080737);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.7s ease-in-out;
  z-index: 1000;
  color: #fff;
}
.quiz-section.active {
  left: 0;
}

.quiz-box {
  position: relative;
  width: 500px;
  background: transparent;
  border: 3px solid #39acf0;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
  box-shadow: 0 0 10px #36c8ff;
}
.quiz-box h1 {
  font-size: 32px;
  text-align: center;
  background: linear-gradient(45deg, transparent, #39acf0, transparent);
  border-radius: 6px;
  font-weight: 700;
}
.quiz-box .quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 5px;
}
.quiz-header {
  display: flex;
  width: 150px;
  height: 15px;
  text-align: center;
  justify-content: center;
  margin-top: 2.5px;
  margin-bottom: 7.5px;
  font-style: bold;
  font-size: 12px;
}
.quiz-header #progress-text {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 125px;
  height: 25px;
  background: linear-gradient(45deg, #7171c6, #4a4aba);
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  box-shadow: 0 0 5px #6161c1;
}
#question-container #question-text {
  font-size: 20.5px;
  font-weight: 600;
}
#question-container #options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
#question-container .option {
  padding: 7.5px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  border: 2px solid #39acf0;
  color: #fff;
  border-radius: 5px;
  margin: 2px;
  transition: 0.5s ease;
  /* box-shadow: 0 0 5px #36c8ff; */
}
#question-container .option:hover {
  background: linear-gradient(45deg, #3c3ca6, #39acf0);
  border: 2px solid #39acf0;
  /* box-shadow: 0 0 10px #36c8ff; */
}
#question-container .option.selected {
  background: linear-gradient(45deg, #3c3ca6, #39acf0);
  border: 2px solid #39acf0;
  /* box-shadow: 0 0 10px #36c8ff; */
}
.quiz-box .quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid #39acf0;
  padding-top: 10px;
  margin-top: 12.5px;
}
.quiz-footer #next-btn {
  width: 100px;
  height: 45px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 6px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
}
.quiz-footer #next-btn:hover {
  background-image: linear-gradient(45deg, #7171c6, #4a4aba);
  border-color: transparent;
  color: #fff;
}
#next-btn {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
#next-btn.visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
#next-btn.hidden {
  display: block !important;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
#result-container {
  color: #fff;
  position: fixed;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  z-index: 9999;
  width: 500px;
  background: linear-gradient(45deg, #120e4d, #080737);
  border: 3px solid #39acf0;
  border-radius: 6px;
  padding: 20px 30px;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 0 10px #36c8ff;
}
#result-container.active {
  visibility: visible;
  pointer-events: auto;
  animation: zoomIn 0.5s forwards;
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
#result-container .buttons,
#result-container button {
  pointer-events: auto;
}
#result-container h2 {
  font-size: 32px;
  text-align: center;
  background: linear-gradient(45deg, transparent, #39acf0, transparent);
  border-radius: 6px;
  font-weight: 700;
}
#result-text {
  margin-top: 15px;
  font-size: 22.5px;
  font-weight: 600;
}
#result-description {
  padding-bottom: 10px;
  border-bottom: 3px solid #39acf0;
  text-align: justify;
  margin-top: 10px;
}
#result-container .buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 15px 0 7px;
}
#restart-btn {
  justify-content: space-between;
  margin-top: 20px;
  width: 130px;
  height: 47px;
  background: #3cade2;
  border: 2px solid #3cade2;
  outline: none;
  border-radius: 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease;
}
#gohome-btn {
  justify-content: space-between;
  margin-top: 20px;
  width: 130px;
  height: 47px;
  background: transparent;
  border: 2px solid #7a7df3;
  outline: none;
  border-radius: 6px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease;
}
#restart-btn:hover {
  background: transparent;
  color: #fff;
}
#gohome-btn:hover {
  background: linear-gradient(
    45deg,
    #cf92ff,
    #7a7df3,
    #7171c6,
    #4a4aba,
    #3c3ca6,
    #39acf0
  );
  border: 2px solid;
  color: #fff;
}
.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quiz-section #result-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quiz-section #result-container.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.result-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.result-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hidden {
  display: none;
}

.home {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  z-index: 1;
  margin-bottom: 8rem;
}
.home-content {
  max-width: 600px;
  display: flex;
  align-items: center;
  flex-direction: column;
  z-index: 2;
}

.home-content h1 {
  color: #fff;
  font-size: 75px;
  font-weight: 700;
  filter: drop-shadow(7px 5px 15px #0000009d);
  margin-bottom: 4rem;
}
.home-content p {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  filter: drop-shadow(7px 5px 5px #000);
  margin-bottom: 17.5px;
  margin-top: -70px;
}
.home-content .start-btn {
  width: 190px;
  height: 55px;
  background: linear-gradient(
    45deg,
    #cf92ff,
    #7a7df3,
    #7171c6,
    #4a4aba,
    #3c3ca6,
    #39acf0
  );
  border: 2px solid #fff;
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 10px #36c8ff;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease;
}
.home-content .start-btn:hover {
  background: #ffffff05;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: none;
}
.voice-icon {
  margin-top: 15px;
  font-size: 22px; /* lebih kecil */
  color: #ffffff; /* ikon jadi putih */
  background-color: #39acf0; /* warna lingkaran */
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.quiz-voice-icon {
  margin-top: px;
  font-size: 15px;
  color: #ffffff;
  background-color: #39acf0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}
.quiz-voice-icon:hover {
  transform: scale(1.2);
  background-color: #7a7df3;
}

.voice-icon:hover {
  transform: scale(1.2);
  background-color: #7a7df3;
}

.popup-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 500px;
  background: #fff;
  border-radius: 6px;
  padding: 10px 25px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}
.popup-info.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.popup-info h2 {
  font-size: 50px;
  color: #c40094;
}
.popup-info .info {
  display: inline-block;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 4px 0;
}
.popup-info .btn-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #7a7df3;
  margin-top: 10px;
  padding: 15px 0 7px;
}
.popup-info .btn-group .info-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 45px;
  background: #39acf0;
  border: 2px solid #39acf0;
  outline: none;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 0 10px (#000 0.3);
  cursor: pointer;
  transition: 0.5s ease;
}
.popup-info .btn-group .info-btn:nth-child(1) {
  background: transparent;
  color: #39acf0;
}
.popup-info .btn-group .info-btn:nth-child(1):hover {
  background: #39acf0;
  color: #fff;
}
.popup-info .btn-group .info-btn:nth-child(2):hover {
  background: transparent;
  color: #39acf0;
}

.personalities {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5rem;
  margin-top: -50px; /* agak ke atas dibanding posisi sebelumnya */
}
.personalities-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  z-index: 95;
  position: relative;
  top: 85px; /* Sesuaikan nilai ini untuk mengatur seberapa ke atas */
}
.personalities-container .heading {
  color: #fff;
  position: relative;
  top: -125px;
  width: 100%;
  text-align: center;
  margin-bottom: -30px;
  font-size: 5rem;
  filter: drop-shadow(7px 5px 10px #00000085);
}
.personalities-container h2 span {
  margin-left: -15px;
}
.text-gradient2 {
  background-image: linear-gradient(to right, #43cbe0, #496dfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-shadow: 0px 0px 7.5px #496dfc; */
}
.personalities-container .personalities-box {
  position: relative;
  top: -130px;
  flex: 1 1 calc(50% - 1rem);
  max-width: calc(120% - 1rem);
  color: #fff;
  filter: drop-shadow(7px 5px 15px #000);
  background: #ffffff05;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 0.2rem solid #197ac9;
  border-radius: 1.5rem;
  padding: 0.7rem 1rem;
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
}
.personalities-box:hover {
  color: #fff;
  border-color: #0f538b;
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg) scale(1.05);
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
}
.personalities-box h3 {
  color: #181818;
  font-size: 1.5rem;
  margin: 0.1rem 0 0.2rem;
  transition: 0.5s;
}
.personalities-box:hover h3 {
  color: #000000;
}
.personalities-box p {
  font-size: 1rem;
  margin: 0.1rem 0 0rem;
  text-align: justify;
  color: #181818;
}
.contact {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 250;
  margin-top: 100px; /* dorong lebih ke bawah */
  margin-bottom: 0px !important; /* tambahkan baris ini */
}
section.contact {
  min-height: auto !important;
  height: auto !important;
}
.contact-container {
  position: relative;
  top: 50px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  z-index: 250;
  color: #fff;
  filter: drop-shadow(5px 5px 5px #00000085);
}
.contact-container .contact-box:first-child {
  align-self: center;
}
.contact-box h2 {
  font-size: 48px;
}
.contact-box p {
  font-size: 18px;
  color: #181818;
}
.contact-box .desc {
  margin: 5px 0 5px;
}
.contact-box .contact-detail {
  display: flex;
  align-items: center;
  margin: 10px 0;
}
.contact-detail i {
  display: inline-flex;
  color: #000000;
  font-size: 15px;
  padding: 10px;
  border-radius: 6px;
  margin-right: 5px;
}
.contact-detail p:first-child {
  color: aqua;
}
.contact-box form {
  background: #0000007c;
  padding: 10px 10px 15px;
  border-radius: 15px;
  text-align: center;
}
.contact-box .heading {
  font-size: 24px;
  margin-bottom: 10px;
}
.contact-box .field-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact-box .field-box input,
.contact-box .field-box textarea {
  padding: 10px;
  background: #fff;
  border: -25px solid #ffffff;
  border-radius: 25px;
  font-size: 18px;
  color: #000000;
}
.contact-box .field-box textarea {
  grid-column: 1 / -1;
  height: 15rem;
  resize: none;
}
.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
  border-color: brown;
}
.contact-box .btn {
  margin-top: 15px;
  width: 125px;
  height: 35px;
  background: #36c8ff;
  border: 2px solid #fff;
  box-shadow: 0 0 10px #36c8ff;
  border: 2px solid #fff;
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 10px #36c8ff;
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease;
}
.contact-box .btn:hover {
  background: #00040536;
  box-shadow: 0 0 10px #00000034;
}
.text-gradient5 {
  background-image: linear-gradient(to top, #5f14c2, #2e1faf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 2.5px #4a0e99;
}
.text-gradient6 {
  background-image: linear-gradient(to top, #120e4d, #080737);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 7.5px #080737;
}
.home-content h1,
.home-content p,
.start-btn {
  transition: transform 0.3s ease-out;
}
section.contact {
  position: relative;
}

.contact-footer {
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -10px);
  z-index: 200;
  text-align: center;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 16px;
}
section.contact {
  display: block !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0rem 9% 0rem !important;
}
.contact-container {
  position: relative !important;
  top: 0 !important;
  transform: none !important;
  margin-top: 0 !important;
}
.contact-container {
  transform: translateY(-95px) !important;
  margin-top: -50px !important;
}
@media (max-width: 768px) {
  body {
    height: 200px;
  }
  .quiz-box,
  #result-container,
  .popup-info {
    width: 90%;
    padding: 15px 20px;
  }

  .home-content h1 {
    font-size: clamp(36px, 10vw, 75px);
    margin-bottom: 1rem;
  }

  .home-content p {
    font-size: 16px;
    margin-top: -10px;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  .navbar a {
    font-size: 16px;
    margin-left: 20px;
  }

  .personalities-container .heading {
    font-size: 3rem;
    top: -100px;
  }

  .navbar {
    position: absolute;
    top: 100%; /* Letakkan tepat di bawah hamburger */
    right: 0; /* Melekat di sisi kanan hamburger */
    left: auto; /* Hindari override dari left: 20px */
    width: max-content;
    transform: translateY(10px); /* sedikit turun */
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .navbar.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navbar.active {
    opacity: 1;
    transform: scale(1) translateY(0); /* normal ukuran + posisi */
    pointer-events: auto;
    visibility: visible;
  }

  /* Styling navbar links mobile */
  .navbar a {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #000; /* penting agar teks terbaca di bg putih */
  }

  #menu-icon {
    display: inline-block;
    font-size: 28px;
    cursor: pointer;
    color: #000000;
  }
  .personalities-container {
    gap: 0; /* hilangkan gap antar baris jika sebelumnya diset */
  }

  .personalities-box h2 {
    margin-top: 5rem;
  }

  .personalities-container {
    top: 0 !important; /* reset agar tidak numpuk ke atas */
  }

  .personalities-container .heading {
    margin-bottom: 1.5rem; /* beri jarak antara judul dan box */
    font-size: 2.5rem; /* opsional: ukuran lebih kecil di HP */
  }

  .personalities-container .personalities-box {
    flex: 1 1 100%; /* Biar isi satu baris penuh */
    max-width: 100%;
    margin: 0.75rem 0;
    padding: 0.8rem 1.2rem; /* opsional: padding dalam box */
    padding: 0.2rem 1.2rem;
    font-size: 0.95rem;
  }

  .personalities-box h3 {
    font-size: 1.2rem;
  }

  .personalities-box p {
    font-size: 0.9rem;
  }

  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    transform: translateY(0) !important;
    margin-top: -10rem !important;
  }

  .contact-box {
    max-width: 550px; /* atur ukuran maksimal */
    width: 100%;
    margin: 0 auto; /* posisikan ke tengah */
    margin-bottom: 100px; /* beri jarak ke bawah */
  }

  .contact-box h2 {
    font-size: 32px;
    text-align: center;
  }

  .contact-box p {
    font-size: 16px;
    text-align: center;
  }

  .contact-box .field-box {
    grid-template-columns: 1fr;
  }

  .contact-box .btn {
    width: 100%;
  }

  .contact-footer {
    top: 1120px;
  }
}

@media (max-width: 450px) {
  .auth-container {
    width: 95%;
  }
  .card-face {
    padding: 30px 20px;
  }
  .auth-close,
  .auth-back {
    font-size: 24px;
    padding: 4px 8px;
  }
  .auth-logo {
    width: 65px;
  }
}
