/* Space-themed 404 Not Found Page Styles */

.not-found-container {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Animated star field background */
.star-field {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.star {
  position: absolute;
  background: #22c55e;
  border-radius: 50%;
  animation: twinkle 2s ease-in-out infinite;
}

.star-small {
  width: 2px;
  height: 2px;
}

.star-medium {
  width: 3px;
  height: 3px;
}

.star-large {
  width: 4px;
  height: 4px;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Content container */
.not-found-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  padding: 2rem 1rem;
}

/* 404 number with glow effect */
.error-code {
  font-size: 9rem;
  font-weight: 900;
  /* color: #22c55e; */
  color:#ffffff;
  margin-bottom: 1.5rem;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px #4ade80, 0 0 40px #22c55e, 0 0 60px #16a34a;
  }
  50% {
    text-shadow: 0 0 30px #4ade80, 0 0 60px #22c55e, 0 0 90px #16a34a;
  }
}

/* Gradient text for headline */
.gradient-headline {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out forwards 0.2s;
  opacity: 0;
}

/* Description text */
.error-description {
  font-size: 1.25rem;
  color: #426d53;
  /* color: #4b5563; */

  line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out forwards 0.4s;
  opacity: 0;
}

/* Return button */
.return-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #22c55e 100%);
  border: 2px solid #22c55e;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards 0.6s, buttonGlow 3s ease-in-out infinite;
  opacity: 0;
}

.return-button:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 50%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.6), 0 10px 20px rgba(0, 0, 0, 0.3);
  color: white;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5), 0 0 60px rgba(34, 197, 94, 0.2);
  }
}

.return-button i {
  margin-right: 0.75rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating astronaut illustration */
.floating-astronaut {
  position: absolute;
  top: 25%;
  right: 4rem;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.astronaut-svg {
  width: 120px;
  height: 120px;
  color: #86efac;
}

/* Floating geometric shapes */
.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-circle {
  width: 80px;
  height: 80px;
  border: 3px solid #22c55e;
  border-radius: 50%;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.shape-square {
  width: 60px;
  height: 60px;
  border: 3px solid #16a34a;
  top: 70%;
  left: 15%;
  animation-delay: 2s;
  transform: rotate(45deg);
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #4ade80;
  opacity: 0.15;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.shape-hexagon {
  width: 50px;
  height: 50px;
  background: #86efac;
  opacity: 0.12;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  bottom: 20%;
  right: 20%;
  animation-delay: 3s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 0.2;
  }
}

/* Orbit circles */
.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.orbit-circle {
  position: absolute;
  border: 2px dashed #22c55e;
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.orbit-1 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Floating particles */
.particle {
  position: absolute;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px) translateX(20px);
    opacity: 0.6;
  }
}

/* Decorative corner accents */
.corner-accent {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid #22c55e;
  opacity: 0.15;
}

.corner-top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 20px;
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 20px;
}

/* Planets */
.planet {
  position: absolute;
  border-radius: 50%;
  animation: planetFloat 10s ease-in-out infinite;
}

.planet-1 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
  top: 10%;
  right: 25%;
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1),
              0 0 30px rgba(74, 222, 128, 0.3);
  animation-delay: 0s;
}

.planet-2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  bottom: 25%;
  left: 20%;
  box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.1),
              0 0 20px rgba(34, 197, 94, 0.3);
  animation-delay: 2s;
}

.planet-3 {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #86efac, #22c55e);
  top: 60%;
  right: 10%;
  box-shadow: 0 0 15px rgba(134, 239, 172, 0.4);
  animation-delay: 4s;
}

@keyframes planetFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-40px) scale(1.05);
  }
}

/* Rings for planets */
.planet-ring {
  position: absolute;
  border: 3px solid rgba(134, 239, 172, 0.3);
  border-radius: 50%;
  animation: ringRotate 8s linear infinite;
}

.ring-1 {
  width: 140px;
  height: 40px;
  top: 10%;
  right: 25%;
  transform: translateX(-20px) translateY(30px) rotateX(75deg);
}

@keyframes ringRotate {
  from {
    transform: translateX(-20px) translateY(30px) rotateX(75deg) rotateZ(0deg);
  }
  to {
    transform: translateX(-20px) translateY(30px) rotateX(75deg) rotateZ(360deg);
  }
}

/* Comets */
.comet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80, 0 0 20px #22c55e;
  animation: cometFly 8s linear infinite;
}

.comet-1 {
  top: 20%;
  left: -50px;
  animation-delay: 0s;
}

.comet-2 {
  top: 60%;
  left: -50px;
  animation-delay: 4s;
}

.comet::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.8), transparent);
  right: 8px;
  top: 3px;
}

@keyframes cometFly {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) translateY(50vh);
    opacity: 0;
  }
}

