html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #E3D9EC;
  line-height: 1.6;
}


.container {
  padding-inline: 15px;
  margin-inline: auto;
  max-width: 2000px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* BAGIAN HEADER */
header {
  background-color: #E3D9EC;
  padding: 8px 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

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

.brand .logo-fitzy {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-right: 10px;
}


/* NAVIGATION DRAWER (MOBILE MENU) - PENYESUAIAN BARU */
.navigation-drawer {
  height: 100vh;
  width: 100%;
  padding: 20px;
  padding-top: 40px;
  background-color: #E3D9EC;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}

.navigation-drawer.open {
  transform: translateX(0%);
}



/* BARU: Gaya untuk header di dalam drawer (logo) */
.drawer-header {
  margin-bottom: 50px;
  text-align: center;
}
.drawer-logo-fitzy {
  width: 120px;
  height: auto;
}

.drawer-button {
  padding: 8px;
  border: 0;
  border-radius: 4px;
  display: inline-block;
  background-color: transparent;
  font-weight: bold;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 10000;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 0;
  width: 100%;
}

.nav-list li {
  width: 85%;
  max-width: 320px;
  text-align: center;
}

.nav-list li a {
  text-decoration: none;
  color: #000000;
  font-weight: 500;
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  display: block;
  padding: 16px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.nav-list li a:hover,
.nav-list li a:focus {
  background-color: #ff4fa1;
  color: #181818;
}


/* BAGIAN FOOTER */
.site-footer {
  background-color: #E3D9EC;
  color: #3e2b4a;
  text-align: center;
  padding: 30px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}



/* MAIN CONTENT */
.main-content {
  padding-top: 70px;
}


/* HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 60%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.5;
}

.hero-text, .hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  padding-right: 0;
  margin-bottom: 30px;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 100;
  margin-top: 20px;
  color: #3e2b4a;
  line-height: 1.2;
}

.hero-text h1 span {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #ff4fa1;
}

.hero-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #4d4d4d;
  margin-bottom: 8px;
  line-height: 1.5;
}

.hero-text p span {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: #4d4d4d;
}

.cta-button {
  margin-top: 25px;
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9rem;
  border: 2px solid #c7659d;
  border-radius: 50px;
  color: #8a004f;
  font-weight: bold;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #8a004f;
  color: white;
  transition: 0.3s;
}

.hero-image {
  margin-top: 20px;
  max-width: 300px;
  margin-bottom: 0;
}



/* Hamburger Button Styles */
.drawer-button {
  position: relative;
  width: 30px;
  height: 22px;
  display: inline-block;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 11000;
}

.drawer-button span {
  position: absolute;
  height: 4px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  left: 0;
  transition: 0.3s ease;
}

.drawer-button span:nth-child(1) {
  top: 0;
}

.drawer-button span:nth-child(2) {
  top: 9px;
}

.drawer-button span:nth-child(3) {
  top: 18px;
}

/* Saat drawer dibuka, ubah hamburger jadi silang */
.drawer-button.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.drawer-button.open span:nth-child(2) {
  opacity: 0;
}

.drawer-button.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}



/* ABOUT SECTION */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  
  
}

.about-icon {
  align-self: flex-start; 
  margin-top: 140px; /* kasih jarak dari atas */
}


.about-content {
  max-width: 800px; /* biar paragraf tidak terlalu panjang */
}

.about-content h2 {
  font-size: 2rem;
  text-align: center; 
  color: #c54179;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}


/* START FROM SECTION */
.start-from {
  background: linear-gradient(180deg, #fef6fb 0%, #fbd4e9 100%);
  border-radius: 0;
  padding: 50px 20px;
  margin: 60px 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.start-from h2 {
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
  color: #3e2b4a;
  margin-bottom: 30px;
  font-weight: 700;
}

.start-from-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.card {
  background: transparent;
  padding: 25px;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: #ff4fa1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.icon-wrapper img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.start-from .card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2B1F29;
  margin-bottom: 10px;
  line-height: 1.4;
}

.start-from .card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: normal;
  color: #4D4D4D;
  line-height: 1.6;
  margin-top: 10px;
  text-align: center;
}

.icon-wrapper.square { border-radius: 12px; }
.icon-wrapper.circle { border-radius: 50%; }
.icon-wrapper.triangle {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background-color: #ff4fa1;
  width: 70px;
  height: 60px;
  position: relative;
}
.icon-wrapper.triangle img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
}

/* PERSONALIZATION SECTION */
.personalization-section {
  padding: 50px 20px;
  text-align: center;
}

.personalization-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #8b2354;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.personalization-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px; 
  box-sizing: border-box;
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}


.personalization-form input {
  flex: 1 1 250px; 
  max-width: 400px;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #ff8fc3;
  border-radius: 10px;
  background-color: #fefefe;
  color: #333;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}


.personalization-form input::placeholder {
  color: #caaac4;
  font-weight: 400;
  font-size: 0.9rem;
}

.personalization-form button {
  padding: 18px 20px;
  width: 100%;
  max-width: 500px;
  background-color: #ff8fc3;
  border: none;
  border-radius: 12px;
  color: #2b1f29;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}


.personalization-form button:hover {
  background-color: #ff6dae;
}

.form-group {
  gap: 2px;
  flex: 0.1;
}


/* LODIANG */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.8);
  color: white;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: left;
}

#loading-steps {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
}

#loading-steps li {
  margin-bottom: 15px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#loading-steps li.active {
  opacity: 1;
}

