/**
 * ELIO SOLAR - LANDING HERO SECTION (SODIUM BATTERY)
 * Premium hero section highlighting sodium battery exclusivity
 * Version: 1.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Hero Colors */
  --hero-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --hero-text-primary: #ffffff;
  --hero-text-secondary: rgba(255, 255, 255, 0.85);
  --hero-accent-gold: #fbbf24;
  --hero-accent-blue: #3b82f6;

  /* Sodium Glow Effect */
  --sodium-glow-color: #fbbf24;
  --sodium-glow-shadow: 0 0 40px rgba(251, 191, 36, 0.6),
                        0 0 80px rgba(251, 191, 36, 0.4),
                        0 0 120px rgba(251, 191, 36, 0.2);

  /* Hero Dimensions */
  --hero-min-height: 700px;
  --hero-min-height-mobile: 600px;
  --hero-padding-y: 120px;
  --hero-padding-y-mobile: 80px;
  --hero-max-width: 1400px;

  /* CTA Button */
  --cta-primary-bg: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --cta-primary-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
  --cta-primary-shadow-hover: 0 12px 48px rgba(251, 191, 36, 0.6);

  /* Badges */
  --badge-premium-bg: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --badge-premium-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* ============================================
   HERO CONTAINER
   ============================================ */

.hero-sodium {
  position: relative;
  min-height: var(--hero-min-height);
  background: var(--hero-bg-gradient);
  color: var(--hero-text-primary);
  padding: var(--hero-padding-y) 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated particle background */
.hero-sodium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  animation: particleFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-sodium-container {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ============================================
   HERO CONTENT (LEFT COLUMN)
   ============================================ */

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Premium Badges */
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--badge-premium-bg);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 24px;
  box-shadow: var(--badge-premium-shadow);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: var(--badge-premium-shadow); }
  50% { transform: scale(1.05); box-shadow: 0 6px 24px rgba(59, 130, 246, 0.6); }
}

.hero-badge-icon {
  width: 16px;
  height: 16px;
}

/* Main Headline */
.hero-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headlineShine 3s ease-in-out infinite;
}

@keyframes headlineShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-headline-highlight {
  color: var(--hero-accent-gold);
  display: block;
  margin-top: 8px;
  font-size: 64px;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

/* Subheadline */
.hero-subheadline {
  font-size: 20px;
  line-height: 1.6;
  color: var(--hero-text-secondary);
  margin: 0;
  font-weight: 400;
}

/* Benefit Pills */
.hero-benefits {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

.hero-benefit-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  background: var(--cta-primary-bg);
  border: none;
  border-radius: 16px;
  box-shadow: var(--cta-primary-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--cta-primary-shadow-hover);
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta:active {
  transform: translateY(-2px) scale(0.98);
}

.hero-cta-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.hero-cta:hover .hero-cta-icon {
  transform: translateX(4px);
}

/* Trust Signal */
.hero-trust {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust-icon {
  width: 20px;
  height: 20px;
  fill: #10b981;
}

/* ============================================
   HERO VISUAL (RIGHT COLUMN)
   ============================================ */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Battery Image Container */
.hero-battery-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glowing Circle Background */
.hero-battery-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* Battery Image */
.hero-battery-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-width: 450px;
  filter: drop-shadow(var(--sodium-glow-shadow));
  animation: batteryFloat 4s ease-in-out infinite;
}

@keyframes batteryFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Floating Stats */
.hero-floating-stats {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-floating-stats--left {
  top: 20%;
  left: -20px;
}

.hero-floating-stats--right {
  bottom: 20%;
  right: -20px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  min-width: 140px;
  animation: statFloat 3s ease-in-out infinite;
}

.hero-stat-card:nth-child(1) { animation-delay: 0s; }
.hero-stat-card:nth-child(2) { animation-delay: 0.5s; }

@keyframes statFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0 0;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1200px) {
  .hero-sodium-container {
    gap: 48px;
  }

  .hero-headline {
    font-size: 48px;
  }

  .hero-headline-highlight {
    font-size: 56px;
  }

  .hero-battery-img {
    max-width: 400px;
  }

  .hero-floating-stats--left {
    left: 0;
  }

  .hero-floating-stats--right {
    right: 0;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 1023px) {
  :root {
    --hero-min-height: var(--hero-min-height-mobile);
    --hero-padding-y: var(--hero-padding-y-mobile);
  }

  .hero-sodium {
    padding: var(--hero-padding-y-mobile) 20px;
  }

  .hero-sodium-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-headline {
    font-size: 36px;
  }

  .hero-headline-highlight {
    font-size: 42px;
  }

  .hero-subheadline {
    font-size: 18px;
  }

  .hero-benefits {
    justify-content: center;
  }

  .hero-cta {
    width: 100%;
    max-width: 400px;
  }

  .hero-trust {
    justify-content: center;
  }

  /* Visual adjustments */
  .hero-visual {
    padding: 20px;
  }

  .hero-battery-glow {
    width: 300px;
    height: 300px;
  }

  .hero-battery-img {
    max-width: 300px;
  }

  .hero-floating-stats {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
  }

  .hero-stat-card {
    min-width: 120px;
  }

  .hero-stat-value {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 32px;
  }

  .hero-headline-highlight {
    font-size: 36px;
  }

  .hero-benefit-pill {
    font-size: 14px;
    padding: 10px 16px;
  }

  .hero-floating-stats {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .hero-sodium::before,
  .hero-battery-glow,
  .hero-cta,
  .hero-floating-stats {
    display: none;
  }

  .hero-sodium {
    min-height: auto;
    padding: 40px 20px;
    background: white;
    color: black;
  }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-sodium::before,
  .hero-badge,
  .hero-headline,
  .hero-battery-glow,
  .hero-battery-img,
  .hero-stat-card,
  .hero-cta::before {
    animation: none !important;
  }

  .hero-benefit-pill:hover,
  .hero-cta:hover {
    transform: none !important;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.hero-cta:focus {
  outline: 3px solid var(--hero-accent-gold);
  outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-sodium {
    background: #000000;
  }

  .hero-headline,
  .hero-headline-highlight {
    -webkit-text-fill-color: #ffffff;
    background: none;
    text-shadow: none;
  }

  .hero-benefit-pill {
    border: 2px solid white;
  }
}
