<?php
// 500 Internal Server Error Page
http_response_code(500);

// Security headers

// Log the error (without exposing details)
error_log('500 Error triggered: ' . date('Y-m-d H:i:s') . ' - IP: ' . $_SERVER['REMOTE_ADDR'] . ' - URI: ' . $_SERVER['REQUEST_URI']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Service Temporarily Unavailable - UK AI Automation</title>
        <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=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&family=Lato:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<style>
        body {
            font-family: 'Arial', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            color: white;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .container {
            text-align: center;
            max-width: 600px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }
        h1 {
            font-size: 4rem;
            margin: 0 0 20px 0;
            font-weight: bold;
        }
        h2 {
            font-size: 1.5rem;
            margin: 0 0 30px 0;
            opacity: 0.9;
        }
        p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 30px;
            opacity: 0.8;
        }
        .btn {
            display: inline-block;
            padding: 15px 30px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
            font-weight: bold;
            margin: 0 10px;
        }
        .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-2px);
        }
        .logo {
            margin-bottom: 30px;
            opacity: 0.8;
        }
        .contact-info {
            margin-top: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }
    </style>
<link rel="stylesheet" href="/assets/css/main.css?v=20260222">
</head>
<body>
<?php include($_SERVER["DOCUMENT_ROOT"] . "/includes/nav.php"); ?>
    <div class="container">
        <div class="logo">
            <h3>UK AI Automation</h3>
        </div>
        <h1>500</h1>
        <h2>Service Temporarily Unavailable</h2>
        <p>We're experiencing technical difficulties. Our team has been notified and is working to resolve the issue.</p>
        
        <div style="margin: 30px 0;">
            <a href="/" class="btn">Try Again</a>
            <a href="mailto:info@ukaiautomation.co.uk" class="btn">Contact Support</a>
        </div>
        
        <div class="contact-info">
            <h3>Need Immediate Assistance?</h3>
            <p><strong>Phone:</strong> <br>
            <strong>Email:</strong> info@ukaiautomation.co.uk</p>
        </div>
    </div>
</body>
</html>