<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="icon" href="trash.jpeg">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fast, Easy, Efficient</title> 
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="tailwindcss/main.js"></script>
    <script src="tailwindcss/landing.js"></script>
    <script src="tailwindcss/answer.js"></script>
</head>
<body class="bg-[rgb(15,15,15)] text-white min-h-screen flex flex-col items-center justify-between">
    <div class="landing-container">
        <div class="text-center px-4">
            <h1 class="text-4xl font-bold mb-6 slide-up" style="animation-delay: 0.2s">
                Welcome to TrashEltNGL
            </h1>
            <p class="text-lg text-gray-300 mb-8 max-w-lg mx-auto slide-up" style="animation-delay: 0.4s">
                Get instant access to verified answers. Please use responsibly and for educational purposes only.
            </p>
            <button id="continueBtn" class="bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-full font-medium transition-all duration-300 transform hover:scale-105 slide-up" style="animation-delay: 0.6s">
                Continue
            </button>
        </div>
    </div>

    <div class="options-container hidden fixed inset-0 bg-black/90 z-50 flex items-center justify-center">
        <div class="bg-[rgb(25,25,25)] p-8 rounded-xl max-w-md w-full mx-4">
            <h2 class="text-2xl font-bold mb-6 text-center">Customize Your Experience</h2>

            <div class="mb-6">
                <h3 class="text-lg font-semibold mb-4">Choose Background:</h3>
                <div class="grid grid-cols-2 gap-4">
                    <button class="bg-option p-4 rounded-lg border border-white/10 hover:border-blue-500 transition-all duration-300" data-bg="https://nicholasdevs.xyz/flytowardsyou.mp4">
                        <div class="aspect-video bg-black/50 rounded mb-2 overflow-hidden">
                            <video src="https://nicholasdevs.xyz/flytowardsyou.mp4" class="w-full h-full object-cover" muted loop></video>
                        </div>
                        <span class="text-sm">When I Fly Towards You</span>
                    </button>
                    <button class="bg-option p-4 rounded-lg border border-white/10 hover:border-blue-500 transition-all duration-300" data-bg="https://assets.codepen.io/3364143/7btrrd.mp4">
                        <div class="aspect-video bg-black/50 rounded mb-2 overflow-hidden">
                            <video src="https://assets.codepen.io/3364143/7btrrd.mp4" class="w-full h-full object-cover" muted loop></video>
                        </div>
                        <span class="text-sm">Abstract Waves</span>
                    </button>
                </div>
            </div>

            <div class="mb-8">
                <h3 class="text-lg font-semibold mb-4">Background Music:</h3>
                <div class="flex gap-4">
                    <button class="music-option flex-1 p-4 rounded-lg border border-white/10 hover:border-blue-500 transition-all duration-300" data-music="blue.mp3">
                        <span>Play Music (blue - yung kai)</span>
                    </button>
                    <button class="music-option flex-1 p-4 rounded-lg border border-white/10 hover:border-blue-500 transition-all duration-300" data-music="none">
                        <span>No Music</span>
                    </button>
                </div>
            </div>

            <button id="startAppBtn" class="w-full bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-full font-medium transition-all duration-300 transform hover:scale-105 opacity-50 cursor-not-allowed" disabled>
                Continue
            </button>
        </div>
    </div>
    
    <div class="copy-notification" id="copyNotification">
        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path>
        </svg>
        <span>Copied to clipboard!</span>
    </div>

    <video class="video-background" loop muted playsinline id="bg-video" preload="auto">
        <source src="https://nicholasdevs.xyz/flytowardsyou.mp4" type="video/mp4">
    </video>
    
    <audio id="bg-audio" loop>
        <source src="blue.mp3" type="audio/mp3">
        browser lo ga support mp3 kocag.
    </audio>

    <main class="flex-1 flex flex-col items-center justify-center w-full px-4 relative z-10">
        <div class="title mb-8 flex flex-col items-center fade-in">
            <img src="https://gallerypngs.com/wp-content/uploads/2024/12/Girl-Chill-Guy-Png-Image.png" 
                 width="50" 
                 class="float-animation mb-2 hover:rotate-180 transition-transform duration-500">
            <h1 class="text-4xl font-bold bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">
                TrashEltNGL
            </h1>
            <p class="text-white">Hiii👋! <span id="changing-text"></span></p>
        </div>

        <div class="mb-8 w-full max-w-2xl fade-in" style="animation-delay: 0.2s">
            <div class="flex flex-col sm:flex-row gap-4">
                <input type="text" 
                       class="input flex-1 rounded-full px-6 py-3 bg-white/5 border border-white/10 focus:border-blue-500 focus:outline-none transition-all duration-300"
                       placeholder="learn eltngl assignments link/id">
                <button class="get bg-white/10 hover:bg-white/20 rounded-full px-6 py-3 font-medium transition-all duration-300 transform hover:scale-105">
                    Get Answers
                </button>
            </div>
        </div>

        <div class="w-full max-w-3xl fade-in" style="animation-delay: 0.4s"> 
            <h3 class="ass text-xl font-semibold mb-4">Assignment</h3>
            <div class="output rounded-lg bg-white/5 p-6 overflow-x-auto border border-white/10 whitespace-pre-line">
            </div>
            <div class="nextAndPrev flex justify-center gap-4 mt-6">
                <button class="prev bg-white/10 hover:bg-white/20 rounded-full px-6 py-2 font-medium transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed transform hover:scale-105" disabled>
                    Previous
                </button>
                <button class="next bg-white/10 hover:bg-white/20 rounded-full px-6 py-2 font-medium transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed transform hover:scale-105" disabled>
                    Next
                </button>
            </div>
        </div>
    </main>

    <footer class="w-full py-6 px-4 border-t border-white/10 mt-12 relative z-10 bg-black/30 backdrop-blur-sm">
        <div class="max-w-4xl mx-auto flex flex-col sm:flex-row justify-between items-center gap-4">
            <div class="text-sm text-white/60">
                Partially contributed with ❤️ from <span class="text-white">Nicholas Developer</span>
            </div>
            <div class="flex gap-4">
                <a href="https://github.com/NicholasDevelopers" 
                   target="_blank"
                   class="text-white/60 hover:text-white transition-colors duration-300">
                    <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
                        <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
                    </svg>
                </a>
                <a href="https://nicholasdevs.xyz" 
                   target="_blank"
                   class="text-white/60 hover:text-white transition-colors duration-300">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"/>
                    </svg>
                </a>
                <a href="https://discord.com/users/1294237774500724736" 
                   target="_blank"
                   class="text-white/60 hover:text-white transition-colors duration-300">
                    <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
                        <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515a.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0a12.64 12.64 0 0 0-.617-1.25a.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057a19.9 19.9 0 0 0 5.993 3.03a.078.078 0 0 0 .084-.028a14.09 14.09 0 0 0 1.226-1.994a.076.076 0 0 0-.041-.106a13.107 13.107 0 0 1-1.872-.892a.077.077 0 0 1-.008-.128a10.2 10.2 0 0 0 .372-.292a.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127a12.299 12.299 0 0 1-1.873.892a.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028a19.839 19.839 0 0 0 6.002-3.03a.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.956-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419c0-1.333.955-2.419 2.157-2.419c1.21 0 2.176 1.096 2.157 2.42c0 1.333-.946 2.418-2.157 2.418z"/>
                    </svg>
                </a>
            </div>
        </div>
    </footer>

    <script src="js/server.js"></script>
    <script src="js/music.js"></script>
    <script src="js/animationtext.js"></script>
    <script src="js/landing.js"></script>
    <script type="module" src="js/cookie.js"></script>
    <script type="module" src="js/fetch.js"></script>
    <script type="module" src="js/help.js"></script>
    <script type="module">
      import { initializeHelpButton } from './js/help.js';
      
      document.addEventListener('DOMContentLoaded', initializeHelpButton);
    </script>
</body>
</html>