/* hero-banner.css */
/* Styling for ekolense.space live hero banner */

/* Root container */
#heroBanner {
  position: relative;
  width: 100%;
  border-radius: 1.5rem;
  overflow: visible;
  z-index: 10;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#heroBanner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #000);
  z-index: 5;
  pointer-events: none;
}


/* Gradient shimmer animation for background overlay */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #020617, #0f172a);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  border-radius: 1.5rem;
  opacity: 0.9;
}

/* Floating animation for hero image */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Headline animation area */
#heroHeadlines {
  position: relative;
  height: 4rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: start;
}

#heroHeadlines .headline {
  font-weight: 600;
  color: #f9fafb;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Glassmorphic background */
.hero-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Text glow on hover */
.hero-content h1 span.text-yellow-300 {
  transition: text-shadow 0.3s ease;
}
.hero-content h1 span.text-yellow-300:hover {
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

/* Buttons */
.hero-content a {
  transition: all 0.3s ease;
}

.hero-content a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Smooth fade for background changes */
#heroBg {
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  transition: background-image 1.5s ease-in-out;
}

/* Media Queries */
@media (max-width: 768px) {
  #heroBanner {
    border-radius: 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  #heroHeadlines {
    font-size: 1.2rem;
    height: 3.5rem;
  }

  .hero-content {
    padding: 1.5rem;
  }
}

/* Light shimmer on hover of hero section */
#heroBanner:hover .hero-content {
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.5s ease;
}
