        document.addEventListener('DOMContentLoaded', function(){
function scrollToSection(id){
const el=document.querySelector(id);
if(el){
el.scrollIntoView({ behavior: 'smooth' });
}}
window.scrollToSection=scrollToSection;
document.addEventListener('scroll', function(){
if(window.scrollY > 50){
document.body.classList.add('scrolled');
}else{
document.body.classList.remove('scrolled');
}});
});