@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Inter:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Montserrat:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');
body {
  margin: 0;
  background:  #ffffff;
  color: #2a260e;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden; /* biar scroll hanya di menu */
}
.container {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden; /* penting: biar scroll hanya di dalam menu */
}

.menu {
  flex: 1;
  padding: 60px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-start; /* 🔥 ubah dari center ke flex-start */
  /* scrollbar-width: thin; */
  /* scrollbar-color: #666 transparent; */
}
.sidebar p a{
  text-decoration: none;
  display: inline-block;
  color: #000000;
}
.menu2 {
  flex: 1;
  padding: 60px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: start;
  justify-content: center; /* 🔥 ubah dari center ke flex-start */
  /* scrollbar-width: thin; */
  /* scrollbar-color: #666 transparent; */
}
.sidebar {
  width: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  padding: 30px 20px;

}
.icons {
      display: flex;
  flex-direction: column;
gap: 30px;
}

.icons a img {
  width: 20px;
  margin: 10px 0;
  filter: invert(90%);
  color: rgb(0, 0, 0);

}
.icons i {
  font-size: 22px;
  color: #000000;
  transition: transform 0.3s ease, color 0.3s ease;
}
.divider {
  width: 2px;        /* tipis vertikal */
  height: 60px;      /* panjangnya */
  background-color: #555;
  opacity: 1;
  justify-content: center;
  margin-top: 10px;  /* jarak dari ikon terakhir */
}
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  letter-spacing: 2px;
  color: #aaa;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 150px;

}

.menu img {
  width: 90%;
  max-width: 500px;
  height: 350px;
  border-radius: 15px;
  margin-top: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  margin-top: 20px;
}

.menu img:hover {
  transform: scale(1.05);
}
.menu2 h1 {
  font-family: "Michroma", sans-serif;
  font-size: 55px;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  line-height: 120px;
}
.menu h3 {
  font-family: "Michroma", sans-serif;
  font-size: 20px;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.menu p{
      line-height: 2;
          font-size: 14px;
          width: 80%;
}
.menu2 h1 a {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.menu2 h1 a:hover {
  transform: translateX(20px);
}

.menu2 h1:hover {
  transform: translateX(20px);
}

.info {
    width: 40%;
    font-family: 'Montserrat', sans-serif;
    margin-right: 80px;
    padding-right: 10px;
    margin-top: 200px;
  font-size: 16px;
  line-height: 2;
}

.info .name {
  font-weight: 600;
  margin-bottom: 5px;
}

.info a {
  color: #f8f3d4;
  text-decoration: underline;
}


/* --- RESPONSIVE DESIGN --- */

/* Tablet dan layar sedang */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  .sidebar {
    flex-direction: row;
    justify-content: start;
    width: 100%;
    height: 60px;
    padding: 10px 30px;
  }

  .icons {
    flex-direction: row;
    gap: 20px;
  }

  .divider {
    width: 80px;        /* tipis vertikal */
  height: 1px;      /* panjangnya */
  background-color: #555;
  opacity: 1;
  margin-top: 10px;  /* jarak dari ikon terakhir */
  }

  .vertical-text {
      writing-mode: horizontal-tb;
  font-size: 12px;
  /* letter-spacing: 2px; */
  color: #aaa;
  }

  main {
    padding: 40px 20px;
    align-items: center;
  }

  .container {
    flex-direction: column;
  }

  .info {
    margin: 0 0 30px 0;
       width: 100%;
  }

  .menu h1 {
    font-size: 60px;
      line-height: 80px;
  }
}

/* HP kecil */
@media (max-width: 480px) {
.menu{
     padding: 5px;
     width: 100%;

}
.menu2{
     padding: 5px;

}
  .menu h3 {
    font-size: 20px;
  }
   .menu2 h1 {
    font-size: 40px;
         gap: 5px;
     line-height: 60px;
  }

  .info p {
    font-size: 17px;
  }
.menu img {
  width: 100%;
  max-width: 500px;
  height: 200px;
}
}

/* --- ANIMASI SAAT HALAMAN MUNCUL --- */


/* Animasikan elemen utama agar muncul berurutan */
.info, .menu h3, .menu img {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s ease-out forwards;
}

.info {
  animation-delay: 0.4s;
}

.menu h3 {
  animation-delay: 0.6s;
}

.menu img:nth-of-type(1) { animation-delay: 0.8s; }
.menu img:nth-of-type(2) { animation-delay: 1.0s; }
.menu img:nth-of-type(3) { animation-delay: 1.2s; }

/* --- KEYFRAMES --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #F7CAC9, #92A8D1);
  z-index: 9999;
  transform: translateY(0);
  animation: slideUpReveal 1.2s ease-in-out forwards;
}

/* Animasi geser dari bawah ke atas */
@keyframes slideUpReveal {
  0% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(-110%);
    visibility: hidden;
  }
}

/* Biar isi halaman muncul setelah animasi */

@keyframes fadeInContent {
  to {
    opacity: 1;
  }
}
@keyframes slideDownReveal {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(0);
  }
}


.page-reveal.active {
  animation: slideUpReveal 1s ease-in-out forwards;
}

@keyframes slideUpReveal {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

