@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;800&display=swap');

:root {
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow: auto;
  position: relative;
}

/* Background Animated Blobs */
.blob {
  position: fixed;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float 10s ease-in-out infinite;
}

.blob-1 {
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  background: #3b82f6;
  border-radius: 50%;
  top: 10%;
  left: 10%;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: #8b5cf6;
  border-radius: 50%;
  bottom: 0%;
  right: 5%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -50px) scale(1.1);
  }
}

/* Glassmorphism Card */
.error-container {
  max-width: 800px;
  width: 90%;
  position: relative;
  z-index: 10;
}

.error-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

h1.error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px var(--accent-glow);
}

h2.error-message {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 30px;
  color: #e2e8f0;
}

.error-stack {
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin-bottom: 40px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-home {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(139, 92, 246, 0.5);
}

a {
  color: var(--accent);
}
