/* 🌑 RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(circle at center, #020617 0%, #0b1220 100%);
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 🔹 Canvas Partikel */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 🔹 NAVBAR STICKY */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px #00ffff;
}

.logo span {
  color: #00bfff;
}

/* 🔹 ERROR BOX */
.error-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.error-box {
  max-width: 700px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  text-align: center;
  backdrop-filter: blur(16px);
}

/* 🔹 TEKS ERROR RGB + GLITCH */
.glow-text {
  font-size: 4rem;
  font-weight: 800;
  animation: rgbGlow 4s infinite linear;
  position: relative;
  display: inline-block;
}

@keyframes rgbGlow {
  0% { color: #00ffff; text-shadow: 0 0 20px #00ffff; }
  25% { color: #ff00ff; text-shadow: 0 0 20px #ff00ff; }
  50% { color: #00ff00; text-shadow: 0 0 20px #00ff00; }
  75% { color: #ffae00; text-shadow: 0 0 20px #ffae00; }
  100% { color: #00ffff; text-shadow: 0 0 20px #00ffff; }
}

/* 💥 Efek Glitch */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00fff2;
  animation: glitch1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00ff;
  animation: glitch2 2s infinite linear alternate-reverse;
}

@keyframes glitch1 {
  0% { clip: rect(12px, 9999px, 80px, 0); }
  20% { clip: rect(0, 9999px, 8px, 0); }
  40% { clip: rect(30px, 9999px, 90px, 0); }
  60% { clip: rect(5px, 9999px, 50px, 0); }
  80% { clip: rect(15px, 9999px, 100px, 0); }
  100% { clip: rect(25px, 9999px, 70px, 0); }
}

@keyframes glitch2 {
  0% { clip: rect(50px, 9999px, 70px, 0); }
  25% { clip: rect(10px, 9999px, 40px, 0); }
  50% { clip: rect(40px, 9999px, 90px, 0); }
  75% { clip: rect(20px, 9999px, 80px, 0); }
  100% { clip: rect(0, 9999px, 60px, 0); }
}

/* 🔹 TEXT & BUTTON */
.error-message {
  margin: 1.5rem 0;
  line-height: 1.6;
  color: #cbd5e1;
}

.button-group {
  margin: 1.5rem 0;
}

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0.3rem;
  display: inline-block;
}

.btn.primary {
  background: linear-gradient(90deg, #00ffff, #0077ff);
  color: #000;
}

.btn.ghost {
  border: 2px solid #00ffff;
  color: #00ffff;
}

.btn:hover {
  transform: scale(1.05);
}

/* 🔹 SEARCH */
.search {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.search input {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  width: 60%;
}

.search button {
  border: none;
  background: #00ffff;
  padding: 0.6rem 1rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* 🔹 ROBOT */
.robot-container {
  margin-top: 2rem;
}

.robot {
  width: 160px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 🔹 FOOTER */
footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

footer a {
  color: #38bdf8;
}

/* 🔹 RESPONSIVE */
@media (max-width: 600px) {
  .glow-text { font-size: 2.5rem; }
  .error-box { padding: 2rem; }
}
