* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Mencegah pemilihan teks (disable selection) */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Disable scroll */
  /* Mencegah drag-to-refresh & overscroll bounce */
  overscroll-behavior: none;
  touch-action: none;
  background-color: #05020a;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* --- HEADER NAVBAR (RATA TENGAH) --- */
header {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 15px 25px;
  background: rgba(5, 2, 10, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 42, 133, 0.2);
  color: #ffb6c1;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 42, 133, 0.6);
  display: flex;
  justify-content: center; /* Rata tengah horizontal */
  align-items: center;     /* Rata tengah vertikal */
  text-align: center;
}

/* --- FOOTER --- */
footer {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: rgba(5, 2, 10, 0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 42, 133, 0.2);
  color: rgba(255, 182, 193, 0.8);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* --- SCANLINE ANIMATION --- */
#scanOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

#scanLine {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ff2a85;
  box-shadow: 0 0 15px #ff2a85, 0 0 30px #ff2a85;
  opacity: 0.9;
}

.heart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 0 10px #ff2a85, 0 0 25px #ff2a85;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
  text-align: center;
  width: 80%;
}

.heart-text.show {
  opacity: 1;
}