:host {
  --primary-color: #3a86ff;
  --primary-hover: #2563eb;
  --secondary-color: #8338ec;
  --text-color: #1e293b;
  --muted-text-color: #64748b;
  --border-color: #e5e7eb;
  --bg-light: #f8fafc;
  --transition: all 0.3s ease;
}

.not-found-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 10;
}

.not-found-header {
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found-header h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.05em;
}

.book-stack {
  display: flex;
  margin-top: -1rem;
  position: relative;
  height: 90px;
}

.book {
  width: 60px;
  height: 90px;
  position: absolute;
  border-radius: 3px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.book-1 {
  background: linear-gradient(135deg, #ff006e, #fb5607);
  transform: rotate(-25deg);
  left: calc(50% - 80px);
  z-index: 3;
}

.book-2 {
  background: linear-gradient(135deg, #3a86ff, #8338ec);
  transform: rotate(0deg);
  left: calc(50% - 30px);
  z-index: 1;
}

.book-3 {
  background: linear-gradient(135deg, #ffbe0b, #fb5607);
  transform: rotate(25deg);
  left: calc(50% + 20px);
  z-index: 2;
}

.not-found-container:hover .book-1 {
  transform: rotate(-35deg) translateY(-10px);
}

.not-found-container:hover .book-2 {
  transform: translateY(-5px);
}

.not-found-container:hover .book-3 {
  transform: rotate(35deg) translateY(-10px);
}

.not-found-message {
  margin-bottom: 2.5rem;
}

.not-found-message h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.not-found-message p {
  font-size: 1.125rem;
  color: var(--muted-text-color);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.primary-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-blob-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 70%;
  background-color: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.bg-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 70%;
  height: 60%;
  background-color: rgba(131, 56, 236, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

.not-found-header {
  animation-delay: 0.2s;
}

.not-found-message {
  animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .book-stack {
    height: 120px;
  }

  .book {
    width: 80px;
    height: 120px;
  }
}
