body.error404 .not-found-wrapper {
  animation: fadeInBackground 1s ease-in-out;
}

@keyframes fadeInBackground {
  from { opacity: 0; }
  to { opacity: 1; }
}

.not-found-wrapper {
  min-height: 100vh;
  text-align: center;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.not-found-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.not-found-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: white;
}

.not-found-content p {
  font-size: 1.15rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.not-found-content ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  text-align: left;
  max-width: 450px;
}

.not-found-content ul li a {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: underline;
}

.not-found-content ul li a:hover {
  color: var(--text-secondary);
}

.not-found-image {
  max-width: 300px;
  margin-bottom: 2rem;
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-home:hover {
  background: var(--color-primary);
  color: white;
}

@media (max-width: 768px) {
  .not-found-content h1 {
    font-size: 2.2rem;
  }

  .not-found-content p {
    font-size: 1rem;
  }

  .not-found-image {
    max-width: 200px;
  }
}