/* ================= ABOUT US – PARTNER SECTION ================= */
* { box-sizing: border-box; }
body { margin: 0; }

.ap {
  --navy: #071a4a;
  --blue: #0d3a9c;
  --red: #e0151f;
  --text-dark: #0f1f44;
  font-family: "Montserrat", Arial, sans-serif;
  background: #f4f6fa;
  padding-bottom: 0;
  overflow: hidden;
}

/* ---------- Banner with wallpaper ---------- */
.ap__banner {
  position: relative;
  height: clamp(440px, 34vw, 600px);   /* shorter banner = zoomed-out look */
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Your wallpaper (slow zoom) */
.ap__bg {
  position: absolute;
  inset: 0;
  background: url("../images/about-wallpaper.jpg") center center / cover no-repeat;
  transform: scale(1.04);
  animation: apZoom 18s ease-in-out infinite alternate;
}

/* Dark blue overlay on the left so text is readable */
.ap__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.72) 30%,
      rgba(0,0,0,0.35) 52%,
      rgba(0,0,0,0.12) 70%,
      rgba(0,0,0,0.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%);
}

/* Moving light shine across the banner */
.ap__shine {
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  left: -40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  animation: apShine 7s ease-in-out 2s infinite;
  pointer-events: none;
}

/* ---------- Text content ---------- */
.ap__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px 4%;
  color: #fff;
}

.ap__inner { max-width: 760px; }

.ap__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  opacity: 0;
  animation: apSlideRight 0.8s ease forwards 0.2s;
}

.ap__eyebrow::after {
  content: "";
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e0151f, rgba(224,21,31,0));
  box-shadow: 0 0 8px rgba(224,21,31,0.6);
  animation: apLine 0.9s ease forwards 0.9s;
}

.ap__title {
  margin: 16px 0 24px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.65);
}

/* each line reveals from below a mask */
.ap__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.ap__line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: apRise 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

.ap__line--1 > span { animation-delay: 0.5s; }
.ap__line--2 > span { animation-delay: 0.8s; }

/* light-blue words with moving shimmer */
.ap__accent {
  background: linear-gradient(100deg, #e0151f 0%, #e0151f 40%, #ff8a8f 50%, #e0151f 60%, #e0151f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
  animation: apTextShine 4s linear infinite 2s;
}

.ap__text {
  margin: 0 0 30px;
  max-width: 620px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  animation: apFadeUp 0.9s ease forwards 1.3s;
}

/* Buttons */
.ap__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ap__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  border-radius: 3px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: apFadeUp 0.7s ease forwards;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.ap__btn--red { animation-delay: 1.6s; }
.ap__btn--white { animation-delay: 1.75s; }
.ap__btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s;
}
.ap__btn--red {
  background: #d71920;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.ap__btn--red:hover { background: #b9121a; transform: translateY(-3px); }
.ap__btn--red:hover svg { transform: translateX(5px); }
/* light sweep on the red button */
.ap__btn--red::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: apBtnShine 3.5s ease-in-out 2.5s infinite;
}
.ap__btn--white {
  background: #fff;
  color: #0b2a80;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.ap__btn--white:hover { background: #0b2a80; color: #fff; transform: translateY(-3px); }

/* People / Products / Partnerships / Progress */
.ap__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap__tags li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.3);
  opacity: 0;
  transform: translateY(15px);
  animation: apFadeUp 0.6s ease forwards;
}

.ap__tags li:first-child { padding-left: 0; border-left: none; }
.ap__tags li:nth-child(1) { animation-delay: 1.7s; }
.ap__tags li:nth-child(2) { animation-delay: 1.85s; }
.ap__tags li:nth-child(3) { animation-delay: 2s; }
.ap__tags li:nth-child(4) { animation-delay: 2.15s; }

.ap__tags svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stats bar ---------- */
.ap__stats {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 18px 40px rgba(7,26,74,0.22);
}

.ap__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 24px;
  border-right: 1px solid #e3e7ef;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease, background 0.25s, box-shadow 0.3s;
}

.ap__stat:last-child { border-right: none; }
.ap__stat:hover { background: #f7f9fd; }

.ap__stats.is-visible .ap__stat { opacity: 1; transform: none; }
.ap__stats.is-visible .ap__stat:nth-child(2) { transition-delay: 0.15s; }
.ap__stats.is-visible .ap__stat:nth-child(3) { transition-delay: 0.3s; }
.ap__stats.is-visible .ap__stat:nth-child(4) { transition-delay: 0.45s; }

.ap__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s ease;
}

/* icon lines draw in when visible */
.ap__icon path, .ap__icon circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s ease;
}
.ap__stats.is-visible .ap__icon path,
.ap__stats.is-visible .ap__icon circle { stroke-dashoffset: 0; }

