/* ============================================================
   CHARGERBIH — motion layer
   Adds on top of style.css without touching existing rules.
   ============================================================ */

:root {
  --color-electric: #00e5a0;
  --color-electric-deep: #00b880;
  --color-navy: #061019;
  --color-navy-soft: #0c1b28;
  --glow-electric: 0 0 40px rgba(0, 229, 160, 0.35);
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-electric), var(--color-primary, #078c2c));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 9999;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  border: 2px solid var(--color-electric);
  background: rgba(0, 229, 160, 0.12);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease,
    margin 0.25s ease, background 0.25s ease;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hovering {
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  background: rgba(0, 229, 160, 0.18);
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 160, 0.25);
  background: rgba(3, 10, 16, 0.5);
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-switch__link .flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lang-switch__link .lang-switch__code {
  line-height: 1;
}

.lang-switch__link.is-active,
.lang-switch__link:hover {
  background: var(--color-electric, #00e5a0);
  color: #041711;
  box-shadow: 0 0 16px rgba(0, 229, 160, 0.4);
}

.lang-switch__link.is-active .lang-switch__code,
.lang-switch__link:hover .lang-switch__code {
  color: #041711;
}

.lang-switch--mobile {
  display: none;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .nav-actions .lang-switch {
    display: none;
  }
  .lang-switch--mobile {
    display: inline-flex;
  }
}

/* ---------- Hero: energetic dark treatment ---------- */
.hero--home {
  position: relative;
  border-radius: var(--radius-xl, 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 160, 0.22), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(0, 229, 160, 0.14), transparent 40%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  color: #fff;
  padding: 3rem 0;
}

.hero--home .eyebrow {
  color: var(--color-electric);
}

.hero--home h1,
.hero--home p {
  color: #fff;
}

.hero--home .hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: var(--glow-electric);
}

.hero--home .hero-card strong {
  color: var(--color-electric);
  font-family: "Space Grotesk", sans-serif;
}

.hero--home .hero-card--dark {
  background: rgba(0, 229, 160, 0.12);
  border-color: rgba(0, 229, 160, 0.3);
}

.hero--home .hero-card--dark strong {
  color: #fff;
}

.hero--home .hero__copy,
.hero--home .hero__metrics {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  will-change: transform, opacity;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- Member logo tilt ---------- */
.member-logo-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

.member-logo-card:hover {
  box-shadow: var(--shadow-card, 0 26px 60px rgba(2, 31, 22, 0.12));
}

/* ---------- Stat cards: subtle glow on count values ---------- */
.stat-card strong[data-count-to] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Field helper hints (upload size/type notes) ---------- */
.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .custom-cursor {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}
