.page-not-found {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--secondBackground);
  border-radius: 8px;
  color: var(--onSecondBackground);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.page-not-found .error-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-not-found .error-icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 0;
  opacity: 0;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-not-found .error-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.page-not-found .error-number {
  font-size: 11rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  position: relative;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-size: 200% 200%;
  animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    gradientShift 4s ease-in-out infinite 1.5s;
}

.page-not-found .error-number::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(62, 103, 112, 0.1) 0%,
    rgba(144, 181, 165, 0.1) 50%,
    rgba(59, 130, 246, 0.1) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translate(8px, 8px);
  z-index: -1;
  animation: floatShadow 3s ease-in-out infinite;
}

.page-not-found .error-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--onSecondBackground);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.page-not-found .error-message {
  font-size: 1.2rem;
  color: var(--placeholder);
  line-height: 1.7;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.page-not-found .decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.page-not-found .floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.page-not-found .shape-1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.page-not-found .shape-2 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  top: 20%;
  right: 15%;
  animation-delay: -2s;
}

.page-not-found .shape-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  bottom: 8%;
  left: 9%;
  animation-delay: -4s;
}

.page-not-found .shape-4 {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--tertiary), var(--secondary));
  bottom: 10%;
  right: 10%;
  animation-delay: -1s;
}

/* Animations */
@keyframes slideInScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(60px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatShadow {
  0%,
  100% {
    transform: translate(8px, 8px);
    opacity: 0.3;
  }
  50% {
    transform: translate(12px, 12px);
    opacity: 0.1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-not-found .error-number {
    margin-bottom: 1.5rem;
  }

  .page-not-found .error-title {
    margin-bottom: 1rem;
  }

  .page-not-found .floating-shape {
    opacity: 0.3;
  }

  .page-not-found .shape-1,
  .page-not-found .shape-2,
  .page-not-found .shape-3,
  .page-not-found .shape-4 {
    display: none;
  }

  .page-not-found .error-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .page-not-found {
    padding: 15px;
  }

  .page-not-found .error-number {
    margin-bottom: 1rem;
  }

  .page-not-found .error-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  .page-not-found .error-container {
    max-width: 100%;
  }
}
