/*--------------------------------------------------------------
# Process Section V2 - Scroll Hijacking Refined
--------------------------------------------------------------*/

.process-section-v2 {
    padding: 0;
    height: 100vh;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* Container for proper centering */
.process-section-v2 .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* Section header styling */
.process-section-v2 .section-header {
    text-align: center;
    margin-bottom: 30px; /* Ytterligere redusert */
    padding-top: 40px; /* Redusert padding */
}

.process-section-v2 .section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--royal-navy);
    margin-bottom: 10px;
}

.process-section-v2 .section-subtitle {
    font-size: 18px;
    color: var(--silver-gray);
    max-width: 600px;
    margin: 0 auto;
}

.process-sticky-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; /* Redusert gap */
    flex: 1; /* Tar opp resten av plassen */
    align-items: center;
    overflow: hidden;
    padding: 0 40px; /* Redusert padding */
}

.process-steps-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px; /* Redusert gap mellom steg */
    height: 100%;
    padding-left: 0; /* Fjernet ekstra padding siden container har det */
}

.process-step-text {
    opacity: 0.4;
    transition: all 0.4s ease;
    cursor: default;
    transform: translateX(-20px); /* Start posisjon */
    position: relative;
    padding-left: 70px; /* Plass for nummer */
}

/* Steg-nummer */
.process-step-text::before {
    content: attr(data-step);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--silver-gray);
    opacity: 0.5;
    transition: all 0.4s ease;
    line-height: 1.2;
}

.process-step-text.active::before {
    font-size: 20px;
    color: var(--royal-blue);
    opacity: 1;
}

.process-step-text.active {
    opacity: 1;
    transform: translateX(0); /* Aktiv posisjon */
}

.process-step-text .step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--silver-gray);
    transition: font-size 0.4s ease, color 0.4s ease;
    line-height: 1.2;
}

.process-step-text.active .step-title {
    font-size: 30px;
    color: var(--royal-navy);
}

.process-step-text .step-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 16px;
    color: var(--silver-gray);
    line-height: 1.7;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.process-step-text.active .step-description {
    max-height: 150px;
    opacity: 1;
    margin-top: 10px;
}

.process-visual-column {
    position: relative;
    height: 450px;
    width: 100%;
    perspective: 1000px; /* Legger til 3D perspektiv */
    padding-right: 0; /* Fjernet ekstra padding siden container har det */
}

.process-visual-sticky-box {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d; /* Bevarer 3D transformasjoner */
}

.process-visual-card {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,249,250,0.98)),
        linear-gradient(135deg, #29568d 0%, #1e3a6f 100%);
    background-size: 100% 100%, 100% 5px;
    background-position: center, top;
    background-repeat: no-repeat;
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(3, 19, 55, 0.12),
        0 2px 10px rgba(3, 19, 55, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 30px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(20px) rotateY(90deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    backface-visibility: hidden;
    transform-origin: center center;
    border: 1px solid rgba(41, 86, 141, 0.15);
    overflow: hidden;
}

.process-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #29568d, #1e3a6f);
}

.process-visual-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0) rotateY(0deg);
    z-index: 2;
}

.process-visual-card.active:hover {
    transform: scale(1.02) translateY(-5px) rotateY(0deg);
    box-shadow: 0 20px 60px rgba(3, 19, 55, 0.15);
    border-color: rgba(41, 86, 141, 0.2);
}


/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    width: 100%;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: #29568d;
    background: rgba(41, 86, 141, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.process-visual-card .step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #29568d, #1e3a6f);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(41, 86, 141, 0.3);
}

.process-visual-card .step-icon i {
    font-size: 28px;
    color: white;
}


/* Card Content */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start; /* Left align content */
}

.process-visual-card .visual-card-title {
    font-size: 26px;
    font-weight: 700;
    color: #031337;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
}

.card-subtitle {
    font-size: 16px;
    color: #29568d;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 500;
    width: 100%;
}

