/* =========================================================================
   Twinkle Stars Effect - Scoped to Header Only
   -------------------------------------------------------------------------
   Ensures the twinkling stars appear only in the top header area and not
   across the entire page.
========================================================================= */

/* Wrapper around header content to contain the star field */
.twinkle-wrapper {
  position: relative;     /* Enables absolutely positioned stars to align here */
  overflow: hidden;       /* Ensures stars don’t spill outside the header */
  z-index: 0;             /* Base layer under other header elements */
}

/* Container for the twinkling stars */
.twinkle-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;           /* Fill the entire header area */
  pointer-events: none;   /* Allow clicks to pass through to nav/logo */
  z-index: 1;             /* Behind actual content like logo/nav */
}

/* Individual twinkle stars */
.twinkle-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite ease-in-out;
}

/* Animation for twinkling stars */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
