<?php
$pageTitle = "404 Not Found — FamGateway";
$baseDir = '/';
require_once __DIR__ . '/includes/header.php';
?>
<style>
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { display: flex; flex-direction: column; min-height: 100vh; background: #f6f8fb; color: #0f172a; font-family: 'Poppins', sans-serif; overflow-x: hidden; }
  
  .error-container {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 40px 24px;
  }
  .error-code {
    font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -4px;
    background: linear-gradient(135deg, #2563eb, #34d399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 24px;
  }
  .error-title {
    font-size: 32px; font-weight: 700; margin-bottom: 16px; color: #0f172a; letter-spacing: -0.5px;
  }
  .error-desc {
    font-size: 16px; color: #64748b; margin-bottom: 40px; max-width: 400px; line-height: 1.6;
  }
  .btn-home {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: #2563eb; color: #fff;
    border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none;
    transition: all 0.15s; box-shadow: 0 4px 14px rgba(37,99,235,0.25);
  }
  .btn-home:hover {
    background: #1d4ed8; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
  }
</style>
</head>
<body>
  
<div class="error-container">
  <div class="error-code">404</div>
  <h1 class="error-title">Page not found</h1>
  <p class="error-desc">Oops! The page you are looking for doesn't exist, has been removed, or is temporarily unavailable.</p>
  <a href="/" class="btn-home">
    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
    Back to Homepage
  </a>
</div>

</body>
</html>
