/* ===== BUTTERFLY + FLOWER MARKERS ===== */

/* --- Container for each marker --- */
.bf-marker {
  position: relative;
  width: 600px;
  height: 600px;
}

/* --- PINK/MAGENTA BUTTERFLY (used on EVEN rows - right side) --- */
.bf-marker .butter {
  position: absolute;
  width: 35px;
  height: 50px;
  border-radius: 100%;
  background: #EF0B6A;
  transform: rotate(-12deg);
  animation: sube .9s alternate infinite;
}
.bf-marker .ala {
  position: absolute;
  width: 45px;
  height: 60px;
  border-radius: 100%;
  background: #E50B6D;
  margin: 9px 12px;
  transform: rotate(53deg);
  animation: sube7 .9s alternate infinite;
}
.bf-marker .ala::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 60px;
  border-radius: 100%;
  background: #E50B6D;
  opacity: .7;
  margin: 5px 12px;
  transform: rotate(80deg);
}
.bf-marker .butter3 {
  position: absolute;
  width: 40px;
  height: 9px;
  border-radius: 100%;
  background: white;
  transform: rotate(50deg);
  margin: 57px -3px;
}
.bf-marker .butter3::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background: white;
  margin: 0px -9px;
}
.bf-marker .butter3::after {
  content: "";
  display: block;
  width: 21px;
  height: 12px;
  border-radius: 100%;
  border-top: 3px solid white;
  margin: -9px -21px;
}

/* --- CYAN/TEAL BUTTERFLY (used on ODD rows - left side) --- */
.bf-marker .butter7 {
  position: absolute;
  width: 35px;
  height: 50px;
  border-radius: 100%;
  background: #05abe0;
  transform: rotate(12deg);
  animation: sube3 .9s alternate infinite;
}
.bf-marker .ala3 {
  position: absolute;
  width: 45px;
  height: 60px;
  border-radius: 100%;
  background: #1AC2ED;
  margin: 12px -7px;
  transform: rotate(-21deg);
  animation: sube9 .9s alternate infinite;
}
.bf-marker .ala3::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 60px;
  border-radius: 100%;
  background: #05B2C1;
  opacity: .7;
  margin: 12px -7px;
  transform: rotate(-90deg);
}
.bf-marker .butter5 {
  position: absolute;
  width: 40px;
  height: 9px;
  border-radius: 100%;
  background: white;
  transform: rotate(-50deg);
  margin: 65px 14px;
}
.bf-marker .butter5::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  background: white;
  margin: 0px 33px;
}
.bf-marker .butter5::after {
  content: "";
  display: block;
  width: 21px;
  height: 12px;
  border-radius: 100%;
  border-top: 3px solid white;
  margin: -12px 40px;
}

/* --- CYAN FLOWER PETALS (used on EVEN rows - right side, with pink butterfly) --- */
.bf-marker .flor1 {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 3px 121px 12px 121px;
  background: #05abe0;
  transform: rotate(90deg);
}
.bf-marker .flor1::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 3px 121px 12px 121px;
  background: #07C7F7;
  transform: rotate(90deg);
  margin: 0px 50px;
}

/* --- MAGENTA FLOWER PETALS (used on ODD rows - left side, with cyan butterfly) --- */
.bf-marker .flor2 {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 3px 121px 12px 121px;
  background: #E50B6D;
  transform: rotate(-90deg);
}
.bf-marker .flor2::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 3px 121px 12px 121px;
  background: #EF0B6A;
  transform: rotate(90deg);
  margin: 0px 50px;
}

/* --- GLOWING DOTS --- */
.bf-marker .circulos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.bf-marker .circ1,
.bf-marker .circ2,
.bf-marker .circ3 {
  position: absolute;
  border-radius: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 23%, rgba(115,115,115,1) 40%, rgba(115,115,115,1) 100%);
  box-shadow: 0px 0 12px #FFF;
}
.bf-marker .circ1 {
  width: 12px;
  height: 12px;
  animation: enciende alternate infinite .9s;
}
.bf-marker .circ2 {
  width: 9px;
  height: 9px;
  animation: enciende alternate infinite 1s;
}
.bf-marker .circ3 {
  width: 6px;
  height: 6px;
  animation: enciende alternate infinite 2s;
}

