/* Base styles */
:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --bg-color: #111827;
    --text-color: #F3F4F6;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

html {
    font-size: 16px;
}

body {
    background: var(--bg-color);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Inter', sans-serif;
}

/* Particle styles */
.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Enhanced animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px var(--primary-color); }
    100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

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

/* Content styles */
.error-container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 100vh;
}

.error-code {
    font-size: clamp(4rem, 20vw, 12rem);
    font-weight: 900;
    color: var(--text-color);
    margin: 0 auto 0.5rem;
    animation: glow 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    line-height: 1;
    text-align: center;
}

.error-title {
    font-size: clamp(1.125rem, 5vw, 2rem);
    font-weight: 600;
    color: #D1D5DB;
    margin: 0 auto 1rem;
    animation: pulse 4s ease-in-out infinite;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

.error-message {
    color: #9CA3AF;
    margin: 0 auto 1.5rem;
    max-width: 32rem;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    font-size: clamp(0.875rem, 3vw, 1rem);
    padding: 0 1rem;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    min-width: clamp(140px, 40vw, 200px);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.home-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Tablet and Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .error-container {
        padding: 1.5rem;
        height: 100vh;
    }
    
    .error-code {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .error-container {
        padding: 1.25rem;
        height: 100vh;
    }
    
    .error-code {
        font-size: clamp(3.5rem, 18vw, 8rem);
    }
    
    .error-title {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 0.75rem;
    }
    
    .error-message {
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .home-button {
        padding: 0.875rem 1.75rem;
        min-width: clamp(130px, 35vw, 180px);
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 1rem;
        height: 100vh;
    }
    
    .error-code {
        font-size: clamp(3rem, 16vw, 6rem);
        margin-bottom: 0.5rem;
    }
    
    .error-title {
        font-size: clamp(0.9375rem, 3.5vw, 1.25rem);
        margin-bottom: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .error-message {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .home-button {
        width: 100%;
        max-width: 260px;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 360px) {
    .error-container {
        padding: 0.75rem;
        height: 100vh;
    }
    
    .error-code {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }
    
    .error-title {
        font-size: 0.875rem;
    }
    
    .error-message {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .home-button {
        max-width: 240px;
        padding: 0.625rem 1.25rem;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .error-container {
        padding: 1rem;
        height: 100vh;
    }
    
    .error-code {
        font-size: clamp(3rem, 12vh, 6rem);
        margin-bottom: 0.25rem;
    }
    
    .error-title {
        margin-bottom: 0.5rem;
    }
    
    .error-message {
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .home-button {
        padding: 0.625rem 1.25rem;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    
    .error-code {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    }
} 