/* ============================================
   TEXT ANIMATIONS - OPTIONAL ENHANCEMENTS
   Add class to your element to activate animation
   Remove class or this file to revert
   ============================================ */

/* ============================================
   OPTION 1: Underline Draw Animation
   Add class: bd_underline_animated
   The underline draws from left to right on page load
   ============================================ */
.bd_underline_animated {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.bd_underline_animated::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.274054rem;
  width: 0;
  height: 0.156602rem;
  background-color: #D937CC;
  z-index: -1;
  animation: underline-draw 1s ease-out 0.8s forwards;
}

@keyframes underline-draw {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}


/* ============================================
   OPTION 2: Typewriter Effect for Full Title
   Add class: bd_typewriter to the h1
   Words appear one by one
   ============================================ */
.bd_typewriter {
  overflow: hidden;
}

.bd_typewriter .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: word-reveal 0.5s ease forwards;
}

.bd_typewriter .word:nth-child(1) { animation-delay: 0.2s; }
.bd_typewriter .word:nth-child(2) { animation-delay: 0.4s; }
.bd_typewriter .word:nth-child(3) { animation-delay: 0.6s; }
.bd_typewriter .word:nth-child(4) { animation-delay: 0.8s; }
.bd_typewriter .word:nth-child(5) { animation-delay: 1s; }

@keyframes word-reveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   OPTION 3: Highlight Sweep Animation
   Add class: bd_highlight_sweep
   A color highlight sweeps behind the text
   ============================================ */
.bd_highlight_sweep {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.bd_highlight_sweep::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 40%;
  background: linear-gradient(90deg, rgba(217, 55, 204, 0.3), rgba(217, 55, 204, 0.15));
  z-index: -1;
  animation: highlight-sweep 0.8s ease-out 1s forwards;
}

@keyframes highlight-sweep {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}


/* ============================================
   OPTION 4: Glowing Underline Pulse
   Add class: bd_underline_glow
   Underline with subtle pulsing glow effect
   ============================================ */
.bd_underline_glow {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.bd_underline_glow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.274054rem;
  width: 100%;
  height: 0.156602rem;
  background-color: #D937CC;
  z-index: -1;
  box-shadow: 0 0 8px rgba(217, 55, 204, 0.6);
  animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(217, 55, 204, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(217, 55, 204, 0.8);
  }
}


/* ============================================
   OPTION 5: Text Gradient Shift
   Add class: bd_text_gradient
   Text color shifts through gradient on hover
   ============================================ */
.bd_text_gradient {
  background: linear-gradient(90deg, #000, #D937CC, #000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}


/* ============================================
   OPTION 6: Bounce In Letters
   Add class: bd_bounce_letters to container
   Add class: bd_letter to each letter span
   Letters bounce in sequentially
   ============================================ */
.bd_bounce_letters .bd_letter {
  display: inline-block;
  opacity: 0;
  animation: letter-bounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Stagger delays for each letter */
.bd_bounce_letters .bd_letter:nth-child(1) { animation-delay: 0.1s; }
.bd_bounce_letters .bd_letter:nth-child(2) { animation-delay: 0.15s; }
.bd_bounce_letters .bd_letter:nth-child(3) { animation-delay: 0.2s; }
.bd_bounce_letters .bd_letter:nth-child(4) { animation-delay: 0.25s; }
.bd_bounce_letters .bd_letter:nth-child(5) { animation-delay: 0.3s; }
.bd_bounce_letters .bd_letter:nth-child(6) { animation-delay: 0.35s; }

@keyframes letter-bounce {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================
   OPTION 7: Underline Draw + Fade In Combo
   Add class: bd_animated_reveal
   Text fades in while underline draws
   ============================================ */
.bd_animated_reveal {
  position: relative;
  display: inline-block;
  z-index: 1;
  opacity: 0;
  animation: text-fade-in 0.6s ease-out 0.3s forwards;
}

.bd_animated_reveal::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.274054rem;
  width: 0;
  height: 0.156602rem;
  background-color: #D937CC;
  z-index: -1;
  animation: underline-draw 0.8s ease-out 0.9s forwards;
}

@keyframes text-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   OPTION 8: Elastic Underline on Hover
   Add class: bd_underline_elastic
   Underline animates on hover
   ============================================ */
.bd_underline_elastic {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.bd_underline_elastic::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.274054rem;
  width: 0;
  height: 0.156602rem;
  background-color: #D937CC;
  z-index: -1;
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Show underline by default, animate on load */
.bd_underline_elastic::before {
  animation: elastic-underline 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s forwards;
}

@keyframes elastic-underline {
  0% {
    width: 0;
  }
  60% {
    width: 110%;
  }
  100% {
    width: 100%;
  }
}


/* ============================================
   HERO IMAGE HOVER EFFECTS
   Add class: bd_image_hover_green
   Green border/glow effect on hover
   ============================================ */

/* Option A: Border color change to light green on hover */
.bd_image_hover_green {
  transition: transform 0.4s ease;
}

.bd_image_hover_green::before {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bd_image_hover_green:hover {
  transform: translateY(-5px);
}

.bd_image_hover_green:hover::before {
  border-color: var(--color-accent-green, #00d264);
  box-shadow: 0 8px 25px rgba(0, 210, 100, 0.3);
}


/* Option B: Green glow effect on hover */
.bd_image_hover_glow {
  transition: transform 0.4s ease;
}

.bd_image_hover_glow::before {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

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

.bd_image_hover_glow:hover::before {
  border-color: var(--color-primary, #00453d);
  box-shadow: 0 0 20px rgba(0, 69, 61, 0.4), 0 0 40px rgba(0, 69, 61, 0.2);
}


/* Option C: Subtle lift with green accent */
.bd_image_hover_lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bd_image_hover_lift::before {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bd_image_hover_lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 69, 61, 0.15);
}

.bd_image_hover_lift:hover::before {
  border-color: var(--color-primary, #00453d);
  transform: translate(0.626409rem, 0.626409rem);
}


/* Option D: Green overlay fade on hover */
.bd_image_hover_overlay {
  overflow: visible;
}

.bd_image_hover_overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 69, 61, 0.1), rgba(0, 69, 61, 0.3));
  border-radius: 4px;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bd_image_hover_overlay::before {
  transition: border-color 0.4s ease;
}

.bd_image_hover_overlay:hover::after {
  opacity: 1;
}

.bd_image_hover_overlay:hover::before {
  border-color: var(--color-primary, #00453d);
}
