/* ==========================================================================
   ABOUT PAGE - STYLES
   ========================================================================== */

/* ---- PAGE HERO BANNER ---- */
.about-hero {
  position: relative;
  background: linear-gradient(135deg, #FFF9EE 0%, #E1F1F6 50%, #FFF9EE 100%);
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.about-hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInDown 0.7s ease forwards 0.2s;
}

.breadcrumb-trail a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-trail a:hover {
  color: var(--color-primary-hover);
}

.breadcrumb-trail i {
  font-size: 10px;
  color: var(--color-accent-teal);
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.35s;
}

.about-hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.55s;
}

/* Floating Doodles in Hero */
.about-doodle {
  position: absolute;
  z-index: 1;
  opacity: 0.6;
}

.about-doodle-star {
  top: 20%;
  left: 8%;
  animation: floatDoodle 4s ease-in-out infinite;
}

.about-doodle-circle {
  top: 30%;
  right: 10%;
  animation: floatDoodle 5s ease-in-out infinite 0.5s;
}

.about-doodle-dots {
  bottom: 25%;
  left: 15%;
  animation: floatDoodle 3.5s ease-in-out infinite 1s;
}

.about-doodle-zigzag {
  bottom: 20%;
  right: 12%;
  animation: floatDoodle 4.5s ease-in-out infinite 0.3s;
}

@keyframes floatDoodle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

/* Wavy Bottom */
.about-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.about-hero-wave svg {
  display: block;
  width: 100%;
}


/* ---- SHARED LAYOUT ---- */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-label i {
  font-size: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.heading-accent {
  color: var(--color-primary);
  position: relative;
}

.heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0.35;
}

.section-subtext {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}


/* ---- FOUNDER SECTION ---- */
.about-founder {
  padding: 100px 0;
  background: #fff;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.founder-image-frame {
  position: relative;
  display: inline-block;
}

.founder-photo {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(43, 78, 91, 0.15);
  position: relative;
  z-index: 2;
}

.founder-blob {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-yellow));
  border-radius: 24px;
  z-index: 1;
  opacity: 0.5;
  transform: rotate(-4deg);
}

.founder-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 18px;
  padding: 16px 20px;
  text-align: center;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(242, 140, 83, 0.35);
  animation: pulseBadge 2.5s ease-in-out infinite;
}

.badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-top: 4px;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.founder-content-col .section-label,
.founder-content-col .section-heading {
  text-align: left;
}

.founder-lead {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-dark);
  line-height: 1.75;
  margin-bottom: 16px;
}

.founder-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.founder-highlights {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 1;
  padding: 18px 12px;
  background: var(--color-bg-hero);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(43, 78, 91, 0.1);
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.highlight-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
}


/* ---- PHILOSOPHY CARDS ---- */
.about-philosophy {
  padding: 100px 0;
  background: var(--color-bg-hero);
}

.philosophy-header {
  text-align: center;
  margin-bottom: 50px;
}

.philosophy-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.philosophy-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(43, 78, 91, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.philosophy-card:hover::before {
  transform: scaleX(1);
}

.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(43, 78, 91, 0.12);
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: #fff;
  transition: transform 0.3s ease;
}

.philosophy-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.card-icon-orange { background: linear-gradient(135deg, #F28C53, #e07a3f); }
.card-icon-teal { background: linear-gradient(135deg, #9AD1D4, #6bb8bc); }
.card-icon-pink { background: linear-gradient(135deg, #F08080, #d96a6a); }
.card-icon-yellow { background: linear-gradient(135deg, #FBD1A2, #e8b885); }

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}

.card-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ---- FACILITIES SECTION ---- */
.about-facilities {
  padding: 100px 0;
  background: #fff;
}

.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.facilities-content .section-heading {
  text-align: left;
}

.facilities-intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.facilities-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.facility-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-bg-hero);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(43, 78, 91, 0.1);
  background: #fff;
}

.facility-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.facility-item:hover .facility-icon {
  transform: rotate(10deg) scale(1.1);
}

.facility-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.facility-info p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ---- CTA BANNER ---- */
.about-cta {
  padding: 80px 0;
  background: var(--color-bg-hero);
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary), #1e3842);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
}

.cta-doodle {
  position: absolute;
  opacity: 0.5;
  animation: floatDoodle 5s ease-in-out infinite;
}

.cta-doodle-1 {
  top: 20px;
  left: 30px;
}

.cta-doodle-2 {
  bottom: 20px;
  right: 40px;
  animation-delay: 1s;
}

.cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-text {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
}

.btn-cta {
  font-size: 16px;
  padding: 14px 36px;
  position: relative;
  z-index: 2;
}


/* ---- FOOTER ---- */
.about-footer {
  background: var(--color-secondary);
  padding: 50px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}


/* ---- SCROLL REVEAL ANIMATIONS ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation trigger classes — applied via JS on scroll */
.anim-fade-up,
.anim-slide-left,
.anim-slide-right {
  opacity: 0;
}

.anim-fade-up.is-visible {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--anim-delay, 0s);
}

.anim-slide-left.is-visible {
  animation: slideInLeft 0.8s ease forwards;
}

.anim-slide-right.is-visible {
  animation: slideInRight 0.8s ease forwards;
}


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .philosophy-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 140px 0 80px;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-image-col {
    display: flex;
    justify-content: center;
  }

  .founder-photo {
    max-width: 300px;
  }

  .founder-content-col .section-label,
  .founder-content-col .section-heading {
    text-align: center;
  }

  .founder-lead,
  .founder-text {
    text-align: center;
  }

  .founder-highlights {
    flex-direction: column;
    align-items: center;
  }

  .highlight-item {
    width: 100%;
    max-width: 260px;
  }

  .philosophy-cards-grid {
    grid-template-columns: 1fr;
  }

  .facilities-items-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .about-doodle {
    display: none;
  }
}
