/* --- Global & About Section Links --- */
.scroll-blur-container {
  position: relative;
  background-color: black;
  min-height: 100vh;
}

body.scroll-locked {
  overflow: hidden;
}

/* --- Optimized Canvas Video Section --- */
.scroll-video-section {
  position: relative;
  width: 100%;
}

.video-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Canvas styling replacing your old #scroll-video rules */
#scroll-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.scroll-spacer {
  height: 300vh; /* Set to 300vh to give a smooth, comfortable scroll depth on mobile & desktop */
  width: 100%;
  pointer-events: none;
}

.video-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end; /* Bottom alignment */
  justify-content: space-between;
  padding: 60px;
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

.video-content-block {
  max-width: 450px;
  width: 100%;
}

.video-content-block:last-child {
  text-align: left;
}

.video-text-overlay .video-content-block h4.blur-text {
  font-size: 48px !important;
  text-transform: uppercase;
  letter-spacing: 10% !important;
  text-wrap: nowrap;
  width: max-content;
  text-align: left;
  line-height: 48px;
  margin-bottom: 100px;
}

/* Text Blurring Engine Classes */
.blur-text {
  color: white;
  filter: blur(20px);
  opacity: 0;
  transition: filter 0.8s ease, opacity 0.8s ease;
  will-change: filter, opacity;
}

.blur-text.active {
  filter: blur(0px);
  opacity: 1;
}

/* Add this to explicitly ensure the canvas doesn't look collapsed or flat on mobile Safari/Chrome engines */
#scroll-canvas {
    display: block;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover;
    -webkit-transform: translate3d(0,0,0); /* Forces iOS Hardware acceleration layering */
    transform: translate3d(0,0,0);
}


/* --- RESPONSIVE VIDEO OVERLAYS (Your Original Rules Retained) --- */

/* TABLET (Laptops/iPads) */
@media (max-width: 992px) {
  .video-text-overlay {
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    padding: 30px;
    text-align: center;
  }

  .video-content-block {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .video-content-block:last-child {
    text-align: center; 
    margin-bottom: 0;
  }

  .video-content-block h4 {
    font-size: 36px;
    line-height: 1.2;
  }
}

/* MOBILE (Phones) */
@media (max-width: 768px) {
  .video-text-overlay {
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center;
    padding: 80px 20px; 
    text-align: center;
  }

  .video-content-block {
    max-width: 100%;
    margin: 0;
  }

  .video-content-block:last-child {
    text-align: center; 
  }

  .video-text-overlay .video-content-block h4.blur-text {
    font-size: 35px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 10% !important;
    text-wrap: nowrap;
    width: max-content;
    text-align: center;
    line-height: 48px;
    margin-bottom: 0;
  }

  .blur-text {
    text-shadow: 0px 0px 15px rgba(0,0,0,0.8);
  }
}

@media screen and (max-width: 576px) {
  .video-text-overlay .video-content-block h4.blur-text { 
    font-size: 30px !important;
    line-height: 1.2;
    letter-spacing: 0 !important;
    text-align: center;
        margin: 0 auto;
  }

}