/* Hero Section Container */
.hero-grid-section {
  position: relative;
  overflow: hidden;
  background: #050505;
  min-height: 550px;
}

/* Animated Gradient Background - sehr subtil */
.animated-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(118, 9, 145, 0.08) 0%, 
    rgba(164, 50, 192, 0.05) 25%,
    rgba(118, 9, 145, 0.03) 50%,
    rgba(164, 50, 192, 0.05) 75%,
    rgba(118, 9, 145, 0.08) 100%
  );
  background-size: 400% 400%;
  animation: gradient-flow 15s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Particles */
.animated-grid::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(164, 50, 192, 0.7), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(118, 9, 145, 0.7), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(164, 50, 192, 0.5), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(118, 9, 145, 0.6), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(164, 50, 192, 0.4), transparent),
    radial-gradient(2px 2px at 30% 80%, rgba(118, 9, 145, 0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(164, 50, 192, 0.6), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particles-float 20s ease-in-out infinite;
}

@keyframes particles-float {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%, 40% 60%, 60% 40%;
    opacity: 1;
  }
  50% { 
    background-position: 100% 100%, 0% 0%, 30% 70%, 20% 80%, 80% 20%, 60% 40%, 40% 60%;
    opacity: 0.8;
  }
}

/* Additional Particle Layer */
.animated-grid::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25% 45%, rgba(164, 50, 192, 0.3), transparent),
    radial-gradient(1px 1px at 75% 25%, rgba(118, 9, 145, 0.4), transparent),
    radial-gradient(2px 2px at 45% 75%, rgba(164, 50, 192, 0.5), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(118, 9, 145, 0.3), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(164, 50, 192, 0.4), transparent);
  background-size: 200% 200%;
  animation: particles-float-2 25s ease-in-out infinite;
}

@keyframes particles-float-2 {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 20% 80%;
  }
  50% { 
    background-position: 100% 0%, 0% 100%, 30% 70%, 20% 80%, 80% 20%;
  }
}

/* Central Glow Effect - subtiler */
.hero-grid-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, 
    rgba(118, 9, 145, 0.25) 0%, 
    rgba(164, 50, 192, 0.15) 30%,
    transparent 65%
  );
  filter: blur(70px);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.8;
  }
}

/* Orbiting Light Effect */
.hero-grid-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #a432c0;
  border-radius: 50%;
  box-shadow: 
    0 0 15px rgba(164, 50, 192, 0.8),
    0 0 30px rgba(164, 50, 192, 0.5),
    0 0 45px rgba(164, 50, 192, 0.3);
  animation: orbit 10s linear infinite;
  z-index: 2;
}

@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
  }
}

/* Floating Lines Effect */
.hero-grid-section .floating-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-grid-section .floating-lines span {
  position: absolute;
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(transparent, rgba(164, 50, 192, 0.4), transparent);
  animation: float-line 15s linear infinite;
  opacity: 0.7;
}

.hero-grid-section .floating-lines span:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.hero-grid-section .floating-lines span:nth-child(2) {
  left: 25%;
  animation-delay: 2s;
  animation-duration: 15s;
}

.hero-grid-section .floating-lines span:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  animation-duration: 10s;
}

.hero-grid-section .floating-lines span:nth-child(4) {
  left: 55%;
  animation-delay: 1s;
  animation-duration: 13s;
}

.hero-grid-section .floating-lines span:nth-child(5) {
  left: 70%;
  animation-delay: 3s;
  animation-duration: 11s;
}

.hero-grid-section .floating-lines span:nth-child(6) {
  left: 85%;
  animation-delay: 5s;
  animation-duration: 14s;
}

@keyframes float-line {
  0% {
    top: -100px;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-grid-section::before {
    width: 350px;
    height: 350px;
  }
  
  @keyframes orbit {
    0% {
      transform: translate(-50%, -50%) rotate(0deg) translateX(150px) rotate(0deg);
    }
    100% {
      transform: translate(-50%, -50%) rotate(360deg) translateX(150px) rotate(-360deg);
    }
  }
}