/**
 * ASHA Elesys - Hero Section Styles
 * Unique BEM selectors with asha-hero prefix
 */

/* CSS Variables - Scoped to asha-hero */
.asha-hero {
  --asha-primary: 152, 76%, 40%;
  --asha-primary-foreground: 0, 0%, 100%;
  --asha-secondary: 15, 90%, 55%;
  --asha-secondary-foreground: 0, 0%, 100%;
  --asha-accent: 199, 89%, 48%;
  --asha-accent-foreground: 0, 0%, 100%;
  --asha-hero-bg: 215, 65%, 24%;
  --asha-hero-bg-light: 215, 55%, 32%;
}

/* Hero Section */
.asha-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  overflow: hidden;
  background: hsl(var(--asha-hero-bg));
  font-family: 'Outfit', sans-serif;
  color: #fff !important;
  box-sizing: border-box;
}

.asha-hero *, .asha-hero *::before, .asha-hero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Background Effects Container */
.asha-hero__bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Base Gradient Overlay */
.asha-hero__gradient-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--asha-hero-bg)),
    hsl(185, 60%, 8%),
    hsl(var(--asha-hero-bg))
  );
}

/* Mesh Gradient Effect */
.asha-hero__mesh-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, hsla(var(--asha-primary), 0.3), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, hsla(var(--asha-accent), 0.25), transparent 45%),
    radial-gradient(ellipse 50% 60% at 70% 80%, hsla(var(--asha-secondary), 0.2), transparent 50%),
    radial-gradient(ellipse 40% 30% at 30% 70%, hsla(142, 70%, 45%, 0.15), transparent 40%);
}

/* Animated Gradient Orbs */
.asha-hero__orb {
  position: absolute;
  border-radius: 50%;
}

.asha-hero__orb--1 {
  width: 800px;
  height: 800px;
  top: -160px;
  right: -160px;
  background: radial-gradient(circle, hsla(var(--asha-primary), 0.15) 0%, transparent 70%);
  animation: asha-hero-orb1 20s ease-in-out infinite;
}

.asha-hero__orb--2 {
  width: 600px;
  height: 600px;
  bottom: -80px;
  left: -160px;
  background: radial-gradient(circle, hsla(var(--asha-accent), 0.12) 0%, transparent 70%);
  animation: asha-hero-orb2 15s ease-in-out infinite;
}

@keyframes asha-hero-orb1 {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(45deg); }
}

@keyframes asha-hero-orb2 {
  0%, 100% { transform: scale(1.2) rotate(0deg); }
  50% { transform: scale(1) rotate(-30deg); }
}

/* Animated Ring System */
.asha-hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.asha-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.asha-hero__ring--1 {
  width: 400px;
  height: 400px;
  left: -200px;
  top: -200px;
  border-color: hsla(var(--asha-primary), 0.15);
  animation: asha-hero-ring-rotate-cw 60s linear infinite, asha-hero-ring-scale 8s ease-in-out infinite;
}

.asha-hero__ring--2 {
  width: 550px;
  height: 550px;
  left: -275px;
  top: -275px;
  border-color: hsla(var(--asha-accent), 0.1);
  animation: asha-hero-ring-rotate-ccw 80s linear infinite, asha-hero-ring-scale 10s ease-in-out infinite;
}

.asha-hero__ring--3 {
  width: 700px;
  height: 700px;
  left: -350px;
  top: -350px;
  border-color: hsla(var(--asha-secondary), 0.08);
  animation: asha-hero-ring-rotate-cw 100s linear infinite, asha-hero-ring-scale 12s ease-in-out infinite;
}

@keyframes asha-hero-ring-rotate-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes asha-hero-ring-rotate-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes asha-hero-ring-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Glowing Nodes */
.asha-hero__node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: asha-hero-node-pulse 3s ease-in-out infinite;
}

/* Node positions: x = 50% + radius * cos(angle), y = 50% + radius * sin(angle) */
.asha-hero__node--1 {
  left: calc(50% + 200px);
  top: calc(50% + 0px);
  background: hsl(var(--asha-primary));
  box-shadow: 0 0 20px hsla(var(--asha-primary), 0.6), 0 0 40px hsla(var(--asha-primary), 0.3);
  animation-delay: 0s;
}

.asha-hero__node--2 {
  left: calc(50% + -100px);
  top: calc(50% + 173px);
  background: hsl(var(--asha-accent));
  box-shadow: 0 0 20px hsla(var(--asha-accent), 0.6), 0 0 40px hsla(var(--asha-accent), 0.3);
  animation-delay: 0.3s;
}

.asha-hero__node--3 {
  left: calc(50% + -100px);
  top: calc(50% + -173px);
  background: hsl(var(--asha-secondary));
  box-shadow: 0 0 20px hsla(var(--asha-secondary), 0.6), 0 0 40px hsla(var(--asha-secondary), 0.3);
  animation-delay: 0.6s;
}

