/* ============================================================
   404 ERROR PAGE - GLITCH TECH STYLE
   ============================================================ */
.error-page {
    background-color: #05010a;
    color: #fff;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Atmosphere */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(165, 148, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(165, 148, 253, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 148, 253, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

.error-content .heading-tag{
    justify-content: center;
}

/* --- THE GLITCH --- */
.glitch {
    position: relative;
    font-size: clamp(8rem, 22vw, 16rem);
    font-weight: 800;
    line-height: 0.8;
    color: #fff;
    letter-spacing: -0.05em;
    z-index: 1;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #05010a;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(45% 0 44% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 1% 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(40% 0 43% 0); }
    60% { clip-path: inset(10% 0 80% 0); }
    80% { clip-path: inset(60% 0 20% 0); }
    100% { clip-path: inset(10% 0 10% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(10% 0 80% 0); transform: translate(-5px); }
    50% { clip-path: inset(50% 0 10% 0); transform: translate(5px); }
    100% { clip-path: inset(10% 0 80% 0); transform: translate(-5px); }
}

/* Content Area */
.error-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
}

.error-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 20px 0;
}

.error-desc {
    color: #888;
    max-width: 550px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
}

.error-desc strong { color: #fff; }



.magnetic-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}


@media (max-width: 600px) {
    .error-desc { font-size: 16px; padding: 0 10px; }
    .error-title { font-size: 1.8rem; }
}