/* Features List */
.card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    flex: 1;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(41, 86, 141, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(41, 86, 141, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: #29568d;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-item span {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

/* Scroll indikator */
.process-section-v2::after {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--royal-navy);
    border-radius: 25px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.process-section-v2::before {
    content: '';
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: var(--royal-navy);
    border-radius: 2px;
    animation: scrollIndicator 1.5s infinite;
}

/* Skjuler scroll-indikator når seksjonen er låst */
.process-section-v2.scroll-locked::after,
.process-section-v2.scroll-locked::before {
    opacity: 0;
}

@keyframes scrollIndicator {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Responsive design */
@media (max-width: 991px) {
    .process-section-v2 .section-header {
        padding-top: 40px;
        margin-bottom: 30px;
    }
    
    .process-section-v2 .section-title {
        font-size: 28px;
    }
    
    .process-section-v2 .section-subtitle {
        font-size: 16px;
    }
    
    .process-sticky-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        height: calc(100vh - 150px);
    }
    
    .process-steps-column {
        padding-left: 0;
        gap: 15px;
    }
    
    .process-step-text {
        padding-left: 45px; /* Mindre padding på mobil */
    }
    
    .process-step-text::before {
        font-size: 12px;
    }
    
    .process-step-text.active::before {
        font-size: 16px;
    }
    
    .process-visual-column {
        height: 300px;
        padding-right: 0;
    }
    
    .process-step-text .step-title {
        font-size: 14px;
    }
    
    .process-step-text.active .step-title {
        font-size: 22px;
    }
}

/* Mobile specific (max-width: 767px) */
@media (max-width: 767px) {
    .process-section-v2 {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .process-section-v2 .container {
        padding: 0 15px;
    }
    
    .process-section-v2 .section-header {
        padding-top: 20px;
        margin-bottom: 20px;
    }
    
    .process-section-v2 .section-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .process-section-v2 .section-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .process-sticky-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
        height: auto;
    }
    
    .process-steps-column {
        gap: 20px;
        padding: 0;
    }
    
    .process-step-text {
        padding-left: 40px;
        opacity: 0.7;
        transform: translateX(0);
    }
    
    .process-step-text.active {
        opacity: 1;
        background: rgba(248, 249, 250, 0.8);
        padding: 15px 15px 15px 40px;
        border-radius: 8px;
        margin: 0 -5px;
    }
    
    .process-step-text::before {
        font-size: 11px;
        left: 10px;
        top: 2px;
    }
    
    .process-step-text.active::before {
        font-size: 14px;
        color: var(--royal-blue);
    }
    
    .process-step-text .step-title {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .process-step-text.active .step-title {
        font-size: 18px;
        color: var(--royal-navy);
    }
    
    .process-step-text .step-description {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .process-step-text.active .step-description {
        max-height: 100px;
        margin-top: 8px;
    }
    
    .process-visual-column {
        height: 280px;
        padding: 0;
        perspective: 800px;
    }
    
    .process-visual-card {
        padding: 25px 20px;
        transform: scale(0.95) translateY(10px) rotateY(90deg);
    }
    
    .process-visual-card.active {
        transform: scale(1) translateY(0) rotateY(0deg);
    }
    
    .process-visual-card .step-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .process-visual-card .visual-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .process-visual-card p {
        font-size: 13px;
        line-height: 1.4;
        margin: 3px 0;
    }
    
    /* Hide scroll indicator on mobile */
    .process-section-v2::after,
    .process-section-v2::before {
        display: none;
    }
    
    /* Disable hover effects on mobile */
    .process-visual-card.active:hover {
        transform: scale(1) translateY(0) rotateY(0deg);
        box-shadow: var(--shadow-lg);
    }
    
    /* Disable icon pulse on mobile */
    .process-visual-card.active .step-icon {
        animation: none;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .process-section-v2 .section-title {
        font-size: 20px;
    }
    
    .process-section-v2 .section-subtitle {
        font-size: 13px;
    }
    
    .process-step-text {
        padding-left: 35px;
    }
    
    .process-step-text::before {
        font-size: 10px;
        left: 8px;
    }
    
    .process-step-text.active::before {
        font-size: 12px;
    }
    
    .process-step-text .step-title {
        font-size: 15px;
    }
    
    .process-step-text.active .step-title {
        font-size: 17px;
    }
    
    .process-step-text .step-description {
        font-size: 12px;
    }
    
    .process-visual-column {
        height: 250px;
    }
    
    .process-visual-card {
        padding: 20px 15px;
    }
    
    .process-visual-card .step-icon {
        font-size: 32px;
    }
    
    .process-visual-card .visual-card-title {
        font-size: 16px;
    }
    
    .process-visual-card p {
        font-size: 12px;
    }
} 