/* 404 Page Styles */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.error-page::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(1px 1px at 25% 25%, rgba(255, 255, 255, 0.9) 50%, transparent), radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.8) 50%, transparent), radial-gradient(3px 3px at 75% 75%, rgba(255, 255, 255, 0.7) 50%, transparent);
  background-size: 200px 200px, 300px 300px, 400px 400px;
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes twinkle {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}
.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.error-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.error-content p {
  font-size: 1.4rem;
  color: #94a3b8;
  margin-bottom: 4rem;
  line-height: 1.6;
}
.error-code {
  font-size: 180px;
  font-weight: 900;
  background: linear-gradient(45deg, #00b3b3, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}
.space-scene {
  position: relative;
  height: 400px;
  margin: 3rem 0;
  overflow: hidden;
  background: transparent;
}
.paper-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: glide 8s ease-in-out infinite;
  z-index: 10;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
.paper-plane-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  animation: tilt 4s ease-in-out infinite;
}
.planet {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
}
.planet.earth {
  width: 120px;
  height: 120px;
  bottom: 10%;
  right: 10%;
  background: linear-gradient(45deg, #4299e1, #48bb78);
  box-shadow: 0 0 30px rgba(66, 153, 225, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.2);
}
.planet.moon {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 15%;
  background: linear-gradient(45deg, #e2e8f0, #94a3b8);
  box-shadow: 0 0 20px rgba(226, 232, 240, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.2);
}
@keyframes glide {
  0% {
    transform: translate(-60%, -45%);
  }
  50% {
    transform: translate(-40%, -55%);
  }
  100% {
    transform: translate(-60%, -45%);
  }
}
@keyframes tilt {
  0% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}
.error-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 4rem 0;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.button.primary {
  background: #00b3b3;
  color: #fff;
}
.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.button i {
  font-size: 1.2rem;
}
.helpful-links {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.helpful-links h2 {
  font-size: 1.4rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-weight: 500;
}
.helpful-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.helpful-links a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  font-weight: 500;
}
.helpful-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(5px);
}
@media (max-width: 768px) {
  .error-code {
    font-size: 120px;
  }
  .error-content h1 {
    font-size: 2.5rem;
  }
  .error-content p {
    font-size: 1.2rem;
  }
  .space-scene {
    height: 300px;
    margin: 3rem 0;
  }
  .error-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .helpful-links ul {
    flex-direction: column;
    align-items: center;
  }
  .helpful-links a {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .error-code {
    font-size: 80px;
  }
  .error-content h1 {
    font-size: 2rem;
  }
  .space-scene {
    height: 250px;
  }
}
