if (window.particlesJS && document.getElementById('js-particles')) {
  particlesJS('js-particles', {
    particles: {
      number: { value: 70, density: { enable: true, value_area: 900 } },
      color: { value: ['#ff1b2d', '#ffffff'] },
      shape: { type: 'circle' },
      opacity: { value: 0.28, random: true, anim: { enable: false } },
      size: { value: 2.2, random: true, anim: { enable: false } },
      line_linked: { enable: false },
      move: { enable: true, speed: 0.8, direction: 'none', random: true, straight: false, out_mode: 'out' }
    },
    interactivity: { detect_on: 'canvas', events: { onhover: { enable: false }, onclick: { enable: false }, resize: true } },
    retina_detect: true
  });
}
