/* ================================
   HERO BACKGROUNDS
   Animated gradient stripe effects for hero sections
   EASY CONTROL: Change --hero-animation-enabled to toggle effect on/off
   ================================ */

:root {
  /* MASTER SWITCH: Change this to 'none' to disable hero animations site-wide */
  --hero-animation-enabled: smoothBg 120s linear infinite;

  /* Animation speed variants - uncomment to use */
  /* --hero-animation-enabled: smoothBg 110s linear infinite; */ /* Slightly faster */
  /* --hero-animation-enabled: smoothBg 90s linear infinite; */ /* Faster */
  /* --hero-animation-enabled: smoothBg 60s linear infinite; */ /* Original speed */
  /* --hero-animation-enabled: none; */ /* Disabled */
}

/* Smooth Background Animation */
@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

/* Apply animated background to all hero sections (except index) */
.ethos-hero,
.pricing-hero,
.how-it-works-hero,
.faq-hero,
.contact-hero,
.our-work-hero {
  position: relative;
  overflow: hidden;
}

.ethos-hero::before,
.pricing-hero::before,
.how-it-works-hero::before,
.faq-hero::before,
.contact-hero::before,
.our-work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;

  --stripes: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );

  /* Multi-color gradient (original) */
  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );

  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(15px) opacity(50%) saturate(200%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
}

.ethos-hero::after,
.pricing-hero::after,
.how-it-works-hero::after,
.faq-hero::after,
.contact-hero::after,
.our-work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  --stripes: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );

  /* Multi-color gradient (original) */
  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );

  /* Add dark overlay to dim the colors */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    var(--stripes),
    var(--rainbow);
  background-size: 100%, 200%, 100%;
  animation: var(--hero-animation-enabled);
  background-attachment: fixed;
  mix-blend-mode: difference;
  filter: blur(15px) opacity(50%) saturate(200%);
}

/* Ensure content sits above background but below navigation */
.ethos-hero > *,
.pricing-hero > *,
.how-it-works-hero > *,
.faq-hero > *,
.contact-hero > *,
.our-work-hero > * {
  position: relative;
  z-index: 1;
}

/* Hero sections themselves need lower z-index than nav */
.ethos-hero,
.pricing-hero,
.how-it-works-hero,
.faq-hero,
.contact-hero,
.our-work-hero {
  position: relative;
  z-index: 1;
}

/* ================================
   CUSTOMIZATION GUIDE
   ================================

   1. DISABLE ALL ANIMATIONS:
      Change line 9 to: --hero-animation-enabled: none;

   2. CHANGE ANIMATION SPEED:
      Current: 120s (very slow and subtle - barely noticeable)
      - Slightly faster: --hero-animation-enabled: smoothBg 110s linear infinite;
      - Faster: --hero-animation-enabled: smoothBg 90s linear infinite;
      - Fast: --hero-animation-enabled: smoothBg 60s linear infinite;

   3. CHANGE COLORS:
      Edit the --rainbow gradient (lines 62-69 and 100-107)
      Current: Multi-color (#60a5fa blue, #e879f9 pink, #5eead4 cyan)
      Alternatives:
      - Teal brand: #1dd1a1, #10ac84, #80EF80
      - Purple theme: #e879f9, #d946ef, #c026d3

   4. ADJUST DIM OVERLAY:
      Line 111: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6))
      Increase 0.6 to 0.8 = darker
      Decrease 0.6 to 0.4 = brighter

   5. ADJUST BLUR AMOUNT:
      Lines 74 and 118: filter: blur(15px)
      Increase 15px to 20px = softer/more abstract
      Decrease 15px to 10px = sharper/more visible

   6. CHANGE STRIPE DENSITY:
      Edit --stripes gradient percentages (lines 52-58 and 90-96)
      Increase percentages = wider stripes
      Decrease percentages = narrower stripes

   7. DISABLE SPECIFIC PAGE:
      Add this to the page's CSS file:
      .{page}-hero::before,
      .{page}-hero::after {
        display: none;
      }
   ================================ */
