/* Space theme for 404 page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
  }
  
  .cosmos-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0A0A0A, #0F1729, #2D2B55);
    overflow: hidden;
  }
  
  /* Stars */
  .stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  
  .stars {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><g fill="white"><circle cx="50" cy="50" r="1"/><circle cx="150" cy="150" r="1"/><circle cx="350" cy="250" r="1"/><circle cx="550" cy="50" r="0.5"/><circle cx="750" cy="150" r="0.5"/><circle cx="950" cy="50" r="0.5"/><circle cx="150" cy="350" r="0.5"/><circle cx="250" cy="450" r="0.5"/><circle cx="350" cy="550" r="0.5"/><circle cx="450" cy="450" r="0.5"/><circle cx="550" cy="550" r="0.5"/><circle cx="650" cy="650" r="0.5"/><circle cx="750" cy="750" r="0.5"/><circle cx="850" cy="850" r="0.5"/><circle cx="950" cy="950" r="0.5"/></g></svg>');
    background-repeat: repeat;
    animation: twinkle 5s ease-in-out infinite alternate;
  }
  
  .stars2 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><g fill="white"><circle cx="100" cy="100" r="1"/><circle cx="200" cy="200" r="1"/><circle cx="300" cy="300" r="1"/><circle cx="400" cy="100" r="0.7"/><circle cx="500" cy="200" r="0.7"/><circle cx="600" cy="300" r="0.7"/><circle cx="700" cy="100" r="0.7"/><circle cx="800" cy="200" r="0.7"/><circle cx="900" cy="300" r="0.7"/></g></svg>');
    background-repeat: repeat;
    animation: twinkle 7s ease-in-out infinite alternate;
  }
  
  .stars3 {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><g fill="white"><circle cx="77" cy="77" r="1"/><circle cx="177" cy="177" r="1"/><circle cx="277" cy="277" r="1"/><circle cx="377" cy="77" r="0.6"/><circle cx="477" cy="177" r="0.6"/><circle cx="577" cy="277" r="0.6"/><circle cx="677" cy="77" r="0.6"/><circle cx="777" cy="177" r="0.6"/><circle cx="877" cy="277" r="0.6"/></g></svg>');
    background-repeat: repeat;
    animation: twinkle 9s ease-in-out infinite alternate;
  }
  
  @keyframes twinkle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
  }
  
  /* Planets */
  .planets {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .planet {
    position: absolute;
    border-radius: 50%;
  }
  
  .planet-1 {
    bottom: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #6E59A5 0%, #2D2B55 100%);
    box-shadow: inset -45px -45px 90px rgba(0, 0, 0, 0.5);
  }
  
  .planet-2 {
    top: 20px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #D6BCFA 0%, #9b87f5 100%);
    box-shadow: inset -20px -20px 40px rgba(0, 0, 0, 0.5);
  }
  
  .planet-3 {
    bottom: 60px;
    left: 40px;
    width: 80px;
    height: 80px;
    background: #888888;
    box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.5);
  }
  
  .planet-3::before,
  .planet-3::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #666;
    opacity: 0.6;
  }
  
  .planet-3::before {
    width: 16px;
    height: 16px;
    top: 20px;
    left: 26px;
  }
  
  .planet-3::after {
    width: 11px;
    height: 11px;
    top: 40px;
    left: 40px;
  }
  
  .planet-ring {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 300px;
    height: 60px;
    background: rgba(155, 135, 245, 0.3);
    border-radius: 50%;
    transform: rotateX(75deg);
    z-index: 0;
  }
  
  /* Shooting stars */
  .shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
  }
  
  .shooting-star {
    position: absolute;
    width: 4px;
    height: 1px;
    background: white;
    box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform-origin: left center;
  }
  
  .shooting-star:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: shooting 3s linear infinite;
    animation-delay: 0s;
  }
  
  .shooting-star:nth-child(2) {
    top: 15%;
    left: 50%;
    animation: shooting 4s linear infinite;
    animation-delay: 1s;
  }
  
  .shooting-star:nth-child(3) {
    top: 5%;
    left: 80%;
    animation: shooting 3.5s linear infinite;
    animation-delay: 2s;
  }
  
  @keyframes shooting {
    0% {
      transform: translateX(0) translateY(0) rotate(45deg) scale(0);
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    10% {
      transform: translateX(180px) translateY(180px) rotate(45deg) scale(1);
      opacity: 0;
    }
    100% {
      transform: translateX(180px) translateY(180px) rotate(45deg) scale(1);
      opacity: 0;
    }
  }
  
  /* Error content */
  .error-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .error-content.hidden {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .error-content.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .error-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    color: white;
  }
  
  .error-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
  }
  
  .error-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s ease-in-out infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
  }
  
  .error-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 4px;
    background: white;
    transform: translate(-50%, -50%);
  }
  
  .error-line.crossed {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  .error-title {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
  }
  
  .error-4 {
    color: #9b87f5;
  }
  
  .error-0 {
    color: white;
  }
  
  .rocket-container {
    position: relative;
    height: 100px;
    margin-bottom: 1.5rem;
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
  }
  
  .rocket {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
  }
  
  .rocket-body {
    position: absolute;
    width: 24px;
    height: 55px;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    background: white;
    border-radius: 50% 50% 20% 20%;
  }
  
  .rocket-window {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    background: #0F1729;
    border-radius: 50%;
    border: 2px solid #5a5a5a;
  }
  
  .rocket-fins {
    position: absolute;
    width: 40px;
    height: 20px;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
  }
  
  .rocket-fins::before,
  .rocket-fins::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 25px;
    background: white;
  }
  
  .rocket-fins::before {
    left: -12px;
    border-radius: 50% 0 0 100%;
    transform: rotate(20deg);
  }
  
  .rocket-fins::after {
    right: -12px;
    border-radius: 0 50% 100% 0;
    transform: rotate(-20deg);
  }
  
  .rocket-exhaust {
    position: absolute;
    width: 10px;
    height: 25px;
    left: 50%;
    bottom: -17px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #ff9d00, #ff0000);
    border-radius: 50% 50% 20% 20%;
    opacity: 0.8;
    animation: thrust 0.5s ease-in-out infinite alternate;
  }
  
  @keyframes thrust {
    0% { height: 15px; opacity: 0.6; }
    100% { height: 25px; opacity: 0.8; }
  }
  
  .error-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
  }
  
  .error-message {
    font-size: 1rem;
    color: rgba(214, 188, 250, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #6E59A5;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
  }
  
  .home-button:hover {
    background: #9b87f5;
    box-shadow: 0 0 20px rgba(155, 135, 245, 0.4);
  }
  
  /* Other existing styles */
  .star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    z-index: 0;
  }
  
  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  @keyframes planet-spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .planet {
    animation: planet-spin 120s linear infinite;
  }
  