/* ==========================================================================
   ABOUT US PAGE (about-us.html)
   Page-specific styling only. Keep global styles in style.css.
   ========================================================================== */

.about-us-page {
  background-color: #FFFFFF;
}

/* Background blending (match index.php feel)
   Each section keeps its own gradient, but gradients bleed + soft-fade
   so there are no hard edges between sections. */
.about-us-page .about-hero-section,
.about-us-page .about-partner-section,
.about-us-page .our-team-section,
.about-us-page .meet-our-team {
  overflow: visible;
}

.about-us-page .about-hero-bg-gradient,
.about-us-page .about-why-bg,
.about-us-page .about-partner-bg,
.about-us-page .about-team-bg {
  position: absolute;
  width: 150vw !important;
  height: 150% !important;
  /* Large height for massive overlap */
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
  z-index: -1;
  filter: blur(200px);
  /* Massive blur for 'flow' look */
  opacity: 0.8;
}

/* ===== Section Backgrounds with Clean Left-Sided Merging (About Us only) ===== */
.about-hero-section {
  position: relative;
  overflow: visible;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: transparent;
}

.about-hero-bg-gradient {
  background: linear-gradient(108.44deg, #CCE1FF 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.about-why-bg {
  background: linear-gradient(108.44deg, #FEDFC3 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.about-partner-bg {
  background: linear-gradient(108.44deg, #EDE7FF 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.about-team-bg {
  background: linear-gradient(108.44deg, #E5FCF6 18.86%, rgba(255, 255, 255, 0) 93.35%);
}

.hero-vector {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: auto;
  height: auto;
}

.left-vector {
  left: 0;
  top: 0;
}

.right-vector {
  right: 0;
  top: 0;
}

.about-hero-content {
  position: relative;
  z-index: 5;
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.about-hero-title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 800;
  font-size: 52px;
  line-height: 1.2;
  color: #1A3E6D;
  margin-bottom: 24px;
}

.about-hero-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(32, 35, 51, 1);
  max-width: 820px;
  margin: 0 auto;
  opacity: 0.9;
}

.about-partner-section {
  background-color: transparent;
}

.our-team-section,
.meet-our-team {
  height: auto !important;
  min-height: 100vh;
  padding: 100px 26px !important;
}

.our-team-section {
  background-color: transparent;
}

.meet-our-team {
  background-color: transparent;
}


/* ===== Hero layout: left text + right image ===== */
.hero {
  text-align: left;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 26px;
  /* Removed top/bottom padding to let flexbox center perfectly */
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  max-width: 620px;
}

.cta-group {
  justify-content: flex-start;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 380px;
  object-fit: contain;
}

/* ===== Why section: card slider ===== */
.why-slider {
  width: 100%;
  max-width: 570px;
  position: relative;
}



.why-slider-viewport {
  position: relative;
  z-index: 2;
  overflow: visible;
  border-radius: 24px;
}

.why-slider-track {
  position: relative;
  height: 300px;
  will-change: transform;
}

.why-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transition: all 1500ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(100%) translateY(0) scale(0.85);
  /* Smooth resting point on the right */
  pointer-events: none;
  will-change: transform, opacity, box-shadow;
}

.why-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0px 4px 12px rgba(37, 61, 73, 0.01);
  /* Extremely subtle shadow for the base state */
  border: none;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: box-shadow 1500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Restore Vertical Stack Design with full opacity */
.why-slide.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  width: 100%;
  z-index: 4;
  pointer-events: auto;
}

.why-slide.is-active .why-card {
  box-shadow: 0px 12px 32px rgba(37, 61, 73, 0.05);
  /* Slightly darker/more visible but still soft for the active card */
}

.why-slide.is-next {
  opacity: 1;
  transform: translateX(-50%) translateY(-24px) scale(0.96);
  width: calc(100% - 40px);
  z-index: 3;
}

.why-slide.is-next2 {
  opacity: 1;
  transform: translateX(-50%) translateY(-48px) scale(0.92);
  width: calc(100% - 80px);
  z-index: 2;
}

.why-slide.is-next3 {
  opacity: 1;
  transform: translateX(-50%) translateY(-72px) scale(0.88);
  width: calc(100% - 120px);
  z-index: 1;
}

.why-slide.is-next4 {
  opacity: 1;
  transform: translateX(-50%) translateY(-96px) scale(0.84);
  width: calc(100% - 160px);
  z-index: 0;
}

/* Active card 'sinks' down and fades away organically */
/* Active card fades as it glides left, then invisibly snaps back to the right-start position */
.why-slide.is-exiting {
  opacity: 1;
  transform: translateX(-200%) translateY(0) scale(0.95);
  transition: transform 1500ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  z-index: 5;
}

/* Card Background Themes (Externalized) */
.card-web-mobile {
  background: linear-gradient(180deg, rgba(250, 139, 38, 0.15) 0%, rgba(250, 139, 38, 0) 100%), #FFFFFF;
  border: 1.5px solid rgba(250, 139, 38, 0.35);
}

.card-staff {
  background: linear-gradient(180deg, rgba(176, 152, 242, 0.15) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF;
  border: 1.5px solid rgba(176, 152, 242, 0.35);
}

.card-ai {
  background: linear-gradient(180deg, rgba(52, 201, 160, 0.15) 0%, rgba(52, 201, 160, 0) 100%), #FFFFFF;
  border: 1.5px solid rgba(52, 201, 160, 0.35);
}

.card-cloud {
  background: linear-gradient(180deg, rgba(58, 137, 248, 0.15) 0%, rgba(58, 137, 248, 0) 100%), #FFFFFF;
  border: 1.5px solid rgba(58, 137, 248, 0.35);
}

.card-marketing {
  background: linear-gradient(180deg, rgba(176, 152, 242, 0.15) 0%, rgba(176, 152, 242, 0) 100%), #FFFFFF;
  border: 1.5px solid rgba(176, 152, 242, 0.35);
}

.card-marketing .why-card-icon img {
  /* Vibrant Purple filter to match Card 2's icon precisely and ensure visibility */
  filter: invert(68%) sepia(50%) saturate(1800%) hue-rotate(220deg) brightness(100%) contrast(100%);
}

.why-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: auto;
}

.why-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-card-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #202333;
}

