/* CodeByGaurav-style interaction layer — adapted for this portfolio.
   Hover/touch creates a moving gold highlight rather than only changing on click. */
(function(){
  document.querySelectorAll('.gold-hover').forEach(function(el){
    el.addEventListener('pointermove',function(e){
      const r=el.getBoundingClientRect();
      el.style.setProperty('--mx',((e.clientX-r.left)/r.width*100)+'%');
      el.style.setProperty('--my',((e.clientY-r.top)/r.height*100)+'%');
    });
    el.addEventListener('pointerenter',function(){
      el.classList.add('is-hovered');
    });
    el.addEventListener('pointerleave',function(){
      el.classList.remove('is-hovered');
      el.style.removeProperty('--mx');
      el.style.removeProperty('--my');
    });
  });
})();
