/* Index Page Theme - Northern Lights / Aurora Effect */

:root {
  /* Combined site palette */
  --index-violet: #8B5CF6;
  --index-amethyst: #9966CC;
  --index-deep-purple: #6B21A8;
  --index-soft-violet: #A78BFA;
  --index-silver: #C0C0D2;
  /* FLAME colours */
  --index-flame-orange: #e28040;
  --index-flame-gold: #f5c060;
  --index-flame-coral: #d87090;
  /* Moonlit colours */
  --index-sapphire: #4169E1;
  --index-indigo: #2E1A47;
  /* Healing colours */
  --index-magenta: #D946EF;
  --index-rose-gold: #B76E79;
  --index-pink: #F0ABFC;
  /* 7 Pillars colours */
  --index-pillars-green: #7a9b6f;
  --index-pillars-green-light: #a4c496;
}

/* Northern lights effect - soft flowing colours with depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Foreground aurora waves - more saturated */
    radial-gradient(ellipse 150% 80% at 20% 0%, rgba(90, 130, 80, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 120% 90% at 50% 10%, rgba(110, 60, 220, 0.45) 0%, transparent 40%),
    radial-gradient(ellipse 140% 70% at 80% 5%, rgba(45, 80, 200, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse 100% 100% at 10% 30%, rgba(170, 170, 200, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 130% 80% at 70% 40%, rgba(180, 50, 210, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse 110% 90% at 30% 60%, rgba(130, 170, 120, 0.35) 0%, transparent 40%),
    radial-gradient(ellipse 150% 70% at 90% 70%, rgba(220, 165, 70, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse 120% 80% at 50% 85%, rgba(200, 100, 45, 0.35) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

/* Mid layer - richer colour pools */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Deeper colour pools for richness */
    radial-gradient(ellipse 180% 120% at 0% 0%, rgba(160, 160, 190, 0.3) 0%, transparent 55%),
    radial-gradient(ellipse 160% 100% at 100% 20%, rgba(100, 50, 180, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 140% 120% at 20% 50%, rgba(85, 120, 75, 0.28) 0%, transparent 45%),
    radial-gradient(ellipse 180% 90% at 80% 60%, rgba(200, 130, 210, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 160% 110% at 50% 100%, rgba(210, 160, 70, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse 130% 130% at 100% 100%, rgba(190, 95, 50, 0.28) 0%, transparent 50%),
    /* Deep base shadows for dimension */
    radial-gradient(ellipse 200% 200% at 50% 50%, rgba(20, 15, 35, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(25px);
}

/* Enhanced hero text styling */
.hero__eyebrow {
  color: var(--index-silver) !important;
  text-shadow: 0 0 20px rgba(192, 192, 210, 0.5);
  font-weight: 500;
}

.hero__title {
  color: #fff !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(139, 92, 246, 0.3),
    0 0 80px rgba(212, 168, 75, 0.2);
}

.hero__title em {
  background: linear-gradient(135deg, var(--index-silver) 0%, var(--index-flame-gold) 50%, var(--index-flame-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(212, 168, 75, 0.4));
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* Enhanced Discover section */
.hero__scroll {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    #A78BFA,
    #8B5CF6,
    #7C3AED,
    transparent
  );
}

/* Enhanced Navigation */
.nav {
  background: linear-gradient(180deg, rgba(26, 22, 37, 0.95) 0%, rgba(26, 22, 37, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo {
  background: linear-gradient(135deg, var(--index-silver) 0%, var(--index-flame-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav__link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: all 0.3s ease;
}

.nav__link:hover {
  color: #fff !important;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.nav__link::after {
  background: linear-gradient(90deg, var(--index-silver), var(--index-violet), var(--index-flame-gold)) !important;
  height: 2px !important;
}

.nav__link--active {
  color: #fff !important;
}

.nav__link--active::after {
  width: 100% !important;
}

/* Philosophy section - stronger amethyst glow on left */
.philosophy {
  position: relative;
}

/* Lisa image in philosophy section */
.philosophy__lisa-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/lisa/QS0Oj8XG.jpeg');
  background-size: cover;
  background-position: center;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, black 100%);
  opacity: 0.8;
}

/* Mobile: Stack layout with Lisa image on top */
@media (max-width: 768px) {
  .philosophy__lisa-image {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: var(--space-xl);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    opacity: 1;
  }

  .philosophy .philosophy__content {
    max-width: 100% !important;
  }
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 0% 30%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 0% 70%,
      rgba(153, 102, 204, 0.12) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Programs section - violet glow on both sides */
.programs {
  position: relative;
}
.programs::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 0% 50%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 100% 50%,
      rgba(153, 102, 204, 0.1) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

/* 7 Pillars section - violet/amethyst glow from top */
#pillars {
  position: relative;
}
#pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 30% 20%,
      rgba(153, 102, 204, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 70% 20%,
      rgba(167, 139, 250, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

/* Testimonials - Horizontal Scroll */
.testimonials-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-md) 0 var(--space-xl) 0;
  margin: var(--space-xl) 0;
  -webkit-overflow-scrolling: touch;
}

.testimonials-carousel::-webkit-scrollbar {
  height: 6px;
}

.testimonials-carousel::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
  background: var(--index-amethyst);
  border-radius: 3px;
}

.testimonials-hint {
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}

/* CTA section - flowing violet gradient */
.section--large.text-center:last-of-type {
  position: relative;
}
.section--large.text-center:last-of-type::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 60%
    ),
    linear-gradient(
      to right,
      rgba(153, 102, 204, 0.15) 0%,
      rgba(139, 92, 246, 0.1) 50%,
      rgba(107, 33, 168, 0.15) 100%
    );
  pointer-events: none;
  z-index: 0;
}

/* About Lisa section - violet accent */
.section--large[style*="bg-secondary"]:not(:last-of-type) {
  position: relative;
}
.section--large[style*="bg-secondary"]:not(:last-of-type)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 100% 30%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Pillar cards - subtle violet border glow on hover */
.pillar-card {
  transition: all 0.3s ease;
}
.pillar-card:hover {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(139, 92, 246, 0.15);
}

/* Testimonial cards - violet accent */
.testimonial {
  flex: 0 0 350px;
  scroll-snap-align: start;
  padding: var(--space-xl);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--index-amethyst);
}

@media (max-width: 480px) {
  .testimonial {
    flex: 0 0 85vw;
  }
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin: 0;
  color: var(--text-primary);
}

/* Divider with violet accent */
.divider--gold {
  background: linear-gradient(
    to right,
    transparent,
    rgba(139, 92, 246, 0.3),
    rgba(153, 102, 204, 0.5),
    rgba(139, 92, 246, 0.3),
    transparent
  ) !important;
}

/* Silver to Gold to Orange gradient button - matches "Alchemy" text */
.btn--silver-gold {
  background: linear-gradient(135deg, var(--index-silver) 0%, var(--index-flame-gold) 50%, var(--index-flame-orange) 100%);
  color: #1a1a2e;
  border: none;
  font-weight: 600;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn--silver-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

.btn--silver-gold:hover {
  background: linear-gradient(135deg, #D0D0E2 0%, #f5c060 50%, #f09050 100%);
  box-shadow:
    0 4px 20px rgba(226, 128, 64, 0.5),
    0 0 30px rgba(192, 192, 210, 0.4);
  transform: translateY(-2px);
}

/* Moonlit Pathway - Silver/Sapphire/Amethyst theme */
[data-theme="dark"] .program-card--moonlit .program-card__background {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(153, 102, 204, 0.4) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(65, 105, 225, 0.45) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, var(--bg-tertiary) 0%, var(--bg-tertiary) 100%) !important;
}

.program-card--moonlit {
  border: 1px solid rgba(153, 102, 204, 0.5) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 80px rgba(65, 105, 225, 0.2),
    inset 0 0 40px rgba(153, 102, 204, 0.15) !important;
}

.program-card--moonlit:hover {
  border: 1px solid rgba(153, 102, 204, 0.7) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 100px rgba(65, 105, 225, 0.3),
    inset 0 0 60px rgba(153, 102, 204, 0.25),
    0 0 50px rgba(139, 92, 246, 0.2) !important;
}

.program-card--moonlit .program-card__icon {
  filter: drop-shadow(0 0 30px rgba(153, 102, 204, 0.9)) !important;
}

.program-card--moonlit .program-card__title {
  color: #c0c0d2 !important;
  text-shadow: 0 0 25px rgba(153, 102, 204, 0.6);
}

/* F.L.A.M.E - Burnt Orange/Ember with subtle violet undertone */
[data-theme="dark"] .program-card--flame .program-card__background {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(226, 139, 26, 0.55) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(180, 80, 20, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(107, 33, 168, 0.15) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, var(--bg-tertiary) 0%, var(--bg-tertiary) 100%) !important;
}

.program-card--flame {
  border: 1px solid rgba(226, 139, 26, 0.5) !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 80px rgba(226, 139, 26, 0.2),
    inset 0 0 40px rgba(180, 80, 20, 0.15) !important;
}

.program-card--flame:hover {
  border: 1px solid rgba(226, 139, 26, 0.7) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 100px rgba(226, 139, 26, 0.3),
    inset 0 0 60px rgba(180, 80, 20, 0.2),
    0 0 50px rgba(226, 139, 26, 0.25),
    0 0 30px rgba(107, 33, 168, 0.1) !important;
}

.program-card--flame .program-card__icon {
  filter: drop-shadow(0 0 30px rgba(226, 139, 26, 1)) !important;
}

.program-card--flame .program-card__title {
  color: #e28b1a !important;
  text-shadow: 0 0 25px rgba(226, 139, 26, 0.6);
}

/* Accent text with subtle violet */
.accent-text.text-gold {
  background: linear-gradient(90deg, var(--gold-primary), var(--index-soft-violet)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
