html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

/* Container logo + menu di tengah layar */
.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  z-index: 2;
  transform: translateY(-200px); /* geser turun */
}

.logo {
  margin-bottom: 20px;
}

.logo img {
  height: 80px;
  width: auto;
}

/* Menu */
nav {
  position: relative;
  z-index: 2;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #00eaff;
  font-size: 1.1rem;
  font-weight: bold;
  position: relative;
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}

/* Shake saat hover */
nav ul li a:hover {
  animation: shake 0.3s infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Electric glow saat hover */
nav ul li a:hover::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -10px;
  bottom: -10px;
  border: 2px solid #00eaff;
  opacity: 1;
  filter: blur(4px);
  animation: electric 0.5s infinite;
}

@keyframes electric {
  0% { box-shadow: 0 0 5px #00eaff, 0 0 10px #00eaff; }
  50% { box-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff; }
  100% { box-shadow: 0 0 5px #00eaff, 0 0 15px #00eaff; }
}

/* Glitch effect */
nav ul li a:hover::before,
nav ul li a:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

nav ul li a:hover::before {
  text-shadow: -2px 0 red;
  animation: glitchTop 1s infinite linear alternate-reverse;
}

nav ul li a:hover::after {
  text-shadow: -2px 0 blue;
  animation: glitchBottom 1s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(-2px, -2px); }
  20% { clip: rect(0, 9999px, 5px, 0); transform: translate(2px, -1px); }
  40% { clip: rect(0, 9999px, 10px, 0); transform: translate(-1px, 1px); }
  60% { clip: rect(0, 9999px, 15px, 0); transform: translate(1px, 0); }
  80% { clip: rect(0, 9999px, 20px, 0); transform: translate(-2px, 2px); }
  100% { clip: rect(0, 9999px, 25px, 0); transform: translate(0, -1px); }
}

@keyframes glitchBottom {
  0% { clip: rect(25px, 9999px, 30px, 0); transform: translate(2px, 1px); }
  20% { clip: rect(20px, 9999px, 25px, 0); transform: translate(-1px, 0); }
  40% { clip: rect(15px, 9999px, 20px, 0); transform: translate(1px, -1px); }
  60% { clip: rect(10px, 9999px, 15px, 0); transform: translate(-2px, 2px); }
  80% { clip: rect(5px, 9999px, 10px, 0); transform: translate(0, 1px); }
  100% { clip: rect(0, 9999px, 5px, 0); transform: translate(1px, -2px); }
}

/* Garis neon di bawah menu */
nav::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 140%;
  height: 2px;
  background: linear-gradient(to right, transparent, #00eaff, transparent);
  box-shadow: 0 0 10px #00eaff;
}

/* Kotak info IP bergaya terminal */
.visitor-ip {
  margin-top: 30px;
  padding: 15px 20px;
  width: 600px; /* lebar kotak */
  background: rgba(0, 234, 255, 0.1);
  border: 2px solid #00eaff;
  box-shadow: 0 0 10px #00eaff;
  border-radius: 8px;
  text-align: left;
  color: #00eaff;
  font-size: 1rem;
  font-family: "Courier New", Consolas, monospace; /* gaya terminal */
  line-height: 1; /* rapat */
}
.visitor-ip p {
  margin: 5px 0;
}

/* Efek hover sama dengan menu untuk IP */
.ip-text {
  position: relative;
  font-weight: bold;
  color: #00eaff;
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}
.ip-text:hover {
  animation: shake 0.3s infinite;
}
.ip-text:hover::before {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: -5px;
  bottom: -5px;
  border: 2px solid #00eaff;
  opacity: 1;
  filter: blur(4px);
  animation: electric 0.5s infinite;
}
.ip-text:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  text-shadow: -2px 0 red;
  animation: glitchTop 1s infinite linear alternate-reverse;
}
.ip-text span {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}
.ip-text:hover span {
  content: attr(data-text);
  text-shadow: -2px 0 blue;
  animation: glitchBottom 1s infinite linear alternate-reverse;
}

/* Canvas full screen */
#trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}