/* Reset default margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.error-container {
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a192f;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Matrix rain effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9));
    z-index: 1;
}

.error-content {
    text-align: center;
    background: rgba(17, 34, 64, 0.95);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #64ffda;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.1);
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    margin: 20px;
}

.error-illustration {
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
}

.error-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.error-content h1 {
    font-family: 'Fira Code', monospace;
    font-size: 120px;
    margin: 0;
    color: #64ffda;
    text-shadow: 2px 2px 8px rgba(100, 255, 218, 0.3);
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 3px 0 0 #ff0000, -3px 0 0 #0000ff;
    }
    2% {
        text-shadow: 3px 0 0 #ff0000, -3px 0 0 #0000ff;
        transform: translate(2px,0);
    }
    4% {
        text-shadow: -3px 0 0 #ff0000, 3px 0 0 #0000ff;
    }
    6% {
        text-shadow: -3px 0 0 #ff0000, 3px 0 0 #0000ff;
        transform: translate(-2px,0);
    }
    8% {
        text-shadow: none;
        transform: translate(0,0);
    }
    100% {
        text-shadow: none;
    }
}

.error-content h2 {
    font-family: 'Fira Code', monospace;
    font-size: 28px;
    margin: 15px 0;
    color: #ccd6f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-content p {
    color: #8892b0;
    margin: 25px 0;
    line-height: 1.8;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Fira Code', monospace;
}

.code-block {
    background: #112240;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #233554;
    position: relative;
}

.code-block::before {
    content: '// Error Details';
    color: #64ffda;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    position: absolute;
    top: -25px;
    left: 0;
}

.code-line {
    font-family: 'Fira Code', monospace;
    color: #8892b0;
    margin: 5px 0;
    font-size: 14px;
}

.code-line span {
    color: #64ffda;
}

.back-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #64ffda;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #64ffda;
    font-family: 'Fira Code', monospace;
    margin-top: 20px;
}

.back-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #64ffda;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Binary rain animation */
.binary {
    position: fixed;
    color: #233554;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: fall linear forwards;
}

@keyframes fall {
    from {
        transform: translateY(-100vh);
    }
    to {
        transform: translateY(100vh);
    }
}

/* Specific styles for 403 */
.error-403 .error-content h1 {
    color: #ff6b6b;
}

.error-403 .back-btn {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.error-403 .error-content {
    border-color: #ff6b6b;
}

/* Specific styles for 405 */
.error-405 .error-content h1 {
    color: #ffd93d;
}

.error-405 .back-btn {
    border-color: #ffd93d;
    color: #ffd93d;
}

.error-405 .error-content {
    border-color: #ffd93d;
}

/* Maintenance page styles */
.maintenance-container .error-content {
    border-color: #6c5ce7;
}

.maintenance-container .error-content h1 {
    color: #6c5ce7;
    font-size: 50px;
    margin-bottom: 20px;
}

.maintenance-progress {
    width: 100%;
    height: 20px;
    background: #112240;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a8a4e6);
    width: 0%;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 95%; }
}

.maintenance-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.maintenance-icon {
    font-size: 40px;
    color: #6c5ce7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .error-content h1 {
        font-size: 80px;
    }

    .error-content h2 {
        font-size: 22px;
    }

    .error-content {
        padding: 35px;
    }

    .error-illustration {
        width: 200px;
        height: 200px;
    }

    .code-block {
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .error-content {
        background: rgba(23, 32, 42, 0.95);
    }

    .error-content h2 {
        color: #ecf0f1;
    }

    .error-content p {
        color: #bdc3c7;
    }
} 