/* ============================================================
   FEKRA — Hero Section, Glow Elements, Marquee
   ============================================================ */

/* ── Home hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Glow blobs (shared across pages) ──────────────────────── */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(1,166,81,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(7,29,61,0.4) 0%, transparent 70%);
  bottom: 0; left: 10%;
}
.glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(1,251,29,0.06) 0%, transparent 70%);
  top: 40%; right: 20%;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(1,166,81,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,166,81,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Hero content ───────────────────────────────────────────── */
.hero-content {
  position: relative; z-index: 2;
  padding-top: 40px; padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border-green);
  border-radius: 50px;
  margin-bottom: 36px;
  font-size: .8rem;
  color: var(--green);
  letter-spacing: .08em;
  background: rgba(1,166,81,0.05);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.hero-title-sub {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  color: var(--text-2);
  display: block;
  font-weight: 300;
}
.hero-sub-line {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ffffff;
  margin-bottom: 28px;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 44px;
}
.hero-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

/* ── Scroll indicator ───────────────────────────────────────── */
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); font-size: .75rem; letter-spacing: .15em;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

/* ── Marquee ────────────────────────────────────────────────── */
/*
  direction:ltr on the SECTION is the critical fix for RTL pages.
  Without it the track is right-aligned inside the section, so
  translateX(-25%) slides into empty space instead of group 2.
*/
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 18px 0;
  overflow: hidden;
  direction: ltr;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeLoop 32s linear infinite;
}
/*
  NO gap on the group, NO padding-right on the group.
  Spacing is carried by padding: 0 18px on every <span>.
  Adjacent spans always share 18px + 18px = 36px regardless
  of group boundary → pixel-identical seams, no drift/jump.
*/
.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--text-3);
  text-transform: uppercase;
  padding: 0 18px;
}
.marquee-group .sep {
  color: var(--green);
  font-size: .7rem;
  padding: 0 18px;
}

/* ── Page hero shared typography ────────────────────────────── */
.page-hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green);
  padding: 6px 18px;
  border: 1px solid var(--border-green);
  border-radius: 50px;
  margin-bottom: 28px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.page-hero-text {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 580px;
}
