/* ==========================================================================
   PREMIUM THIN-STYLE WORKFLOW SECTION
   ========================================================================== */

:root {
    --wf-font-primary: 'Outfit', sans-serif;
    --wf-font-secondary: 'Space Grotesk', sans-serif;
    --wf-glass-bg: rgba(10, 10, 10, 0.9);
    --wf-glass-border: rgba(255, 255, 255, 0.15);
}

.workflow-wrapper {
    background-color: #000;
    position: relative;
    overflow-x: hidden;
}

/* --- Workflow Hero --- */
#workflow-hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky; 
    top: 0;
    width: 100%;
    z-index: 5;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* UPDATED: Thin Heading Style */
.hero-content h1 {
    font-family: var(--wf-font-primary);
    font-size: clamp(3.5rem, 15vw, 7.5rem);
    font-weight: 300; /* Made Thin */
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 15px;
    font-family: var(--wf-font-secondary);
    font-weight: 300;
}

.wf-fade-out {
    opacity: 0;
    transform: translateY(-80px) scale(0.95);
    pointer-events: none;
}

/* --- FIXED BACKGROUND IMAGE FIX --- */
.timeline-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    filter: brightness(0.25);
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    /* Use exact path from your root */
    background-image: url('../assets/workflow.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-visible { opacity: 1; }

/* --- Timeline Structure --- */
#timeline-section {
    position: relative;
    padding: 20vh 0 50vh 0;
    z-index: 10;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 450px; 
}

/* Rail Layers */
.line-dotted {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, #222 50%, transparent 0%);
    background-size: 2px 25px;
    z-index: 1;
}

.line-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    top: 0;
    background: #fff;
    box-shadow: 0 0 25px #fff;
    z-index: 2;
    height: 0;
    will-change: height;
}

.moving-arrow {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    will-change: top;
}

.moving-arrow.visible { opacity: 1; }

.nav-pointer {
    width: 32px;
    height: 32px;
    fill: #fff;
    filter: drop-shadow(0 0 10px #fff);
    transition: transform 0.3s ease;
}

/* --- Cards & Nodes --- */
.timeline-item {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-card {
    width: 90%;
    max-width: 520px;
    background: var(--wf-glass-bg);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid var(--wf-glass-border);
    padding: 60px 45px;
    border-radius: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.timeline-item.active .timeline-card {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node {
    width: 60px;
    height: 60px;
    background: #000;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.5s ease;
}

.node-number {
    font-family: var(--wf-font-primary);
    font-size: 1.1rem;
    color: #555;
    font-weight: 300;
}

.timeline-item.active .timeline-node {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 40px #fff;
}

.timeline-item.active .node-number { color: #000; font-weight: 500; }

/* Node Ripple Effect */
.timeline-item.active .timeline-node::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border: 1px solid #fff;
    border-radius: 50%;
    animation: water-ripple 1.4s ease-out forwards;
}

@keyframes water-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.pill {
    display: inline-block;
    background: rgba(255,255,255,0.06);
    padding: 7px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #888;
    border: 1px solid rgba(255,255,255,0.1);
}

/* UPDATED: Card Heading Thin Style */
.timeline-card h3 {
    font-family: var(--wf-font-primary);
    font-size: 2.2rem;
    font-weight: 300; /* Made Thin */
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.timeline-card p {
    color: #999;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.05rem;
    font-family: var(--wf-font-secondary);
}

@media (max-width: 600px) {
    .timeline-container { gap: 320px; }
    .hero-content h1 { font-size: 3.8rem; }
    .timeline-card { padding: 45px 30px; }
}