<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Error - Dino Bernal</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0a0a14',
                        secondary: '#1a1a2e',
                        accent: '#e94560',
                        text: '#e0e0e0',
                        'light-bg': '#0f3460',
                        glass: 'rgba(255, 255, 255, 0.05)',
                        'glass-border': 'rgba(255, 255, 255, 0.1)',
                    },
                    fontFamily: {
                        heading: ['Playfair Display', 'serif'],
                        body: ['Source Sans 3', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
    <style>
        :root {
            --primary-color: #0a0a14;
            --secondary-color: #1a1a2e;
            --accent-color: #e94560;
            --text-color: #e0e0e0;
            --light-bg: #0f3460;
            --white: #ffffff;
            --footer-bg: #05050a;
            --heading-font: 'Playfair Display', serif;
            --body-font: 'Source Sans 3', sans-serif;
            --nav-bg: rgba(10, 10, 20, 0.85);
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
        }
        body {
            font-family: var(--body-font);
            line-height: 1.7;
            color: var(--text-color);
            background-color: var(--primary-color);
            overflow-x: hidden;
        }
        
        .navbar.scrolled {
            padding: 0.6rem 0 !important;
            background-color: rgba(10, 10, 20, 0.95) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .glass-morphism {
            background: var(--glass-bg);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid var(--glass-border);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
            color: var(--text-color);
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 30px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }
        
        .fade-in-up {
            animation: fadeInUp 0.8s ease-out both;
        }
        
        .delay-1 { animation-delay: 0.2s; }
        .delay-2 { animation-delay: 0.4s; }
        .delay-3 { animation-delay: 0.6s; }
    </style>
</head>
<body>
    <!-- Navigation -->
    <nav class="fixed top-0 left-0 right-0 z-50 transition-all duration-300 bg-primary/80 backdrop-blur-xl border-b border-glass-border py-6" id="mainNav">
        <div class="container mx-auto px-4 flex items-center justify-between">
            <a class="font-heading text-2xl font-bold text-white tracking-tight" href="/">Author Website</a>
            
            <!-- Mobile Toggle -->
            <button class="lg:hidden text-white" type="button" onclick="document.getElementById('navbarNav').classList.toggle('hidden')">
                <i class="bi bi-list text-3xl"></i>
            </button>

            <!-- Nav Links -->
            <div class="hidden lg:flex items-center space-x-8" id="navbarNav">
                <ul class="flex flex-col lg:flex-row items-center lg:space-x-8">
                    <li>
                        <a class="font-body font-semibold text-sm uppercase tracking-widest transition-colors hover:text-white relative group text-white/70" 
                           href="/">
                            Home
                            <span class="absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300 group-hover:w-full"></span>
                        </a>
                    </li>
                    <li>
                        <a class="font-body font-semibold text-sm uppercase tracking-widest transition-colors hover:text-white relative group text-white/70" 
                           href="/books">
                            Books
                            <span class="absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300 group-hover:w-full"></span>
                        </a>
                    </li>
                    <li>
                        <a class="font-body font-semibold text-sm uppercase tracking-widest transition-colors hover:text-white relative group text-white/70" 
                           href="/events">
                            Events
                            <span class="absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300 group-hover:w-full"></span>
                        </a>
                    </li>
                    <li>
                        <a class="font-body font-semibold text-sm uppercase tracking-widest transition-colors hover:text-white relative group text-white/70" 
                           href="/about">
                            About
                            <span class="absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300 group-hover:w-full"></span>
                        </a>
                    </li>
                    <li>
                        <a class="font-body font-semibold text-sm uppercase tracking-widest transition-colors hover:text-white relative group text-white/70" 
                           href="/contact">
                            Contact
                            <span class="absolute bottom-0 left-0 w-0 h-0.5 bg-accent transition-all duration-300 group-hover:w-full"></span>
                        </a>
                    </li>
                    <li class="mt-4 lg:mt-0">
                        <a href="/contact" class="bg-accent hover:bg-accent/90 text-white font-bold py-2 px-6 rounded-full transition-all hover:-translate-y-0.5 hover:shadow-lg hover:shadow-accent/30 text-sm">
                            Get In Touch
                        </a>
                    </li>
                </ul>
            </div>
        </div>

        <!-- Mobile Menu (Hidden by default) -->
        <div class="lg:hidden hidden bg-secondary/95 backdrop-blur-lg absolute top-full left-0 right-0 border-b border-glass-border p-4" id="mobileMenu">
             <ul class="flex flex-col space-y-4">
                 <li><a href="/" class="text-white block">Home</a></li>
                 <li><a href="/books" class="text-white block">Books</a></li>
                 <li><a href="/events" class="text-white block">Events</a></li>
                 <li><a href="/about" class="text-white block">About</a></li>
                 <li><a href="/contact" class="text-white block">Contact</a></li>
             </ul>
        </div>
    </nav>

    <!-- Main Content -->
    <main>
        <section class="relative py-24 md:py-32 bg-primary overflow-hidden min-h-[60vh] flex items-center">
            <div class="absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(233,69,96,0.1),transparent_70%)]"></div>
            <div class="container mx-auto px-4 relative z-10 text-center fade-in-up">
                <div class="mb-8">
                    <i class="bi bi-exclamation-triangle text-accent text-8xl"></i>
                </div>
                <h1 class="font-heading text-5xl md:text-7xl font-black text-white mb-6">Something Went Wrong</h1>
                <p class="font-heading text-xl md:text-2xl text-white/60 max-w-2xl mx-auto mb-12">No static resource sitemap.xml.</p>
                <a href="/" class="bg-accent hover:bg-accent/90 text-white font-bold py-4 px-10 rounded-full transition-all inline-block">
                    Return Home
                </a>
            </div>
        </section>
    </main>

    <!-- Floating Scroll Indicators -->
    <div id="scrollIndicatorContainer" class="fixed bottom-8 right-8 z-50 flex flex-col items-center space-y-4">
        <!-- Scroll Up Indicator -->
        <button id="globalScrollUp" onclick="window.scrollTo({top: 0, behavior: 'smooth'})" class="opacity-0 transition-all duration-500 pointer-events-none group flex flex-col items-center">
            <div class="bg-accent/20 border border-accent/30 p-3 rounded-full hover:bg-accent/40 transition-colors">
                <i class="bi bi-chevron-up text-accent text-xl"></i>
            </div>
            <span class="text-[10px] text-accent font-bold uppercase tracking-[0.2em] mt-2 [writing-mode:vertical-lr]">Top</span>
        </button>

        <!-- Scroll Down Indicator -->
        <div id="globalScrollIndicator" class="opacity-0 transition-all duration-500 pointer-events-none flex flex-col items-center">
            <span class="text-[10px] text-accent font-bold uppercase tracking-[0.2em] mb-2 [writing-mode:vertical-lr]">Scroll</span>
            <div class="bg-accent/20 border border-accent/30 p-3 rounded-full animate-bounce">
                <i class="bi bi-chevron-down text-accent text-xl"></i>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="bg-secondary/50 border-t border-glass-border pt-16 pb-8 mt-20">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-2 gap-12">
                <div>
                    <h5 class="font-heading text-xl font-bold text-white mb-6 border-l-4 border-accent pl-4">Author</h5>
                    <p class="text-text/80 max-w-md mb-8">Creative author of fiction books. Exploring the depths of imagination and storytelling through every page.</p>
                    
                    <div id="newsletter-footer">
                        <h6 class="text-white font-semibold mb-4 uppercase tracking-widest text-xs">Subscribe to Newsletter</h6>
                        
                        
                        
                        
                        <form action="/subscribe" method="post" class="flex items-center max-w-md">
                            <input type="hidden" name="referer" value="null#newsletter-footer">
                            <input type="email" name="email" class="bg-primary/50 border border-glass-border text-white text-sm rounded-l-lg focus:ring-accent focus:border-accent block w-full p-2.5 outline-none" placeholder="Enter your email" required>
                            <button type="submit" class="bg-accent hover:bg-accent/90 text-white font-bold py-2.5 px-6 rounded-r-lg transition-all text-sm">Join</button>
                        </form>
                    </div>
                </div>
                <div class="md:text-right">
                    <h5 class="font-heading text-xl font-bold text-white mb-6 md:border-r-4 md:border-l-0 border-l-4 border-accent px-4 md:pr-4">Connect</h5>
                    <div class="flex md:justify-end space-x-6 mb-8">
                        
                        
                        
                        
                    </div>
                </div>
            </div>
            <div class="mt-16 pt-8 border-t border-glass-border text-center text-text/50 text-sm">
                <p>&copy; <span>2026</span> <span>Author</span>. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <script>
        // Navbar scroll effect
        window.addEventListener('scroll', function() {
            if (window.scrollY > 50) {
                document.getElementById('mainNav').classList.add('scrolled');
            } else {
                document.getElementById('mainNav').classList.remove('scrolled');
            }
        });

        // Intersection Observer for scroll animations
        const observerOptions = {
            threshold: 0.1
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('animate__animated');
                    // Add the specific animation class if specified in data-animate
                    const animation = entry.target.dataset.animate || 'animate__fadeInUp';
                    entry.target.classList.add(animation);
                    observer.unobserve(entry.target);
                }
            });
        }, observerOptions);

        document.querySelectorAll('.scroll-reveal').forEach(el => {
            observer.observe(el);
        });

        // Global Scroll Indicators Logic
        const scrollIndicator = document.getElementById('globalScrollIndicator');
        const scrollUpBtn = document.getElementById('globalScrollUp');
        
        const checkScroll = () => {
            const scrollHeight = document.documentElement.scrollHeight;
            const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
            const clientHeight = document.documentElement.clientHeight;
            
            // Scroll Down indicator logic
            if (scrollHeight - scrollTop - clientHeight > 100) {
                scrollIndicator.classList.remove('opacity-0', 'pointer-events-none');
                scrollIndicator.classList.add('opacity-100');
            } else {
                scrollIndicator.classList.remove('opacity-100');
                scrollIndicator.classList.add('opacity-0', 'pointer-events-none');
            }

            // Scroll Up button logic - show after 500px of scrolling
            if (scrollTop > 500) {
                scrollUpBtn.classList.remove('opacity-0', 'pointer-events-none');
                scrollUpBtn.classList.add('opacity-100', 'pointer-events-auto');
            } else {
                scrollUpBtn.classList.remove('opacity-100', 'pointer-events-auto');
                scrollUpBtn.classList.add('opacity-0', 'pointer-events-none');
            }
        };

        window.addEventListener('scroll', checkScroll);
        window.addEventListener('resize', checkScroll);
        // Initial check
        setTimeout(checkScroll, 500);
    </script>
</body>
</html>
