<!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;
            animation: fadeIn 1s ease forwards;
        }

        @keyframes fadeIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

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

        .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;
            animation: fadeInStars 3s ease forwards;
        }

        @keyframes fadeInStars {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

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

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

        .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;
            animation: fadeInText 1s ease forwards;
        }

        .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);
            animation: fadeInVersionText 1.5s ease forwards;
        }

        .buttons-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 3em;
            font-family: 'Passion One', cursive;
            animation: fadeInButtons 2s ease forwards;
        }

        .button {
            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);
            position: relative;
            overflow: hidden;
        }

        .button: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), inset 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .emoji {
            font-size: 2.5rem;
            margin-bottom: 5px;
        }

        .label {
            font-weight: 600;
            text-transform: uppercase;
        }
    </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" class="button">
                <span class="emoji">🎮</span>
                <span class="label">Games</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/info" class="button">
                <span class="emoji">ℹ️</span>
                <span class="label">Info</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/notifications" class="button">
                <span class="emoji">🔔</span>
                <span class="label">Notifications</span>
            </a>
            <a href="https://sites.google.com/view/cometxd/proxies" class="button">
                <span class="emoji">🌐</span>
                <span class="label">Proxies</span>
            </a>
        </div>
    </div>
    <script>
        // Initialization and interaction logic for stars
        function createStars() {
            const space = document.getElementById("space");
            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)];

                // Adding a click event to create a ripple effect
                star.addEventListener("click", (e) => {
                    const ripple = document.createElement("div");
                    ripple.classList.add("ripple");
                    ripple.style.width = `${size * 10}px`;  // Make the ripple effect larger than the star itself
                    ripple.style.height = `${size * 10}px`;
                    ripple.style.left = `${e.clientX - size * 5}px`;  // Center the ripple effect on the cursor
                    ripple.style.top = `${e.clientY - size * 5}px`;
                    document.body.appendChild(ripple);
                    setTimeout(() => {
                        ripple.remove();  // Remove the ripple effect after 1 second
                    }, 1000);
                });

                space.appendChild(star);
            }
        }

        // Call createStars function to populate the background with stars
        createStars();
    </script>
</body>
</html>
