/* =================================
   SHARED SCROLLING SECTION
   (Used by front-page.php and neural-interface.php)
   Version: 2.1.0 (Fixed Mobile Pinning)
================================= */

.tech-scroll-section {
  background-color: #fff; 
  color: #111;
  padding: 0;
  overflow: visible !important; 
}

.tech-scroll-container {
  display: flex;
  width: 100%;
  position: relative;
}

.tech-scroll-video {
  width: 60%; 
  height: 100vh; 
  height: 100dvh; 
  position: sticky;
  top: 0;
  overflow: visible !important; 
  z-index: 1;                  
}

.video-cropper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible !important; 
}

.scroll-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0; 
  will-change: opacity, transform; 
}

.tech-scroll-text {
  width: 50%;
  background-color: transparent; 
  z-index: 10; 
  position: relative; 
  left: -10%; 
  margin-bottom: 0; 
  padding-bottom: 20vh; 
}

.tech-text-item {
  min-height: 90vh; 
  display: flex;
  align-items: center;
  padding: 0 10%;
  box-sizing: border-box;
}

/* STYLES FOR TEXT ON THE RIGHT (Both pages) */
.tech-text-item p {
  font-family: 'Inter', sans-serif;
  font-size: 32px; 
  font-weight: 400;
  line-height: 1.5;
  color: #111;
}

#anim-risk { background-color: #fdd; }
#anim-reliability { background-color: #ffc; }
#anim-rollout { background-color: #ddf; }

/* =================================
   TABLET STYLES
================================= */
@media (min-width: 901px) and (max-width: 1100px) {
    .tech-scroll-video { width: 60%; }
    .tech-scroll-text {
        width: 40%;
        left: 0; 
        background-color: transparent;
    }
}

/* =================================
   MOBILE STYLES FOR SCROLL SECTION
================================= */
@media (max-width: 900px) {
    .tech-scroll-container {
        flex-direction: column; 
    }
    
    .tech-scroll-video {
        width: 100%; 
        height: 60vh; 
        position: sticky; 
        /* FIXED: Pinning offset to prevent header overlap */
        top: 80px; 
        z-index: 5;
    }

    .tech-scroll-text {
        width: 100%; 
        margin-left: 0; 
        left: 0; 
        z-index: 20; 
        background-color: rgba(255, 255, 255, 0.1); 
        margin-bottom: 0;
        padding-bottom: 20vh; 
    }
    
    .tech-text-item {
        min-height: 80vh; 
        padding: 40px 10%; 
    }
    
    .tech-text-item p {
        font-size: 24px; 
    }
}

.scroll-learn-more {
  display: block;
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 22px; 
  font-weight: 700; 
  color: #111; 
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.scroll-learn-more:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
    .scroll-learn-more {
        font-size: 18px; 
    }
}