/* ========== GLOBAL: continuous gradient + serif font ========== */
.body{
  text-align: left;
  padding-top: 110px;
  min-height: 100vh;
  /* One continuous gradient for the whole page */
  background: linear-gradient(
    180deg,
    #7096D1 0%,
    #a7c7e7 30%,
    #d0e3ff 60%,
    #f5f9ff 100%
  );
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #132042;
}

.about-gradient-bg {
  background: linear-gradient(
    180deg,
    #7096D1 0%,
    #a7c7e7 30%,
    #d0e3ff 60%,
    #f5f9ff 100%
  );
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Optional: respect reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* ========== FLOATING BUBBLES ========== */

@keyframes floatAroundA {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(24px, -16px); }
  50%  { transform: translate(0, -28px); }
  75%  { transform: translate(-20px, -8px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatAroundB {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-18px, 20px); }
  50%  { transform: translate(10px, 30px); }
  75%  { transform: translate(26px, 6px); }
  100% { transform: translate(0, 0); }
}

/* ========== HERO "ABOUT" SECTION ========== */
.about-sec1 {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 150px) 8vw;
  /* transparent so the global gradient shows through */
  background: transparent;
}

.about-sec1 h1 {
  font-size: clamp(36px, 6vw, 52px);
  color: #132042;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  text-transform: none;
}

.about-sec1 h3 {
  font-size: clamp(20px, 3vw, 26px);
  color: rgba(19, 32, 66, 0.75);
  margin: 6px 0 18px;
  font-style: italic;
}

.about-sec1 p {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.6;
  color: #132042;
}

/* Text sits above bubbles */
.about-sec1 > * {
  position: relative;
  z-index: 1;
}

/* Floating circles behind hero content */
.about-sec1::before,
.about-sec1::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  transform-origin: center;
}

.about-sec1::before {
  width: 190px;
  height: 190px;
  top: -60px;
  left: 12%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 30px rgba(13, 38, 76, 0.2);
  animation: floatAroundA 20s ease-in-out infinite alternate;
}

.about-sec1::after {
  width: 230px;
  height: 230px;
  bottom: -110px;
  right: 10%;
  background: #305bb3;
  opacity: 0.9;
  box-shadow: 0 22px 36px rgba(13, 38, 76, 0.3);
  animation: floatAroundB 26s ease-in-out infinite alternate;
}

/* ========== HEADER FLOURISH ANIMATIONS ========== */

@keyframes underlineSweep {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}


/* Shared heading flourish for main section headings */
.about-sec1 h1,
.about-sec2 h2,
.meet-the-team h2 {
  position: relative;
  display: inline-block;
}

.about-sec1 h1::after,
.about-sec2 h2::after,
.meet-the-team h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #7096D1 35%, #305bb3 100%);
  border-radius: 999px;
  transform-origin: left center;
  animation: underlineSweep 4.5s ease-in-out infinite;
}


/* ========== GOALS SECTION (transparent over gradient) ========== */

.about-sec2 {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 8vw;
  background: transparent;
}

.about-sec2__content {
  position: relative;
  z-index: 1;
}

.about-sec2::before,
.about-sec2::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  transform-origin: center;
}

.about-sec2::before {
  width: 180px;
  height: 180px;
  top: 18%;
  right: 5%;
  background: rgba(72, 116, 188, 0.5);
  box-shadow: 0 16px 28px rgba(13, 38, 76, 0.2);
  animation: floatAroundB 24s ease-in-out infinite alternate;
}

.about-sec2::after {
  width: 140px;
  height: 140px;
  bottom: 8%;
  left: 8%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 24px rgba(13, 38, 76, 0.18);
  animation: floatAroundA 18s ease-in-out infinite alternate;
}

.about-sec2 h2 {
  text-align: left;
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 8px;
  color: var(--ink);
}

.about-subtitle {
  text-align: left;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 17px;
  font-style: italic;
}

/* Goals cards */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 28px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.goals-item {
  background: rgba(208, 227, 255, 0.95);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(13, 38, 76, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.goals-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(13, 38, 76, 0.15);
}

.goal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.6),
    0 6px 16px rgba(111, 180, 199, 0.35);
  font-size: 32px;
  color: #1b2b2e;
}

.goals-item p {
  color: #1b2b2e;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* Responsive adjustments for goals */
@media (max-width: 1000px) {
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .goals-grid { grid-template-columns: 1fr; }
}

/* ========== MEET THE TEAM SECTION ========== */

.meet-the-team{
  padding: clamp(40px, 7vw, 80px) 8vw clamp(64px, 9vw, 96px);
  background: transparent; /* still part of the continuous gradient */
  border-top: 1px solid rgba(112, 150, 209, 0.25);
}

.meet-the-team h2{
  text-align:left;
  margin:0 0 24px;
  font-size: clamp(28px,4.5vw,40px);
  color: var(--ink);
}

.meet-the-team h3{
  margin: 40px 20px 40px;
  font-size: 22px;
  color: var(--ink);
  font-style: italic;
}

/* Optional small descriptor style if you add taglines under h3s later */
.meet-the-team .section-tagline {
  margin-top: -4px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(19, 32, 66, 0.65);
  font-style: italic;
}

/* Team grid */
.team-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px,2.4vw,24px);
  max-width:1200px;
  margin:0 auto;
}

@media (max-width: 1000px){
  .team-grid{ grid-template-columns: repeat(2,1fr);}
}
@media (max-width: 560px){
  .team-grid{ grid-template-columns: 1fr;}
}

/* Card styling */
.team-card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(208, 227, 255, 0.95);
  box-shadow: 0 8px 20px rgba(13,38,76,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 330px;
  display: flex;
  flex-direction: column;
}

/* Slight “wave” effect across rows (cute + subtle) */
.team-card:nth-child(2n) {
  transform: translateY(4px);
}
.team-card:nth-child(2n):hover {
  transform: translateY(-4px) scale(1.02);
}

.team-card:hover{
  box-shadow: 0 18px 36px rgba(13,38,76,0.22);
}

/* Image area */
.card-media img{
  display: block;
  width: 100%;
  flex: 0 0 250px;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

/* Optional tweak for Lera if you want a different crop:
   <img class="lera-photo" ...> */
.lera-photo {
  object-position: center top;
}

/* Text area */
.card-info{
  padding: 14px 16px;
  background: transparent;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.card-info h3{
  margin:0 0 4px;
  font-size: 20px;
}

.card-info p{
  margin:0;
  color: #1b2b2e;
  opacity:0.8;
  font-size: 14px;
}

/* Overlay for fun facts */
.card-overlay{
  position:absolute;
  inset:0;
  background: rgba(112,150,209,0.92);
  color: #fff;
  display:grid;
  place-items:center;
  opacity:0;
  transform: translateY(8%);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  visibility: hidden;
  z-index: 2;
}

.team-card:hover .card-overlay{
  opacity:1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.overlay-content{
  text-align: left;
  padding: 18px;
}

.overlay-content h4{
  margin:0 0 10px;
  font-size: 18px;
}

.overlay-content ul{
  list-style:none;
  margin:0;
  padding:0;
}

.overlay-content li{
  margin:6px 0;
  font-size: 14px;
}