document.addEventListener('DOMContentLoaded',function(){const fabContainer=document.getElementById('fabContainer');const fabMain=document.getElementById('fabMain');const fabBackdrop=document.getElementById('fabBackdrop');function toggleFab(){fabContainer.classList.toggle('active');fabMain.classList.toggle('active');fabBackdrop.classList.toggle('active');const svg=fabMain.querySelector('svg');if(fabContainer.classList.contains('active')){svg.innerHTML='<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>';}else{svg.innerHTML='<path d="M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"/>';}}fabMain.addEventListener('click',function(e){e.stopPropagation();toggleFab();});fabBackdrop.addEventListener('click',function(){if(fabContainer.classList.contains('active')){toggleFab();}});const fabOptions=document.querySelectorAll('.fab-option');fabOptions.forEach(option=>{option.addEventListener('click',function(){setTimeout(()=>{if(fabContainer.classList.contains('active')){toggleFab();}},200);});});document.addEventListener('keydown',function(e){if(e.key==='Escape'){if(fabContainer.classList.contains('active')){toggleFab();}if(navigation.classList.contains('open')){navigation.classList.remove('open');menuBackdrop.classList.remove('active');}}});const openBtn=document.querySelector('.open-btn');const closeBtn=document.querySelector('.menu-close');const navigation=document.querySelector('.navigation-holder');const menuBackdrop=document.getElementById('menuBackdrop');if(openBtn){openBtn.addEventListener('click',function(){navigation.classList.add('open');menuBackdrop.classList.add('active');document.body.style.overflow='hidden';});}if(closeBtn){closeBtn.addEventListener('click',function(){navigation.classList.remove('open');menuBackdrop.classList.remove('active');document.body.style.overflow='';});}if(menuBackdrop){menuBackdrop.addEventListener('click',function(){navigation.classList.remove('open');menuBackdrop.classList.remove('active');document.body.style.overflow='';});}const mobileLinks=document.querySelectorAll('.navigation-holder .navbar-nav a');mobileLinks.forEach(link=>{link.addEventListener('click',function(){if(window.innerWidth<=991){navigation.classList.remove('open');menuBackdrop.classList.remove('active');document.body.style.overflow='';}});});window.addEventListener('resize',function(){if(window.innerWidth>991){navigation.classList.remove('open');if(menuBackdrop)menuBackdrop.classList.remove('active');document.body.style.overflow='';}});});;