<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MR. Hicham Loukili - Complete Book Collection | 25+ Books in 5 Languages</title>
    <meta name="description" content="Discover MR. Hicham Loukili's complete collection of 25+ books including microwave cooking guides, educational workbooks, professional logbooks, coloring books, and fiction. Available in English, Dutch, French, Spanish, and German.">
    <meta name="keywords" content="Hicham Loukili, microwave cooking, educational workbooks, aviation logbook, coloring books, Word Ladder Wizards, Dutch, French, Spanish, German">
    <style>
        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
            color: white;
            padding: 40px 0;
            text-align: center;
        }

        header img {
            border-radius: 50%;
            margin-bottom: 20px;
            border: 4px solid rgba(255,255,255,0.2);
        }

        header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        header p {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
        }

        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: #63b3ed;
        }

        .stat-label {
            font-size: 1rem;
            opacity: 0.8;
        }

        /* Hero Section */
        .hero {
            background: white;
            padding: 60px 0;
            text-align: center;
        }

        .hero h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: #2d3748;
        }

        .hero p {
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto 30px;
            color: #4a5568;
        }

        .cta-button {
            display: inline-block;
            background: #3182ce;
            color: white;
            padding: 12px 25px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            margin: 0 10px 10px;
            transition: background 0.3s;
        }

        .cta-button:hover {
            background: #2c5aa0;
        }

        /* Category Filter */
        .category-filter {
            background: white;
            padding: 30px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .filter-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .filter-title {
            text-align: center;
            margin-bottom: 20px;
            color: #2d3748;
        }

        .search-container {
            position: relative;
            max-width: 600px;
            margin: 0 auto 20px;
        }

        /* Books Section */
        .books-section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2rem;
            color: #2d3748;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .book-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            padding: 20px;
            opacity: 0;
            transform: scale(0.95);
        }

        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .book-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .category-tag {
            background: #3182ce;
            color: white;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 0.8rem;
            display: inline-block;
        }

        .book-card h3 {
            margin-bottom: 10px;
            font-size: 1.2rem;
            color: #2d3748;
        }

        .price {
            font-weight: bold;
            color: #3182ce;
            margin-bottom: 10px;
        }

        .description {
            color: #4a5568;
            margin-bottom: 15px;
            font-size: 0.95rem;
        }

        .meta {
            font-size: 0.85rem;
            color: #718096;
            margin-bottom: 15px;
        }

        .amazon-link {
            display: inline-block;
            background: #ff9900;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background 0.3s;
        }

        .amazon-link:hover {
            background: #e68a00;
        }

        .book-card.hidden {
            display: none;
        }

        /* Features Section */
        .features {
            background: #1a202c;
            color: white;
            padding: 60px 0;
        }

        .features h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .feature {
            text-align: center;
            padding: 20px;
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
        }

        .feature h3 {
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .feature p {
            color: rgba(255,255,255,0.8);
        }

        /* Amazon Author Link */
        .amazon-author-link {
            background: white;
            padding: 40px 0;
            text-align: center;
        }

        .amazon-author-link h3 {
            margin-bottom: 20px;
            color: #2d3748;
        }

        .amazon-author-link a {
            display: inline-block;
            background: #ff9900;
            color: white;
            padding: 12px 25px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: background 0.3s;
        }

        .amazon-author-link a:hover {
            background: #e68a00;
        }

        /* Footer */
        footer {
            background: #2d3748;
            color: white;
            padding: 30px 0;
            text-align: center;
        }

        footer p {
            opacity: 0.8;
        }

        .footer-legal {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .footer-legal a {
            color: rgba(255,255,255,0.85);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.2s;
        }

        .footer-legal a:hover {
            color: white;
            text-decoration: underline;
        }

        /* Search and Filter Styles */
        #bookSearch {
            width: 100%;
            padding: 14px 20px 14px 45px;
            border: 2px solid #e2e8f0;
            border-radius: 50px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23718096" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>') no-repeat 18px center;
            background-size: 16px;
        }

        #bookSearch:focus {
            outline: none;
            border-color: #3182ce;
            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
        }

        #searchClear {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #718096;
            cursor: pointer;
            font-size: 1.2rem;
            display: none;
            padding: 4px 8px;
            border-radius: 4px;
        }

        #searchClear:hover {
            color: #1a202c;
        }

        #searchClear.visible {
            display: block;
        }

        .filter-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .filter-btn {
            background: #e2e8f0;
            color: #4a5568;
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            flex-shrink: 0;
        }

        .filter-btn:hover, .filter-btn.active {
            background: #3182ce;
            color: white;
            transform: translateY(-1px);
        }

        /* Cookie Consent Banner */
        #cookie-consent {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #2d3748;
            color: white;
            padding: 1.5rem;
            text-align: center;
            z-index: 10000;
            box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        #cookie-consent.visible {
            transform: translateY(0);
        }

        .cookie-content {
            max-width: 800px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .cookie-text {
            line-height: 1.6;
        }

        .cookie-text a {
            color: #63b3ed;
            text-decoration: underline;
        }

        .cookie-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cookie-btn {
            padding: 8px 20px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .cookie-accept {
            background: #3182ce;
            color: white;
        }

        .cookie-accept:hover {
            background: #2c5aa0;
        }

        .cookie-settings {
            background: transparent;
            color: #63b3ed;
            border: 1px solid #63b3ed;
        }

        .cookie-settings:hover {
            background: rgba(99, 179, 237, 0.1);
        }

        /* Legal Modals */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 100000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.visible {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            width: 100%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            position: relative;
            animation: modalSlide 0.4s ease;
        }

        @keyframes modalSlide {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header {
            padding: 20px;
            background: #1a202c;
            color: white;
            border-radius: 16px 16px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin: 0;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s;
            padding: 0;
            margin: 0;
        }

        .modal-close:hover {
            background: rgba(255,255,255,0.15);
        }

        .modal-body {
            padding: 25px;
            line-height: 1.7;
            color: #2d3748;
        }

        .modal-section {
            margin-bottom: 25px;
        }

        .modal-section h3 {
            color: #1a202c;
            margin-bottom: 12px;
            font-size: 1.3rem;
        }

        .modal-section p {
            margin-bottom: 12px;
            line-height: 1.6;
        }

        .modal-section ul {
            padding-left: 25px;
            margin-bottom: 15px;
        }

        .modal-section li {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .modal-footer {
            padding: 20px;
            text-align: center;
            border-top: 1px solid #e2e8f0;
            background: #f7fafc;
            border-radius: 0 0 16px 16px;
        }

        .modal-accept-btn {
            background: #3182ce;
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 1rem;
        }

        .modal-accept-btn:hover {
            background: #2c5aa0;
        }

        .effective-date {
            color: #718096;
            font-size: 0.85rem;
            margin-top: 5px;
            display: block;
        }

        /* Floating Newsletter Popup */
        #newsletter-popup {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            padding: 25px;
            width: 350px;
            z-index: 999999;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        #newsletter-popup.visible {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .popup-close {
            position: absolute;
            top: 12px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            transition: color 0.2s;
            z-index: 10;
            padding: 4px;
            border-radius: 4px;
        }

        .popup-close:hover, .popup-close:focus {
            color: #e74c3c;
            background: #f8f9fa;
            outline: none;
        }

        .popup-content h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #2c3e50;
            font-size: 1.4rem;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .newsletter-form input[type="email"] {
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s;
            width: 100%;
            box-sizing: border-box;
        }

        .newsletter-form input[type="email"]:focus {
            outline: none;
            border-color: #3182ce;
            box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
        }

        .newsletter-form button {
            background: #3182ce;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
        }

        .newsletter-form button:hover:not(:disabled),
        .newsletter-form button:focus:not(:disabled) {
            background: #2980b9;
            outline: none;
        }

        .newsletter-form button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .consent-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 10px 0;
        }

        .consent-checkbox input {
            margin-top: 4px;
            min-width: 16px;
            min-height: 16px;
            cursor: pointer;
        }

        .consent-checkbox label {
            font-size: 0.85rem;
            color: #4a5568;
            line-height: 1.4;
            cursor: pointer;
        }

        .consent-checkbox a {
            color: #3182ce;
            text-decoration: none;
            font-weight: 500;
        }

        .consent-checkbox a:hover {
            text-decoration: underline;
        }

        .status-message {
            padding: 10px;
            border-radius: 8px;
            margin-top: 8px;
            display: none;
            text-align: center;
            font-weight: 500;
            width: 100%;
        }

        .status-message.success {
            background: #d4edda;
            color: #155724;
            display: block;
        }

        .status-message.error {
            background: #f8d7da;
            color: #721c24;
            display: block;
        }

        .privacy-notice {
            font-size: 0.75rem;
            color: #7f8c8d;
            text-align: center;
            margin: 12px 0 0;
            line-height: 1.4;
        }

        .privacy-notice a {
            color: #3182ce;
            text-decoration: none;
            font-weight: 500;
        }

        .privacy-notice a:hover {
            text-decoration: underline;
        }

        .privacy-link {
            color: #e53e3e;
            font-weight: 600;
        }

        /* Cookie Settings Switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e2e8f0;
            transition: .4s;
            border-radius: 22px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #3182ce;
        }

        input:checked + .slider:before {
            transform: translateX(18px);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            #newsletter-popup {
                width: calc(100% - 40px);
                bottom: 15px;
                right: auto;
                left: 15px;
            }
            
            .modal-content {
                margin: 10px;
                max-height: 95vh;
            }
            
            .cookie-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            #bookSearch {
                padding: 14px 15px 14px 40px;
                font-size: 0.95rem;
            }

            .hero-stats {
                gap: 20px;
            }

            .stat-number {
                font-size: 2rem;
            }

            header h1 {
                font-size: 2rem;
            }

            .hero h2 {
                font-size: 1.7rem;
            }

            .section-title {
                font-size: 1.7rem;
            }

            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 480px) {
            .modal-body {
                padding: 20px 15px;
            }
            
            .cookie-content {
                padding: 0 15px;
            }
            
            .modal-section h3 {
                font-size: 1.2rem;
            }
            
            .popup-content h3 {
                font-size: 1.3rem;
            }
            
            .modal-title {
                font-size: 1.3rem;
            }
            
            .newsletter-form button {
                padding: 10px;
                font-size: 15px;
            }

            .hero-stats {
                flex-direction: column;
                gap: 15px;
            }

            .cta-button {
                display: block;
                margin: 10px auto;
                width: 80%;
            }

            .book-card {
                padding: 15px;
            }
        }
    </style>
</head>
<body>
    <!-- Cookie Consent Banner -->
    <div id="cookie-consent">
        <div class="cookie-content">
            <div class="cookie-text">
                We use cookies to enhance your browsing experience and analyze our traffic. By clicking "Accept All", you consent to our use of cookies. 
                <a href="#" id="cookie-policy-link">Cookie Policy</a>
            </div>
            <div class="cookie-buttons">
                <button class="cookie-btn cookie-accept">Accept All</button>
                <button class="cookie-btn cookie-settings">Settings</button>
            </div>
        </div>
    </div>

    <!-- Legal Modals -->
    <!-- Privacy Policy Modal -->
    <div id="privacy-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">Privacy Policy</h2>
                <button class="modal-close" aria-label="Close privacy policy">&times;</button>
            </div>
            <div class="modal-body">
                <p class="effective-date">Effective Date: November 8, 2025</p>
                <div class="modal-section">
                    <h3>1. Information We Collect</h3>
                    <p>When you subscribe to our newsletter or interact with our website, we may collect:</p>
                    <ul>
                        <li>Email addresses provided through our subscription forms</li>
                        <li>IP address for security and anti-spam purposes</li>
                        <li>Technical information (browser type, device information)</li>
                        <li>Usage data (pages visited, time spent on site)</li>
                    </ul>
                    <p>We collect this information with your explicit consent and only for legitimate purposes.</p>
                </div>
                <div class="modal-section">
                    <h3>2. How We Use Your Information</h3>
                    <p>We use the information we collect to:</p>
                    <ul>
                        <li>Send you newsletters and updates about new book releases</li>
                        <li>Improve our website and user experience</li>
                        <li>Prevent spam and ensure website security</li>
                        <li>Comply with legal obligations</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>3. Data Sharing and Disclosure</h3>
                    <p>We do not sell, trade, or rent your personal information to third parties. We may share information with:</p>
                    <ul>
                        <li>Service providers who assist in operating our website (e.g., email service providers)</li>
                        <li>Legal authorities when required by law</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>4. Your Rights</h3>
                    <p>You have the right to:</p>
                    <ul>
                        <li>Access the personal information we hold about you</li>
                        <li>Correct inaccurate information</li>
                        <li>Request deletion of your information</li>
                        <li>Withdraw consent at any time</li>
                        <li>Opt-out of marketing communications</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>5. Data Security</h3>
                    <p>We implement appropriate security measures to protect your personal information. However, no method of transmission over the Internet is 100% secure.</p>
                </div>
                <div class="modal-section">
                    <h3>6. Contact Us</h3>
                    <p>If you have any questions about this Privacy Policy, please contact us.</p>
                </div>
            </div>
            <div class="modal-footer">
                <button class="modal-accept-btn" id="privacy-accept-btn">I Understand</button>
            </div>
        </div>
    </div>

    <!-- Terms of Service Modal -->
    <div id="tos-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">Terms of Service</h2>
                <button class="modal-close" aria-label="Close terms of service">&times;</button>
            </div>
            <div class="modal-body">
                <p class="effective-date">Effective Date: November 8, 2025</p>
                <div class="modal-section">
                    <h3>1. Acceptance of Terms</h3>
                    <p>By accessing and using this website, you accept and agree to be bound by these Terms of Service.</p>
                </div>
                <div class="modal-section">
                    <h3>2. Intellectual Property</h3>
                    <p>All content on this website, including text, images, and book descriptions, is the property of MR. Hicham Loukili and is protected by copyright laws.</p>
                </div>
                <div class="modal-section">
                    <h3>3. User Conduct</h3>
                    <p>You agree not to:</p>
                    <ul>
                        <li>Use the website for any unlawful purpose</li>
                        <li>Attempt to gain unauthorized access to any part of the website</li>
                        <li>Interfere with the proper functioning of the website</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>4. Third-Party Links</h3>
                    <p>This website contains links to third-party websites, including Amazon. We are not responsible for the content or practices of these websites.</p>
                </div>
                <div class="modal-section">
                    <h3>5. Limitation of Liability</h3>
                    <p>We are not liable for any damages arising from your use of this website or the information contained herein.</p>
                </div>
                <div class="modal-section">
                    <h3>6. Changes to Terms</h3>
                    <p>We reserve the right to modify these terms at any time. Continued use of the website after changes constitutes acceptance of the modified terms.</p>
                </div>
            </div>
            <div class="modal-footer">
                <button class="modal-accept-btn" id="tos-accept-btn">I Accept</button>
            </div>
        </div>
    </div>

    <!-- Cookie Policy Modal -->
    <div id="cookie-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">Cookie Policy</h2>
                <button class="modal-close" aria-label="Close cookie policy">&times;</button>
            </div>
            <div class="modal-body">
                <p class="effective-date">Effective Date: November 8, 2025</p>
                <div class="modal-section">
                    <h3>1. What Are Cookies</h3>
                    <p>Cookies are small text files that are stored on your device when you visit a website. They help the website remember your preferences and improve your browsing experience.</p>
                </div>
                <div class="modal-section">
                    <h3>2. How We Use Cookies</h3>
                    <p>We use cookies to:</p>
                    <ul>
                        <li>Remember your preferences and settings</li>
                        <li>Analyze how you use our website</li>
                        <li>Prevent spam and ensure security</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>3. Types of Cookies We Use</h3>
                    <ul>
                        <li><strong>Essential Cookies:</strong> Necessary for the website to function properly</li>
                        <li><strong>Analytics Cookies:</strong> Help us understand how visitors interact with our website</li>
                        <li><strong>Preference Cookies:</strong> Remember your settings and preferences</li>
                    </ul>
                </div>
                <div class="modal-section">
                    <h3>4. Managing Cookies</h3>
                    <p>You can control cookies through your browser settings. However, disabling cookies may affect the functionality of our website.</p>
                </div>
            </div>
            <div class="modal-footer">
                <button class="modal-accept-btn" id="cookie-accept-btn">I Understand</button>
            </div>
        </div>
    </div>

    <!-- Cookie Settings Modal -->
    <div id="cookie-settings-modal" class="modal">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">Cookie Settings</h2>
                <button class="modal-close" aria-label="Close cookie settings">&times;</button>
            </div>
            <div class="modal-body">
                <div class="modal-section">
                    <p>You can customize your cookie preferences below:</p>
                </div>
                <div class="modal-section">
                    <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;">
                        <div>
                            <h3 style="margin: 0;">Essential Cookies</h3>
                            <p style="margin: 5px 0 0; font-size: 0.9rem; color: #718096;">Required for the website to function</p>
                        </div>
                        <label class="switch">
                            <input type="checkbox" checked disabled>
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;">
                        <div>
                            <h3 style="margin: 0;">Analytics Cookies</h3>
                            <p style="margin: 5px 0 0; font-size: 0.9rem; color: #718096;">Help us improve our website</p>
                        </div>
                        <label class="switch">
                            <input type="checkbox" id="analytics-cookies" checked>
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div style="display: flex; justify-content: space-between; align-items: center;">
                        <div>
                            <h3 style="margin: 0;">Marketing Cookies</h3>
                            <p style="margin: 5px 0 0; font-size: 0.9rem; color: #718096;">Used for personalized advertising</p>
                        </div>
                        <label class="switch">
                            <input type="checkbox" id="marketing-cookies">
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="modal-accept-btn" id="save-cookie-settings">Save Preferences</button>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <header>
        <div class="container">
            <img src="all_book_covers/Hicham.png" alt="The Author" width="100px"/>
        </div>
        <div class="container">
            <h1>MR. Hicham Loukili</h1>
            <p>Multi-Genre Author & Educator | 5 Languages | 25+ Publications</p>
            <div class="hero-stats">
                <div class="stat">
                    <div class="stat-number">25+</div>
                    <div class="stat-label">Books Published</div>
                </div>
                <div class="stat">
                    <div class="stat-number">5</div>
                    <div class="stat-label">Languages</div>
                </div>
                <div class="stat">
                    <div class="stat-number">6</div>
                    <div class="stat-label">Categories</div>
                </div>
            </div>
        </div>
    </header>

    <section class="hero">
        <div class="container">
            <h2>Complete Book Collection Across Multiple Disciplines</h2>
            <p>From microwave cooking guides that serve families in 5 languages to educational workbooks that build academic foundations, coloring books that inspire creativity, and fiction that captivates readers worldwide. Each book represents years of research, expertise, and passion for sharing knowledge.</p>
            <a href="#books" class="cta-button">Explore All Books</a>
            <a href="https://www.amazon.com/stores/MR-Hicham-Loukili/author/B0FBFD7YVG/allbooks" class="cta-button" target="_blank" rel="noopener">Shop All on Amazon</a>
        </div>
    </section>

    <div class="category-filter">
        <div class="filter-container">
            <h3 class="filter-title">Find Your Perfect Book</h3>
            <div class="search-container">
                <input type="text" id="bookSearch" class="search-input" placeholder="Search by title, description, or category...">
                <button id="searchClear" class="search-clear" aria-label="Clear search">&times;</button>
            </div>
            <div class="filter-buttons">
                <button class="filter-btn active" data-category="all">All Books</button>
                <button class="filter-btn" data-category="cooking">Cooking Guides</button>
                <button class="filter-btn" data-category="educational">Educational Workbooks</button>
                <button class="filter-btn" data-category="professional">Professional Logbooks</button>
                <button class="filter-btn" data-category="coloring">Coloring Books</button>
                <button class="filter-btn" data-category="fiction">Fiction & Non-Fiction</button>
            </div>
        </div>
    </div>

    <section id="books" class="books-section">
        <div class="container">
            <h2 class="section-title">Complete Book Collection</h2>
            <div class="books-grid" id="booksGrid">
                <!-- MICROWAVE COOKING GUIDES -->
                <div class="book-card" data-category="cooking" data-search="microwave cooking guide recipes without pork alcohol">
                    <img src="all_book_covers/microwave_cooking_guide_cover.jpg" alt="Complete Microwave Cooking Guide" class="book-image">
                    <span class="category-tag">Cooking Guide</span>
                    <h3>🍳 Complete Microwave Cooking Guide</h3>
                    <div class="price">$6.99 Kindle | $9.99 Paperback</div>
                    <div class="description">100 Easy, Delicious Recipes Without Pork or Alcohol. Fast, healthy, and flavorful meals for every occasion. Available in 5 languages.</div>
                    <div class="meta">132 pages | English | Sept 2025</div>
                    <a href="https://www.amazon.com/Complete-Microwave-Cooking-Guide-Delicious-ebook/dp/B0FSPMHYZB" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="cooking" data-search="complete magnetron kookgids dutch recipes halal">
                    <img src="all_book_covers/Complete_Magnetron_Kookgids.jpg" alt="Complete Magnetron Kookgids" class="book-image">
                    <span class="category-tag">Cooking Guide</span>
                    <h3>🥘 Complete Magnetron Kookgids</h3>
                    <div class="price">$5.81 Kindle | $11.61 Paperback</div>
                    <div class="description">100+ Snelle en Halal Recepten zonder Varkensvlees of Alcohol. Heerlijke gerechten, snacks en desserts uit de magnetron.</div>
                    <div class="meta">218 pages | Dutch | Oct 2025</div>
                    <a href="https://www.amazon.com/Complete-Magnetron-Kookgids-Varkensvlees-Heerlijke-ebook/dp/B0FXVT69Z2" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="cooking" data-search="guide complet cuisine micro-ondes french halal">
                    <img src="all_book_covers/Guide_Complet_de_la_Cuisine_au_Micro-ondes.jpg" alt="Guide Complet Cuisine Micro-ondes" class="book-image">
                    <span class="category-tag">Cooking Guide</span>
                    <h3>🍰 Guide Complet Cuisine Micro-ondes</h3>
                    <div class="price">$4.99 Kindle | $11.62 Paperback</div>
                    <div class="description">100+ Recettes Faciles, Rapides et Halal pour Tous les Jours. Recettes sans porc ni alcool pour étudiants.</div>
                    <div class="meta">142 pages | French | Oct 2025</div>
                    <a href="https://www.amazon.com/Guide-Complet-Cuisine-Micro-ondes-%C3%A9tudiants-ebook/dp/B0FXVT3C8C" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="cooking" data-search="guia completa cocina microondas spanish halal">
                    <img src="all_book_covers/Guia_Completa_de_Cocina_con_Microondas.jpg" alt="Guía Completa Cocina Microondas" class="book-image">
                    <span class="category-tag">Cooking Guide</span>
                    <h3>🌮 Guía Completa Cocina Microondas</h3>
                    <div class="price">$8.13 Kindle | $11.61 Paperback</div>
                    <div class="description">100+ Recetas Fáciles, Rápidas y Saludables sin Cerdo ni Alcohol. Recetario práctico para el día a día.</div>
                    <div class="meta">122 pages | Spanish | Sept 2025</div>
                    <a href="https://www.amazon.com/Gu%C3%ADa-Completa-Cocina-Microondas-Saludables-ebook/dp/B0FSQ3C16L" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="cooking" data-search="komplette mikrowellen kochfuhrung german halal">
                    <img src="all_book_covers/Komplette_Mikrowellen_Kochfuhrung.jpg" alt="Komplette Mikrowellen-Kochführung" class="book-image">
                    <span class="category-tag">Cooking Guide</span>
                    <h3>🍝 Komplette Mikrowellen-Kochführung</h3>
                    <div class="price">$6.99 Kindle | $11.61 Paperback</div>
                    <div class="description">100 schnelle und einfache Rezepte ohne Schweinefleisch & Alkohol. Eine umfassende Sammlung gesunder, leckerer und zeitsparender Rezepte.</div>
                    <div class="meta">219 pages | German | Oct 2025</div>
                    <a href="https://www.amazon.com/Komplette-Mikrowellen-Kochf%C3%BChrung-Schweinefleisch-umfassende-zeitsparender-ebook/dp/B0FTHJ7JWC" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <!-- EDUCATIONAL WORKBOOKS -->
                <div class="book-card" data-category="educational" data-search="preschool word ladder wizards phonics cvc">
                    <img src="all_book_covers/word_ladder_preschool_cover.jpg" alt="Preschool Word Ladder Wizards" class="book-image">
                    <span class="category-tag">Educational</span>
                    <h3>📚 Preschool Word Ladder Wizards</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Fun CVC Puzzles and Phonics Games for Kids Ages 3-5. A Fun First Activity Book to Build Vocabulary and Phonics Skills.</div>
                    <div class="meta">49 pages | Ages 3-5 | July 2025</div>
                    <a href="https://www.amazon.com/Preschool-Word-Ladder-Wizards-Vocabulary/dp/919891751X" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="educational" data-search="kindergarten word ladder wizards phonics blends digraphs">
                    <img src="all_book_covers/word_ladder_kindergarten_cover.jpg" alt="Kindergarten Word Ladder Wizards" class="book-image">
                    <span class="category-tag">Educational</span>
                    <h3>🎓 Kindergarten Word Ladder Wizards</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">70 Phonics and Spelling Puzzles for Kids Ages 5-6. Phonics and Spelling Puzzles to Master Blends, Digraphs, and more.</div>
                    <div class="meta">88 pages | Ages 5-6 | July 2025</div>
                    <a href="https://www.amazon.com/Kindergarten-Word-Ladder-Wizards-Spelling/dp/9198962248" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="educational" data-search="first grade word ladder wizards vowel teams silent e">
                    <img src="all_book_covers/first_grade_word_ladder.jpg" alt="First Grade Word Ladder Wizards" class="book-image">
                    <span class="category-tag">Educational</span>
                    <h3>✏️ First Grade Word Ladder Wizards</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Vowel Teams & Silent 'e' Spelling Puzzles. 70 Phonics and Spelling Activity Puzzles to Master Vowel Teams and Silent 'e'.</div>
                    <div class="meta">88 pages | Ages 6-7 | July 2025</div>
                    <a href="https://www.amazon.com/First-Grade-Word-Ladder-Wizards/dp/9198962213" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="educational" data-search="second grade word ladder wizards phonics vocabulary">
                    <img src="all_book_covers/word_ladder_second_cover.jpg" alt="Second Grade Word Ladder Wizards" class="book-image">
                    <span class="category-tag">Educational</span>
                    <h3>📖 Second Grade Word Ladder Wizards</h3>
                    <div class="price">$7.96 Paperback</div>
                    <div class="description">70 Brain-Boosting Logic Puzzles for Advanced Phonics and Vocabulary for Kids Ages 7-8. Complex spelling rules and phonics practice.</div>
                    <div class="meta">89 pages | Ages 7-8 | Oct 2025</div>
                    <a href="https://www.amazon.com/Word-Ladder-Wizards-Second-Grade/dp/B0FTXJ5C46" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="educational" data-search="third grade word ladder wizards morphology phonics">
                    <img src="all_book_covers/word_ladder_third_grade_cover.jpg" alt="Third Grade Word Ladder Wizards" class="book-image">
                    <span class="category-tag">Educational</span>
                    <h3>🎯 Third Grade Word Ladder Wizards</h3>
                    <div class="price">$7.96 Paperback</div>
                    <div class="description">70+ Morphology and Phonics Ladders for Ages 8–9. Build vocabulary, spelling, and critical thinking skills with engaging word puzzles.</div>
                    <div class="meta">89 pages | Ages 8-9 | Oct 2025</div>
                    <a href="https://www.amazon.com/Word-Ladder-Wizards-Third-Grade/dp/B0FTXJYP4X" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <!-- PROFESSIONAL LOGBOOKS -->
                <div class="book-card" data-category="professional" data-search="aviators standard student pilot logbook faa">
                    <img src="all_book_covers/pilot_logbook_cover.jpg" alt="Aviator's Standard Student Pilot Logbook" class="book-image">
                    <span class="category-tag">Professional</span>
                    <h3>✈️ The Aviator's Standard Student Pilot Logbook</h3>
                    <div class="price">$68.05 Hardcover</div>
                    <div class="description">FAA-compliant flight logbook with 800+ entry capacity. Professional-grade recording for serious student pilots. Durable hardcover edition.</div>
                    <div class="meta">108 pages | Hardcover | Aug 2025</div>
                    <a href="https://www.amazon.com/Aviators-Standard-Student-Pilot-Logbook/dp/9198962280" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="professional" data-search="medical equipment maintenance log book healthcare">
                    <img src="all_book_covers/medical_equipment_cover.jpg" alt="Medical Equipment Maintenance Log Book" class="book-image">
                    <span class="category-tag">Professional</span>
                    <h3>🏥 Medical Equipment Maintenance Log Book</h3>
                    <div class="price">$12.99 Paperback</div>
                    <div class="description">Professional logbook for biomedical & clinical technicians. Track calibration, service & safety inspections. Meets healthcare industry standards.</div>
                    <div class="meta">150 pages | Healthcare | Aug 2025</div>
                    <a href="https://www.amazon.com/Medical-Equipment-Maintenance-Log-Book/dp/9198962396" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <!-- COLORING BOOKS -->
                <div class="book-card" data-category="coloring" data-search="coloring book advices private economy debt free">
                    <img src="all_book_covers/coloring_economy_cover.jpg" alt="Coloring Book With Advices For Private Economy" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>💰 Coloring Book With Advices For Private Economy</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Debt Free coloring book with 60+ intricate mandalas and soothing patterns. Merges art therapy with real-world debt-free strategies.</div>
                    <div class="meta">100 pages | Financial Therapy | Dec 2023</div>
                    <a href="https://www.amazon.com/Coloring-Book-Advices-Private-Economy/dp/9198917552" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="coloring" data-search="coloring book marriage success quotes cultures">
                    <img src="all_book_covers/coloring_marriage_cover.jpg" alt="Coloring book for marriage and success" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>💕 Coloring book for marriage and success</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Marriage quotes and success quotes from different cultures. 100 culturally curated quotes with intricately illustrated mandalas.</div>
                    <div class="meta">106 pages | Cultural Wisdom | Dec 2023</div>
                    <a href="https://www.amazon.com/Coloring-book-marriage-success-different/dp/9198917595" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="coloring" data-search="coloring book moms babies pregnancy postpartum">
                    <img src="all_book_covers/coloring_moms_babies_cover.jpg" alt="Coloring Book For Moms And Babies" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>👶 Coloring Book For Moms And Babies</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Weekly advices and beautiful mandala. Dual-design pages with intricate mandalas for mom, high-contrast patterns for baby.</div>
                    <div class="meta">104 pages | Postpartum Care | Dec 2023</div>
                    <a href="https://www.amazon.com/Coloring-Book-Moms-Babies-Beautiful/dp/9198917587" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="coloring" data-search="i am not stupid coloring book languages cultures">
                    <img src="all_book_covers/coloring_not_stupid_cover.jpg" alt="I Am Not Stupid Coloring book" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>🌟 I Am Not Stupid Coloring book</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">In different languages and cultures. Motivational coloring book designed to aid language learning and build confidence.</div>
                    <div class="meta">94 pages | Language Learning | Dec 2023</div>
                    <a href="https://www.amazon.com/Not-Stupid-Coloring-book-different/dp/9198917560" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="coloring" data-search="coloring book pregnant pregnancy wellness">
                    <img src="all_book_covers/coloring_pregnant_cover.jpg" alt="Coloring book for Pregnant" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>🤰 Coloring book for Pregnant</h3>
                    <div class="price">$7.99 Paperback</div>
                    <div class="description">Week-by-week wisdom and therapeutic art. 40+ intricate designs with stage-specific guidance for pregnancy wellness.</div>
                    <div class="meta">98 pages | Pregnancy Care | Dec 2023</div>
                    <a href="https://www.amazon.com/Coloring-book-Pregnant-Hicham-LOUKILI/dp/9198917579" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="coloring" data-search="worlds wealth proverbs coloring book abundance">
                    <img src="all_book_covers/coloring_wealth_cover.jpg" alt="World's Wealth Proverbs" class="book-image">
                    <span class="category-tag">Coloring Book</span>
                    <h3>💎 World's Wealth Proverbs</h3>
                    <div class="price">$5.74 Paperback</div>
                    <div class="description">Coloring book with world wealth proverbs. 55 power proverbs from around the world framed within intricate mandalas for abundance mindset.</div>
                    <div class="meta">110 pages | Wealth Mindset | Dec 2023</div>
                    <a href="https://www.amazon.com/Worlds-Wealth-Proverbs-Coloring-proverbs/dp/B0CPJMB9H8" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <!-- FICTION & NON-FICTION -->
                <div class="book-card" data-category="fiction" data-search="dukes defiant botanist historical romance">
                    <img src="all_book_covers/dukes_defiant_botanist_cover.jpg" alt="The Duke's Defiant Botanist" class="book-image">
                    <span class="category-tag">Historical Fiction</span>
                    <h3>📖 The Duke's Defiant Botanist</h3>
                    <div class="price">$9.99 Kindle & Paperback</div>
                    <div class="description">Historical fiction featuring botanist Miss Annelise Hale and Duke Alistair Wyndham. A captivating blend of science, romance, and mystery.</div>
                    <div class="meta">282 pages | Historical Romance | May 2025</div>
                    <a href="https://www.amazon.com/Dukes-Defiant-Botanist-Hicham-Loukili-ebook/dp/B0DM6YVS32" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="fiction" data-search="whispers of sugar fourth star culinary fiction">
                    <img src="all_book_covers/whispers_sugar_cover.jpg" alt="The Whispers of Sugar: The Fourth Star" class="book-image">
                    <span class="category-tag">Culinary Fiction</span>
                    <h3>🍯 The Whispers of Sugar: The Fourth Star</h3>
                    <div class="price">$4.99 Kindle | $9.99 Paperback</div>
                    <div class="description">She inherited a recipe book full of secrets. To honor it, she must survive a kitchen built on lies. A culinary journey in Geneva's haute cuisine world.</div>
                    <div class="meta">111 pages | Culinary Fiction | Aug 2025</div>
                    <a href="https://www.amazon.com/Whispers-Sugar-Fourth-Star-ebook/dp/B0FLW3J1YH" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="fiction" data-search="last resonator time travel egypt nazi germany">
                    <img src="all_book_covers/last_resonator_cover.jpg" alt="The Last Resonator" class="book-image">
                    <span class="category-tag">Sci-Fi Thriller</span>
                    <h3>🚀 The Last Resonator</h3>
                    <div class="price">$9.99 Paperback</div>
                    <div class="description">A Time-Travel Quest Through Ancient Egypt, Nazi Germany, and Humanity's Final Hour. One mistake broke time. One journey could change everything.</div>
                    <div class="meta">65 pages | Sci-Fi Adventure | Aug 2025</div>
                    <a href="https://www.amazon.com/Last-Resonator-Time-Travel-Through-Humanitys/dp/9198962272" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="fiction" data-search="cheapest way host static websites github netlify">
                    <img src="all_book_covers/cheapest_website_hosting_cover.jpg" alt="The Cheapest Way to Host Static Websites" class="book-image">
                    <span class="category-tag">Technical Guide</span>
                    <h3>💻 The Cheapest Way to Host Static Websites 2025-2026</h3>
                    <div class="price">$6.00 Kindle | $9.99 Paperback</div>
                    <div class="description">Step-by-step guide to free & low-cost hosting on GitHub Pages, Netlify, Cloudflare, and Render. Ranked #510 in Website Usability.</div>
                    <div class="meta">134 pages | Tech Guide | Oct 2025</div>
                    <a href="https://www.amazon.com/Cheapest-Static-Websites-2025-2026-Step-ebook/dp/B0FTRDHJBS" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="fiction" data-search="gods god gosh hidden semitic mysteries theology">
                    <img src="all_book_covers/gods_god_gosh_cover.jpg" alt="Gods, God and Gosh: The Hidden Semitic Mysteries" class="book-image">
                    <span class="category-tag">Linguistic Theology</span>
                    <h3>🔍 Gods, God and Gosh: The Hidden Semitic Mysteries</h3>
                    <div class="price">$5.00 Kindle | $7.00 Paperback</div>
                    <div class="description">How a Single Word Rewired Faith. Uncovering the Lost Semitic Roots of "God," "Holiness," and the Divine Name.</div>
                    <div class="meta">61 pages | Linguistics | Oct 2025</div>
                    <a href="https://www.amazon.com/Gods-God-Gosh-Mysteries-Uncovering-ebook/dp/B0FXPDKY83" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>

                <div class="book-card" data-category="fiction" data-search="falcons cipher hiragana islamic legacy japan">
                    <img src="all_book_covers/falcons_cipher_cover.jpg" alt="The Falcon's Cipher" class="book-image">
                    <span class="category-tag">Cultural Research</span>
                    <h3>🦅 The Falcon's Cipher</h3>
                    <div class="price">$6.00 Kindle | $42.20 Paperback</div>
                    <div class="description">Unlock Hiragana's Secret Islamic Legacy. Islamic Influence on the Japanese Language and Civilization: A Hidden History Revealed.</div>
                    <div class="meta">263 pages | Cultural History | Oct 2025</div>
                    <a href="https://www.amazon.com/Falcons-Cipher-Hiraganas-Influence-Civilization-ebook/dp/B0FXTBMY5W" class="amazon-link" target="_blank" rel="noopener">Buy on Amazon</a>
                </div>
            </div>
        </div>
    </section>

    <section class="features">
        <div class="container">
            <h2>Why Choose My Books?</h2>
            <div class="features-grid">
                <div class="feature">
                    <div class="feature-icon">🌍</div>
                    <h3>Multi-Language Mastery</h3>
                    <p>Cooking guides available in English, Dutch, French, Spanish, and German - reaching global audiences</p>
                </div>
                <div class="feature">
                    <div class="feature-icon">🎓</div>
                    <h3>Educational Excellence</h3>
                    <p>Comprehensive curriculum from preschool through third grade with proven pedagogical methods</p>
                </div>
                <div class="feature">
                    <div class="feature-icon">🏆</div>
                    <h3>Professional Quality</h3>
                    <p>High-value professional references for aviation, medical, and technical fields</p>
                </div>
                <div class="feature">
                    <div class="feature-icon">🎨</div>
                    <h3>Therapeutic Innovation</h3>
                    <p>Unique coloring books that combine art therapy with educational and financial guidance</p>
                </div>
                <div class="feature">
                    <div class="feature-icon">📚</div>
                    <h3>Diverse Genres</h3>
                    <p>From historical romance to sci-fi thrillers and theological research - something for every reader</p>
                </div>
                <div class="feature">
                    <div class="feature-icon">⭐</div>
                    <h3>Proven Success</h3>
                    <p>Ranking achievements and positive reader feedback across multiple book categories</p>
                </div>
            </div>
        </div>
    </section>

    <div class="amazon-author-link">
        <div class="container">
            <h3>Discover My Complete Collection</h3>
            <a href="https://www.amazon.com/stores/MR-Hicham-Loukili/author/B0FBFD7YVG/allbooks" target="_blank" rel="noopener">
                View All 25+ Books on Amazon Author Page
            </a>
        </div>
    </div>

    <footer>
        <div class="container">
            <p>&copy; 2025 MR. Hicham Loukili. All rights reserved. | Multi-Genre Author & Educator | 25+ Books in 5 Languages</p>
            <div class="footer-legal">
                <a href="#" id="privacy-policy-link">Privacy Policy</a>
                <a href="#" id="tos-link">Terms of Service</a>
                <a href="#" id="cookie-policy-footer-link">Cookie Policy</a>
            </div>
        </div>
    </footer>

    <script>
        /* Enhanced Search & Filter Script with Legal Modal Integration */
        document.addEventListener('DOMContentLoaded', function() {
            // Only initialize search/filter if books section exists
            if (!document.getElementById('books')) {
                return;
            }

            // Search and Filter Functionality
            const searchInput = document.getElementById('bookSearch');
            const searchClearBtn = document.getElementById('searchClear');
            const filterBtns = document.querySelectorAll('.filter-btn');
            const bookCards = document.querySelectorAll('.book-card');

            // Check if search elements exist before initializing
            if (searchInput && searchClearBtn && filterBtns.length > 0 && bookCards.length > 0) {
                // Debounced search function
                let searchTimeout;
                function debouncedFilter() {
                    clearTimeout(searchTimeout);
                    searchTimeout = setTimeout(filterBooks, 300);
                }

                // Search clear button functionality
                searchClearBtn.addEventListener('click', function() {
                    searchInput.value = '';
                    searchClearBtn.classList.remove('visible');
                    filterBooks();
                });
                
                // Show/hide clear button based on search input
                searchInput.addEventListener('input', function() {
                    searchClearBtn.classList.toggle('visible', this.value.trim() !== '');
                    debouncedFilter();
                });
                
                // Category filter buttons
                filterBtns.forEach(btn => {
                    btn.addEventListener('click', function() {
                        // Update active button
                        filterBtns.forEach(b => b.classList.remove('active'));
                        this.classList.add('active');
                        filterBooks();
                    });
                });
                
                // Initial filtering
                filterBooks();
            }

            // Main filter function
            function filterBooks() {
                const searchTerm = searchInput ? searchInput.value.toLowerCase().trim() : '';
                const activeCategoryBtn = document.querySelector('.filter-btn.active');
                const activeCategory = activeCategoryBtn ? activeCategoryBtn.dataset.category : 'all';
                
                bookCards.forEach(card => {
                    const matchesCategory = activeCategory === 'all' || card.dataset.category === activeCategory;
                    const matchesSearch = matchesSearchTerm(card, searchTerm);
                    
                    if (matchesCategory && matchesSearch) {
                        card.classList.remove('hidden');
                        card.style.display = 'block';
                    } else {
                        card.classList.add('hidden');
                        card.style.display = 'none';
                    }
                });
            }
            
            // Search matching function
            function matchesSearchTerm(card, searchTerm) {
                if (!searchTerm) return true;
                
                try {
                    // Get searchable content
                    const title = card.querySelector('h3')?.textContent.toLowerCase() || '';
                    const description = card.querySelector('.description')?.textContent.toLowerCase() || '';
                    const categoryTag = card.querySelector('.category-tag')?.textContent.toLowerCase() || '';
                    const additionalData = card.dataset.search || '';
                    
                    // Combine all searchable text
                    const searchText = `${title} ${description} ${categoryTag} ${additionalData}`.toLowerCase();
                    
                    // Split search term into words and check each one
                    const searchWords = searchTerm.split(/\s+/).filter(word => word.length > 0);
                    return searchWords.every(word => searchText.includes(word));
                } catch (e) {
                    console.error('Error matching search term:', e);
                    return false;
                }
            }
            
            // Setup legal modals
            setupLegalModals();
            setupCookieConsent();

            function setupLegalModals() {
                // Modal open/close functionality
                const modalLinks = [
                    { trigger: 'privacy-policy-link', target: 'privacy-modal' },
                    { trigger: 'tos-link', target: 'tos-modal' },
                    { trigger: 'cookie-policy-footer-link', target: 'cookie-modal' },
                    { trigger: 'cookie-policy-link', target: 'cookie-modal' }
                ];
                
                modalLinks.forEach(({ trigger, target }) => {
                    const element = document.getElementById(trigger);
                    if (element) {
                        element.addEventListener('click', function(e) {
                            e.preventDefault();
                            showLegalModal(target);
                        });
                    }
                });
                
                // Close modals when clicking the X button
                document.querySelectorAll('.modal-close').forEach(button => {
                    button.addEventListener('click', function() {
                        const modal = this.closest('.modal');
                        if (modal) {
                            modal.classList.remove('visible');
                            document.body.style.overflow = 'auto';
                        }
                    });
                });
                
                // Close modals when clicking outside content
                document.querySelectorAll('.modal').forEach(modal => {
                    modal.addEventListener('click', function(e) {
                        if (e.target === modal) {
                            modal.classList.remove('visible');
                            document.body.style.overflow = 'auto';
                        }
                    });
                });
                
                // Setup modal accept buttons
                document.getElementById('privacy-accept-btn')?.addEventListener('click', function() {
                    try {
                        localStorage.setItem('hl_privacy_accepted', 'true');
                    } catch (e) {
                        console.warn('Could not save privacy acceptance:', e);
                    }
                    document.getElementById('privacy-modal')?.classList.remove('visible');
                    document.body.style.overflow = 'auto';
                });
                
                document.getElementById('tos-accept-btn')?.addEventListener('click', function() {
                    try {
                        localStorage.setItem('hl_tos_accepted', 'true');
                    } catch (e) {
                        console.warn('Could not save TOS acceptance:', e);
                    }
                    document.getElementById('tos-modal')?.classList.remove('visible');
                    document.body.style.overflow = 'auto';
                });
                
                document.getElementById('cookie-accept-btn')?.addEventListener('click', function() {
                    setCookiePreferences(true, true);
                    hideCookieConsent();
                    document.getElementById('cookie-modal')?.classList.remove('visible');
                    document.body.style.overflow = 'auto';
                });
            }
            
            function setupCookieConsent() {
                // Only set up if cookie consent element exists
                const consentBanner = document.getElementById('cookie-consent');
                if (!consentBanner) return;
                
                // Setup cookie consent buttons
                document.querySelector('.cookie-accept')?.addEventListener('click', function() {
                    setCookiePreferences(true, true);
                    hideCookieConsent();
                });
                
                document.querySelector('.cookie-settings')?.addEventListener('click', function() {
                    document.getElementById('cookie-settings-modal')?.classList.add('visible');
                    document.body.style.overflow = 'hidden';
                    hideCookieConsent();
                });
                
                document.getElementById('save-cookie-settings')?.addEventListener('click', function() {
                    const analytics = document.getElementById('analytics-cookies')?.checked || false;
                    const marketing = document.getElementById('marketing-cookies')?.checked || false;
                    setCookiePreferences(analytics, marketing);
                    document.getElementById('cookie-settings-modal')?.classList.remove('visible');
                    document.body.style.overflow = 'auto';
                    hideCookieConsent();
                });
                
                // Show cookie consent banner if needed
                showCookieConsent();
            }
            
            function setCookiePreferences(analytics, marketing) {
                try {
                    localStorage.setItem('hl_cookies_analytics', analytics.toString());
                    localStorage.setItem('hl_cookies_marketing', marketing.toString());
                    localStorage.setItem('hl_cookies_accepted', 'true');
                    localStorage.setItem('hl_cookies_last_updated', Date.now().toString());
                } catch (e) {
                    console.warn('Could not save cookie preferences:', e);
                }
            }
            
            function hideCookieConsent() {
                const consentBanner = document.getElementById('cookie-consent');
                if (consentBanner) {
                    consentBanner.classList.remove('visible');
                }
            }
            
            function showCookieConsent() {
                // Only show if cookies not accepted or expired
                let cookiesAccepted = false;
                let lastUpdated = 0;
                
                try {
                    cookiesAccepted = localStorage.getItem('hl_cookies_accepted');
                    lastUpdated = localStorage.getItem('hl_cookies_last_updated');
                } catch (e) {
                    console.warn('Could not access localStorage:', e);
                    return; // Don't show consent if can't access localStorage
                }
                
                const now = Date.now();
                
                // Show consent if never accepted or if preferences are older than 30 days
                if (!cookiesAccepted || !lastUpdated || (now - parseInt(lastUpdated, 10)) > 30 * 24 * 60 * 60 * 1000) {
                    const consentBanner = document.getElementById('cookie-consent');
                    if (consentBanner) {
                        // Delay showing to not interrupt user immediately
                        setTimeout(() => {
                            consentBanner.classList.add('visible');
                        }, 2000);
                    }
                }
            }
            
            function showLegalModal(modalId) {
                const modal = document.getElementById(modalId);
                if (modal) {
                    modal.classList.add('visible');
                    document.body.style.overflow = 'hidden';
                }
            }
            
            // Smooth scrolling for navigation
            document.querySelectorAll('a[href="#books"]').forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    const booksSection = document.getElementById('books');
                    if (booksSection) {
                        booksSection.scrollIntoView({
                            behavior: 'smooth'
                        });
                    }
                });
            });

            // Track button clicks for analytics
            document.querySelectorAll('.amazon-link, .cta-button').forEach(button => {
                button.addEventListener('click', function() {
                    console.log('Link clicked:', this.href);
                });
            });

            // Add loading animation to book cards if they exist
            if (bookCards.length > 0) {
                bookCards.forEach((card, index) => {
                    setTimeout(() => {
                        card.style.opacity = '1';
                        card.style.transform = 'scale(1)';
                    }, index * 100);
                });
            }
        });

        /* Floating Newsletter Popup - Google Apps Script Integration */
        /* Generated: 2025-11-08 */
        /* Updated for GDPR compliance and new sheet structure */
        (function() {
            // Cloudflare-safe initialization
            if (document.readyState === 'loading') {
                document.addEventListener('DOMContentLoaded', initPopup);
            } else {
                initPopup();
            }

            function initPopup() {
                // Only initialize if the books section exists on this page
                if (!document.getElementById('books')) {
                    return;
                }

                // Configuration for Google Apps Script
                const CONFIG = {
                    POPUP_DELAY: 10000,      // 10 seconds before first show
                    RESHOW_DELAY: 60000,     // 1 minute between re-shows
                    SUBMIT_TIMEOUT: 30000,   // 30 second timeout for submissions
                    STORAGE_KEYS: {
                        SUBMITTED: 'hl_newsletter_submitted',
                        LAST_CLOSED: 'hl_popup_last_closed',
                        PRIVACY_ACCEPTED: 'hl_privacy_accepted',
                        CONSENT_GIVEN: 'hl_consent_given'
                    },
                    // Google Apps Script URL - Updated with proper URL
                    GOOGLE_SCRIPT_URL: 'https://script.google.com/macros/s/AKfycbxsOSZJ1JAJhj45SdC2ViHHgaAvlAdz_CMYEAnwhC_BsrxwqKejm8IFcA0GQCQTWymB/exec',                    
                    PRIVACY_POLICY_URL: '#privacy-modal'
                };

                // Prevent duplicate initialization
                if (document.getElementById('newsletter-popup') || 
                    localStorage.getItem(CONFIG.STORAGE_KEYS.SUBMITTED)) {
                    return;
                }

                // Create and inject elements
                const popup = createPopupElement(CONFIG.PRIVACY_POLICY_URL);
                document.body.appendChild(popup);

                // Initialize functionality
                setupPopupFunctionality(popup, CONFIG);
            }

            function createPopupElement(privacyPolicyUrl) {
                const popup = document.createElement('div');
                popup.id = 'newsletter-popup';
                popup.setAttribute('aria-live', 'polite');
                popup.innerHTML = `
                    <button class="popup-close" aria-label="Close newsletter popup">&times;</button>
                    <div class="popup-content">
                        <h3>Join Our Community</h3>
                        <form class="newsletter-form" novalidate>
                            <div class="input-group">
                                <input type="email" placeholder="Enter your email address" required 
                                       aria-label="Email address for newsletter subscription">
                            </div>
                            <div class="consent-checkbox">
                                <input type="checkbox" id="gdpr-consent" required>
                                <label for="gdpr-consent">
                                    I agree to receive emails about new book releases and author updates. 
                                    I understand that my email will be stored securely and never sold or shared with third parties.
                                    I can unsubscribe anytime. <a href="#" class="privacy-link">Learn more.</a>
                                </label>
                            </div>
                            <button type="submit" aria-label="Subscribe to newsletter">Subscribe Now</button>
                            <div class="status-message" role="alert"></div>
                            <p class="privacy-notice">
                                By subscribing, you confirm you've read and agree to our 
                                <a href="#" class="privacy-link">Privacy Policy</a>.
                            </p>
                        </form>
                    </div>
                `;
                return popup;
            }

            function setupPopupFunctionality(popup, config) {
                const closeBtn = popup.querySelector('.popup-close');
                const form = popup.querySelector('.newsletter-form');
                const emailInput = form.querySelector('input[type="email"]');
                const consentCheckbox = form.querySelector('#gdpr-consent');
                const submitBtn = form.querySelector('button[type="submit"]');
                const statusMessage = form.querySelector('.status-message');
                const privacyLinks = popup.querySelectorAll('.privacy-link');

                // Handle privacy link clicks
                privacyLinks.forEach(link => {
                    link.addEventListener('click', function(e) {
                        e.preventDefault();
                        showLegalModal('privacy-modal');
                    });
                });

                // Close button handler
                closeBtn.addEventListener('click', () => {
                    hidePopup(popup, config);
                    scheduleReappearance(config);
                });

                // Form submission handler
                form.addEventListener('submit', async (e) => {
                    e.preventDefault();
                    e.stopPropagation();
                    
                    // Validate consent
                    if (!consentCheckbox.checked) {
                        showMessage(statusMessage, 'Please agree to receive emails to subscribe.', 'error');
                        consentCheckbox.focus();
                        return;
                    }
                    
                    const email = emailInput.value.trim();
                    
                    if (!email || !isValidEmail(email)) {
                        showMessage(statusMessage, 'Please enter a valid email address.', 'error');
                        emailInput.focus();
                        return;
                    }
                    
                    // Disable form during submission
                    submitBtn.disabled = true;
                    const originalText = submitBtn.textContent;
                    submitBtn.textContent = 'Subscribing...';
                    
                    try {
                        const success = await submitToGoogleScript(email, window.location.pathname, config);
                        
                        if (success) {
                            showMessage(statusMessage, 'Successfully subscribed! Check your email for confirmation.', 'success');
                            markAsSubmitted(config);
                            
                            // Record consent
                            localStorage.setItem(config.STORAGE_KEYS.CONSENT_GIVEN, 'true');
                            localStorage.setItem(config.STORAGE_KEYS.PRIVACY_ACCEPTED, 'true');
                            
                            // Auto-close after success
                            setTimeout(() => {
                                hidePopup(popup, config);
                                popup.remove();
                            }, 3000);
                        } else {
                            throw new Error('Subscription failed');
                        }
                    } catch (error) {
                        console.error('[Newsletter] Submission failed:', error);
                        let errorMessage = 'Subscription failed. Please try again later.';
                        
                        // Handle specific error messages from Google Apps Script
                        if (error.message && error.message.includes('already subscribed')) {
                            errorMessage = 'This email is already subscribed to our newsletter.';
                        } else if (error.message && error.message.includes('Too many requests')) {
                            errorMessage = 'Too many subscription attempts. Please try again in a few hours.';
                        } else if (error.message && error.message.includes('Invalid email format')) {
                            errorMessage = 'Please enter a valid email address.';
                        }
                        
                        showMessage(statusMessage, errorMessage, 'error');
                    } finally {
                        submitBtn.disabled = false;
                        submitBtn.textContent = originalText;
                        if (statusMessage.classList.contains('success')) {
                            emailInput.value = '';
                            consentCheckbox.checked = false;
                        }
                    }
                });

                // Initial display scheduling
                scheduleInitialDisplay(popup, config);
            }
async function submitToCloudflareFunction(email, source, config) {
    const payload = {
        email: email,
        source: source || 'website'
    };

    try {
        const response = await fetch('/subscribe', {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json',
            },
            body: JSON.stringify(payload)
        });

        const result = await response.json();
        
        if (result.success) {
            return true;
        } else {
            throw new Error(result.message || 'Subscription failed');
        }
    } catch (error) {
        console.error('Submission failed:', error);
        throw error;
    }
}
async function submitToGoogleScript(email, source, config) {
    const payload = {
        email: email,
        source: source || 'hicham.pages.dev',
        timestamp: new Date().toISOString()
    };

    console.log('[Newsletter] Submitting to:', config.GOOGLE_SCRIPT_URL);
    console.log('[Newsletter] Payload:', payload);

    try {
        const controller = new AbortController();
        const timeoutId = setTimeout(() => controller.abort(), config.SUBMIT_TIMEOUT);

        const response = await fetch(config.GOOGLE_SCRIPT_URL, {
            method: 'POST',
            mode: 'no-cors',  // ← Added this back with no-cors
            headers: {
                'Content-Type': 'text/plain',
            },
            body: JSON.stringify(payload),
            signal: controller.signal
        });

        clearTimeout(timeoutId);

        console.log('[Newsletter] Response status:', response.status);
        console.log('[Newsletter] Request sent successfully (no-cors mode)');
        
        // With no-cors, we can't read the response, but if we got here without error, it worked
        return true;

    } catch (error) {
        if (error.name === 'AbortError') {
            throw new Error('Request timeout. Please try again.');
        }
        console.error('[Newsletter] Submission error:', error);
        throw error;
    }
}

function scheduleReappearance(config) {
                setTimeout(() => {
                    if (!localStorage.getItem(config.STORAGE_KEYS.SUBMITTED)) {
                        const popup = document.getElementById('newsletter-popup');
                        if (popup) showPopup(popup);
                    }
                }, config.RESHOW_DELAY);
            }

            function scheduleInitialDisplay(popup, config) {
                const lastClosed = localStorage.getItem(config.STORAGE_KEYS.LAST_CLOSED);
                const now = Date.now();
                
                if (lastClosed) {
                    const timeSinceClosed = now - parseInt(lastClosed, 10);
                    if (timeSinceClosed < config.RESHOW_DELAY) {
                        setTimeout(() => showPopup(popup), config.RESHOW_DELAY - timeSinceClosed);
                        return;
                    }
                }
                
                setTimeout(() => showPopup(popup), config.POPUP_DELAY);
            }

            function showPopup(popup) {
                if (localStorage.getItem('hl_newsletter_submitted')) return;
                
                popup.classList.add('visible');
                const emailInput = popup.querySelector('input[type="email"]');
                if (emailInput) {
                    setTimeout(() => {
                        emailInput.focus();
                    }, 300);
                }
            }

            function hidePopup(popup, config) {
                popup.classList.remove('visible');
                try {
                    localStorage.setItem(config.STORAGE_KEYS.LAST_CLOSED, Date.now().toString());
                } catch (e) {
                    // Fallback if localStorage is unavailable
                    console.warn('Could not save popup close time:', e);
                }
            }

            function markAsSubmitted(config) {
                try {
                    localStorage.setItem(config.STORAGE_KEYS.SUBMITTED, 'true');
                    localStorage.removeItem(config.STORAGE_KEYS.LAST_CLOSED);
                } catch (e) {
                    console.warn('Could not save subscription status:', e);
                }
            }

            function isValidEmail(email) {
                const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
                return emailRegex.test(email);
            }

            function showMessage(element, message, type) {
                if (!element) return;
                
                element.textContent = message;
                element.className = `status-message ${type}`;
                
                if (type === 'success') {
                    setTimeout(() => {
                        if (element.parentNode) {
                            element.textContent = '';
                            element.className = 'status-message';
                        }
                    }, 5000);
                }
            }
            
            function showLegalModal(modalId) {
                const modal = document.getElementById(modalId);
                if (modal) {
                    modal.classList.add('visible');
                    document.body.style.overflow = 'hidden';
                }
            }
        })();
    </script>
</body>
</html>
