<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>X-Plosion | Free Download</title>
    <link rel="stylesheet" href="style.css">
    <link rel="icon" href="img/images.jpeg" type="image/x-icon">
    <style>
        body {
            margin: 0;
            font-family: 'Arial', sans-serif;
            color: #fff;
            background: #2c3e50;
            overflow: hidden;
        }

        /* Full-Page Background Animation */
        .background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, #2c3e50, #1a252f);
            z-index: -1;
        }

        .background::before,
        .background::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, #e74c3c, transparent);
            opacity: 0.2;
            animation: spin 10s linear infinite;
        }

        .background::after {
            animation-direction: reverse;
        }

        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        .container {
            text-align: center;
            position: relative;
            z-index: 1;
            transform: translateX(-100%);
            animation: slideIn 1.5s ease-out forwards;
        }

        @keyframes slideIn {
            to {
                transform: translateX(0);
            }
        }

        /* Floating Logo Animation */
        .logo {
            width: 150px;
            margin-top: 50px;
            animation: float 4s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-15px);
            }
        }

        .header {
            font-size: 3rem;
            font-weight: bold;
            color: #e74c3c;
            text-shadow: 0 0 10px #e74c3c, 0 0 20px #c0392b;
            animation: glow 1.5s infinite;
        }

        @keyframes glow {
            0%, 100% {
                text-shadow: 0 0 10px #e74c3c, 0 0 20px #c0392b;
            }
            50% {
                text-shadow: 0 0 20px #e74c3c, 0 0 30px #c0392b;
            }
        }

        .maintenance-text {
            font-size: 1.5rem;
            color: #ecf0f1;
            margin: 20px 0;
            opacity: 0;
            animation: fadeIn 2s forwards;
            animation-delay: 1s;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .back-home-btn {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(90deg, #c0392b, #e74c3c);
            color: #fff;
            font-size: 1.1rem;
            font-weight: bold;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px #c0392b;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 15px #c0392b;
            }
            50% {
                box-shadow: 0 0 25px #e74c3c;
            }
        }

        .back-home-btn:hover {
            background: linear-gradient(90deg, #e74c3c, #c0392b);
        }

        /* Loading Animation */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .loading span {
            display: block;
            width: 20px;
            height: 20px;
            margin: 0 10px;
            background: #e74c3c;
            border-radius: 50%;
            animation: bounceLoading 1.5s infinite;
        }

        .loading span:nth-child(2) {
            animation-delay: 0.3s;
        }

        .loading span:nth-child(3) {
            animation-delay: 0.6s;
        }

        @keyframes bounceLoading {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-20px);
            }
        }
    </style>
</head>
<body>
    <!-- Loading Animation -->
    <div class="loading">
        <span></span>
        <span></span>
        <span></span>
    </div>

    <!-- Background Animation -->
    <div class="background"></div>

    <!-- Content -->
    <div class="container">
        <!-- Logo -->
        <img src="img/a.png" alt="X-Plosion Logo" class="logo">

        <!-- Header Text -->
        <div class="header">Maintenance Mode</div>

        <!-- Maintenance Message -->
        <div class="maintenance-text">
            Sedang Maintenance, Maaf! <br>
            Kami sedang melakukan upgrade, harap tunggu sebentar.
        </div>

        <!-- Back to Home Button -->
        <button class="back-home-btn" onclick="window.location.href='index.html'">Kembali ke Home</button>
    </div>

    <script>
        // Loading screen disappears after 2.5 seconds
        window.onload = function () {
            setTimeout(() => {
                document.querySelector('.loading').style.display = 'none';
            }, 2500);
        };
    </script>
</body>
</html>
