body {
    margin: 0;
    padding: 0;
    color: #fff;
}

.error-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.error-code {
    font-size: 30px;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    padding-right: 24px;
}


.error-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.home-button, .contact-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-button {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.contact-button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.home-button:hover, .contact-button:hover {
    transform: translateY(-2px);
}

.home-button:hover {
    background: var(--primary-hover);
}

.contact-button:hover {
    border-color: var(--primary-color);
    background: rgba(138, 43, 226, 0.1);
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }
    20% {
        transform: skew(0deg);
    }
    21% {
        transform: skew(20deg);
        text-shadow: 
            3px 3px 0 var(--primary-color),
            -3px -3px 0 cyan;
    }
    22% {
        transform: skew(0deg);
    }
    90% {
        transform: skew(0deg);
    }
    91% {
        transform: skew(-10deg);
        text-shadow: 
            -3px 3px 0 var(--primary-color),
            3px -3px 0 cyan;
    }
    92% {
        transform: skew(0deg);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at center, var(--primary-color) 1px, transparent 1px),
        radial-gradient(circle at center, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.1;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-40px);
    }
}

.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(138, 43, 226, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    animation: glitchBg 8s ease infinite;
}

@keyframes glitchBg {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 8rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .home-button, .contact-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-content {
        padding: 1rem;
    }
}