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

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

.not-found-wrapper {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-wrapper .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.not-found-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  color: #fff;
}

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

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

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

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

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

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