/* Custom CSS from the user's style.css, integrated here for single-file mandate */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background: #0a0e27;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  /* Center the error content */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(125deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
}

.bg-animation::before,
.bg-animation::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.bg-animation::before {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.bg-animation::after {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

.error-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.8s ease-out;
  max-width: 800px;
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-code {
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -8px;
  animation: glitch 3s infinite;
  position: relative;
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
  }
  25% {
    text-shadow: -2px 2px 20px rgba(118, 75, 162, 0.5);
  }
  50% {
    text-shadow: 2px -2px 20px rgba(102, 126, 234, 0.5);
  }
  75% {
    text-shadow: -2px -2px 20px rgba(118, 75, 162, 0.5);
  }
}

.error-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -1px;
}

.error-message {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.8;
  font-weight: 400;
}

.btn-home {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
  color: white;
}

.btn-home:active {
  transform: translateY(-1px);
}

.floating-icon {
  position: absolute;
  font-size: 3rem;
  opacity: 0.15;
  animation: floatIcon 15s infinite ease-in-out;
  z-index: 1;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
  }
}

.icon-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}
.icon-2 {
  top: 70%;
  left: 15%;
  animation-delay: 3s;
}
.icon-3 {
  top: 25%;
  right: 15%;
  animation-delay: 6s;
}
.icon-4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 9s;
}

/* Tablet breakpoint */
@media (max-width: 992px) {
  .error-code {
    font-size: 10rem;
    letter-spacing: -6px;
  }
  .error-title {
    font-size: 2.5rem;
  }
  .error-message {
    font-size: 1.2rem;
    padding: 0 15px;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  .error-container {
    padding: 30px 15px;
  }
  .error-code {
    font-size: 8rem;
    letter-spacing: -4px;
    margin-bottom: 15px;
  }
  .error-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .error-message {
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
  }
  .btn-home {
    padding: 14px 36px;
    font-size: 1rem;
  }
  .floating-icon {
    font-size: 2rem;
  }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
  .error-container {
    padding: 20px 10px;
  }
  .error-code {
    font-size: 6rem;
    letter-spacing: -3px;
  }
  .error-title {
    font-size: 1.5rem;
  }
  .error-message {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .btn-home {
    padding: 12px 28px;
    font-size: 0.9rem;
    width: 90%;
    max-width: 280px;
  }
  .floating-icon {
    font-size: 1.5rem;
    opacity: 0.1;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .error-code {
    font-size: 5rem;
  }
  .error-title {
    font-size: 1.3rem;
  }
  .error-message {
    font-size: 0.95rem;
  }
}