#loading-steps li.done::before {
  content: '✔ ';
  color: #00ff90;
}


/* HASIL GENERATE */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfcfe;
  margin: 0;
  padding: 0;
}

.notebook-content {
 margin-top: -5%;
  box-sizing: border-box;
  color: #3e2b4a;
}

.notebook-content h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 1px;
  margin-top: 20px; 
}

.notebook-content .bold {
  font-weight: 600;
}

.notebook-content .pink {
  color: #ff71c1;
}

.result-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.personal-data, .recommendation {
  flex: 1;
}

.personal-data h3,
.recommendation h3 {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
}

.personal-data ul {
  list-style: none;
  padding: 0;
}

.personal-data li {
  font-family: 'Poppins', sans-serif;
  background-color: #ff91c7;
  color: rgb(0, 0, 0);
  border-radius: 10px;
  margin: 6px 0;
  padding: 8px 12px;
  text-align: center;
}

.recommendation-box {
  background-color: #ff91c7;
  border-radius: 15px;
  min-height: 350px;
  width: 100%;
  padding: 30px 8% 30px 8%; /* padding atas-bawah & kiri-kanan */
  text-align: left;
  box-sizing: border-box;
}



.category-box {
  background-color: #ff91c7;
  color: rgb(0, 0, 0);
  text-align: center;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
}


