/* --- CSS Reset & Variables --- */
:root {
    --primary-navy: #0f172a;    /* Deep Navy */
    --accent-blue: #1e88e5;     /* Corporate Blue dari logo */
    --accent-yellow: #fbc02d;    /* Corporate Yellow dari logo */
    --white: #ffffff;
    --text-main: #f1f5f9;      /* Light text over dark bg */
    --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7); /* Dark Glassmorphism */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--primary-navy);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.error-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- VISUAL WRAPPER: ORBIT/CLOUD ANIMATION --- */
.visual-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 10rem;
    font-weight: 800;
    color: var(--accent-blue);
    position: relative;
    z-index: 2;
    letter-spacing: -8px;
    text-shadow: 0 0 20px rgba(30, 136, 229, 0.3);
    animation: float 4s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    width: 350px;
    height: 150px;
    border: 3px solid var(--accent-yellow);
    border-radius: 50%;
    transform: rotateX(70deg) rotateY(15deg);
    z-index: 1;
    opacity: 0.5;
    box-shadow: 0 0 15px var(--accent-yellow);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- CONTENT WRAPPER --- */
.error-content {
    text-align: left;
}

.error-logo {
    height: 50px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.error-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.highlight { color: var(--accent-blue); }

.error-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 45px;
    max-width: 500px;
}

/* Button Actions */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-home, .btn-sub {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-home {
    background-color: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(30, 136, 229, 0.3);
}

.btn-home:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
}

.btn-sub {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    transition: background var(--transition-speed);
}

.btn-sub:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* Quick Links */
.quick-links {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.quick-links span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.links {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
}

.links a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.links a:hover {
    text-decoration: underline;
}

/* Footer */
.error-footer {
    margin-top: auto;
    padding: 40px 0;
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Breakpoint (< 1024px) */
@media (max-width: 1024px) {
    .main-wrapper { padding: 80px 0; }
    .error-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }
    .visual-wrapper {
        margin: 0 auto;
        height: 250px;
        order: 1; /* Pindah ke bawah teks di mobile */
    }
    .error-content {
        text-align: center;
        order: 2; /* Pindah ke atas visual di mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .error-actions { justify-content: center; }
    .links { justify-content: center; }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Breakpoint (< 1024px) */
@media (max-width: 1024px) {
    .main-wrapper { padding: 80px 0; }
    .error-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }
    .visual-wrapper {
        margin: 0 auto;
        height: 250px;
    }
    .error-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .error-actions { justify-content: center; }
    .links { justify-content: center; }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
    .error-code { font-size: 8rem; letter-spacing: -6px; }
    .orbit-ring { width: 300px; height: 120px; }
    .visual-wrapper { height: 200px; }
    .error-content h1 { font-size: 2.3rem; }
    .error-actions { flex-direction: column; width: 100%; gap: 15px; }
    .btn-home, .btn-sub { width: 100%; justify-content: center; }
    .links { flex-direction: column; gap: 10px; }
}