body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0e0e0e;
  color: #dedcdc;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

header {
  background-color: rgba(18, 17, 17, 0);
  backdrop-filter: blur(15px);
  color: rgb(205, 49, 49);
  padding: 10px 10px;
  display: flex;
  align-items: center;
  /* Vertikal center */
  justify-content: space-between;
  position: sticky;
  top: 0;
  transition: background-color 0.5s, padding 0.3s ease;
  z-index: 1000;
  transform: translateY(-50px);
  animation: slideDown 0.5s ease-out forwards;
}

#navbarselat {
  font-family: 'Comic Sans MS', sans-serif;
  font-size: 28px;
  color: #f9a825;
  white-space: nowrap;
  overflow: hidden;
  width: fit-content;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
  }

  to {
    transform: translateY(0);
  }
}

nav {
  text-align: center;
  padding: 1px;
}

nav a {
  position: relative;
  color: #f9a825;
  text-decoration: none;
  padding: 15px 25px;
  margin: 0 25px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 10px;
  width: 0%;
  height: 2px;
  background-color: #f9a825;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: calc(100% - 50px);
  /* padding left + right */
}

nav a:hover {
  color: #fff;
  /* Bisa tetap warna kuning jika tidak ingin berubah */
}


.menu-icon {
  display: none;
  font-size: 30px;
  color: #f9a825;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  transform: scale(0);
  animation: scaleUpIcon 0.5s forwards 0.5s;
}

@keyframes scaleUpIcon {
  to {
    transform: scale(1);
  }
}

.menu-items {
  display: flex;
  justify-content: center;
  transition: transform 5s ease;
}

.overlay {
  display: none;
}

@media (max-width: 768px) {

  .menu-items {
    font-family: 'Poppins', sans-serif;
    display: none;
    width: 90%;
    text-align: center;
    margin-top: 30px;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 5s ease;
  }

  .menu-items.active {
    display: flex;
    transform: translateY(0);
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgb(17, 16, 16);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1500;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .overlay.open {
    transform: translateX(0);
  }

  .overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .overlay-top a {
    color: #999696;
    font-size: 14px;
    text-decoration: none;
  }

  .overlay .close-btn {
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    color: #a54040;
    user-select: none;
  }

  .overlay-nav {
    margin-top: 60px;
    text-align: center;
    list-style: none;
    padding: 0;
  }

  .overlay-nav li {
    margin: 30px 0;
  }

  .overlay-nav a {
    color: #f9a825;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s;
  }

  /* Animated underline */
  .overlay-nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f9a825;
    transition: width 0.3s ease;
  }

  .overlay-nav a:hover::after {
    width: 100%;
  }

  .overlay-nav a:hover {
    color: #fff;
  }

  .social {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
  }

  .social a {
    font-size: 24px;
    color: #891e1e;
    user-select: none;
  }

  nav a {
    padding: 12px;
    margin: 10px 0;
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
  }

  .menu-icon {
    display: block;
  }
}

footer {
  margin-top: 3rem;
  background-color: #2a2929;
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

footer a {
  color: #f9a825;
  text-decoration: none;
  margin: 0 0.5rem;
}

.container {
  padding: 20px;
}

#banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  color: white;
  text-align: center;
  padding: 80px 20px;
  transition: background-image 1s ease-in-out;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  user-select: none;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

#tentang {
  text-align: center;
  padding: 40px 20px;
}

.content-text {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 20px;
  border-radius: 15px;
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  transition: background-image 1s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Statistik Box Style */
#statistik {
  text-align: center;
  padding: 60px 20px;
}

.stat-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.stat-box {
  background-color: #fff;
  color: #000;
  border-radius: 15px;
  padding: 30px 40px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-10px);
}

.stat-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.stat-box .count {
  font-size: 32px;
  font-weight: bold;
  color: #e0b91b;
}

.content-text h2 {
  font-family: "Segoe Script", cursive;
  font-size: 40px;
  color: #e0b91b;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: normal;
  animation: slideInText 1s ease-out forwards;
  opacity: 0;
  transform: translateX(50px);
}

/* Animasi scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}


@keyframes slideInText {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.content-text p {
  font-family: "Segoe Script", cursive;
  color: #f5bfbf;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInText 1s ease-out forwards 0.5s;
}

@keyframes fadeInText {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


#map {
  height: 100px;
  max-width: 450px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 50px #f9a825;
}