.asha-hero__node--4 {
  left: calc(50% + 137px);
  top: calc(50% + 238px);
  background: hsl(var(--asha-accent));
  box-shadow: 0 0 20px hsla(var(--asha-accent), 0.6), 0 0 40px hsla(var(--asha-accent), 0.3);
  animation-delay: 0.9s;
}

.asha-hero__node--5 {
  left: calc(50% + -275px);
  top: calc(50% + 0px);
  background: hsl(var(--asha-primary));
  box-shadow: 0 0 20px hsla(var(--asha-primary), 0.6), 0 0 40px hsla(var(--asha-primary), 0.3);
  animation-delay: 1.2s;
}

.asha-hero__node--6 {
  left: calc(50% + 137px);
  top: calc(50% + -238px);
  background: hsl(var(--asha-secondary));
  box-shadow: 0 0 20px hsla(var(--asha-secondary), 0.6), 0 0 40px hsla(var(--asha-secondary), 0.3);
  animation-delay: 1.5s;
}

@keyframes asha-hero-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 1; }
}

/* Arc Paths */
.asha-hero__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.asha-hero__arc-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.asha-hero__arc-path--1 {
  animation: asha-hero-arc-draw 4s ease-in-out infinite;
}

.asha-hero__arc-path--2 {
  animation: asha-hero-arc-draw 5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes asha-hero-arc-draw {
  0% { stroke-dashoffset: 200; opacity: 0; }
  25% { opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  75% { opacity: 1; }
  100% { stroke-dashoffset: 200; opacity: 0; }
}

/* Floating Icons */
.asha-hero__icon {
  position: absolute;
  animation: asha-hero-icon-float 6s ease-in-out infinite;
}

.asha-hero__icon svg {
  filter: drop-shadow(0 0 12px currentColor);
}

.asha-hero__icon--sun {
  left: 8%;
  top: 20%;
  color: hsl(var(--asha-accent));
  animation-delay: 0s;
  animation-duration: 6s;
}

.asha-hero__icon--leaf {
  left: 88%;
  top: 25%;
  color: hsl(var(--asha-primary));
  animation-delay: 0.5s;
  animation-duration: 7s;
}

.asha-hero__icon--battery {
  left: 5%;
  top: 75%;
  color: hsl(var(--asha-secondary));
  animation-delay: 1s;
  animation-duration: 7s;
}

.asha-hero__icon--zap {
  left: 92%;
  top: 70%;
  color: hsl(var(--asha-primary));
  animation-delay: 1.5s;
  animation-duration: 8s;
}

.asha-hero__icon--droplets {
  left: 15%;
  top: 45%;
  color: hsl(var(--asha-accent));
  animation-delay: 2s;
  animation-duration: 8s;
}

.asha-hero__icon--wind {
  left: 85%;
  top: 48%;
  color: hsl(var(--asha-secondary));
  animation-delay: 2.5s;
  animation-duration: 9s;
}

@keyframes asha-hero-icon-float {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9) translateY(-15px) rotate(-5deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) translateY(15px) rotate(5deg);
  }
}

/* Subtle Grid */
.asha-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(hsla(var(--asha-primary), 0.8) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--asha-primary), 0.8) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* Particles */
.asha-hero__particles {
  position: absolute;
  inset: 0;
}

.asha-hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: asha-hero-particle-rise 8s ease-out infinite;
}

/* Generate 20 particles with varied positions */
.asha-hero__particle--1 { left: 8%; bottom: 5%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 0s; animation-duration: 7s; }
.asha-hero__particle--2 { left: 15%; bottom: 12%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 0.5s; animation-duration: 8s; }
.asha-hero__particle--3 { left: 22%; bottom: 8%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 1s; animation-duration: 9s; }
.asha-hero__particle--4 { left: 30%; bottom: 18%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 1.5s; animation-duration: 7.5s; }
.asha-hero__particle--5 { left: 38%; bottom: 3%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 2s; animation-duration: 8.5s; }
.asha-hero__particle--6 { left: 45%; bottom: 15%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 2.5s; animation-duration: 6.5s; }
.asha-hero__particle--7 { left: 52%; bottom: 7%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 3s; animation-duration: 9.5s; }
.asha-hero__particle--8 { left: 58%; bottom: 22%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 3.5s; animation-duration: 7s; }
.asha-hero__particle--9 { left: 65%; bottom: 10%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 4s; animation-duration: 8s; }
.asha-hero__particle--10 { left: 72%; bottom: 5%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 4.5s; animation-duration: 9s; }
.asha-hero__particle--11 { left: 78%; bottom: 18%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 5s; animation-duration: 7.5s; }
.asha-hero__particle--12 { left: 85%; bottom: 8%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 5.5s; animation-duration: 8.5s; }
.asha-hero__particle--13 { left: 92%; bottom: 12%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 6s; animation-duration: 6.5s; }
.asha-hero__particle--14 { left: 12%; bottom: 25%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 6.5s; animation-duration: 9.5s; }
.asha-hero__particle--15 { left: 28%; bottom: 28%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 7s; animation-duration: 7s; }
.asha-hero__particle--16 { left: 42%; bottom: 2%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 7.5s; animation-duration: 8s; }
.asha-hero__particle--17 { left: 55%; bottom: 20%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 8s; animation-duration: 9s; }
.asha-hero__particle--18 { left: 68%; bottom: 25%; background: hsl(var(--asha-secondary)); box-shadow: 0 0 6px hsla(var(--asha-secondary), 0.8); animation-delay: 8.5s; animation-duration: 7.5s; }
.asha-hero__particle--19 { left: 82%; bottom: 2%; background: hsl(var(--asha-primary)); box-shadow: 0 0 6px hsla(var(--asha-primary), 0.8); animation-delay: 9s; animation-duration: 8.5s; }
.asha-hero__particle--20 { left: 95%; bottom: 20%; background: hsl(var(--asha-accent)); box-shadow: 0 0 6px hsla(var(--asha-accent), 0.8); animation-delay: 9.5s; animation-duration: 6.5s; }