/* gentle floating icons after they draw */
.ap__stats.is-visible .ap__icon { animation: apFloat 3.2s ease-in-out 2s infinite; }
.ap__stats.is-visible .ap__stat:nth-child(2) .ap__icon { animation-delay: 2.3s; }
.ap__stats.is-visible .ap__stat:nth-child(4) .ap__icon { animation-delay: 2.6s; }
/* gear / sun icon spins slowly */
.ap__stats.is-visible .ap__stat:nth-child(3) .ap__icon { animation: apSpin 12s linear 2s infinite; }

/* red bar grows under each stat */
.ap__stat { position: relative; overflow: hidden; }
.ap__stat::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red), #0a1f5c);
  transition: width 0.9s ease;
}
.ap__stats.is-visible .ap__stat::after { width: 35%; }
.ap__stat:hover::after { width: 100% !important; }

/* number pops when counting ends */
.ap__stat strong.pop { animation: apPop 0.5s ease; }

/* hover lift */
.ap__stat:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 30px rgba(7,26,74,0.18); background: #fff; z-index: 2; }

.ap__stat:hover .ap__icon { transform: scale(1.15) rotate(-6deg); }
.ap__icon--blue { stroke: #0b2a80; }
.ap__icon--red  { stroke: #c1121f; }

.ap__stat strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: #0a1f5c;
}

.ap__label {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #050d2b;
}

.ap__stat small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #2f3854;
}

/* ---------- Full-width feature strip ---------- */
.ap__features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(90deg, #050f33 0%, #0a1f5c 50%, #050f33 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ap__feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(20px);
  animation: apFadeUp 0.7s ease forwards;
  transition: background 0.3s;
}
.ap__feature:last-child { border-right: none; }
.ap__feature:nth-child(1) { animation-delay: 1.7s; }
.ap__feature:nth-child(2) { animation-delay: 1.85s; }
.ap__feature:nth-child(3) { animation-delay: 2s; }
.ap__feature:nth-child(4) { animation-delay: 2.15s; }
.ap__feature:hover { background: rgba(255,255,255,0.06); }

.ap__ficon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.4s;
}
.ap__ficon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ap__feature:hover .ap__ficon {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(-10deg) scale(1.08);
}

.ap__feature strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.ap__feature small {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Animations ---------- */
@keyframes apZoom      { to { transform: scale(1); } }
@keyframes apShine     { 0% { left: -40%; } 45%, 100% { left: 130%; } }
@keyframes apSlideRight{ from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes apLine      { to { width: 140px; } }
@keyframes apRise      { to { transform: translateY(0); } }
@keyframes apFadeUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes apBtnShine  { 0% { left: -60%; } 40%, 100% { left: 130%; } }
@keyframes apFloat     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes apSpin      { to { transform: rotate(360deg); } }
@keyframes apPop       { 0% { transform: scale(1); } 50% { transform: scale(1.15); color: #c1121f; } 100% { transform: scale(1); } }
@keyframes apTextShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ap__features { grid-template-columns: repeat(2, 1fr); }
  .ap__feature:nth-child(2) { border-right: none; }
  .ap__feature:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .ap__stats { grid-template-columns: repeat(2, 1fr); }
  .ap__stat:nth-child(2) { border-right: none; }
  .ap__stat:nth-child(-n+2) { border-bottom: 1px solid #e3e7ef; }
}

@media (max-width: 768px) {
  .ap__banner { height: auto; min-height: 560px; }
  .ap__bg { background-position: 30% center; }
  .ap__overlay {
    background: linear-gradient(180deg, rgba(7,26,74,0.92) 0%, rgba(7,26,74,0.8) 60%, rgba(7,26,74,0.55) 100%);
  }
  .ap__content { padding: 60px 20px; }
  .ap__tags li { padding: 6px 12px; }
}

@media (max-width: 520px) {
  .ap__feature { justify-content: flex-start; }
  .ap__stat { justify-content: flex-start; }
  .ap__stats { grid-template-columns: 1fr; }
  .ap__stat { border-right: none; border-bottom: 1px solid #e3e7ef; }
  .ap__stat:last-child { border-bottom: none; }
  .ap__tags li { width: 50%; border-left: none; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ap *, .ap *::after { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .ap__eyebrow::after { width: 50px; }
}
/* ================= END ABOUT US – PARTNER SECTION ================= */

/* phones: feature strip items fit their half of the screen */
@media (max-width: 600px) {
  .ap__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap__feature { justify-content: flex-start; gap: 10px; padding: 14px 12px; min-width: 0; }
  .ap__feature > div { min-width: 0; }
  .ap__feature strong { font-size: 15px; }
  .ap__feature small { font-size: 12px; }
  .ap__ficon { flex: none; width: 38px !important; height: 38px !important; }
}
