* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, #e6f4ff 10%, #cce9ff 100%);
  color: #333;
}

.container {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: #333;
}

.title span {
  color: #33b2ff;
}

.error-code {
  font-size: 12rem;
  font-weight: 900;
  color: #33b2ff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.gear {
  font-size: 9rem;
  color: #007acc;
  animation: spin 4s linear infinite;
}

.message {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #555;
}

.home-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: #33b2ff;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(51, 178, 255, 0.3);
}

.home-btn:hover {
  background: #007acc;
  transform: scale(1.05);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* 📱 Mobile Responsive Design (Keep Horizontal Layout) */
@media (max-width: 768px) {

  body {
    padding: 20px;
    height: auto;
    flex-direction: column;
    justify-content: center;
  }

  .container {
    width: 100%;
    max-width: 400px;
  }

  .title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .error-code {
    font-size: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-direction: row; /* ✅ Keep horizontal */
  }

  .gear {
    font-size: 5rem;
  }

  .message {
    font-size: 1rem;
    margin-top: 15px;
    padding: 0 10px;
  }

  .home-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    margin-top: 20px;
  }
}