/* --- ANIMATIONS --- */
@keyframes sube {
  0% { margin-top: -5px; }
  100% { margin-top: 5px; }
}
@keyframes sube3 {
  0% { margin-top: -6px; }
  100% { margin-top: 6px; }
}
@keyframes sube7 {
  0% { transform: rotate(53deg); }
  100% { transform: rotate(73deg); }
}
@keyframes sube9 {
  0% { transform: rotate(-21deg); }
  100% { transform: rotate(-33deg); }
}
@keyframes enciende {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== TIMELINE SECTION LAYOUT ===== */

.who-we-help-section {
  background: #0a0a0a;
  padding: 100px 0;
  position: relative;
}

.who-we-help-header {
  text-align: center;
  margin-bottom: 80px;
}

.who-we-help-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #5bc0de;
  margin-bottom: 16px;
}

.who-we-help-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.who-we-help-title span {
  color: #5bc0de;
}

/* --- Timeline line --- */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #5bc0de 10%, #5bc0de 90%, transparent);
  box-shadow: 0 0 8px rgba(91, 192, 222, 0.4);
  transform: translateX(-50%);
}

/* --- Timeline rows --- */
.timeline-row {
  display: flex;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

/* ODD rows: marker left, text right */
.timeline-row.odd {
  flex-direction: row;
}

/* EVEN rows: text left, marker right */
.timeline-row.even {
  flex-direction: row-reverse;
}

/* --- Marker container (holds the scaled butterfly+flower) --- */
.timeline-marker-container {
  width: 50%;
  display: flex;
  position: relative;
  min-height: 200px;
}

.timeline-row.odd .timeline-marker-container {
  justify-content: flex-end;
  padding-right: 0;
}

.timeline-row.even .timeline-marker-container {
  justify-content: flex-start;
  padding-left: 20px;
}

/* Scale wrapper — scales the 600px marker down to fit */
.bf-marker-scaled {
  transform: scale(0.85);
  transform-origin: center center;
  width: 0;
  height: 0;
  overflow: visible;
}

.timeline-row.odd .bf-marker-scaled {
  position: absolute;
  right: -250px;
  top: 0%;
  transform: scale(0.85) scaleX(-1);
  transform-origin: right center;
}

.timeline-row.even .bf-marker-scaled {
  position: absolute;
  left: -250px;
  top: 0%;
  transform: scale(0.85) translateY(-50%);
  transform-origin: left center;
}

/* --- Text container --- */
.timeline-text {
  width: 50%;
  padding: 0 60px;
}

.timeline-row.even .timeline-text {
  text-align: right;
}

.timeline-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.timeline-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 400px;
}

.timeline-row.even .timeline-text p {
  margin-left: auto;
}

/* --- POSITIONING: ODD rows (uses same HTML as even but mirrored + recoloured) --- */
.timeline-row.odd .bf-marker .butter {
  margin: 165px 370px;
  background: #05abe0;
}
.timeline-row.odd .bf-marker .ala {
  background: #1AC2ED;
}
.timeline-row.odd .bf-marker .ala::before {
  background: #05B2C1;
}
.timeline-row.odd .bf-marker .flor1 {
  margin: 0px 295px;
  background: #E50B6D;
}
.timeline-row.odd .bf-marker .flor1::before {
  background: #EF0B6A;
}

/* --- POSITIONING: EVEN rows --- */
.timeline-row.even .bf-marker .butter {
  margin: 165px 370px;
}
.timeline-row.even .bf-marker .flor1 {
  margin: 0px 295px;
}

/* --- POSITIONING: Glowing dots ODD rows (same structure as even, mirrored by scaleX) --- */
.timeline-row.odd .bf-marker .circ1 { margin: 50px 288px; }
.timeline-row.odd .bf-marker .circ2 { margin: 70px 281px; }
.timeline-row.odd .bf-marker .circ3 { margin: 90px 275px; }

/* --- POSITIONING: Glowing dots EVEN rows --- */
.timeline-row.even .bf-marker .circ1 { margin: 50px 288px; }
.timeline-row.even .bf-marker .circ2 { margin: 70px 281px; }
.timeline-row.even .bf-marker .circ3 { margin: 90px 275px; }

/* --- MOBILE --- */
@media (max-width: 768px) {
  .timeline-row {
    flex-direction: column !important;
    gap: 20px;
  }
  .timeline-marker-container,
  .timeline-text {
    width: 100%;
    padding: 0 24px;
  }
  .timeline-text {
    text-align: center !important;
  }
  .timeline-text p {
    margin: 0 auto !important;
  }
  .timeline-marker-container {
    justify-content: center !important;
  }
  .timeline-container::before {
    display: none;
  }
}