/* RESET RINGAN */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background-color: #000000;
  opacity: 0;
  animation: fadeInBackground 3s ease-in forwards;
}

@keyframes fadeInBackground {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: #111;

  /* Background default + fallback */
  background: #000 center / cover no-repeat fixed;
  background-image: url('../img/bg-landscape.jpg');

  /* tinggi viewport aman (diset via JS) */
  min-height: calc(var(--vh, 1vh) * 100);
}

/* background untuk orientasi portrait */
@media (orientation: portrait) {
  body {
    background-image: url('../img/bg-portrait.jpg');
  }
}

h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 5em;
  color: #fff;
  line-height: 60%;
}

h1 span {
  color: #dddddd;
  font-size: 40%;
}

/* =========================
   PAGE WRAPPER
   ========================= */
.page {
  min-height: calc(var(--vh, 1vh) * 100);
  display: grid;
  place-items: center;
  /* pusatkan container */
}

/* =========================
   CONTAINER (FULL GRID)
   ========================= */
.container {
  width: min(100% - 20px, 1000px);
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* header | konten fleksibel | footer */
  row-gap: clamp(12px, 2vw, 24px);
  min-height: 85vh;
  /* tinggi area kerja */
  padding: 0 10px;
  z-index: 5;
  /* background-color: aqua; */
}

/* =========================
   HEADER
   ========================= */
header.header {
  width: 100%;
  display: grid;
  justify-items: center;
  row-gap: 12px;
  text-align: center;
  margin: 0;
  padding: 0;
}

.logo-bi {
  max-width: clamp(100px, 35vw, 300px);
  height: auto;
  display: block;
  opacity: 0;
  /* Start hidden */
  animation: fadeInLogo 1.5s ease-out 1s forwards;
  /* Fade-in animation with delay */
}

.logo-event {
  max-width: min(90%, 800px);
  height: auto;
  display: block;
  opacity: 0;
  /* Start hidden */
  animation: fadeInLogo 1.5s ease-out 1s forwards;
  /* Fade-in animation with delay */
}

/* Logo Fade-In Animation */
@keyframes fadeInLogo {
  0% {
    opacity: 0;
    /* Start with hidden */
    transform: translateY(-50px);
    /* Start from above */
  }

  100% {
    opacity: 1;
    /* Fully visible */
    transform: translateY(0);
    /* Move to original position */
  }
}

/* =========================
   CONTENT
   ========================= */
.content {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 15px;
  text-align: center;
  /* background-color: rgb(255, 251, 0);  */
}



/* =========================
   FOOTER (DI DALAM CONTAINER)
   ========================= */
.footer {
  width: 100%;
  display: grid;
  justify-items: center;
  padding: 10px;
  /* background-color: rgb(255, 0, 0); */
}

.footer .logo-footer {
  width: min(90%, 800px);
  height: auto;
  display: block;
}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */
@media (min-width: 1024px) {
  .container {
    row-gap: 24px;
  }
}



/* Content Section (kotak_tanya) */
.kotak_tanya {
  z-index: 1;
  opacity: 0;
  animation: fadeInContent 1s ease-in 2s forwards;
  background-color: white;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: min(20px, 100px);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Category Title */
.kotak_tanya h2 {
  font-size: 24px;
  margin-bottom: 0px;
  opacity: 0;
  animation: fadeInCategory 1s ease-in 2.5s forwards;
}

/* Question Text */
.kotak_tanya p {
  font-size: 20px;
  color: #333;
  opacity: 0;
  animation: fadeInQuestion 1s ease-in 3s forwards;
}

/* Animations */
@keyframes fadeInContent {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInCategory {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInQuestion {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}