.why-card-desc {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(49, 54, 78, 1);
  max-width: 100%;
}

.why-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.why-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: #D9D9D9;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.why-slider-dot.active {
  background: #202333;
  width: 24px;
  border-radius: 4px;
  transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    text-align: center;
  }

  .hero-container {
    padding: calc(var(--header-height) + 40px) 20px 60px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .about-hero-title {
    font-size: 38px;
  }

  .about-hero-desc {
    font-size: 16px;
  }

  .hero-vector {
    opacity: 0.5;
    /* Reduce intensity of background vectors on tablets */
  }
}

@media (max-width: 767px) {
  .hero-container {
    gap: 24px;
  }

  .hero-right {
    order: -1;
    width: 100%;
  }

  .hero-image {
    width: 82%;
    max-width: 100%;
    margin: 0 auto;
  }

  .why-slider {
    max-width: 100%;
  }

  .why-card {
    padding: 30px 24px;
    min-height: 320px;
  }

  .why-card-title {
    font-size: 22px;
  }

  .why-slider-track {
    height: 320px;
  }

  .why-slide.is-next {
    width: calc(100% - 20px);
    transform: translateX(-50%) translateY(-12px);
  }

  .why-slide.is-next2 {
    width: calc(100% - 40px);
    transform: translateX(-50%) translateY(-24px);
  }

  .why-slide.is-next3 {
    width: calc(100% - 60px);
    transform: translateX(-50%) translateY(-36px);
  }
}

