/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ── Geometric Background Shapes ── */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background: #34d399;
  border-radius: 50%;
  top: 10%;
  right: -50px;
}

.circle-2 {
  width: 120px;
  height: 120px;
  background: #fbbf24;
  border-radius: 50%;
  bottom: 20%;
  right: 15%;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 60px 104px 60px;
  border-color: transparent transparent #f43f5e transparent;
  top: 25%;
  left: 5%;
  transform: rotate(-15deg);
  opacity: 0.12;
}

.square-1 {
  width: 80px;
  height: 80px;
  background: #a78bfa;
  border-radius: 16px;
  top: 60%;
  left: 8%;
  transform: rotate(30deg);
  opacity: 0.12;
}

.circle-3 {
  width: 60px;
  height: 60px;
  background: #fb923c;
  border-radius: 50%;
  bottom: 10%;
  left: 20%;
  opacity: 0.1;
}

.triangle-2 {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 69px 40px;
  border-color: transparent transparent #6ee7b7 transparent;
  top: 70%;
  right: 5%;
  transform: rotate(20deg);
  opacity: 0.12;
}

/* ── Floating Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ── Program Card ── */
.program-card {
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: 3xl 3xl 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.program-card:hover::before {
  opacity: 1;
}

/* ── Feature Card ── */
.feature-card {
  position: relative;
}

/* ── Testimonial Card ── */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Fredoka', sans-serif;
  font-size: 4rem;
  color: #d1fae5;
  line-height: 1;
  pointer-events: none;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default: always visible (no JS needed) */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Mobile Menu ── */
.menu-line {
  display: block;
}

#mobile-menu.open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Utility ── */
.section-reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Focus styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #34d399;
  outline-offset: 2px;
  border-radius: 4px;
}
