/* Reset & base */
* {
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif; /* Ganti bagian ini */
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0px;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 0px 10px;
  transition: background 0.3s ease;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger */
.menu-toggle {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

/* Fullscreen Overlay Menu */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #d96f32;
  overflow: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: height 0.3s ease;
}

.fullscreen-menu a {
  color: white;
  font-size: 2rem;
  margin: 15px 0;
  text-decoration: none;
  position: relative;
}

.fullscreen-menu a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  bottom: -6px;
  left: 0;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.fullscreen-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.fullscreen-menu.open {
  height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero Landing */
.landing {
  background-color: #4a7856;
  height: 100vh;
  position: relative;
  color: white;
}

.overlay {
  background: #5d7e60;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  text-align: left;
}

.content {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

/* Perataan dan stabilitas jarak antar elemen */
/* Text Umum */
.small,
.desc {
  margin: 10px 0;
  text-align: left;
}
.small {
  font-size: 3rem;
  color: #fff;
  margin: 5px 0;
  min-height: 2.5rem;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.desc {
  font-size: 1.8rem;
  color: #ccc;
  text-align: center;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.big {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  animation: blinkCursor 0.7s infinite;
  display: inline-block;
  width: auto;
  padding-right: 4px;
  min-height: 4.6rem;
  margin: 10px 0;
}
@keyframes blinkCursor {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

/* Call to Action */

.cta {
  display: inline-block;
  background: #d96f32;
  padding: 12px 30px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 20px;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.cta:hover {
  background: #8e44ad;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .small {
    font-size: 2.5rem;
  }
  .big {
    font-size: 2.5rem;
  }
  .desc {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .small {
    font-size: 2rem;
  }
  .big {
    font-size: 2rem;
    min-height: 3.8rem;
  }
  .desc {
    font-size: 1.4rem;
    min-height: 1.8rem;
    text-align: left;
  }
  .cta {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .small {
    font-size: 1.6rem;
  }
  .big {
    font-size: 1.6rem;
    min-height: 3.4rem;
  }
  .desc {
    font-size: 1.2rem;
    min-height: 1.6rem;
  }
  .cta {
    padding: 8px 20px;
    font-size: 0.95rem;
  }
}

