/* ============================================
   Nature-Inspired Visual Layer — BOLD Edition
   Dramatic effects, visible botanicals, video hero,
   organic transitions, lush scroll experience
   ============================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #C9A84C, #7BA05B, #E8A872, #C9A84C);
  background-size: 300% 100%;
  animation: gradientShift 4s ease infinite;
  z-index: 100;
}

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

/* --- Hero Video Background --- */
.hero {
  background: #FFFFFF;
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 12vh;
}

.hero__video-wrap {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Gradient overlays — strong readability over video */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.85) 25%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.3) 75%,
      rgba(255, 255, 255, 0.9) 95%,
      rgba(255, 255, 255, 1) 100%
    );
}

/* When video is active, orbs still show but more subtle */
.hero--has-video .hero__orbs { display: none; }

/* --- Animated Gradient Orbs (no-video fallback) --- */
.hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orbs::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, rgba(232, 168, 114, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat1 18s ease-in-out infinite;
}

.hero__orbs::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(123, 160, 91, 0.2) 0%, rgba(163, 196, 135, 0.08) 40%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat2 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 15px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -20px) scale(1.06); }
  66% { transform: translate(25px, 30px) scale(0.97); }
}

/* Third orb removed — was crossing headline text */
.hero::after {
  display: none;
}

/* --- Hero Eyebrow Badge --- */
.hero__eyebrow {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(255, 248, 240, 0.9);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
}

/* --- Organic Wave Dividers --- */
.wave-divider {
  width: 100%;
  line-height: 0;
  margin: -2px 0;
  position: relative;
  z-index: 2;
}

.wave-divider svg {
  width: 100%;
  height: 70px;
  display: block;
}

@media (min-width: 768px) {
  .wave-divider svg { height: 100px; }
}

/* --- Section Fade-In (VISIBLE) --- */
.section-fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-fade.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Staggered Children (VISIBLE) --- */
.stagger-child {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-child.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botanical leaves removed */
.botanical-float { display: none; }

/* --- Enhanced Person Cards --- */
.person-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.person-card:hover::before {
  transform: scaleX(1);
}

.person-card__img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.person-card:hover .person-card__img {
  transform: scale(1.06);
}

/* Warm glow on hover */
.person-card:hover {
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* --- Pillar Cards — Glassmorphism --- */
.pillar-card {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 76, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 168, 76, 0.25);
}

.pillar-card__icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-card__icon {
  transform: scale(1.15) rotate(5deg);
}

/* --- Charity Section — Nature Background --- */
.charity {
  position: relative;
  overflow: hidden;
}

.charity::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 160, 91, 0.12) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat2 20s ease-in-out infinite;
}

.charity__image {
  transition: transform 0.6s ease;
}

.charity__image:hover {
  transform: scale(1.02);
}

.charity__image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* --- Form Section — Warm Glow --- */
.form-section {
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.form-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 160, 91, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* --- Section Header Line Animation --- */
.section-header__line {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-visible .section-header__line,
.section-fade.section-visible .section-header__line {
  animation: lineGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 50px; }
}

/* --- CTA Button Glow --- */
.hero__cta {
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-green), var(--color-gold));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.hero__cta:hover::before {
  opacity: 0.5;
}

/* --- Footer Nature Accent --- */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-green), var(--color-gold));
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}

/* --- Navbar Scroll State --- */
.navbar--scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.96);
}

/* --- Charity Tags Hover --- */
.charity__tag {
  transition: background 0.2s ease, color 0.2s ease;
  cursor: default;
}

.charity__tag:nth-child(1):hover {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-gold-dark);
}

.charity__tag:nth-child(2):hover {
  background: rgba(123, 160, 91, 0.15);
  color: var(--color-green-dark);
}

.charity__tag:nth-child(3):hover {
  background: rgba(212, 135, 77, 0.15);
  color: var(--color-orange);
}

/* --- Gold Accent Button Pulse --- */
.btn--gold {
  position: relative;
}

.btn--gold::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--gold:hover::after {
  opacity: 1;
}

/* Petals removed */
.petal-canvas { display: none; }

/* --- Scroll-linked subtle lift on cards and images --- */
.scroll-lift {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Subtle separator line animation */
.section-header__line {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.section-visible .section-header__line {
  transform: scaleX(1);
}

/* --- Scroll-Triggered Decorative Elements --- */
.scroll-decoration {
  opacity: 0;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-decoration.decoration-visible {
  opacity: 1;
}

/* Decorative line that draws in */
.deco-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-green));
  margin: 2rem auto;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.decoration-visible .deco-line,
.section-visible .deco-line {
  width: 120px;
}

/* Decorative circle that scales in */
.deco-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  position: absolute;
  transform: scale(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.section-visible .deco-circle {
  transform: scale(1);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .botanical-float,
  .hero__orbs::before,
  .hero__orbs::after,
  .hero::after {
    animation: none !important;
  }

  .scroll-progress {
    animation: none;
  }

  .section-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stagger-child {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .person-card__img,
  .pillar-card,
  .pillar-card__icon {
    transition: none;
  }
}
