/*-----------------------------------------------------------------------------------
    The Process - Scroll-Driven Animation Section
    Saurjya Acharya Portfolio Brand Alignment:
    - Background: #0f0f0f (Matte Dark Theme)
    - Website typefaces: 'Poppins' for headings & numbers, 'Plus Jakarta Sans' for copy
    - Signature Accent Orange (#fd5b38)
    - 56px Bold Ribbon Thickness with Ultra-Smooth Fluid Curves
    - Zero glow / clean flat matte stroke
    - Ample clearance: text and badges NEVER touch the ribbon
    - Premium architectural & glassmorphic ambient design elements
-----------------------------------------------------------------------------------*/

.the-process-section {
    position: relative;
    width: 100%;
    background-color: #0f0f0f;
    color: #ffffff;
    overflow: hidden;
    z-index: 10;
    padding: 110px 0 140px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header Container (aligned to site's standard container) */
.process-header-wrap {
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
}

.process-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.process-title-group .process-mini-tag {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #fd5b38;
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.process-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.process-hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #a0a0a0;
    max-width: 440px;
    margin: 0;
}

/* =============================================================================
   Full-Bleed Canvas Container: 1600 x 2100 Coordinate Space
   ============================================================================= */

.process-canvas-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1600 / 2100;
    margin: 0 auto;
    overflow: visible;
}

/* Main SVG Path Layer */
.process-canvas-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

/* Inactive Ghost Base Guide Tube (56px bold thickness) */
.process-tube-base {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 56;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Active Accent Orange Scrubbed Tube (56px bold thickness, no glow) */
.process-tube-active {
    stroke: #fd5b38;
    stroke-width: 56;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    filter: none !important;
    will-change: stroke-dashoffset;
}

/* =============================================================================
   Stage Blocks (Badge + Content, with generous clearance from the ribbon)
   ============================================================================= */

.process-step-block {
    position: absolute;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.35;
    transform: scale(0.96);
    pointer-events: auto;
}

.process-step-block.is-active,
.process-step-block.is-completed {
    opacity: 1;
    transform: scale(1);
}

/* Fallback Desktop Percentages (calibrated precisely by JS on load) */
/* Stage 1: cx=490, cy=240 -> text on RIGHT */
.process-step-block[data-stage="1"] {
    left: 30.625%;
    top: 11.43%;
    transform: translate(-33px, -33px) scale(0.96);
}
.process-step-block[data-stage="1"].is-active,
.process-step-block[data-stage="1"].is-completed {
    transform: translate(-33px, -33px) scale(1);
}

/* Stage 2: cx=970, cy=680 -> text on RIGHT */
.process-step-block[data-stage="2"] {
    left: 60.625%;
    top: 32.38%;
    transform: translate(-33px, -33px) scale(0.96);
}
.process-step-block[data-stage="2"].is-active,
.process-step-block[data-stage="2"].is-completed {
    transform: translate(-33px, -33px) scale(1);
}

/* Stage 3: cx=980, cy=1360 -> text on LEFT */
.process-step-block[data-stage="3"] {
    left: 61.25%;
    top: 64.76%;
    flex-direction: row-reverse;
    text-align: right;
    transform: translate(calc(-100% + 33px), -33px) scale(0.96);
}
.process-step-block[data-stage="3"].is-active,
.process-step-block[data-stage="3"].is-completed {
    transform: translate(calc(-100% + 33px), -33px) scale(1);
}

/* Stage 4: cx=960, cy=1800 -> text on LEFT */
.process-step-block[data-stage="4"] {
    left: 60.00%;
    top: 85.71%;
    flex-direction: row-reverse;
    text-align: right;
    transform: translate(calc(-100% + 33px), -33px) scale(0.96);
}
.process-step-block[data-stage="4"].is-active,
.process-step-block[data-stage="4"].is-completed {
    transform: translate(calc(-100% + 33px), -33px) scale(1);
}

/* Circular Badges: Bold 66px matte ring matching 56px ribbon */
.process-step-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #0f0f0f;
    border: 3.5px solid #fd5b38;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    transition: all 0.35s ease;
}

.process-step-num {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fd5b38;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.process-step-block.is-active .process-step-badge {
    background: #fd5b38;
    border-color: #fd5b38;
    transform: scale(1.08);
}

.process-step-block.is-active .process-step-num {
    color: #ffffff;
}

.process-step-block.is-completed .process-step-badge {
    border-color: #fd5b38;
}

/* Step Typography using Website Typefaces */
.process-step-content {
    max-width: 400px;
}

.process-step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.process-step-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #888888;
    margin: 0;
    transition: color 0.3s ease;
}

.process-step-block.is-active .process-step-title {
    color: #ffffff;
}

.process-step-block.is-active .process-step-desc {
    color: #c6c8c9;
}

/* =============================================================================
   Premium Design Elements Filling Empty Canvas Areas
   ============================================================================= */

/* Top-Right Floating Methodology Pill */
.process-decor-pill {
    position: absolute;
    top: 8.5%;
    right: 5%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.process-decor-pill:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(253, 91, 56, 0.4);
    transform: translateY(-2px);
}

.process-decor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fd5b38;
    display: inline-block;
    box-shadow: 0 0 10px rgba(253, 91, 56, 0.6);
    animation: processPulse 2s infinite ease-in-out;
}

