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

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #0a0e27;
color: #fff;
overflow-x: hidden;
min-height: 100vh;
position: relative;
}

.space-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
z-index: 1;
}

.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
pointer-events: none;
}

.star {
position: absolute;
background: white;
border-radius: 50%;
animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
0%, 100% { opacity: 0.3; transform: scale(1); }
50% { opacity: 1; transform: scale(1.2); }
}

.galaxy {
position: fixed;
top: 50%;
left: 50%;
width: 800px;
height: 800px;
margin: -400px 0 0 -400px;
background: radial-gradient(ellipse at center, rgba(88, 28, 135, 0.3) 0%, transparent 70%);
border-radius: 50%;
z-index: 2;
animation: rotate 120s linear infinite;
}

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

.planet {
position: fixed;
width: 150px;
height: 150px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 0 60px rgba(102, 126, 234, 0.6), inset -20px -20px 50px rgba(0, 0, 0, 0.4);
top: 15%;
right: 10%;
z-index: 3;
animation: float 6s ease-in-out infinite;
}

@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}

.planet::before {
content: '';
position: absolute;
width: 200px;
height: 40px;
border: 3px solid rgba(102, 126, 234, 0.4);
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotateX(75deg);
}

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

.error-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 60px 40px;
max-width: 600px;
width: 100%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 80px rgba(102, 126, 234, 0.2);
animation: fadeInUp 0.8s ease-out;
}

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

.error-code {
font-size: 120px;
font-weight: 900;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
animation: glitch 3s infinite;
line-height: 1;
}

@keyframes glitch {
0%, 98% { transform: translate(0); }
99% { transform: translate(-3px, 3px); }
100% { transform: translate(3px, -3px); }
}

.error-title {
font-size: 32px;
font-weight: 700;
margin-bottom: 20px;
color: #e0e7ff;
text-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.error-message {
font-size: 18px;
color: #a5b4fc;
margin-bottom: 40px;
line-height: 1.6;
}

.space-fact {
background: rgba(102, 126, 234, 0.1);
border-left: 3px solid #667eea;
padding: 20px;
border-radius: 8px;
margin: 30px 0;
font-size: 15px;
color: #c7d2fe;
text-align: left;
animation: slideIn 1s ease-out 0.3s both;
}

@keyframes slideIn {
from {
    opacity: 0;
    transform: translateX(-20px);
}
to {
    opacity: 1;
    transform: translateX(0);
}
}

.space-fact::before {
content: '🌌 Get in Touch with us!';
display: block;
font-weight: 700;
font-size: 12px;
color: #818cf8;
margin-bottom: 10px;
letter-spacing: 2px;
}

.return-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: white;
padding: 16px 48px;
font-size: 16px;
font-weight: 600;
border-radius: 50px;
cursor: pointer;
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.return-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}

.return-btn:hover::before {
left: 100%;
}

.return-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.return-btn:active {
transform: translateY(0);
}

.astronaut {
position: fixed;
width: 80px;
height: 80px;
top: 20%;
left: 15%;
z-index: 5;
animation: drift 15s ease-in-out infinite;
opacity: 0.6;
}

@keyframes drift {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(50px, -30px) rotate(10deg); }
50% { transform: translate(30px, 20px) rotate(-5deg); }
75% { transform: translate(-20px, -10px) rotate(5deg); }
}

.satellite {
position: fixed;
width: 60px;
height: 60px;
bottom: 25%;
right: 20%;
z-index: 5;
animation: orbit 20s linear infinite;
opacity: 0.5;
}

@keyframes orbit {
from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.glow-orb {
position: fixed;
width: 300px;
height: 300px;
border-radius: 50%;
background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
filter: blur(40px);
z-index: 2;
animation: pulse 4s ease-in-out infinite;
}

.glow-orb-1 {
top: 10%;
left: 20%;
}

.glow-orb-2 {
bottom: 20%;
right: 15%;
background: radial-gradient(circle, rgba(240, 147, 251, 0.3) 0%, transparent 70%);
animation-delay: 2s;
}

@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 0.3; }
50% { transform: scale(1.2); opacity: 0.5; }
}

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

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

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

.error-card {
    padding: 40px 30px;
}

.planet {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 5%;
}

.planet::before {
    width: 130px;
    height: 30px;
}

.astronaut, .satellite {
    display: none;
}
}

@media (max-width: 480px) {
.error-code {
    font-size: 60px;
}

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

.error-card {
    padding: 30px 20px;
}

.return-btn {
    padding: 14px 36px;
    font-size: 15px;
}

.space-fact {
    font-size: 14px;
    padding: 15px;
}
}