/* Satellites */
.satellite {
  position: absolute;
  width: 30px;
  height: 30px;
  animation: satelliteOrbit 15s linear infinite;
}

.satellite-1 {
  top: 30%;
  left: 80%;
}

.satellite-2 {
  bottom: 30%;
  left: 15%;
  animation-delay: 7s;
}

.satellite-body {
  width: 20px;
  height: 15px;
  background: #22c55e;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.satellite-panel {
  position: absolute;
  width: 15px;
  height: 8px;
  background: linear-gradient(90deg, #86efac, #4ade80);
  border-radius: 2px;
}

.satellite-panel-left {
  left: -15px;
  top: 3px;
}

.satellite-panel-right {
  right: -15px;
  top: 3px;
}

@keyframes satelliteOrbit {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

/* UFO */
.ufo {
  position: absolute;
  top: 35%;
  left: 5%;
  width: 80px;
  height: 40px;
  animation: ufoFloat 6s ease-in-out infinite;
}

.ufo-top {
  width: 40px;
  height: 20px;
  background: radial-gradient(circle at 50% 30%, #86efac, #4ade80);
  border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
  position: absolute;
  top: 0;
  left: 20px;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.ufo-bottom {
  width: 80px;
  height: 20px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.5);
}

.ufo-light {
  width: 3px;
  height: 3px;
  background: #86efac;
  border-radius: 50%;
  position: absolute;
  bottom: 5px;
  animation: ufoBlink 0.5s ease-in-out infinite;
}

.ufo-light-1 { left: 20px; }
.ufo-light-2 { left: 38px; animation-delay: 0.15s; }
.ufo-light-3 { right: 20px; animation-delay: 0.3s; }

@keyframes ufoFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-15px) translateX(10px);
  }
  75% {
    transform: translateY(-15px) translateX(-10px);
  }
}

@keyframes ufoBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Constellation lines */
.constellation {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 15%;
  left: 5%;
  opacity: 0.2;
}

.constellation-line {
  position: absolute;
  height: 2px;
  background: #22c55e;
  transform-origin: left center;
}

.const-line-1 {
  width: 60px;
  top: 30px;
  left: 20px;
  transform: rotate(30deg);
}

.const-line-2 {
  width: 80px;
  top: 30px;
  left: 60px;
  transform: rotate(-20deg);
}

.const-line-3 {
  width: 50px;
  top: 100px;
  left: 40px;
  transform: rotate(60deg);
}

.constellation-star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: constellationPulse 2s ease-in-out infinite;
}

.const-star-1 { top: 30px; left: 20px; }
.const-star-2 { top: 10px; left: 70px; animation-delay: 0.5s; }
.const-star-3 { top: 50px; left: 130px; animation-delay: 1s; }
.const-star-4 { top: 120px; left: 40px; animation-delay: 1.5s; }

@keyframes constellationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Space station */
.space-station {
  position: absolute;
  bottom: 15%;
  right: 8%;
  width: 100px;
  height: 60px;
  animation: stationFloat 8s ease-in-out infinite;
}

.station-core {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 5px;
  position: absolute;
  left: 30px;
  top: 10px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.station-panel {
  width: 30px;
  height: 20px;
  background: linear-gradient(90deg, #86efac, #4ade80);
  position: absolute;
  border-radius: 2px;
}

.station-panel-left {
  left: 0;
  top: 20px;
}

.station-panel-right {
  right: 0;
  top: 20px;
}

@keyframes stationFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(3deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-code {
    font-size: 6rem;
  }

  .gradient-headline {
    font-size: 1.875rem;
  }

  .error-description {
    font-size: 1rem;
  }

  .floating-astronaut {
    display: none;
  }

  .not-found-content {
    padding: 1rem;
  }

  /* Hide some elements on mobile for performance */
  .planet-1,
  .planet-ring,
  .ufo,
  .space-station,
  .constellation,
  .satellite {
    display: none;
  }

  /* Scale down remaining elements */
  .planet-2,
  .planet-3 {
    transform: scale(0.7);
  }

  .orbit-container {
    width: 300px;
    height: 300px;
  }

  .orbit-1 {
    width: 150px;
    height: 150px;
  }

  .orbit-2 {
    width: 225px;
    height: 225px;
  }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .error-code,
  .gradient-headline,
  .error-description,
  .return-button,
  .floating-astronaut,
  .star,
  .floating-shape,
  .orbit-circle,
  .planet,
  .planet-ring,
  .comet,
  .satellite,
  .ufo,
  .ufo-light,
  .constellation-star,
  .space-station,
  .particle {
    animation: none !important;
  }

  .gradient-headline,
  .error-description,
  .return-button {
    opacity: 1;
    transform: translateY(0);
  }
}
