* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Dana';
    src: url('../../fonts/Dana-Regular.ttf') format('truetype');
}

body {
    min-height: 100vh;
    overflow: hidden;

    font-family: 'Dana', Tahoma, Arial, sans-serif;

    background: #080b14;
    color: #ffffff;
}

.container {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    position: relative;
    overflow: hidden;
}

/* =========================
    Background
========================= */

.blob {
    position: absolute;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.4;

    animation: move 8s ease-in-out infinite;
}

.blob.one {
    width: 350px;
    height: 350px;

    background: #6366f1;

    top: -120px;
    right: -100px;
}

.blob.two {
    width: 400px;
    height: 400px;

    background: #a855f7;

    bottom: -150px;
    left: -120px;

    animation-delay: -4s;
}

/* =========================
    Error Card
========================= */

.error-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 650px;

    padding: 60px 40px;

    text-align: center;

    border-radius: 28px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);

    animation: showCard 0.7s ease;
}

/* =========================
    Icon
========================= */

.icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 25px;

    font-size: 30px;

    border-radius: 20px;

    background: rgba(99, 102, 241, 0.15);

    border: 1px solid rgba(99, 102, 241, 0.3);

    animation: spin 4s linear infinite;
}

/* =========================
    Error Code / Title
========================= */

.error-code {
    direction: ltr;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
    background:
        linear-gradient(135deg,
            #ffffff,
            #a5b4fc,
            #c084fc);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: float 5s ease-in-out infinite;
}

/* =========================
    Typography
========================= */

h1 {
    font-size: clamp(28px, 5vw, 42px);

    line-height: 1.5;

    margin-bottom: 15px;
}

p {
    max-width: 480px;

    margin: 0 auto 35px;

    color: #a1a1aa;

    font-size: 17px;

    line-height: 2;
}

/* =========================
    Progress bar
========================= */

.progress-wrap {
    max-width: 400px;
    margin: 0 auto 35px;
}

.progress-track {
    width: 100%;
    height: 10px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);

    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 70%;

    border-radius: 20px;

    background: linear-gradient(135deg, #6366f1, #8b5cf6);

    animation: fill-pulse 2.5s ease-in-out infinite;
}

.progress-label {
    margin-top: 12px;

    font-size: 14px;
    color: #a1a1aa;
}

/* =========================
    Buttons
========================= */

.buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

button,
a {
    border: none;
    outline: none;

    padding: 14px 25px;

    border-radius: 12px;

    font-family: inherit;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    text-decoration: none;

    transition: 0.25s ease;
}

.home-btn {
    color: #ffffff;

    background:
        linear-gradient(135deg,
            #6366f1,
            #8b5cf6);

    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.35);
}

.home-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(99, 102, 241, 0.5);
}

.back-btn {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.12);
}

/* =========================
    Animations
========================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes move {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

@keyframes showCard {
    from {
        opacity: 0;

        transform:
            translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes fill-pulse {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

/* =========================
    Mobile
========================= */

@media (max-width: 600px) {
    .error-card {
        padding: 50px 20px;
    }

    .error-code {
        letter-spacing: -1px;
    }

    .buttons {
        flex-direction: column;
    }

    button,
    a {
        width: 100%;
    }
}