:root {
    --primary-teal: #0a7377;
    --primary-teal-dark: #065558;
    --secondary-maroon: #8b1a32;
    --secondary-maroon-dark: #6d1427;
    --accent-gold: #e8a520;
    --white: #ffffff;
    --cream-warm: #faf8f5;
    --charcoal: #1e272e;
    
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--cream-warm);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--charcoal);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animated Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-1 {
    background: var(--primary-teal);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: var(--secondary-maroon);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: var(--accent-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 100px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Container */
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

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

/* Logo */
.logo {
    margin-bottom: 2rem;
}

.logo img {
    height: 80px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Error Text Branding */
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary-maroon) 0%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    /* Adding text shadow for glow via direct drop shadow filter */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

/* Message */
.error-heading {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-maroon);
}

.error-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* Button */
.home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-gold);
    color: var(--secondary-maroon-dark);
    padding: 1.1rem 2.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(232, 165, 32, 0.3);
    border: none;
}

.home-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(232, 165, 32, 0.4);
    background: var(--primary-teal);
    color: var(--white);
}

/* Floating Decoration Icons */
.floating-icon {
    position: absolute;
    color: var(--primary-teal);
    opacity: 0.1;
    z-index: -1;
    animation: iconFloat 10s infinite ease-in-out;
}

.icon-1 { top: 15%; left: 10%; font-size: 4rem; animation-delay: 0s; }
.icon-2 { top: 70%; left: 15%; font-size: 3rem; animation-delay: 2s; }
.icon-3 { top: 20%; right: 15%; font-size: 3.5rem; animation-delay: 4s; }
.icon-4 { top: 75%; right: 10%; font-size: 4.5rem; animation-delay: 1s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(20deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .error-code { font-size: 6.5rem; }
    .error-heading { font-size: 1.75rem; }
    .error-text { font-size: 1.05rem; }
    .home-button { padding: 1rem 2rem; font-size: 1rem; }
}
