/* Custom animations and styles */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Stagger animation for lists */
.animate-stagger > * {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-stagger > *:nth-child(1) {
  animation-delay: 0.1s;
}
.animate-stagger > *:nth-child(2) {
  animation-delay: 0.2s;
}
.animate-stagger > *:nth-child(3) {
  animation-delay: 0.3s;
}
.animate-stagger > *:nth-child(4) {
  animation-delay: 0.4s;
}
.animate-stagger > *:nth-child(5) {
  animation-delay: 0.5s;
}
.animate-stagger > *:nth-child(6) {
  animation-delay: 0.6s;
}

/* Hero section star speckle background */
.hero-star-bg {
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.15) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 40px 40px, 60px 60px, 80px 80px, 50px 50px;
  background-position: 0 0, 20px 20px, 40px 40px, 60px 60px;
}

/* Solar panel pattern */
.solar-panel-pattern {
  background-image: repeating-linear-gradient(
      45deg,
      rgba(30, 64, 175, 0.15) 0px,
      rgba(30, 64, 175, 0.15) 3px,
      transparent 3px,
      transparent 25px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(30, 64, 175, 0.1) 0px,
      rgba(30, 64, 175, 0.1) 2px,
      transparent 2px,
      transparent 30px
    );
}

/* Dark textured background gradient */
.hero-dark-gradient {
  background: 
    /* Subtle noise texture */ radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.03) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(255, 255, 255, 0.02) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.025) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.015) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      circle at 10% 50%,
      rgba(255, 255, 255, 0.02) 0.5px,
      transparent 0.5px
    ),
    radial-gradient(
      circle at 90% 60%,
      rgba(255, 255, 255, 0.018) 0.5px,
      transparent 0.5px
    ),
    /* Dark blue gradient */
      linear-gradient(
        135deg,
        #0a0e27 0%,
        #0f172a 25%,
        #1e293b 50%,
        #0f172a 75%,
        #0a0e27 100%
      );
  background-size: 60px 60px, 80px 80px, 100px 100px, 70px 70px, 50px 50px,
    90px 90px, 100% 100%;
  background-position: 0 0, 30px 30px, 60px 60px, 20px 20px, 40px 40px,
    70px 70px, 0 0;
}