@keyframes asha-hero-particle-rise {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-400px) translateX(var(--asha-x-drift, 20px)) scale(0);
    opacity: 0;
  }
}

/* Content */
.asha-hero__content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  text-align: center;
}

/* Tagline Badge */
.asha-hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  border-radius: 9999px;
  border: 1px solid hsla(var(--asha-primary), 0.3);
  background: hsla(var(--asha-primary), 0.1);
  backdrop-filter: blur(8px);
  animation: asha-hero-fade-in-up 0.6s ease-out forwards;
}

.asha-hero__tagline-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--asha-primary));
  animation: asha-hero-pulse 2s ease-in-out infinite;
}

.asha-hero__tagline-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--asha-primary));
}

@keyframes asha-hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Hero Title */
.asha-hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #fff ;
}

.asha-hero__title-line {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  animation: asha-hero-title-reveal 0.8s ease-out forwards;
}

.asha-hero__title-line--1 { animation-delay: 0s; }
.asha-hero__title-line--2 { animation-delay: 0.15s; }
.asha-hero__title-line--3 { animation-delay: 0.3s; }

.asha-hero__title-gradient {
  background: linear-gradient(
    to right,
    hsl(var(--asha-primary)),
    hsl(160, 80%, 55%),
    hsl(var(--asha-accent))
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes asha-hero-title-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes asha-hero-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.asha-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: asha-hero-fade-in-up 0.6s ease-out forwards;
  animation-delay: 0.5s;
}

/* Outline Button */
.asha-hero__btn--outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: #fff !important;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.asha-hero__btn--outline:hover {
  border-color: hsl(var(--asha-primary));
  background: hsla(var(--asha-primary), 0.1);
}

.asha-hero__btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--asha-primary));
  animation: asha-hero-pulse 2s ease-in-out infinite;
}

/* Primary Button */
.asha-hero__btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.asha-hero__btn--primary:hover {
  transform: scale(1.03);
}

.asha-hero__btn--primary:hover .asha-hero__btn-arrow {
  transform: translateX(4px);
}

.asha-hero__btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--asha-primary)), hsl(160, 70%, 35%));
  border-radius: 9999px;
  z-index: -2;
}

.asha-hero__btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(var(--asha-primary), 0.4), transparent);
  border-radius: 9999px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asha-hero__btn--primary:hover .asha-hero__btn-glow {
  opacity: 1;
}

.asha-hero__btn-text {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 40%,
    hsla(var(--asha-accent), 0.8) 50%,
    #fff 60%,
    #fff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: asha-hero-shimmer 3s ease-in-out infinite;
}

@keyframes asha-hero-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}

.asha-hero__btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Scroll Indicator */
.asha-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: asha-hero-fade-in-up 0.6s ease-out forwards;
  animation-delay: 1s;
}

.asha-hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.asha-hero__scroll-wheel {
  width: 4px;
  height: 8px;
  background: hsl(var(--asha-primary));
  border-radius: 2px;
  animation: asha-hero-scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes asha-hero-scroll-wheel {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateY(6px);
  }
}

.asha-hero__scroll-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsla(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
  .asha-hero {
    padding: 1rem;
  }

  .asha-hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .asha-hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .asha-hero__btn--outline,
  .asha-hero__btn--primary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .asha-hero__icon {
    display: none;
  }

  .asha-hero__ring--3 {
    display: none;
  }

  .asha-hero__node--4,
  .asha-hero__node--5,
  .asha-hero__node--6 {
    display: none;
  }
}

@media (max-width: 480px) {
  .asha-hero__ring--2 {
    display: none;
  }

  .asha-hero__tagline {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  .asha-hero__scroll {
    display: none;
  }
}
