<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Yuri</title>
    <link rel="icon" type="image/x-icon" href="assets\icons\favicon.gif">
    <script disable-devtool-auto src='https://cdn.jsdelivr.net/npm/disable-devtool@latest'></script>
    <link href="https://fonts.cdnfonts.com/css/vcr-osd-mono" rel="stylesheet">
    <style>
        body {
            margin: 0;
            font-family: 'VCR OSD Mono', sans-serif;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            overflow: hidden;
            cursor: url('assets/cursor/cursor.cur'), auto;
            position: relative;
        }

        #videoBackground {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            display: none;
        }

        #gifBackground {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            z-index: -1;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: black;
            z-index: 10;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: opacity 1s ease-in-out;
        }

        .overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .fade-message {
            font-size: 2rem;
            color: white;
            text-align: center;
            animation: fadeText 1.5s infinite alternate;
        }

        @keyframes fadeText {
            from {
                opacity: 0.5;
            }
            to {
                opacity: 1;
            }
        }

        .background-blur-wrapper {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2rem; 
            border-radius: 25px;
        }

        .background-blur {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%; 
            height: 100%;
            backdrop-filter: blur(25px); 
            background: rgba(255, 255, 255, 0.08); 
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 25px; 
            z-index: -1;
        }

        .profile {
            display: flex;
            align-items: center;
            flex-direction: column;
            margin-bottom: 2rem;
            position: relative;
        }

        .profile img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-bottom: 0.5rem;
        }

        .profile .username {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(3, auto);
            gap: 1rem;
            justify-content: center;
            position: relative;
        }

        .card {
            background-color: rgba(26, 26, 26, 0.8);
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
        }

        .card a {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .card img {
            width: 40px;
            height: 40px;
            transition: transform 0.2s;
        }

        .card img:hover {
            transform: scale(1.1);
        }

        .custom-cursor {
            cursor: url('assets/cursor/cursor.cur'), auto;
        }
    </style>
</head>
<body>
    <video id="videoBackground" autoplay muted loop></video>
    <div id="gifBackground"></div>

    <div class="overlay" id="overlay">
        <div class="fade-message">Click Anywhere</div>
    </div>

    <div class="background-blur-wrapper">
        <div class="background-blur"></div>
        <div class="profile">
            <img src="assets\pfp\yuri.png" alt="Profile Picture">
            <span class="username">Yuri</span>
        </div>
        <div class="grid">
            <div class="card">
                <a href="https://discord.gg/BGCHKEgzJd" target="_blank">
                    <img src="assets\icons\discord.png" alt="Discord">
                </a>
            </div>
            <div class="card">
                <a href="https://t.me/defnotyuri" target="_blank">
                    <img src="assets\icons\telegram.png" alt="Telegram">
                </a>
            </div>
            <div class="card">
                <a href="https://discord.com/users/1319471026190549083" target="_blank">
                    <img src="assets\icons\discord.png" alt="Discord">
                </a>
            </div>
        </div>
    </div>

    <audio id="backgroundMusic" src="assets\music\yuri.mp3" preload="auto"></audio>

    <script>
        const backgroundFile = "assets/background/yuri.mp4";

        const videoBackground = document.getElementById("videoBackground");
        const gifBackground = document.getElementById("gifBackground");
        const overlay = document.getElementById("overlay");
        const music = document.getElementById("backgroundMusic");

        if (backgroundFile.endsWith(".mp4")) {
            videoBackground.src = backgroundFile;
            videoBackground.style.display = "block";
            videoBackground.pause();
        } else if (backgroundFile.endsWith(".gif")) {
            gifBackground.style.backgroundImage = `url('${backgroundFile}')`;
        }

        overlay.addEventListener("click", () => {
            overlay.classList.add("hidden");
            music.play(); 

            if (backgroundFile.endsWith(".mp4")) {
                videoBackground.play(); 
            }
        });
    </script>
</body>
</html>
