// Loading screen // Navbar scroll effect // Mobile menu toggle // Close mobile menu when clicking on a link // Fade-in animation on scroll fadeInOnScroll(); // Check on initial load // Smooth scrolling for anchor links // Counter animation for stats // Progress bars animation // Testimonial slider // Update slides // Update dots // Dot navigation // Auto-advance testimonials // Create floating particles // Random size // Random position // Random animation duration and delay // Initialize animations when page is loaded // Create particles // Start counter animation when stats section is in view // Theme toggle functionality // Check for saved theme preference or use system preference // Update button text based on current theme // Initialize button text document.body.innerHTML = `

Server Overloaded

`; const messages = [ "Too many requests from clients...", "Database not responding...", "Timeout while processing orders...", "Connection to payment gateway failed...", "CPU usage: 99% - trying to recover...", "503 Service Temporarily Unavailable...", "Retrying in 5 seconds...", "Unexpected server crash detected...", "Auto-scaling failed to initialize...", "Memory overload - freeing resources..." ]; let index = 0; setInterval(() => { document.getElementById("error-text").textContent = messages[index % messages.length]; index++; }, 1500);