:root {
  --color-primary: #2E8A64;
  --color-secondary: #1E3B4D;
  --color-accent: #3A775F;

  --color-primary-gradient: linear-gradient(135deg, #2E8A64 0%, #1c6047 100%);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.error-content {
  z-index: 10;
}

.error-number {
  font-size: 10rem;
  font-weight: 700;
  background: var(--color-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.error-text {
  font-size: 1rem;
  font-weight: 300;
  color: #6c757d;
  margin-bottom: 2rem;
}

.home-button {
  background: var(--color-primary-gradient);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 44, 101, 0.3);
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-3px);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 44, 101, 0.4);
}

.floating {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.gear-icon {
  font-size: 5rem;
  color: rgba(5, 44, 101, 0.2);
}

.gear-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.gear-2 {
  top: 60%;
  left: 15%;
  animation-delay: 1s;
}

.gear-3 {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
}

.gear-4 {
  bottom: 15%;
  right: 10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

.constellation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.star {
  position: absolute;
  background-color: rgba(5, 44, 101, 0.3);
  border-radius: 50%;
}

@media (max-width: 375px) {
  .error-number {
    font-size: 5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .error-text {
    font-size: 0.875rem;
  }

  .home-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
  }

  .gear-icon {
    font-size: 3rem;
  }
}

@media (min-width: 376px) and (max-width: 576px) {
  .error-number {
    font-size: 6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .error-text {
    font-size: 0.9rem;
  }

  .home-button {
    font-size: 1rem;
  }

  .gear-icon {
    font-size: 3.5rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .error-number {
    font-size: 8rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .error-text {
    font-size: 1rem;
  }

  .gear-icon {
    font-size: 4rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .error-number {
    font-size: 9rem;
  }

  h2 {
    font-size: 1.85rem;
  }
}

@media (min-width: 993px) {
  .error-number {
    font-size: 10rem;
  }

  h2 {
    font-size: 2rem;
  }

  .error-text {
    font-size: 1.15rem;
  }
}

@media (min-width: 1200px) {
  .error-container {
    padding: 0 2rem;
  }

  .error-number {
    font-size: 12rem;
  }

  .error-text {
    font-size: 1.25rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .gear-icon {
    font-size: 6rem;
  }
}