/* ===== CTA section: left column removed — right only full width ===== */
.cta-section .cta-container {
  justify-content: center;
}

.cta-section .cta-right {
  flex: 1 1 100%;
  max-width: 100%;
  width: 100%;
  padding: 0;
  position: relative;
}

.cta-section .cta-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 56px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(37, 61, 73, 0.12);
  border: 1px solid rgba(32, 35, 51, 0.06);
}

.cta-section .cta-card-title {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.cta-section .cta-card-desc {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(32, 35, 51, 0.8);
}

.bg-white-box {
  padding: 75px 75px 50px 75px;
  background-color: white;
  max-width: 100%;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0px 18px 45px 0px #25493A0F;
  position: relative;
}

.bg-white-box:before {
  content: '';
  background-image: url('../assets/images/vector-left.png');
  background-size: cover;
  left: 0px;
  top: 0px;
  position: absolute;
  width: 100%;
  height: 100%;
}

.cta-desc {
  max-width: 100%;
}

/* ===== Meet Our Team Section ===== */
.team-section {
  background: linear-gradient(180deg, #1a1d2e 0%, #0f1119 100%);
  padding: 80px 10% 100px;
  text-align: center;
}

.team-heading {
  font-weight: 800;
  font-size: 2.5rem;
  color: #34C9A0;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.team-grid {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 35px 50px;
  justify-content: center;
  max-width: 1125px;
  /* 3 * 220px + 2 * 50px = 660px + 100px. 800px provides a good boundary */
  margin: 0 auto;
}

.team-member {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-photo-wrap {
  /* width: 180px;
  height: 180px;
  border-radius: 16px;
  padding: 8px; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.team-color-purple {
  background: #B098F2;
}

.team-color-orange {
  background: #FA8B26;
}

.team-color-teal {
  background: #34C9A0;
}

.team-color-blue {
  background: #3A89F8;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border-radius: 12px;
  filter: grayscale(100%); */
}

.team-name {
  font-weight: 900;
  font-size: 1.125rem;
  color: #202333;
  margin-bottom: 4px;
}

.team-title {
  font-weight: 400;
  font-size: 0.875rem;
  color: #202333;
}

/* Bottom row spacing handled dynamically by flex wrap */

@media (max-width: 767px) {
  .team-section {
    padding: 60px 24px 80px;
  }



  .team-heading {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    justify-content: center;
  }

  .team-member {
    width: calc(50% - 12px);
    /* 2 per row with 24px gap */
    max-width: 170px;
  }

  .team-photo-wrap {
    width: 140px;
    /* height: 140px; */
  }

  /* remove desktop column forcing on mobile */
  .team-member:nth-child(4),
  .team-member:nth-child(5) {
    grid-column: auto;
  }
}

.our-team-section .cta-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #202333;
  line-height: 130%;
}

.our-team-section .cta-desc {
  font-size: 1.375rem;
  font-weight: 500;
  color: #202333;
  line-height: 38px;
}

.heading-gradient {
  background: linear-gradient(90deg, #202333 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.about-partner-section .why-title {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.meet-our-team .heading {
  font-size: 40px;
  font-weight: 700;
  color: #202333;
  line-height: 130%;

  background: linear-gradient(90deg, #202333 0%, var(--accent-green) 90.87%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 50px;
}

@media screen and (max-width:575px) {
  .bg-white-box {
    padding: 30px 15px;
  }

  .our-team-section .cta-heading {
    font-size: 24px;
    line-height: normal;
  }

  .our-team-section .cta-desc {
    font-size: 16px;
    line-height: 26px;
  }

  .about-hero-title {
    font-size: 28px;
  }

  .about-hero-desc {
    font-size: 15px;
    line-height: 24px;
  }

  .our-team-section,
  .meet-our-team {
    min-height: auto;
  }

  .why-card-icon {
    margin: auto;
    justify-content: center;
  }
}