/* css/process.css */

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 30% 30%, rgba(100, 50, 255, 0.15) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    position: relative;
    display: inline-block;
}

.page-hero h1 span::before {
    content: 'Process';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--primary-color);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    animation: typeReveal 2s steps(7) forwards 0.5s;
}

@keyframes typeReveal {
    to { width: 100%; }
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Process Detail Section */
.process-detail-section {
    padding: 100px 0;
    position: relative;
}

/* Central Line for Desktop */
.process-detail-section::before {
    content: '';
    position: absolute;
    top: 150px;
    bottom: 150px;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent
    );
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 150px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step.reverse {
    flex-direction: row-reverse;
}

.step-number {
    flex: 0 0 45%;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    position: relative;
    text-align: right;
    font-family: var(--font-heading);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.process-step.reverse .step-number {
    text-align: left;
}

/* Dot on the line */
.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px; /* Adjust based on gap */
    width: 20px;
    height: 20px;
    background: var(--background-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%) translateX(50%); /* Center on line */
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-color);
}

/* Adjust dot for reverse */
.process-step.reverse .step-number::after {
    right: auto;
    left: -50px; 
    transform: translateY(-50%) translateX(-50%);
}

.step-content {
    flex: 0 0 45%;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-content h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.step-features {
    list-style: none;
    padding: 0;
}

.step-features li {
    font-size: 0.95rem;
    color: #cbd5e0;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section (Shared styles) */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }

    .process-detail-section::before {
        left: 30px; /* Move line to left */
        transform: translateX(0);
        /* Glowing/Gradient Line for Mobile to suggest flow */
        background: linear-gradient(to bottom, 
            transparent, 
            var(--primary-color) 10%, 
            rgba(255, 255, 255, 0.1) 90%, 
            transparent
        );
    }

    .process-step, 
    .process-step.reverse {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 60px; /* Space for line */
        margin-bottom: 60px;
        opacity: 0; /* Initial State for Animation */
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .process-step.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .step-number {
        font-size: 3rem; /* Smaller for mobile but still large */
        margin-bottom: 15px;
        text-align: left;
        width: 100%;
        color: rgba(255, 255, 255, 0.5); /* More visible on mobile initially */
        transition: color 0.5s ease, transform 0.5s ease;
    }

    /* When step is visible, highlight the number */
    .process-step.visible .step-number {
        color: #fff;
        text-shadow: 0 0 20px var(--primary-color);
        transform: translateX(10px); /* Slight nudge */
    }

    .process-step.reverse .step-number {
        text-align: left;
    }

    .step-number::after {
        left: -38px !important; /* Adjusted to align with line at 30px */
        right: auto !important;
        top: 25px; 
        width: 15px;
        height: 15px;
        border-radius: 50%; /* Ensure round */
        position: absolute;
        background-color: var(--background-color);
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.5s ease;
        z-index: 10;
    }

    /* Active Dot Animation */
    .process-step.visible .step-number::after {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 15px var(--accent-color);
        transform: scale(1.3); /* Pop effect */
    }

    .step-content {
        width: 100%;
        padding: 25px;
        border-right: none; /* Simplify borders on mobile */
        border-left: 2px solid rgba(255, 255, 255, 0.1); /* Left border accent instead */
        background: rgba(255, 255, 255, 0.02);
    }
    
    .process-step.visible .step-content {
        border-left-color: var(--primary-color);
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
}