@keyframes processPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.process-decor-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #c6c8c9;
}

/* Center-Left & Lower-Left Frosted Cards */
.process-decor-card {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 26px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.process-decor-card:hover {
    border-color: rgba(253, 91, 56, 0.3);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-4px);
}

/* Card 1: Center-Left (Opposite Loop) */
.process-decor-card-1 {
    left: 4.5%;
    top: 36.5%;
    max-width: 270px;
}

.process-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(253, 91, 56, 0.1);
    border: 1px solid rgba(253, 91, 56, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.process-card-val {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 4px;
}

.process-card-lbl {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fd5b38;
    margin-bottom: 8px;
}

.process-card-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #777777;
    margin: 0;
}

/* Card 2: Lower-Left (Below Stage 3/4 Text) */
.process-decor-card-2 {
    left: 4.5%;
    top: 69.5%;
    max-width: 280px;
}

.process-framework-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    display: block;
    margin-bottom: 14px;
}

.process-framework-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-framework-list li {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #b5b5b5;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.process-framework-list li:last-child {
    margin-bottom: 0;
}

.process-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fd5b38;
    flex-shrink: 0;
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

/* Large Tablets / Laptops */
@media (max-width: 1200px) {
    .process-decor-card {
        padding: 18px 20px;
    }
    .process-decor-card-1 {
        max-width: 220px;
        left: 2%;
    }
    .process-decor-card-2 {
        max-width: 230px;
        left: 2%;
    }
    .process-card-val {
        font-size: 26px;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .process-hero-title {
        font-size: 42px;
    }
    
    .process-step-title {
        font-size: 28px;
    }
    
    .process-step-desc {
        font-size: 14px;
        max-width: 280px;
    }

    .process-decor-card {
        display: none !important;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .the-process-section {
        padding: 70px 0 90px;
    }
    
    .process-top-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .process-hero-title {
        font-size: 34px;
    }
    
    .process-canvas-container {
        aspect-ratio: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 50px;
        padding: 20px 20px;
    }
    
    .process-canvas-svg,
    .process-decor-pill,
    .process-decor-card {
        display: none !important;
    }
    
    .process-step-block {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        flex-direction: row !important;
        text-align: left !important;
        gap: 18px;
    }
    
    .process-step-badge {
        width: 52px;
        height: 52px;
    }
    
    .process-step-num {
        font-size: 16px;
    }
    
    .process-step-title {
        font-size: 24px;
    }
    
    .process-step-desc {
        font-size: 14px;
        max-width: 100%;
        color: #a0a0a0;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .process-step-block {
        opacity: 1 !important;
        transform: none !important;
    }
    .process-tube-active {
        stroke-dashoffset: 0 !important;
    }
}
