/* ==========================================
   404 ERROR PAGE
   ========================================== */
.error-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
        url('../Assets/universe.gif') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding: 80px 20px 40px;
}

#error-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.error-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.error-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-code {
    margin-bottom: 30px;
}

.glitch {
    font-size: 150px;
    font-weight: bold;
    font-family: "Nata Sans", sans-serif;
    color: #fff;
    text-shadow: 0 0 30px rgba(92, 245, 92, 1);
    position: relative;
    display: inline-block;
    animation: glitch-animation 2s infinite;
}

@keyframes glitch-animation {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(92, 245, 92, 1);
    }

    25% {
        text-shadow:
            -2px 0 rgba(92, 245, 92, 0.8),
            2px 2px rgba(45, 122, 45, 0.8);
    }

    50% {
        text-shadow:
            2px -2px rgba(92, 245, 92, 0.8),
            -2px 2px rgba(45, 122, 45, 0.8);
    }

    75% {
        text-shadow:
            -2px -2px rgba(92, 245, 92, 0.8),
            2px 2px rgba(45, 122, 45, 0.8);
    }
}

.error-title {
    font-family: "Nata Sans", sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(92, 245, 92, 0.5);
}

.error-message {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.error-character {
    position: relative;
    margin: 40px auto;
    max-width: 300px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.error-character img {
    max-width: 250px;
    filter: drop-shadow(0 0 20px rgba(92, 245, 92, 0.6));
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.speech-bubble {
    background: rgba(92, 245, 92, 0.9);
    color: #000;
    padding: 15px 20px;
    border-radius: 20px;
    margin-top: 20px;
    position: relative;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    border: 3px solid rgba(45, 122, 45, 1);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgba(92, 245, 92, 0.9);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #5cf55c;
    color: #000;
    box-shadow: 0 5px 20px rgba(92, 245, 92, 0.4);
    border: 3px solid #2d7a2d;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(92, 245, 92, 0.6);
    background: #4ad84a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(92, 245, 92, 0.5);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(92, 245, 92, 0.2);
    border-color: #5cf55c;
    transform: translateY(-3px);
}

.error-hint {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
}

.error-hint code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    color: #5cf55c;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .error-code .glitch {
        font-size: 100px;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1.1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}