<!DOCTYPE html>
<html lang="en" class="dark scroll-smooth">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Elite FiveM RP</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .gradient-text {
            background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .gradient-bg {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
        }
        .neon-border {
            box-shadow: 0 0 10px #3b82f6, 0 0 20px #8b5cf6;
        }
        .animate-float {
            animation: float 6s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        .glass-effect {
            background: rgba(17, 24, 39, 0.7);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .particle {
            position: absolute;
            pointer-events: none;
            animation: particleFloat 15s infinite linear;
        }
        @keyframes particleFloat {
            0% { transform: translateY(0) rotate(0deg); }
            100% { transform: translateY(-100vh) rotate(360deg); }
        }
        .loading {
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
    </style>
    <script>
        async function fetchServerStatus() {
            try {
                const serverIP = 'play.eliterp.com';
                const serverPort = '30120';
                
                const response = await fetch(`http://${serverIP}:${serverPort}/players.json`);
                const players = await response.json();
                
                const maxPlayers = 128;
                const currentPlayers = players.length;
                
                const playerCount = document.getElementById('playerCount');
                const statusIndicator = document.getElementById('statusIndicator');
                const statusText = document.getElementById('statusText');
                
                playerCount.textContent = `${currentPlayers}/${maxPlayers}`;
                
                if (currentPlayers >= maxPlayers) {
                    playerCount.classList.add('text-red-400');
                    statusText.textContent = 'Full';
                    statusText.classList.add('text-red-400');
                    statusIndicator.classList.add('bg-red-500');
                } else if (currentPlayers > 0) {
                    playerCount.classList.remove('text-red-400');
                    statusText.textContent = 'Online';
                    statusText.classList.add('text-green-400');
                    statusIndicator.classList.add('bg-green-500');
                }
                
                document.getElementById('loadingText').classList.add('hidden');
                
            } catch (error) {
                console.error('Error fetching server status:', error);
                const playerCount = document.getElementById('playerCount');
                const statusText = document.getElementById('statusText');
                const statusIndicator = document.getElementById('statusIndicator');
                
                playerCount.textContent = 'Offline';
                playerCount.classList.add('text-red-400');
                statusText.textContent = 'Offline';
                statusText.classList.add('text-red-400');
                statusIndicator.classList.add('bg-red-500');
                document.getElementById('loadingText').classList.add('hidden');
            }
        }

        document.addEventListener('DOMContentLoaded', () => {
            fetchServerStatus();
            setInterval(fetchServerStatus, 30000);
        });

        // Copy to clipboard function
        function copyToClipboard(text) {
            navigator.clipboard.writeText(text).then(() => {
                const tooltip = document.getElementById('copyTooltip');
                tooltip.textContent = 'Copied!';
                setTimeout(() => {
                    tooltip.textContent = 'Click to copy';
                }, 2000);
            });
        }
    </script>
</head>
<body class="bg-gray-900 text-white">
    <!-- Particle Background -->
    <div class="fixed inset-0 overflow-hidden pointer-events-none">
        <div class="absolute inset-0">
            <i class="fas fa-code particle text-blue-500/20 text-2xl" style="left: 10%; animation-delay: 0s;"></i>
            <i class="fas fa-server particle text-purple-500/20 text-3xl" style="left: 20%; animation-delay: 2s;"></i>
            <i class="fas fa-database particle text-pink-500/20 text-xl" style="left: 30%; animation-delay: 4s;"></i>
            <i class="fas fa-network-wired particle text-green-500/20 text-2xl" style="left: 40%; animation-delay: 6s;"></i>
            <i class="fas fa-code-branch particle text-yellow-500/20 text-3xl" style="left: 50%; animation-delay: 8s;"></i>
            <i class="fas fa-microchip particle text-red-500/20 text-2xl" style="left: 60%; animation-delay: 10s;"></i>
        </div>
    </div>

    <!-- Notification System -->
    <div class="fixed bottom-4 right-4 z-50 space-y-4">
        <div class="glass-effect rounded-lg p-4 flex items-center space-x-4 animate-bounce">
            <i class="fas fa-gift text-yellow-400 text-xl"></i>
            <p class="text-white">Double XP Weekend Active!</p>
        </div>
    </div>

    <!-- Navigation -->
    <nav class="fixed w-full bg-gray-900/90 backdrop-blur-lg z-50 border-b border-blue-500/20">
        <div class="container mx-auto px-6 py-4">
            <div class="flex items-center justify-between">
                <div class="text-3xl font-bold gradient-text animate-pulse">
                    <i class="fas fa-gamepad mr-2"></i>Elite RP
                </div>
                <div class="hidden md:flex space-x-8">
                    <a href="#home" class="hover:text-blue-400 transition-all hover:scale-110">
                        <i class="fas fa-home mr-2"></i>Home
                    </a>
                    <a href="#features" class="hover:text-purple-400 transition-all hover:scale-110">
                        <i class="fas fa-star mr-2"></i>Features
                    </a>
                    <a href="#rules" class="hover:text-pink-400 transition-all hover:scale-110">
                        <i class="fas fa-scroll mr-2"></i>Rules
                    </a>
                    <a href="#store" class="hover:text-green-400 transition-all hover:scale-110">
                        <i class="fas fa-store mr-2"></i>Store
                    </a>
                </div>
                <div class="flex space-x-4">
                    <button class="bg-blue-600 hover:bg-blue-700 px-6 py-2 rounded-lg transition-all hover:scale-105 flex items-center">
                        <i class="fas fa-play mr-2"></i>Play Now
                    </button>
                </div>
            </div>
        </div>
    </nav>
    <!-- Hero Section -->
    <section id="home" class="min-h-screen flex items-center justify-center gradient-bg relative">
        <div class="absolute top-20 right-20 animate-float">
            <i class="fas fa-gamepad text-8xl text-blue-500/20"></i>
        </div>
        <div class="absolute bottom-20 left-20 animate-float" style="animation-delay: 2s;">
            <i class="fas fa-car text-8xl text-purple-500/20"></i>
        </div>
        <div class="container mx-auto px-6 text-center py-32">
            <div class="space-y-8">
                <h1 class="text-7xl font-bold mb-6 gradient-text animate-pulse">Elite FiveM RP</h1>
                <p class="text-2xl text-gray-300">Experience Premium Roleplay Gaming</p>
                <div class="flex justify-center space-x-6">
                    <button class="bg-blue-600 hover:bg-blue-700 px-8 py-4 rounded-lg transition-all hover:scale-105 group">
                        <i class="fas fa-server mr-2 group-hover:animate-spin"></i>Connect Now
                    </button>
                    <button class="bg-purple-600 hover:bg-purple-700 px-8 py-4 rounded-lg transition-all hover:scale-105">
                        <i class="fab fa-discord mr-2"></i>Join Discord
                    </button>
                </div>
                <div class="flex justify-center space-x-12 pt-12">
                    <div class="text-center">
                        <span class="text-4xl font-bold text-blue-400 block">1000+</span>
                        <span class="text-gray-400">Active Players</span>
                    </div>
                    <div class="text-center">
                        <span class="text-4xl font-bold text-purple-400 block">50+</span>
                        <span class="text-gray-400">Custom Cars</span>
                    </div>
                    <div class="text-center">
                        <span class="text-4xl font-bold text-pink-400 block">24/7</span>
                        <span class="text-gray-400">Support</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Server Status Section -->
    <section class="py-16 relative overflow-hidden">
        <div class="container mx-auto px-6">
            <div class="flex justify-center space-x-8">
                <!-- Server Status -->
                <div class="glass-effect rounded-xl p-6 flex items-center space-x-4">
                    <i class="fas fa-signal text-green-400 text-2xl"></i>
                    <div>
                        <h3 class="text-green-400">Server Status</h3>
                        <div class="flex items-center space-x-2">
                            <div id="statusIndicator" class="w-2 h-2 rounded-full bg-gray-500"></div>
                            <span id="statusText" class="text-white">Checking...</span>
                        </div>
                    </div>
                </div>

                <!-- Player Count -->
                <div class="glass-effect rounded-xl p-6 flex items-center space-x-4">
                    <i class="fas fa-users text-blue-400 text-2xl"></i>
                    <div>
                        <h3 class="text-blue-400">Players Online</h3>
                        <div class="flex flex-col">
                            <p class="text-white">
                                <span id="playerCount" class="font-medium">...</span>
                                <span id="loadingText" class="text-xs text-gray-400 loading">Loading...</span>
                            </p>
                            <span class="text-xs text-gray-400">Updates every 30s</span>
                        </div>
                    </div>
                </div>

                <!-- Server IP -->
                <div class="glass-effect rounded-xl p-6 flex items-center space-x-4 hover:scale-105 transition-transform cursor-pointer"
                     onclick="copyToClipboard('play.eliterp.com')">
                    <i class="fas fa-server text-purple-400 text-2xl"></i>
                    <div>
                        <h3 class="text-purple-400">Server IP</h3>
                        <p class="text-white">play.eliterp.com</p>
                        <span id="copyTooltip" class="text-xs text-gray-400">Click to copy</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Features Grid -->
    <section id="features" class="py-20 bg-gray-800/50 relative">
        <div class="absolute -right-20 top-1/2 transform -translate-y-1/2 opacity-10">
            <i class="fas fa-circle-nodes text-blue-500 text-[40rem]"></i>
        </div>
        <div class="container mx-auto px-6">
            <h2 class="text-5xl font-bold text-center mb-16 gradient-text">Premium Features</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <!-- Feature Cards -->
                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-blue-500/20 hover:border-blue-500/50">
                    <i class="fas fa-car text-5xl text-blue-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">Custom Vehicles</h3>
                    <p class="text-gray-300">High-performance custom vehicles with realistic handling</p>
                </div>
                
                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-purple-500/20 hover:border-purple-500/50">
                    <i class="fas fa-briefcase text-5xl text-purple-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">Custom Jobs</h3>
                    <p class="text-gray-300">Multiple career paths with unique progression systems</p>
                </div>

                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-pink-500/20 hover:border-pink-500/50">
                    <i class="fas fa-home text-5xl text-pink-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">Property System</h3>
                    <p class="text-gray-300">Own houses, businesses, and customize your properties</p>
                </div>

                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-green-500/20 hover:border-green-500/50">
                    <i class="fas fa-money-bill-wave text-5xl text-green-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">Economy System</h3>
                    <p class="text-gray-300">Balanced economy with multiple ways to earn</p>
                </div>

                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-yellow-500/20 hover:border-yellow-500/50">
                    <i class="fas fa-users text-5xl text-yellow-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">Gang System</h3>
                    <p class="text-gray-300">Create and manage your own gang with territory control</p>
                </div>

                <div class="bg-gray-800/80 p-8 rounded-xl hover:transform hover:scale-105 transition-all border border-red-500/20 hover:border-red-500/50">
                    <i class="fas fa-headset text-5xl text-red-500 mb-6"></i>
                    <h3 class="text-2xl font-bold mb-4">24/7 Support</h3>
                    <p class="text-gray-300">Professional staff team always ready to help</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Server Performance Section -->
<section class="py-16 bg-gray-800/50">
    <div class="container mx-auto px-6">
        <h2 class="text-4xl font-bold text-center mb-12 gradient-text">Server Performance</h2>
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
            <!-- Optimization Card -->
            <div class="glass-effect rounded-xl p-6 hover:transform hover:scale-105 transition-all">
                <div class="text-center mb-4">
                    <i class="fas fa-bolt text-yellow-400 text-4xl mb-4"></i>
                    <h3 class="text-xl font-bold text-yellow-400">Optimized Performance</h3>
                </div>
                <p class="text-gray-300 text-center">
                    Experience smooth gameplay with our optimized server configuration and high-performance infrastructure
                </p>
            </div>

            <!-- Hardware Card -->
            <div class="glass-effect rounded-xl p-6 hover:transform hover:scale-105 transition-all">
                <div class="text-center mb-4">
                    <i class="fas fa-microchip text-blue-400 text-4xl mb-4"></i>
                    <h3 class="text-xl font-bold text-blue-400">Premium Hardware</h3>
                </div>
                <p class="text-gray-300 text-center">
                    Powered by enterprise-grade hardware with dedicated resources for lag-free gaming
                </p>
            </div>

            <!-- Uptime Card -->
            <div class="glass-effect rounded-xl p-6 hover:transform hover:scale-105 transition-all">
                <div class="text-center mb-4">
                    <i class="fas fa-clock text-green-400 text-4xl mb-4"></i>
                    <h3 class="text-xl font-bold text-green-400">99.9% Uptime</h3>
                </div>
                <p class="text-gray-300 text-center">
                    Reliable server uptime with 24/7 monitoring and automatic backup systems
                </p>
            </div>
        </div>

        <!-- Additional Features -->
        <div class="mt-12 grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto">
            <div class="glass-effect rounded-xl p-6">
                <div class="flex items-center space-x-4 mb-4">
                    <i class="fas fa-shield-alt text-purple-400 text-2xl"></i>
                    <h3 class="text-xl font-bold text-purple-400">Anti-Cheat Protection</h3>
                </div>
                <p class="text-gray-300">
                    Advanced anti-cheat systems ensure fair gameplay and protect your experience
                </p>
            </div>

            <div class="glass-effect rounded-xl p-6">
                <div class="flex items-center space-x-4 mb-4">
                    <i class="fas fa-network-wired text-pink-400 text-2xl"></i>
                    <h3 class="text-xl font-bold text-pink-400">DDoS Protection</h3>
                </div>
                <p class="text-gray-300">
                    Enterprise-grade DDoS protection keeps our server secure and stable
                </p>
            </div>
        </div>

        <!-- Highlights -->
        <div class="mt-12 max-w-4xl mx-auto">
            <div class="glass-effect rounded-xl p-6">
                <h3 class="text-2xl font-bold mb-6 gradient-text text-center">Server Highlights</h3>
                <div class="grid grid-cols-2 md:grid-cols-4 gap-4 text-center">
                    <div>
                        <i class="fas fa-tachometer-alt text-blue-400 text-2xl mb-2"></i>
                        <p class="text-gray-300">Low Latency</p>
                    </div>
                    <div>
                        <i class="fas fa-memory text-purple-400 text-2xl mb-2"></i>
                        <p class="text-gray-300">32GB RAM</p>
                    </div>
                    <div>
                        <i class="fas fa-database text-green-400 text-2xl mb-2"></i>
                        <p class="text-gray-300">SSD Storage</p>
                    </div>
                    <div>
                        <i class="fas fa-server text-pink-400 text-2xl mb-2"></i>
                        <p class="text-gray-300">Dedicated CPU</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

    <!-- Community Section -->
    <section id="community" class="py-20 bg-gray-800/50">
        <div class="container mx-auto px-6 text-center">
            <h2 class="text-5xl font-bold mb-16 gradient-text">Join Our Community</h2>
            <div class="flex justify-center space-x-8 mb-16">
                <a href="#" class="p-6 rounded-xl bg-gray-800/80 hover:bg-gray-700 transition-all hover:scale-105 group">
                    <i class="fab fa-discord text-6xl text-blue-400 group-hover:animate-bounce"></i>
                    <p class="mt-4 text-xl">Discord</p>
                </a>
                <a href="#" class="p-6 rounded-xl bg-gray-800/80 hover:bg-gray-700 transition-all hover:scale-105 group">
                    <i class="fab fa-twitter text-6xl text-blue-400 group-hover:animate-bounce"></i>
                    <p class="mt-4 text-xl">Twitter</p>
                </a>
                <a href="#" class="p-6 rounded-xl bg-gray-800/80 hover:bg-gray-700 transition-all hover:scale-105 group">
                    <i class="fab fa-youtube text-6xl text-red-400 group-hover:animate-bounce"></i>
                    <p class="mt-4 text-xl">YouTube</p>
                </a>
            </div>

            <!-- Updates and Events -->
            <div class="grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto">
                <div class="glass-effect rounded-xl p-6">
                    <h3 class="text-2xl font-bold mb-4 gradient-text">Latest Updates</h3>
                    <div class="space-y-4">
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-circle-check text-green-400"></i>
                            <p class="text-gray-300">New vehicles added</p>
                        </div>
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-circle-check text-green-400"></i>
                            <p class="text-gray-300">Economy balance update</p>
                        </div>
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-circle-check text-green-400"></i>
                            <p class="text-gray-300">New jobs available</p>
                        </div>
                    </div>
                </div>
                
                <div class="glass-effect rounded-xl p-6">
                    <h3 class="text-2xl font-bold mb-4 gradient-text">Upcoming Events</h3>
                    <div class="space-y-4">
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-calendar text-blue-400"></i>
                            <p class="text-gray-300">Car Show - Saturday 8PM EST</p>
                        </div>
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-calendar text-blue-400"></i>
                            <p class="text-gray-300">Race Tournament - Sunday 9PM EST</p>
                        </div>
                        <div class="flex items-center space-x-4">
                            <i class="fas fa-calendar text-blue-400"></i>
                            <p class="text-gray-300">Police Training - Monday 7PM EST</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 py-8 border-t border-blue-500/20">
        <div class="container mx-auto px-6 text-center">
            <p class="text-gray-400">&copy; 2024 Elite FiveM RP. All rights reserved.</p>
        </div>
    </footer>
</body>
</html>
