<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Meditation-portal Error 404</title>
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Preloads untuk Font Dinamis -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Merriweather:wght@400;700&family=Montserrat:wght@400;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=Open+Sans:wght@400;600;700&family=Playfair+Display:wght@400;600;700&family=Roboto+Slab:wght@400;600;700&display=swap" rel="stylesheet">

    <style>
        :root {
            --theme-primary: #697762;
            --theme-bg: #f4f6f3;
            --theme-text: #394036;
            --font-heading: 'Montserrat', sans-serif;
            --font-body: 'Inter', sans-serif;
        }

        body {
            font-family: var(--font-body) !important;
            background-color: var(--theme-bg) !important;
            color: var(--theme-text) !important;
        }

        h1, h2, h3 {
            font-family: var(--font-heading) !important;
        }

        .text-primary-color { color: var(--theme-primary) !important; }
        .bg-primary-color { background-color: var(--theme-primary) !important; color: #fff !important; }

        .error-section { display: none; }
        .error-section.active { display: flex; animation: fadeIn 0.4s ease-out; }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body class="min-h-screen flex items-center justify-center p-4 selection:bg-black/10 selection:text-current">

<!-- 404 Not Found -->
<div id="error-404" class="error-section flex-col items-center max-w-2xl w-full text-center">
    <div class="mb-8 relative">
        <h1 class="text-9xl font-black text-black/5 tracking-tighter select-none">404</h1>
        <div class="absolute inset-0 flex items-center justify-center">
            <div class="bg-black/5 p-4 rounded-2xl backdrop-blur-sm border border-black/5">
                <svg class="w-12 h-12 text-primary-color" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0zM13 10H7"></path>
                </svg>
            </div>
        </div>
    </div>
    <h2 class="text-3xl font-bold mb-4">Page Not Found</h2>
    <p class="text-lg text-current opacity-70 mb-10 max-w-lg mx-auto">
        The article or page you are looking for on <span class="font-semibold">Meditation-portal</span> might have been removed, had its name changed, or is temporarily unavailable.
    </p>
    <div class="flex flex-col sm:flex-row gap-4 justify-center">
        <a href="/" class="bg-primary-color px-8 py-3.5 rounded-full font-semibold transition-all hover:-translate-y-0.5 hover:shadow-lg flex items-center justify-center gap-2">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
            Return to Homepage
        </a>
        <button onclick="window.history.back()" class="bg-black/5 text-current px-8 py-3.5 rounded-full font-semibold transition-all hover:bg-black/10 flex items-center justify-center gap-2">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path></svg>
            Go Back
        </button>
    </div>
</div>

<!-- 500 Internal Server Error -->
<div id="error-500" class="error-section flex-col max-w-2xl w-full">
    <div class="flex items-center gap-4 mb-6">
        <div class="bg-black/5 p-3 rounded-lg text-primary-color">
            <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.384-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"></path>
            </svg>
        </div>
        <div>
            <h1 class="text-2xl font-bold">System Maintenance</h1>
            <p class="text-current opacity-70">Error Code: 500</p>
        </div>
    </div>
    <div class="bg-white rounded-2xl shadow-sm border border-black/5 p-8 mb-6">
        <p class="text-lg text-current opacity-80 leading-relaxed mb-6">
            Our servers at <span class="font-semibold">Meditation-portal</span> are currently undergoing scheduled maintenance or experiencing unexpected difficulties. We are working to restore service as quickly as possible.
        </p>
        <div class="bg-black/5 rounded-lg p-4">
            <h3 class="font-semibold mb-2 flex items-center gap-2 text-sm">
                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
                What you can do:
            </h3>
            <ul class="text-sm text-current opacity-70 space-y-2 ml-6 list-disc">
                <li>Refresh this page in a few minutes.</li>
                <li>Check your internet connection.</li>
                <li>If the problem persists, please try again later.</li>
            </ul>
        </div>
    </div>
    <div class="flex justify-between items-center px-2">
        <a href="/" class="text-primary-color font-medium hover:underline flex items-center gap-1">
            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
            Back to Home
        </a>
        <button onclick="window.location.reload()" class="bg-primary-color text-white px-6 py-2.5 rounded-full text-sm font-semibold transition-all hover:opacity-90 shadow-sm">
            Try Again
        </button>
    </div>
</div>

<!-- Generic Error -->
<div id="error-generic" class="error-section flex-col items-center max-w-md w-full text-center">
    <div class="bg-black/5 w-20 h-20 rounded-full flex items-center justify-center mb-6 border border-black/5">
        <svg class="w-10 h-10 text-primary-color" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
        </svg>
    </div>
    <h1 class="text-3xl font-bold mb-3">Something went wrong</h1>
    <p class="text-current opacity-70 mb-8">
        An unexpected error (404) occurred on <span class="font-semibold">Meditation-portal</span>. We apologize for the inconvenience.
    </p>
    <a href="/" class="bg-primary-color px-8 py-3 rounded-full font-semibold transition-all hover:opacity-90 text-white">
        Go to Homepage
    </a>
</div>

<script>
    document.addEventListener('DOMContentLoaded', () => {
        const errorCode = '404';

        // Hide all sections first
        document.querySelectorAll('.error-section').forEach(el => el.classList.remove('active'));

        // Show the appropriate section
        if (errorCode === '404') {
            document.getElementById('error-404').classList.add('active');
        } else if (errorCode === '500') {
            document.getElementById('error-500').classList.add('active');
        } else {
            document.getElementById('error-generic').classList.add('active');
        }
    });
</script>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d30756379166d26',t:'MTc3MTk1MTc5MA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
</html>