/* GSAP Premium About Section */
.gsap-about-section {
  background-color: #0F172A; /* Dark premium background */
  color: #F8FAFC;
  position: relative;
  /* Extra padding to allow smooth scroll in */
  padding-top: 100px;
}

.gsap-about-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* Left Pinned Visuals */
.gsap-about-left {
  flex: 1;
  /* The height must be relative to viewport to pin beautifully */
  height: 80vh;
  position: sticky;
  top: 10vh; /* space from top when pinned */
}

.gsap-visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gsap-vis-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
}

.gsap-vis-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.gsap-vis-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Cards on Images */
.gsap-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  font-weight: 800;
  color: var(--main-color, #0F4C81);
  z-index: 3;
}

.card-top-right {
  top: 40px;
  right: -30px;
  transform: translateX(-50px);
  opacity: 0;
  transition: all 0.6s 0.3s ease;
}

.card-bottom-left {
  bottom: 40px;
  left: -30px;
  transform: translateX(50px);
  opacity: 0;
  transition: all 0.6s 0.3s ease;
}

.gsap-vis-img.active .card-top-right {
  transform: translateX(0);
  right: 30px;
  opacity: 1;
}

.gsap-vis-img.active .card-bottom-left {
  transform: translateX(0);
  left: 30px;
  opacity: 1;
}

.gsap-floating-card i {
  font-size: 24px;
}

/* Right Scrolling Content */
.gsap-about-right {
  flex: 1;
  padding-bottom: 20vh; /* space to scroll past the last item */
}

.gsap-header {
  margin-bottom: 60px;
}

.gsap-header .subheading {
  color: var(--accent-cta, #14B8A6);
  font-weight: 800;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.gsap-header h2 {
  font-size: 45px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.gsap-header h2 span {
  color: var(--accent-cta, #14B8A6);
  position: relative;
}

.gsap-header h2 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(20, 184, 166, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.gsap-features {
  display: flex;
  flex-direction: column;
}

.gsap-feature {
  min-height: 50vh; /* creates the scroll distance */
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.2;
  transform: translateX(50px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 40px 0;
}

.gsap-feature.active {
  opacity: 1;
  transform: translateX(0);
}

.gsap-step {
  font-size: 80px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05); /* Watermark effect */
  line-height: 1;
  margin-bottom: -20px;
  z-index: -1;
  position: relative;
  font-family: sans-serif;
}

.gsap-feature h3 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
}

.gsap-feature p {
  font-size: 18px;
  line-height: 1.8;
  color: #94A3B8; /* Light slate text */
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .gsap-about-wrapper {
    display: block; /* Remove flex so sticky works natively with negative margin */
  }
  .gsap-about-left {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    pointer-events: none;
  }
  
  .gsap-visual-container {
    border-radius: 0;
    border: none;
  }
  
  /* Dark overlay over images so text is readable */
  .gsap-visual-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.9) 100%);
    z-index: 2;
  }
  
  .gsap-about-right {
    position: relative;
    z-index: 10;
    margin-top: -60vh; /* Pull the text up over the sticky image */
    padding-bottom: 100px; /* Normal padding */
  }
  
  .gsap-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
  }
  
  .gsap-features {
    gap: 30px;
    padding: 0 20px;
  }

  .gsap-feature {
    min-height: auto;
    padding: 30px;
    opacity: 1;
    transform: translateY(20px);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  
  .gsap-feature.active {
    transform: translateY(0);
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.1);
  }

  .gsap-step {
    font-size: 60px;
    position: absolute;
    top: 10px;
    right: 20px;
    opacity: 0.5;
  }
  
  .gsap-feature h3 {
    margin-top: 20px;
  }
}