/* MEDIA QUERY UNTUK DESKTOP (Layar > 1000px) */
@media screen and (min-width: 1001px) {
  .main-header.container {
    padding-inline: 20px;
  }

  .navigation-drawer {
    height: auto;
    width: auto;
    padding: 0;
    background-color: transparent;
    position: static;
    transform: translateX(0);
    box-shadow: none;
    flex-direction: row;
    justify-content: space-between;
    overflow-y: visible;
  }

  .drawer-header {
    display: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    width: auto;
  }

  .nav-list li {
    width: auto;
    text-align: left;
  }

  .nav-list li a {
    color: #2c2c2c;
    font-size: 1.2rem;
    padding: 5px 0;
    font-weight: bold;
  }
  .nav-list li a:hover,
  .nav-list li a:focus {
    background-color: transparent;
    color: #ff4fa1;
  }

  .drawer-button {
    display: none;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 50px 100px 90px 100px;
    align-items: center;
  }
  .hero-text {
    flex: 1;
    padding-right: 40px;
    margin-bottom: 0;
  }
  .hero-text h1 {
    font-size: 5rem;
    margin-top: 0;
  }
  .hero-text p {
    font-size: 1.3rem;
  }
  .hero-text p span {
    display: block;
  }
  .hero-image {
    flex: 1;
    margin-top: 0;
    max-width: 600px;
    display: flex;
    justify-content: center;
  }
  .hero-image img {
    max-width: 100%;
  }
  .hero-bg {
    width: 50%;
    height: 100%;
    opacity: 1;
  }

  .about-container {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 60px;
    padding: 60px 100px;
    max-width: 1200px;
    margin: 60px auto;
  }
  .about-icon img {
    width: 250px;
    margin-top: 20px;
  }
  .about-content h2 {
    font-size: 2.8rem;
    text-align: center;
  }
  .about-content p {
    font-size: 1.1rem;
  }

  .start-from {
    padding: 100px;
    margin: 120px auto;
    max-width: 1400px;
    border-radius: 30px;
  }
  .start-from h2 {
    font-size: 3rem;
  }
  .start-from-cards {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }
  .card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    padding: 30px;
  }
  .start-from .card h3 {
    font-size: 1.3rem;
  }
  .start-from .card p {
    font-size: 1rem;
    text-align: justify;
  }

  .personalization-section {
    padding: 100px;
  }
  .personalization-section h2 {
    font-size: 3rem;
  }
  .personalization-form {
    max-width: 1250px;
    gap: 30px;
  }
  .form-row {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  .personalization-form input {
    width: 280px;
    font-size: 1.1rem;
  }
  .personalization-form input::placeholder {
    font-size: 1rem;
  }
  .personalization-form button {
    max-width: 1230px;
    font-size: 1.3rem;
  }

  .result-section {
    padding: 100px 60px;
  }

  /* Perubahan posisi naik */
  .notebook-content {
    margin-top: -5%;
  }

  .recommendation-box {
    padding-left: 5%;
    padding-top: 15px;
  }

  .notebook-content h1 {
    font-size: 32px;
  }
  .result-grid {
    flex-direction: row;
  }
  .personal-data h3, .recommendation h3 {
    font-size: 16px;
  }
  .personal-data li {
    font-size: 1rem;
  }
  .category-box {
    font-size: 1rem;
  }
}

/* MEDIA QUERY UNTUK TABLET (601px sampai 1000px) */
@media screen and (min-width: 601px) and (max-width: 1000px) {
  .container {
    padding-inline: 30px;
  }

  .hero {
    padding: 60px 40px;
  }
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }

  .about-container {
    padding: 40px;
    gap: 40px;
  }
  .about-icon img {
    width: 180px;
  }
  .about-content h2 {
    font-size: 2.2rem;
  }
  .about-content p {
    font-size: 1rem;
  }

  .start-from {
    padding: 80px 40px;
  }
  .start-from h2 {
    font-size: 2.5rem;
  }
  .start-from-cards {
    gap: 30px;
  }
  .card {
    max-width: calc(50% - 15px);
  }

  .personalization-section {
    padding: 80px 40px;
  }
  .personalization-section h2 {
    font-size: 2.5rem;
  }
  .personalization-form input {
    width: 260px;
  }
  .form-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Perubahan posisi naik */
  .notebook-content {
    margin-top: -3%;
  }

  .recommendation-box {
    padding-left: 6%;
    padding-top: 18px;
  }

  .result-section {
    padding: 60px 30px;
  }

  .notebook-content h1 {
    font-size: 28px;
  }
}

/* MEDIA QUERY UNTUK MOBILE (600px ke bawah) */
@media screen and (max-width: 600px) {
  .result-grid {
    flex-direction: column;
    gap: 15px;
  }

  .personal-data, .recommendation {
    min-width: 100%;
    margin-top: 5%;
  }

  .notebook-content {
    margin-top: 0; /* default */
    padding: 10px;
  }

  .recommendation-box {
    padding-left: 9%;
    padding-top: 20px;
    height: auto; /* biar tinggi fleksibel di HP */
  }

  .notebook-content h1 {
    font-size: 24px;
    margin-top: 15px;
  }

  .category-box {
    font-size: 1rem;
    padding: 8px;
  }

  .result-section {
    padding: 30px 15px;
  }
}

