/* ==================== BASE STYLES ==================== */

.sticky-wrapper h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  background: linear-gradient(
    to bottom,
    #a0b6fd 0%,
    #7aa9fd 40%,
    #559dfd 60%,
    #1f8afd 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 12px;
  line-height: 1.2;
}

/* Main Section */
.feature-section {
  min-height: 300vh;
  background: #121921;
  padding: clamp(80px, 15vw, 285px) 0 0 0;
  position: relative;
  
}

/* Sticky Cards Container */
.sticky-wrapper {
  position: relative;
}

.card-container {
  height: 300vh;
  position: relative;
}

/* ==================== INDIVIDUAL CARD STYLING ==================== */

.sticky-card {
  position: sticky;
  top: 100px;
  height: 80vh;
  max-height: 700px;
  margin-bottom: 60px;
  border-radius: 32px;
  padding: 0 clamp(30px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  transform-origin: center top;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

.sticky-card:first-child {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sticky-card:nth-child(1) {
  top: 100px;
  background: url(../photos/listing_opt_bg_desktop.png) no-repeat center / cover;
}

.sticky-card:nth-child(2) {
  top: 110px;
  background: url(../photos/listing_opt_bg_desktop.png) no-repeat center / cover;
}

.sticky-card:nth-child(3) {
  top: 120px;
  background: url(../photos/listing_opt_bg_desktop.png) no-repeat center / cover;
}

.sticky-card:nth-child(4) {
  top: 130px;
  background: url(../photos/listing_opt_bg_desktop.png) no-repeat center / cover;
}

.sticky-card:nth-child(5) {
  top: 140px;
  background: url(../photos/listing_opt_bg_desktop.png) no-repeat center / cover;
}

/* ==================== CARD CONTENT - LEFT SIDE ==================== */

.card-text {
  flex: 1;
  min-width: min(400px, 100%);
}

.listing-title-div {
  margin-top: clamp(15px, 3vw, 30px);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(40px, 10vh, 130px);
}

.listing-title-div img {
  height: clamp(32px, 4vw, 44px);
  width: clamp(32px, 4vw, 44px);
  flex-shrink: 0;
}

.listing-title-div h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: white;
  line-height: 1.2;
}

.listing-optimization-desc-content h3 {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}

.listing-optimization-desc-content p {
  font-family: sans-serif;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 300;
  color: white;
  margin-top: 20px;
  line-height: 1.4;
}

.mobile-only-br {
  display: none;
}

/* ==================== CARD BUTTON ==================== */

.lets-talk-btn {
  margin-top: clamp(40px, 8vh, 130px);
  margin-bottom: clamp(20px, 4vh, 50px);
  width: clamp(140px, 15vw, 167px);
  background: #ffdc00;
  color: #000;
  font-size: clamp(18px, 2vw, 24px);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  border: none;
  padding: 6px 2px 6px 15px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lets-talk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 220, 0, 0.3);
}

.lets-talk-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-arrow {
  font-size: 18px;
  font-weight: 700;
  color: transparent;
  border-radius: 50%;
  background: black;
  padding: 5px;
  overflow: hidden;
  width: clamp(32px, 3vw, 38px);
  height: clamp(32px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

/* ==================== CARD IMAGE - RIGHT SIDE ==================== */

.card-image {
  flex: 1;
  position: relative;
  min-height: 300px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .sticky-card {
    max-height: 800px;
  }
}

/* Desktop to Laptop (1024px - 1400px) */
@media (max-width: 1400px) {
  .sticky-card {
    height: 75vh;
    max-height: 650px;
  }
}

/* Tablet Landscape (900px - 1024px) */
@media (max-width: 1024px) {
  .sticky-card {
    padding: 0 40px;
    gap: 50px;
    height: auto;
    min-height: 550px;
  }

  .listing-optimization-desc-content h3 br {
    display: none;
  }

  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }
}

/* Tablet Portrait (768px - 900px) */
@media (max-width: 900px) {
  .feature-section {
    min-height: 250vh;
    padding: 80px 0 0 0;
  }

  .card-container {
    height: 250vh;
  }

  .sticky-card {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
    top: 60px !important;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    top: 60px !important;
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }

  .card-text {
    min-width: auto;
    width: 100%;
  }

  .listing-title-div {
    margin-bottom: 30px;
  }

  .listing-optimization-desc-content h3 br {
    display: inline;
  }

  .card-image {
    width: 100%;
    height: 350px;
    min-height: 300px;
  }

  .card-image img {
    object-fit: contain;
  }

  .lets-talk-btn {
    margin-top: 30px;
    margin-bottom: 0;
  }
}

/* Mobile Landscape (640px - 768px) */
@media (max-width: 768px) {
  .sticky-wrapper h1 {
    font-size: 36px;
    padding-bottom: 20px;
  }

  .feature-section {
    padding: 60px 0 0 0;
  }

  .sticky-card {
    padding: 30px 20px;
    border-radius: 24px;
    gap: 25px;
    margin-bottom: 30px;
  }

  .listing-title-div {
    margin-top: 10px;
    margin-bottom: 25px;
  }

  .listing-title-div h2 {
    font-size: 28px;
  }

  .listing-optimization-desc-content h3 {
    font-size: 24px;
  }

  .listing-optimization-desc-content p {
    font-size: 16px;
    margin-top: 15px;
  }

  .mobile-only-br {
    display: inline;
  }

  .card-image {
    height: 280px;
    min-height: 250px;
  }

  .lets-talk-btn {
    margin-top: 25px;
    width: 140px;
    font-size: 18px;
  }

  /* Mobile background image */
  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }
}

/* Mobile Portrait (480px - 640px) */
@media (max-width: 640px) {
  .sticky-wrapper h1 {
    font-size: 32px;
    text-align: center;
  }

  .feature-section {
    min-height: 220vh;
    padding: 50px 0 0 0;
  }

  .card-container {
    height: 220vh;
  }

  .sticky-card {
    padding: 25px 18px;
    border-radius: 20px;
    top: 50px !important;
  }

  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    top: 50px !important;
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }

  .listing-title-div img {
    height: 32px;
    width: 32px;
  }

  .listing-title-div h2 {
    font-size: 24px;
  }

  .listing-optimization-desc-content h3 {
    font-size: 22px;
  }

  .listing-optimization-desc-content p {
    font-size: 15px;
  }

  .card-image {
    height: 250px;
    min-height: 220px;
  }

  .lets-talk-btn {
    width: 130px;
    font-size: 16px;
    padding: 5px 2px 5px 12px;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .sticky-wrapper h1 {
    font-size: 28px;
    padding-bottom: 15px;
  }

  .feature-section {
    padding: 40px 0 0 0;
  }

  .sticky-card {
    padding: 20px 15px;
    border-radius: 18px;
    gap: 20px;
  }

  .listing-title-div {
    margin-bottom: 20px;
    gap: 8px;
  }

  .listing-title-div img {
    height: 28px;
    width: 28px;
  }

  .listing-title-div h2 {
    font-size: 22px;
  }

  .listing-optimization-desc-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .listing-optimization-desc-content p {
    font-size: 14px;
    margin-top: 12px;
  }

  .card-image {
    height: 220px;
    min-height: 200px;
  }

  .lets-talk-btn {
    margin-top: 20px;
    width: 125px;
    font-size: 15px;
  }

  .btn-arrow {
    width: 30px;
    height: 30px;
  }

  /* Mobile background image */
  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }
}

