<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Comet V1</title>
    <link href="https://fonts.googleapis.com/css2?family=Rubik+Dirt&family=Passion+One:wght@700&display=swap" rel="stylesheet">
    <style>
        body, html {
            margin: 0;
            padding: 0;
            overflow: hidden;
            height: 100vh;
            background: black;
            font-family: 'Rubik Dirt', sans-serif;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .space {
            position: fixed;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
            background: radial-gradient(circle at 50% 50%, #000022, #000010, #000);
        }

        .star {
            position: absolute;
            background-color: white;
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
            cursor: pointer;
        }

        .star:hover {
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
        }

        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            transform: scale(0);
            animation: rippleEffect 1s ease-out forwards;
        }

        @keyframes rippleEffect {
            0% {
                transform: scale(0);
                opacity: 1;
            }
            100% {
                transform: scale(3);
                opacity: 0;
            }
        }

        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            text-align: center;
        }

        .text {
            margin: 0;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 7vw;
            color: white;
            background: linear-gradient(90deg, #5a4fcf, #7851a9);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: transform 0.5s ease, filter 0.5s ease;
        }

        .text:hover {
            transform: scale(1.07);
            filter: drop-shadow(0 0 15px rgba(90, 77, 207, 0.8)) drop-shadow(0 0 30px rgba(120, 81, 169, 0.6));
        }

        .version-text {
            font-size: 5vw;
            font-weight: 600;
            margin-top: 20px;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .buttons-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin-top: 3em;
            font-family: 'Passion One', sans-serif;
        }

        .buttons-container a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            width: 180px;
            height: 120px;
            text-decoration: none;
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.2rem;
            font-weight: bold;
            background: linear-gradient(135deg, #5a4fcf, #6d89c9);
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
            transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.7s ease, background 0.7s ease;
            position: relative;
            overflow: hidden;
        }

        .buttons-container a span:first-child {
            font-size: 2.5rem;
            margin-bottom: 5px;
        }

        .buttons-container a:hover {
            transform: scale(1.15) translateY(-10px) rotate(1deg);
            background: linear-gradient(135deg, #625ecb, #8aa8d9);
            box-shadow: 0 25px 50px rgba(90, 77, 207, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .notification {
            position: fixed;
            top: 15px;
            right: 15px;
            padding: 20px;
            max-width: 300px;
            background: linear-gradient(135deg, rgba(150, 200, 255, 0.6), rgba(200, 230, 255, 0.5));
            backdrop-filter: blur(20px);
            border-radius: 15px;
            color: white;
            z-index: 10;
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
            transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
        }

        .notification:hover {
            transform: scale(1.07);
            filter: brightness(1.2);
            box-shadow: 0 10px 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(150, 200, 255, 0.6);
        }

        .notification a {
            display: inline-block;
            margin-top: 10px;
            padding: 10px 15px;
            font-size: 1rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
            background: linear-gradient(135deg, rgba(170, 220, 255, 0.6), rgba(255, 255, 255, 0.8));
            border-radius: 10px;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
        }

        .notification a:hover {
            transform: scale(1.15);
            box-shadow: 0 10px 15px rgba(255, 255, 255, 0.4);
        }

        .close-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 1.5rem;
            font-weight: bold;
            color: white;
            background: none;
            border: none;
            cursor: pointer;
            transition: transform 0.3s ease, color 0.3s ease;
        }

        .close-btn:hover {
            transform: scale(1.1);
            color: #ff6666;
        }
    </style>
</head>
<body>
    <div class="space" id="space"></div>

    <div class="container">
        <div class="text comet-text">Comet</div>
        <div class="text version-text">V2</div>

        <div class="buttons-container">
            <a href="https://sites.google.com/view/cometxd/games">
                <span>🎮</span>
                <span>Games</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/info">
                <span>ℹ️</span>
                <span>Info</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/notifications">
                <span>🔔</span>
                <span>Notifications</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/proxies">
                <span>🌐</span>
                <span>Proxies</span>
            </a>
        </div>
    </div>

    <div class="notification" id="notification">
        <button class="close-btn" id="closeNotification">×</button>
        <h3>Unclassified (old site)</h3>
        <p>Explore our old non-rebranded site! </p>
        <a href="https://sites.google.com/view/unclassified" target="_blank">Visit Now</a>
    </div>

    <script>
        const notification = document.getElementById('notification');
        const closeBtn = document.getElementById('closeNotification');

        closeBtn.addEventListener('click', () => {
            notification.style.opacity = '0';
            notification.style.transform = 'scale(0.8)';
            notification.style.filter = 'blur(15px)';
            setTimeout(() => {
                notification.style.display = 'none';
            }, 800);
        });

        // Stars Logic
        const space = document.getElementById("space");

        function createStars() {
            const colors = ['white', '#add8e6', '#ffcc00', '#ffa07a', '#ff4500'];
            const starCount = 100;

            for (let i = 0; i < starCount; i++) {
                const star = document.createElement("div");
                star.classList.add("star");
                const size = Math.random() * 2 + 1;
                star.style.width = `${size}px`;
                star.style.height = `${size}px`;
                star.style.left = `${Math.random() * window.innerWidth}px`;
                star.style.top = `${Math.random() * window.innerHeight}px`;
                star.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                space.appendChild(star);

                let isDragging = false;

                star.addEventListener("mousedown", () => {
                    isDragging = true;
                    star.style.transition = "none";
                });

                document.addEventListener("mousemove", (e) => {
                    if (isDragging) {
                        star.style.left = `${e.clientX}px`;
                        star.style.top = `${e.clientY}px`;
                    }
                });

                document.addEventListener("mouseup", () => {
                    if (isDragging) {
                        isDragging = false;
                        star.style.transition = "transform 0.3s ease, background-color 0.3s ease";
                        star.style.left = `${Math.random() * window.innerWidth}px`;
                        star.style.top = `${Math.random() * window.innerHeight}px`;
                    }
                });

                star.addEventListener("click", (e) => {
                    const ripple = document.createElement("div");
                    ripple.classList.add("ripple");
                    ripple.style.width = ripple.style.height = "20px";
                    ripple.style.left = `${e.clientX - 10}px`;
                    ripple.style.top = `${e.clientY - 10}px`;
                    space.appendChild(ripple);

                    setTimeout(() => ripple.remove(), 1000);
                });
            }
        }

        createStars();
    </script>
</body>
</html>
