<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - Page Not Found | Tap2Order</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #0f0f1a;
            color: #e0e0e0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .error-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 40px 20px;
            position: relative;
            overflow: hidden;
        }
        .error-content { max-width: 560px; position: relative; z-index: 2; }

        .astronaut-wrapper {
            position: relative;
            width: 180px;
            height: 180px;
            margin: 0 auto 30px;
        }
        .planet {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 60px;
            background: radial-gradient(ellipse at center, rgba(230,57,70,0.25), transparent 70%);
            border-radius: 50%;
            animation: pulse-planet 3s ease-in-out infinite;
        }
        @keyframes pulse-planet {
            0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
            50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
        }
        .astronaut {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 80px;
            color: #e63946;
            animation: float-astronaut 4s ease-in-out infinite;
        }
        @keyframes float-astronaut {
            0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
            25% { transform: translateX(-50%) translateY(-12px) rotate(3deg); }
            50% { transform: translateX(-50%) translateY(-20px) rotate(0deg); }
            75% { transform: translateX(-50%) translateY(-12px) rotate(-3deg); }
        }
        .stars {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            pointer-events: none;
        }
        .star {
            position: absolute;
            width: 3px;
            height: 3px;
            background: #ffffff;
            border-radius: 50%;
            animation: twinkle 2s ease-in-out infinite;
        }
        .star:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
        .star:nth-child(2) { top: 30%; left: 75%; animation-delay: 0.5s; }
        .star:nth-child(3) { top: 60%; left: 10%; animation-delay: 1s; }
        .star:nth-child(4) { top: 20%; left: 55%; animation-delay: 1.5s; }
        .star:nth-child(5) { top: 70%; left: 85%; animation-delay: 0.3s; }
        .star:nth-child(6) { top: 45%; left: 40%; animation-delay: 0.8s; }
        .star:nth-child(7) { top: 80%; left: 30%; animation-delay: 1.2s; }
        .star:nth-child(8) { top: 10%; left: 90%; animation-delay: 0.6s; }
        @keyframes twinkle {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.5); }
        }

        .error-code {
            font-size: 140px;
            font-weight: 800;
            line-height: 1;
            background: linear-gradient(135deg, #e63946, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            letter-spacing: -4px;
        }
        .error-title {
            font-size: 28px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 12px;
        }
        .error-message {
            font-size: 16px;
            color: #8a8a9a;
            margin-bottom: 36px;
            line-height: 1.6;
        }
        .btn-home {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #e63946, #c0392b);
            color: #ffffff;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        .btn-home:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
            color: #ffffff;
        }
        .error-footer {
            text-align: center;
            padding: 24px;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .brand-text {
            font-size: 20px;
            font-weight: 700;
            color: #ffffff;
        }
        .brand-text span { color: #e63946; }
        .footer-powered {
            color: #555;
            font-size: 12px;
            margin-top: 8px;
        }
        .footer-powered a { color: #e63946; text-decoration: none; }
        .decoration-circle {
            position: absolute;
            border-radius: 50%;
            opacity: 0.04;
            pointer-events: none;
        }
        .decoration-circle.c1 {
            width: 400px; height: 400px;
            background: #3498db;
            top: -100px; left: -100px;
        }
        .decoration-circle.c2 {
            width: 300px; height: 300px;
            background: #e63946;
            bottom: -80px; right: -80px;
        }
    </style>
</head>
<body>

<div class="error-container">
    <div class="stars">
        <div class="star"></div><div class="star"></div><div class="star"></div>
        <div class="star"></div><div class="star"></div><div class="star"></div>
        <div class="star"></div><div class="star"></div>
    </div>
    <div class="decoration-circle c1"></div>
    <div class="decoration-circle c2"></div>
    <div class="error-content">
        <div class="astronaut-wrapper">
            <div class="astronaut">
                <i class="fas fa-satellite"></i>
            </div>
            <div class="planet"></div>
        </div>
        <div class="error-code">404</div>
        <h1 class="error-title">Page Not Found</h1>
        <p class="error-message">The page you're looking for doesn't exist or has been moved. Let's get you back on track.</p>
        <a href="../public/index.php" class="btn-home">
            <i class="fas fa-house"></i> Go to Home
        </a>
    </div>
</div>

<div class="error-footer">
    <div class="brand-text">Tap<span>2</span>Order</div>
    <div class="footer-powered">Powered by <a href="#">DigitalNext Gen</a></div>
</div>

</body>
</html>
