* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000000;
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 5rem;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  font-size: 4rem;
  text-align: center;
}

.content {
  margin-top: 4rem;
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
}

.pixel-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 4px solid #fff;
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

.pixel-button:hover {
  background-color: #8100b891;
  box-shadow: 2px 2px 0 #000;
  transform: translate(2px, 2px);
}

.pixel-button.floating {
  position: fixed;
  top: 4rem;
  left: 4rem;
  z-index: 10; /* pastikan lebih tinggi dari isi konten */
}

#preloader,
#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(0%);
}

#transition-overlay {
  display: none;
}

#preloader span {
  color: white;
  font-size: 1rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#page-content {
  position: relative; /* agar tombol absolute ngikut parent ini */
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s ease;
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  font-size: 3rem;
  text-align: center;
}

#typed-text-top {
  font-size: 3rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid white;
  width: fit-content;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: white; }
}

/* NAVBAR */
.main-navbar {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #000;
  border-bottom: 2px solid #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
}

/* BURGER BUTTON */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
}

/* BURGER MENU */
.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 999;
}

.burger-menu ul {
  list-style: none;
  text-align: center;
}

.burger-menu ul li {
  margin: 1.5rem 0;
}

.burger-menu ul li a {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.burger-menu ul li a:hover {
  color: #8100b8;
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 5rem;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  z-index: 1001;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Gelap transparan */
  z-index: 0;
}

