    
    <!-- Enhanced Footer -->
    <footer class="relative bg-gradient-to-br from-slate-900 via-primary-900 to-slate-900 dark:from-gray-900 dark:via-primary-900 dark:to-gray-900 text-white py-16 mb-20 lg:mb-0 overflow-hidden">
        <!-- Animated background elements -->
        <div class="absolute inset-0 overflow-hidden">
            <div class="absolute -top-20 -left-20 w-40 h-40 bg-primary-600/20 rounded-full blur-3xl animate-pulse"></div> 
        
            <div class="absolute top-1/2 -right-20 w-32 h-32 bg-teal-500/20 rounded-full blur-2xl animate-pulse" style="animation-delay: 1s;"></div> 
        
            <div class="absolute -bottom-20 left-1/3 w-36 h-36 bg-purple-600/20 rounded-full blur-3xl animate-pulse" style="animation-delay: 2s;"></div> 
        
            
            <!-- Floating geometric shapes -->
            <div class="absolute top-10 right-1/4 w-4 h-4 bg-white/10 rotate-45 animate-bounce" style="animation-delay: 0.5s;"></div> 
        
            <div class="absolute bottom-1/4 left-1/4 w-3 h-3 bg-primary-300/30 rounded-full animate-bounce" style="animation-delay: 1.5s;"></div> 
        
            <div class="absolute top-1/3 left-1/2 w-2 h-2 bg-teal-400/40 rotate-45 animate-bounce" style="animation-delay: 2.5s;"></div> 
        
        </div> 
        
        
        <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <!-- Main Footer Content -->
            <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
                <!-- Company Info with enhanced styling -->
                <div class="lg:col-span-1">
                    <div class="group mb-6">
                        <div class="relative inline-block">
                            <div class="absolute inset-0 bg-white/20 rounded-2xl blur-lg group-hover:bg-white/30 transition-all duration-300"></div> 
        
                            <img src="storage/app/public/photos/ll6Rkij7mMXTskezBsaz1LTT1rIvUOc63TqzmuC6.png" alt="<?php echo getSiteConfig('sitename'); ?>" class="relative h-10 w-auto">
                        </div> 
        
                    </div> 
        
                    <p class="text-primary-100 mb-6 text-sm leading-relaxed">
                        Building financial strength together with personalized banking solutions for every member. Your trusted partner in financial growth.
                    </p>
                    
                    <!-- Enhanced Social Links -->
                    <div class="flex space-x-3">
                        <a href="#" class="group relative w-10 h-10 bg-gradient-to-br from-primary-600 to-primary-700 hover:from-blue-600 hover:to-blue-700 rounded-2xl flex items-center justify-center transition-all duration-300 hover:scale-110 hover:-translate-y-1 shadow-lg hover:shadow-xl">
                            <i class="fa-brands fa-facebook-f text-sm group-hover:scale-110 transition-transform duration-300"></i>
                            <div class="absolute inset-0 bg-gradient-to-br from-blue-500 to-blue-600 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> 
        
                        </a>
                        <a href="#" class="group relative w-10 h-10 bg-gradient-to-br from-primary-600 to-primary-700 hover:from-sky-500 hover:to-sky-600 rounded-2xl flex items-center justify-center transition-all duration-300 hover:scale-110 hover:-translate-y-1 shadow-lg hover:shadow-xl">
                            <i class="fa-brands fa-twitter text-sm group-hover:scale-110 transition-transform duration-300"></i>
                            <div class="absolute inset-0 bg-gradient-to-br from-sky-400 to-sky-500 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> 
        
                        </a>
                        <a href="#" class="group relative w-10 h-10 bg-gradient-to-br from-primary-600 to-primary-700 hover:from-blue-700 hover:to-blue-800 rounded-2xl flex items-center justify-center transition-all duration-300 hover:scale-110 hover:-translate-y-1 shadow-lg hover:shadow-xl">
                            <i class="fa-brands fa-linkedin-in text-sm group-hover:scale-110 transition-transform duration-300"></i>
                            <div class="absolute inset-0 bg-gradient-to-br from-blue-600 to-blue-700 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> 
        
                        </a>
                        <a href="#" class="group relative w-10 h-10 bg-gradient-to-br from-primary-600 to-primary-700 hover:from-pink-600 hover:to-pink-700 rounded-2xl flex items-center justify-center transition-all duration-300 hover:scale-110 hover:-translate-y-1 shadow-lg hover:shadow-xl">
                            <i class="fa-brands fa-instagram text-sm group-hover:scale-110 transition-transform duration-300"></i>
                            <div class="absolute inset-0 bg-gradient-to-br from-pink-500 to-pink-600 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div> 
        
                        </a>
                    </div> 
        
                </div> 
        

                <!-- Quick Links with modern styling -->
                <div>
                    <h4 class="font-bold mb-6 text-white flex items-center">
                        <div class="w-1 h-6 bg-gradient-to-b from-primary-400 to-primary-600 rounded-full mr-3"></div> 
        
                        Quick Links
                    </h4>
                    <ul class="space-y-3">
                        <li><a href="about" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-primary-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">About Us</span>
                        </a></li>
                        <li><a href="chart" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-primary-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Services</span>
                        </a></li>
                        <li><a href="grants" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-primary-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Grants & Aid</span>
                        </a></li>
                        <li><a href="contact" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-primary-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Contact</span>
                        </a></li>
                    </ul>
                </div> 
        

                <!-- Services -->
                <div>
                    <h4 class="font-bold mb-6 text-white flex items-center">
                        <div class="w-1 h-6 bg-gradient-to-b from-teal-400 to-teal-600 rounded-full mr-3"></div> 
        
                        Services
                    </h4>
                    <ul class="space-y-3">
                        <li><a href="chart" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-teal-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Personal Banking</span>
                        </a></li>
                        <li><a href="alerts" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-teal-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Business Banking</span>
                        </a></li>
                        <li><a href="send-money" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-teal-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Loans & Credit</span>
                        </a></li>
                        <li><a href="login" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-teal-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Cards</span>
                        </a></li>
                    </ul>
                </div> 
        

                <!-- Member Services -->
                <div>
                    <h4 class="font-bold mb-6 text-white flex items-center">
                        <div class="w-1 h-6 bg-gradient-to-b from-purple-400 to-purple-600 rounded-full mr-3"></div> 
        
                        Member Services
                    </h4>
                    <ul class="space-y-3">
                        <li><a href="login" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-purple-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Online Banking</span>
                        </a></li>
                        <li><a href="apps" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-purple-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Mobile App</span>
                        </a></li>
                        <li><a href="contact" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-purple-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Accessibility</span>
                        </a></li>
                        <li><a href="index" class="group flex items-center text-primary-100 hover:text-white transition-all duration-300 text-sm">
                            <i class="fa-solid fa-chevron-right text-xs mr-3 text-purple-400 group-hover:translate-x-1 transition-transform duration-300"></i>
                            <span class="group-hover:translate-x-1 transition-transform duration-300">Security Center</span>
                        </a></li>
                    </ul>
                </div> 
        
            </div> 
        

            <!-- Bottom Footer with enhanced styling -->
            <div class="border-t border-primary-700/50 pt-8">
                <div class="flex flex-col lg:flex-row justify-between items-center space-y-4 lg:space-y-0">
                    <div class="flex flex-col sm:flex-row items-center space-y-2 sm:space-y-0 sm:space-x-6">
                        <p class="text-primary-100 text-sm">
                            © 2026 <?php echo getSiteConfig('sitename'); ?>. All rights reserved.
                        </p>
                        <div class="flex items-center space-x-2 text-primary-200 text-xs">
                            <i class="fa-solid fa-shield-alt text-green-400"></i>
                            <span>FDIC Insured</span>
                            <span class="text-primary-400">•</span>
                            <i class="fa-solid fa-lock text-blue-400"></i>
                            <span>256-bit SSL</span>
                        </div> 
        
                    </div> 
        
                    <div class="flex flex-wrap justify-center lg:justify-end space-x-6">
                        <a href="privacy" class="text-primary-100 hover:text-white text-sm transition-colors duration-300 hover:underline">Privacy Policy</a>
                        <a href="terms-of-service" class="text-primary-100 hover:text-white text-sm transition-colors duration-300 hover:underline">Terms of Service</a>
                        <a href="contact" class="text-primary-100 hover:text-white text-sm transition-colors duration-300 hover:underline">Accessibility</a>
                        <a href="index" class="text-primary-100 hover:text-white text-sm transition-colors duration-300 hover:underline">Sitemap</a>
                    </div> 
        
                </div> 
        
            </div> 
        
                 </div> 
        
     </footer>

     <!-- Mobile Fixed Login/Register Buttons -->
    <div class="mobile-fixed-buttons">
        <a href="login" class="flex-1 px-6 py-3 bg-white/90 dark:bg-gray-800/90 backdrop-blur-xl text-primary-600 dark:text-primary-400 font-semibold shadow-lg border border-primary-200 dark:border-primary-700 hover:bg-primary-50 dark:hover:bg-gray-700 transition-colors text-center">
            <i class="fa-solid fa-sign-in-alt mr-2"></i>
            Login
        </a>
        <a href="register" class="flex-1 px-6 py-3 bg-primary-600 hover:bg-primary-700 text-white font-semibold shadow-lg transition-colors text-center">
            <i class="fa-solid fa-user-plus mr-2"></i>
            Register
        </a>
    </div> 
        
     
     <!-- Additional Scripts -->
     <script>
    // Intersection Observer for fade-in animations
    const observerOptions = {
        threshold: 0.1,
        rootMargin: '0px 0px -50px 0px'
    };

    const observer = new IntersectionObserver((entries) => {
        entries.forEach(entry => {
            if (entry.isIntersecting) {
                entry.target.classList.add('is-visible');
            }
        });
    }, observerOptions);

    // Observe all fade-in sections
    document.querySelectorAll('.fade-in-section').forEach(el => {
        observer.observe(el);
    });

    // Smooth scrolling for anchor links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            const target = document.querySelector(this.getAttribute('href'));
            if (target) {
                target.scrollIntoView({
                    behavior: 'smooth',
                    block: 'start'
                });
            }
        });
    });
