/* 
 * VENTURES IMMERSIVE STORYTELLING STYLES
 * Implements fixed background layers and custom progress cursor
 */

:root {
    --cursor-size: 140px;
}

/* GLOBAL PROGRESS BAR (DOCKED AS NAVBAR BOTTOM BORDER) */
.ventures-global-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    overflow: hidden;
}

/* Fallback before dynamic docking */
body > .ventures-global-progress,
#navbar-include + .ventures-global-progress {
    position: fixed;
    top: 70px;
    bottom: auto;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-signal, #fd3004);
    box-shadow: 0 0 10px rgba(253, 48, 4, 0.6), 0 0 3px rgba(253, 48, 4, 0.9);
    transition: width 0.1s linear;
}

/* 1. BACKGROUND PORTAL */
.ventures-bg-portal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #000; /* Back to dark for image depth */
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.venture-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: url(#liquid-morph); /* Apply the liquid morph filter */
    will-change: opacity, transform, filter;
}

/* Dark gradient overlay for readability on images */
.ventures-bg-portal::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 10;
}

/* 2. SCROLL CONTAINER */
.ventures-scroll-container {
    position: relative;
    z-index: 1;
    background: transparent !important; /* Removed white BG */
}

.venture-content-section {
    height: 150vh;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    position: relative;
    background: transparent !important;
}

.venture-section-link {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    position: sticky; /* Make content sticky */
    top: 0;
    height: 100vh;
}

.venture-content-wrap {
    max-width: 800px;
    text-align: center; /* Center text */
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0; /* Initial state */
}

.venture-title {
    font-family: var(--font-heading);
    font-size: 2.5rem; /* Matched to Archives */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
}

.venture-description {
    font-family: var(--font-body);
    font-size: 1.1rem; /* Matched to Archives */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Ghost Icon Parallax placeholder style */
.venture-icon-ghost {
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15rem;
    opacity: 0;
    pointer-events: none;
    color: #fff;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* 3. CUSTOM CURSOR CHIP */
.venture-cursor {
    position: fixed;
    top: 0;
    left: 0;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s ease;
    overflow: hidden; /* For progress bar */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.venture-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cursor-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Driven by JS */
    background: var(--color-signal);
    z-index: -1;
    opacity: 0.8;
}

.cursor-label {
    position: relative;
    z-index: 1;
}

/* Hover Scaling */
.venture-cursor.hovering {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(var(--color-signal-rgb), 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .venture-cursor {
        display: none;
    }
    
    .venture-title {
        font-size: 3rem;
    }
    
    .venture-description {
        font-size: 1.1rem;
    }

    .venture-content-section {
        padding: 0 30px;
    }
}
