// ── Icon circles spin on click, same move as the avatar ───────
(function () {
  const icons = document.querySelectorAll('.skill-card-icon, .project-icon, .edu-icon, .nav-logo');
  icons.forEach((icon, i) => {
    icon.addEventListener('click', () => {
      if (window.achv) window.achv.mark('icon-' + i);
      if (icon.classList.contains('spinning')) return;
      icon.classList.add('spinning');
    });
    icon.addEventListener('animationend', () => {
      icon.classList.remove('spinning');
    });
  });
})();
