<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>403 Forbidden</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: linear-gradient(to bottom, #111, #000);
            color: #ffffff;
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            text-align: center;
            overflow: hidden;
        }

        .container {
            max-width: 70%;
            animation: fadeIn 1.5s ease-in-out;
        }

        h1 {
            font-size: 4em;
            color: #ff4d4d;
            text-shadow: 0 0 20px #ff1a1a, 0 0 30px #ff0000;
            margin-bottom: 20px;
        }

        p {
            font-size: 1.5em;
            color: #cccccc;
            margin: 15px 0;
        }

        .warning {
            font-size: 1.2em;
            color: #ffffff;
            font-weight: bold;
            background: #ff4d4d;
            padding: 10px 20px;
            border-radius: 5px;
            display: inline-block;
            box-shadow: 0 0 10px #ff1a1a;
        }

        .divider {
            height: 2px;
            background: #444;
            margin: 20px auto;
            width: 60%;
        }

        footer {
            margin-top: 30px;
            color: #666666;
            font-size: 0.9em;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>403 FORBIDDEN</h1>
        <div class="divider"></div>
        <p>ACCESS DENIED</p>
        <p><strong>WARNING:</strong> You are attempting unauthorized access.</p>
        <p class="warning">Your IP Address: <span id="user-ip">Retrieving...</span></p>
        <p>Incident ID: 2025-403-<span id="incident-number"></span></p>
        <p>All activities are monitored and logged. Intrusion attempts will not go unnoticed.</p>
        <footer>&copy; 2025 Secure Systems Division | Violations of site policy will be reported.</footer>
    </div>

    <script>
        // Generate a random incident number
        const incidentNumber = Math.floor(Math.random() * 90000) + 10000;
        document.getElementById('incident-number').textContent = incidentNumber;

        // Fetch and display the user's real IP address
        fetch('https://api.ipify.org?format=json')
            .then(response => response.json())
            .then(data => {
                document.getElementById('user-ip').textContent = data.ip;
            })
            .catch(() => {
                document.getElementById('user-ip').textContent = 'Unavailable';
            });
    </script>
</body>
</html>
