* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: "Saira", "Inter", "Segoe UI", sans-serif;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #070e26 100%, #1e3a8a 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.background-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    animation: floatUp 15s infinite ease-in-out;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -150px;
    animation: floatUp 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: -8s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 25%;
    animation-duration: 14s;
    animation-delay: -3s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 45%;
    animation-duration: 16s;
    animation-delay: -11s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    left: 65%;
    animation-duration: 13s;
    animation-delay: -1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 80%;
    animation-duration: 15s;
    animation-delay: -6s;
}

.particle:nth-child(6) {
    width: 90px;
    height: 90px;
    left: 15%;
    animation-duration: 17s;
    animation-delay: -13s;
}

.particle:nth-child(7) {
    width: 55px;
    height: 55px;
    left: 55%;
    animation-duration: 14s;
    animation-delay: -4s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-110vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.icon-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(300px, 50vw, 800px);
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.05;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.error-container {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-number {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: #d2f801;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.error-message {
    font-size: clamp(16px, 3vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;
    padding: 22px 46px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-link i {
    margin-right: 8px;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .error-container {
        padding: 20px;
    }

    .back-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}