<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>@yield('title') - {{ config('app.name') }}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800;900&display=swap" rel="stylesheet">
    <style>
        :root {
            --grad-1: #ff0055;
            --grad-2: #4361ee;
            --grad-3: #4cc9f0;
        }
        html, body {
            overflow: hidden;
            width: 100%;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        @keyframes move {
            from { transform: translate(0, 0) scale(1) rotate(0deg); }
            to { transform: translate(50px, 50px) scale(1.2) rotate(30deg); }
        }
        .error-card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 2px solid rgba(255, 255, 255, 0.6);
            padding: 70px 40px;
            box-shadow: 0 40px 100px rgba(0,0,0,0.07);
            text-align: center;
            width: 90%;
            max-width: 550px;
            z-index: 10;
        }
        .error-code {
            font-size: clamp(7rem, 35vw, 13rem);
            font-weight: 900 !important;
            line-height: 1;
            margin-bottom: 30px;
            letter-spacing: -15px;
            -webkit-text-stroke: 2px transparent;
            background: linear-gradient(to right, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-1));
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shine 4s linear infinite, float 4s ease-in-out infinite;
        }
        @keyframes shine {
            to { background-position: 200% center; }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-25px); }
        }
        .error-title {
            font-weight: 800;
            font-size: 1.6rem;
            color: #0f172a;
            margin-bottom: 15px;
            letter-spacing: -0.5px;
        }
        .error-message {
            color: #475569;
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 40px;
            max-width: 450px;
            margin-left: auto;
            margin-right: auto;
        }
        .btn-home {
            background: #0f172a;
            color: #ffffff;
            padding: 15px 50px;
            font-weight: 800;
            text-decoration: none;
            display: inline-block;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
            font-size: 1rem;
            text-transform: uppercase;
        }
        .btn-home:hover {
            transform: translateY(-8px);
            background: #000000;
            color: #ffffff;
            box-shadow: 0 25px 50px rgba(15, 23, 42, 0.3);
        }
        @media (max-width: 480px) {
            .error-card { padding: 50px 25px; }
            .error-code { font-size: 7.5rem; letter-spacing: -5px; }
            .error-title { font-size: 1.6rem; }
            .error-message { font-size: 1rem; }
            .btn-home {
                width: 100%;
                padding: 13px 25px;
            }
        }
    </style>
</head>
<body>
    <div class="error-card">
        <div class="error-code">@yield('code')</div>
        <h1 class="error-title">@yield('title')</h1>
        <p class="error-message">@yield('message')</p>
        <a href="{{ url('/') }}" class="btn-home">
            HOME
        </a>
    </div>
</body>
</html>