/* ============================================
   AGROVISION - HERO SECTION STYLES
   Scroll animation canvas and hero-specific styles
   ============================================ */

/* Hero Animation Section */
.hero-section {
  height: 400vh;
  position: relative;
  background-color: #000;
  z-index: 10;
}

/* Canvas Container */
.canvas-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Canvas Element */
#hero-lightpass {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* Scroll Text Overlay */
.scroll-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 1; /* JS controls opacity based on scroll */
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 5.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #65fea3; /* Brighter highlight green */
  text-shadow: 
    0 0 15px rgba(0, 0, 0, 0.9), 
    0 0 30px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(101, 254, 163, 0.6);
  animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
    text-shadow: 
      0 0 15px rgba(0, 0, 0, 0.9), 
      0 0 30px rgba(0, 0, 0, 0.7),
      0 0 40px rgba(101, 254, 163, 0.4);
  }
  100% {
    transform: scale(1.05);
    text-shadow: 
      0 0 15px rgba(0, 0, 0, 0.9), 
      0 0 30px rgba(0, 0, 0, 0.7),
      0 0 60px rgba(101, 254, 163, 0.9),
      0 0 90px rgba(101, 254, 163, 0.6);
  }
}

.scroll-overlay.hidden {
  opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
}