</script>

     <!-- Language Translation Script -->
     <script type="text/javascript">
         let currentLanguage = 'en';
         
         function changeLanguage(langCode) {
             if (langCode === currentLanguage) return;
             
             currentLanguage = langCode;
             updateFlagDisplay(langCode);
             
             // Store language preference
             localStorage.setItem('selectedLanguage', langCode);
             
             // Use Microsoft Translator (more reliable than Google)
             if (langCode === 'en') {
                 // Reset to original language
                 location.reload();
             } else {
                 // Redirect to Microsoft Translator
                 const currentUrl = encodeURIComponent(window.location.href);
                 const translateUrl = `https://www.microsofttranslator.com/bv.aspx?from=en&to=${langCode}&a=${currentUrl}`;
                 window.open(translateUrl, '_blank');
             }
         }
         
         function updateFlagDisplay(langCode) {
             const flags = {
                 'en': '🇺🇸',
                 'es': '🇪🇸', 
                 'fr': '🇫🇷',
                 'de': '🇩🇪',
                 'it': '🇮🇹',
                 'pt': '🇵🇹'
             };
             
             // Update desktop flag
             const desktopFlag = document.querySelector('.relative.group button span');
             if (desktopFlag && flags[langCode]) {
                 desktopFlag.textContent = flags[langCode];
             }
             
             // Update mobile flag  
             const mobileFlag = document.querySelector('[x-data*="languageOpen"] .bg-gradient-to-br span');
             if (mobileFlag && flags[langCode]) {
                 mobileFlag.textContent = flags[langCode];
             }
         }
         
         // Simple client-side translation using MyMemory API (free)
         async function translatePage(langCode) {
             if (langCode === 'en') {
                 location.reload();
                 return;
             }
             
             try {
                 // Show loading indicator
                 showTranslationLoading();
                 
                 // Get all translatable text elements
                 const textElements = document.querySelectorAll('h1, h2, h3, h4, h5, h6, p, span:not(.no-translate), button:not(.no-translate), a:not(.no-translate), div:not(.no-translate)');
                 const textsToTranslate = [];
                 
                 textElements.forEach(element => {
                     const text = element.textContent.trim();
                     // Skip if empty, is a number, contains only symbols, or is marked as no-translate
                     if (text && 
                         text.length > 1 && 
                         !element.classList.contains('no-translate') &&
                         !element.closest('.no-translate') &&
                         !/^[\d\s\$\€\£\¥\+\-\*\/\=\(\)\[\]\{\}\<\>\|\\\^\~\`\!\@\#\%\&\_\?\.\,\;\:\"\']+$/.test(text) &&
                         !element.querySelector('input, select, textarea, img, svg') &&
                         element.children.length === 0) {
                         
                         textsToTranslate.push({
                             element: element,
                             originalText: text
                         });
                     }
                 });
                 
                 // Translate in batches to avoid API limits
                 const batchSize = 10;
                 for (let i = 0; i < textsToTranslate.length; i += batchSize) {
                     const batch = textsToTranslate.slice(i, i + batchSize);
                     await translateBatch(batch, langCode);
                     
                     // Small delay between batches
                     if (i + batchSize < textsToTranslate.length) {
                         await new Promise(resolve => setTimeout(resolve, 500));
                     }
                 }
                 
                 hideTranslationLoading();
                 
             } catch (error) {
                 console.error('Translation error:', error);
                 hideTranslationLoading();
                 alert('Translation service is currently unavailable. Please try again later.');
             }
         }
         
         async function translateBatch(batch, langCode) {
             for (const item of batch) {
                 try {
                     const translatedText = await translateText(item.originalText, langCode);
                     if (translatedText && translatedText !== item.originalText) {
                         item.element.textContent = translatedText;
                     }
                 } catch (error) {
                     console.error('Error translating text:', error);
                     // Continue with next item if one fails
                 }
             }
         }
         
         async function translateText(text, targetLang) {
             try {
                 // Use MyMemory API (free, no API key required)
                 const response = await fetch(`https://api.mymemory.translated.net/get?q=${encodeURIComponent(text)}&langpair=en|${targetLang}`);
                 const data = await response.json();
                 
                 if (data.responseStatus === 200 && data.responseData && data.responseData.translatedText) {
                     return data.responseData.translatedText;
                 }
                 
                 // Fallback: try LibreTranslate if MyMemory fails
                 return await translateWithLibre(text, targetLang);
                 
             } catch (error) {
                 console.error('Translation API error:', error);
                 // Fallback to basic dictionary for common words
                 return translateBasic(text, targetLang);
             }
         }
         
         async function translateWithLibre(text, targetLang) {
             try {
                 // LibreTranslate public instance (backup)
                 const response = await fetch('https://libretranslate.com/translate', {
                     method: 'POST',
                     headers: {
                         'Content-Type': 'application/json',
                     },
                     body: JSON.stringify({
                         q: text,
                         source: 'en',
                         target: targetLang,
                         format: 'text'
                     })
                 });
                 
                 const data = await response.json();
                 return data.translatedText || text;
                 
             } catch (error) {
                 console.error('LibreTranslate error:', error);
                 return text;
             }
         }
         
         function translateBasic(text, targetLang) {
             // Basic dictionary for common banking terms
             const dictionary = {
                 'es': {
                     'Home': 'Inicio',
                     'About': 'Acerca de',
                     'Services': 'Servicios',
                     'Contact': 'Contacto',
                     'Login': 'Iniciar Sesión',
                     'Register': 'Registrarse',
                     'Open Account': 'Abrir Cuenta',
                     'Banking': 'Banca',
                     'Personal Banking': 'Banca Personal',
                     'Business Banking': 'Banca Empresarial',
                     'Loans': 'Préstamos',
                     'Cards': 'Tarjetas',
                     'Language': 'Idioma'
                 },
                 'fr': {
                     'Home': 'Accueil',
                     'About': 'À propos',
                     'Services': 'Services',
                     'Contact': 'Contact',
                     'Login': 'Connexion',
                     'Register': 'S\'inscrire',
                     'Open Account': 'Ouvrir un Compte',
                     'Banking': 'Banque',
                     'Personal Banking': 'Banque Personnelle',
                     'Business Banking': 'Banque d\'Entreprise',
                     'Loans': 'Prêts',
                     'Cards': 'Cartes',
                     'Language': 'Langue'
                 },
                 'de': {
                     'Home': 'Startseite',
                     'About': 'Über uns',
                     'Services': 'Dienstleistungen',
                     'Contact': 'Kontakt',
                     'Login': 'Anmelden',
                     'Register': 'Registrieren',
                     'Open Account': 'Konto Eröffnen',
                     'Banking': 'Banking',
                     'Personal Banking': 'Privatkundengeschäft',
                     'Business Banking': 'Firmenkundengeschäft',
                     'Loans': 'Kredite',
                     'Cards': 'Karten',
                     'Language': 'Sprache'
                 },
                 'it': {
                     'Home': 'Casa',
                     'About': 'Chi siamo',
                     'Services': 'Servizi',
                     'Contact': 'Contatto',
                     'Login': 'Accedi',
                     'Register': 'Registrati',
                     'Open Account': 'Apri Conto',
                     'Banking': 'Banking',
                     'Personal Banking': 'Banking Personale',
                     'Business Banking': 'Banking Aziendale',
                     'Loans': 'Prestiti',
                     'Cards': 'Carte',
                     'Language': 'Lingua'
                 },
                 'pt': {
                     'Home': 'Início',
                     'About': 'Sobre',
                     'Services': 'Serviços',
                     'Contact': 'Contato',
                     'Login': 'Entrar',
                     'Register': 'Registrar',
                     'Open Account': 'Abrir Conta',
                     'Banking': 'Bancário',
                     'Personal Banking': 'Banco Pessoal',
                     'Business Banking': 'Banco Empresarial',
                     'Loans': 'Empréstimos',
                     'Cards': 'Cartões',
                     'Language': 'Idioma'
                 }
             };
             
             return dictionary[targetLang] && dictionary[targetLang][text] ? dictionary[targetLang][text] : text;
         }
         
         function getLanguageName(code) {
             const names = {
                 'es': 'Spanish',
                 'fr': 'French', 
                 'de': 'German',
                 'it': 'Italian',
                 'pt': 'Portuguese'
             };
             return names[code] || code;
         }
         
         function showTranslationLoading() {
             // Create loading overlay
             const overlay = document.createElement('div');
             overlay.id = 'translation-loading';
             overlay.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50';
             overlay.innerHTML = `
                 <div class="bg-white dark:bg-gray-800 rounded-2xl p-6 text-center">
                     <div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600 mx-auto mb-4"></div> 
        
                     <p class="text-gray-700 dark:text-gray-300">Translating page...</p>
                 </div> 
        
             `;
             document.body.appendChild(overlay);
         }
         
         function hideTranslationLoading() {
             const overlay = document.getElementById('translation-loading');
             if (overlay) {
                 overlay.remove();
             }
         }
         
         // Initialize on page load
         document.addEventListener('DOMContentLoaded', function() {
             // Load saved language preference
             const savedLanguage = localStorage.getItem('selectedLanguage');
             if (savedLanguage && savedLanguage !== 'en') {
                 currentLanguage = savedLanguage;
                 updateFlagDisplay(savedLanguage);
             }
         });
         
         // Update the changeLanguage function to use the new approach
         window.changeLanguage = function(langCode) {
             currentLanguage = langCode;
             updateFlagDisplay(langCode);
             localStorage.setItem('selectedLanguage', langCode);
             
             if (langCode === 'en') {
                 location.reload();
             } else {
                 translatePage(langCode);
             }
         };
     </script>
   







<?php include 'livechat.php'; ?>






</body>

</html>