/* ─── Cinematic Scroll — Supporting Styles ──────────────────────────────── */

/* Scroll Progress Bar */
#cinematic-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c87754, #f0b07a, #c87754);
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 99999;
    pointer-events: none;
}

/* Hero Three.js Canvas */
#hero-three-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Ensure hero text is above the canvas */
#section-hero .abs-centered {
    z-index: 5 !important;
}

#section-hero .abs.w-100.bottom-0 {
    z-index: 4 !important;
}

/* Tech Section Three.js Canvas */
#tech-three-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

#section-tech {
    position: relative;
    overflow: hidden;
}

#section-tech .container,
#section-tech .row {
    position: relative;
    z-index: 1;
}

/* Cinematic Scroll Indicator */
.cinematic-scroll-indicator {
    position: absolute;
    bottom: 96px;
    right: 40px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 8px;
    letter-spacing: 0.3em;
    font-weight: 700;
    pointer-events: none;
    text-transform: uppercase;
}

.cinematic-scroll-indicator .scroll-track {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.cinematic-scroll-indicator .scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, #c87754, transparent);
}

@media (max-width: 767px) {
    .cinematic-scroll-indicator {
        display: none;
    }
}

/* Section entrance — subtle clip reveal on images */
.cinematic-clip-ready {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
}

/* Stat cards — ensure stacking context for GSAP */
#section-tech .col-md-3 {
    will-change: transform, opacity;
}

/* Smooth image transitions */
#section-services .d-tab-content img,
#section-tech .col-lg-8 img {
    will-change: clip-path, opacity;
}
