// Accent colour rotation const accents=["#00b9f9","#00ff9f","#ff0066","#ffaa00"]; let i=0; setInterval(()=>{ document.documentElement.style.setProperty("--accent",accents[i]); i=(i+1)%accents.length; },6000); // Tagline rotation const taglines=[ "Shaping the Future of Intelligence", "Ethical • Intelligent • Limitless", "Engineering Tomorrow’s Minds" ]; let t=0; setInterval(()=>{ document.getElementById("tagline").textContent=taglines[t]; t=(t+1)%taglines.length; },8000); // Auto-update footer date document.getElementById("policy-date").textContent=new Date().toISOString().split("T")[0]; // Email form const form=document.getElementById("emailForm"); form.addEventListener("submit",async e=>{ e.preventDefault(); const msg=document.getElementById("msg"); if(!document.getElementById("consent").checked){msg.textContent="⚠️ Please accept the privacy policy.";return;} try{ await fetch("https://formspree.io/f/your_form_id",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:document.getElementById("email").value})}); msg.textContent="✅ Thank you! We'll keep you updated."; form.reset(); }catch(err){msg.textContent="⚠️ Network error. Try again later.";} }); // Simple IQ tester const questions=[ {q:"AI ethics primarily concern?",a:["Moral use of AI","Training speed","Hardware cooling"],c:0}, {q:"Which is an AI language model?",a:["TensorFlow","ChatGPT","Photoshop"],c:1}, {q:"Data privacy is part of?",a:["AI ethics","GPU optimization","Image rendering"],c:0} ]; const startBtn=document.getElementById("startIQ"); const quiz=document.getElementById("quiz"); const question=document.getElementById("question"); const answers=document.getElementById("answers"); const next=document.getElementById("next"); const result=document.getElementById("result"); let index=0,score=0; startBtn.onclick=()=>{ startBtn.style.display="none"; quiz.classList.remove("hidden"); loadQ(); }; function loadQ(){ question.textContent=questions[index].q; answers.innerHTML=""; questions[index].a.forEach((opt,i)=>{ const b=document.createElement("button"); b.textContent=opt; b.onclick=()=>{if(i===questions[index].c)score++;next.disabled=false;}; answers.appendChild(b); }); next.disabled=true; } next.onclick=()=>{ index++; if(index