// Initialize AOS and any welcome-page specific interactions
(function(){
	try{
		if (typeof AOS !== 'undefined' && AOS.init) {
			AOS.init({
				once: true,
				offset: 80,
				duration: 700,
				easing: 'ease-out-cubic'
			});
		}

		// Autofocus email field when login modal opens
		var loginModalEl = document.getElementById('loginModal');
		if (loginModalEl) {
			loginModalEl.addEventListener('shown.bs.modal', function(){
				var emailInput = document.getElementById('loginEmail');
				if (emailInput) { emailInput.focus(); }
			});
		}
	}catch(e){
		console && console.warn && console.warn('AOS init failed:', e);
	}
})();

