/* HERO */
.hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

 .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
} 



.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 90%;                 
  max-width: 800px;
}



.hero-content h1 {
  font-size: 50px;
}

.hero-content p {
  margin-top: 10px;
}



/* ABOUT TEXT */
/* SECTION */
.about {
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  position: relative;         /* already declared below, kept for clarity */
  overflow: hidden;
  text-align: center;
}

/* FLOATING SHAPES (background) */
.about::before,
.about::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 94, 98, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;       /* BUG FIX: blur layer should never block clicks */
}

.about::before {
  top: -50px;
  left: -50px;
}

.about::after {
  bottom: -50px;
  right: -50px;
}

/* CONTENT BOX */
.about-box {
  position: relative;         /* BUG FIX: sit above ::before / ::after blurs */
  z-index: 1;
  max-width: 800px;
  margin: auto;
  padding: 40px;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);

  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);

  animation: fadeUp 0.8s ease;
  transition: transform 0.3s ease;  /* BUG FIX: transition belongs on base, not :hover */
}

/* TITLE */
.about-box h2 {
  font-size: 34px;
  font-weight: 700;
  color: #2d3e50;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* HIGHLIGHT BRAND */
.about-box h2 span {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;      /* BUG FIX: standard property for Firefox */
  color: transparent;
}

/* TEXT */
.about-box p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.8;
  text-align: justify;
}

/* HOVER EFFECT */
.about-box:hover {
  transform: translateY(-5px);
  /* transition removed — now on base rule */
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* BACKGROUND GLOW */
.stats::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 94, 98, 0.08);
  border-radius: 50%;
  filter: blur(100px);
  top: -100px;
  left: -100px;
  pointer-events: none;       /* BUG FIX */
}

/* CARD */
.stat-card {
  flex: 1;
  max-width: 220px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);

  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: statUp 0.8s ease;

  position: relative;         /* BUG FIX: keep card above ::before glow */
  z-index: 1;
}

/* NUMBER */
.stat-card h3 {
  font-size: 40px;
  font-weight: 700;

  background: linear-gradient(135deg, #ff9966, #ff5e62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* TEXT */
.stat-card p {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
}

/* HOVER EFFECT */
.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* MISSION */
/* SECTION */
.mission {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 80px 20px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  position: relative;
  overflow: hidden;
}

/* LEFT SIDE */
.mission-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* CARD */
.mission-card {
  padding: 25px;
  border-radius: 18px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);

  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;

  animation: fadeUp 0.8s ease;
}

.mission-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2d3e50;
}

.mission-card p {
  color: #6b7280;
  line-height: 1.7;
  text-align: justify;
}

.mission-card:hover {
  transform: translateY(-6px);
}

/* IMAGE */
.mission-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  align-self: stretch;        /* BUG FIX: match height of text column on desktop */
  min-height: 300px;          /* BUG FIX: keep visible when stacked on mobile */
}

.mission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;             /* BUG FIX: avoid inline-image whitespace gap */
  transition: transform 0.6s; /* BUG FIX: transform — not "0.6s" on everything */
}

.mission-img:hover img {
  transform: scale(1.08);
}

/* BACKGROUND GLOW */
.mission::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 94, 98, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  top: -50px;
  right: -50px;
  pointer-events: none;       /* BUG FIX */
}

/* CTA */
.cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #4a6741, #7ca982);
}

.cta-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.cta p {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* BUTTON */
.cta a {
  display: inline-block;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  background: white;
  color: #4a6741;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;      /* BUG FIX: strip default anchor underline */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  isolation: isolate;         /* BUG FIX: new stacking ctx so ::after z-index:-1
                                 stays inside the button (doesn't vanish behind bg) */
}

.cta a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* GLOW EFFECT — sits BEHIND the label, not on top of it */
.cta a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: rgba(255,255,255,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;                /* BUG FIX: was covering button text on hover */
}

.cta a:hover::after {
  opacity: 1;
}

/* FLOATING SHAPES */
.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  animation: floatUp 6s infinite ease-in-out;
  pointer-events: none;       /* BUG FIX: shapes shouldn't intercept button clicks */
}

.shape1 {
  width: 120px; height: 120px;
  background: white;
  top: 20%; left: 10%;
}

.shape2 {
  width: 80px; height: 80px;
  background: white;
  bottom: 20%; right: 15%;
  animation-delay: 2s;
}

.shape3 {
  width: 150px; height: 150px;
  background: white;
  top: 10%; right: 5%;
  animation-delay: 4s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {          /* BUG FIX: 50px was overflowing small screens */
    font-size: 32px;
  }

  .stats {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .mission {
    flex-direction: column;
    padding: 50px 20px;       /* a bit tighter on mobile */
  }

  .mission-img {
    width: 100%;              /* BUG FIX: full width when stacked */
    min-height: 240px;
  }

  .about-box h2 {
    font-size: 26px;
  }

  .cta h2 {
    font-size: 26px;
  }
}

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes statUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}