@import url("./_variables.css");

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

body {
  font-family: var(--font-stack);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--green-darker) 0%,
    var(--green-dark) 50%,
    var(--green-base) 100%
  );
  position: relative;
}

/* Animated Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Floating leaves */
.leaf {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--green-light);
  clip-path: ellipse(50% 40% at 50% 50%);
  opacity: 0.3;
  animation: float-leaf 15s infinite;
}

@keyframes float-leaf {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.error-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.error-content {
  text-align: center;
  color: var(--white);
  max-width: 700px;
}

.error-number {
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--white), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.error-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.error-message {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.4s both;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.btn-container {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-home {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-home:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .error-number {
    font-size: 120px;
  }

  .error-title {
    font-size: 32px;
  }

  .error-message {
    font-size: 16px;
  }
}
