/* ==========================================================================
   Hero Effects CSS - Particle Network + Typing Cursor
   ========================================================================== */

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  color: var(--color-primary, #080808);
  font-weight: 400;
  margin-left: 2px;
  animation: blink 1.06s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Hero Particles Canvas */
.hero-particles {
  opacity: 0;
  animation: fadeInParticles 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInParticles {
  to {
    opacity: 1;
  }
}

/* Ensure hero content is above particles */
.hero__content {
  position: relative;
  z-index: 1;
}

/* Smooth fade in for hero title */
.hero__title {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Reduce particles on smaller screens */
@media (max-width: 768px) {
  .hero-particles {
    opacity: 0.5; /* More subtle on mobile */
  }
}

/* Performance optimization - disable particles on very small screens if needed */
@media (max-width: 480px) {
  .hero-particles {
    opacity: 0.7; /* Optional: completely hide on very small screens */
  }
}