/* Extra Small Mobile (max 360px) */
@media (max-width: 360px) {
  .sticky-wrapper h1 {
    font-size: 24px;
  }

  .sticky-card {
    padding: 18px 12px;
  }

  .listing-title-div h2 {
    font-size: 20px;
  }

  .listing-optimization-desc-content h3 {
    font-size: 18px;
  }

  .listing-optimization-desc-content p {
    font-size: 13px;
  }

  .card-image {
    height: 200px;
    min-height: 180px;
  }

  /* Mobile background image */
  .sticky-card:nth-child(1),
  .sticky-card:nth-child(2),
  .sticky-card:nth-child(3),
  .sticky-card:nth-child(4),
  .sticky-card:nth-child(5) {
    background: url(../photos/listing_opt_bg_mobile.png) no-repeat center / cover;
  }
}

/* ==================== ACCESSIBILITY & PERFORMANCE ==================== */

@media (prefers-reduced-motion: reduce) {
  .sticky-card {
    transition: opacity 0.2s ease;
  }

  .lets-talk-btn {
    transition: none;
  }

  .lets-talk-btn:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .sticky-card {
    border: 2px solid white;
  }

  .listing-title-div h2,
  .listing-optimization-desc-content h3,
  .listing-optimization-desc-content p {
    color: #ffffff;
  }
}

