/*
v1
.ad-section-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.1s linear;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
}

.content-wrapper h1 {
  font-size: 3rem;
}

.content-wrapper p {
  max-width: 500px;
}
*/

/*
v2
.ad-section-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  z-index: 1;
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
}

*/

/* SECTION WRAPPER */
.ad-section-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* MEDIA BASE (applies to both img + video) */
.ad-section-wrapper .bg-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%; /* extra height for parallax movement */
  object-fit: cover;

  z-index: 1;
  transform: translateY(0);

  will-change: transform;
  pointer-events: none; /* prevents interaction blocking */
}

/* IMAGE SPECIFIC (optional fine-tuning) */
.ad-section-wrapper img.bg-cover {
  image-rendering: auto;
}

/* VIDEO SPECIFIC */
.ad-section-wrapper video.bg-cover {
  background: #000; /* fallback while loading */
}

/* OVERLAY LAYER */
.ad-section-wrapper .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* CONTENT LAYER */
.ad-section-wrapper .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;   /* vertical center */
}

/* TEXT STYLING */
.ad-section-wrapper .content-wrapper {
  color: #fff;
  max-width: 600px;
}

.ad-section-wrapper .content-wrapper h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.ad-section-wrapper .content-wrapper p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

/* OPTIONAL: REDUCE MOTION (ACCESSIBILITY) */
@media (prefers-reduced-motion: reduce) {
  .ad-section-wrapper .bg-cover {
    transform: none !important;
  }
}

/* OPTIONAL: MOBILE PERFORMANCE OPTIMIZATION */
@media (max-width: 768px) {
  .ad-section-wrapper {
    height: 120vh;
  }

  .ad-section-wrapper .bg-cover {
    height: 120%;
  }
}