/* Methodology Section */
.methodology-section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background-color: #f3eef5; /* Light purple background */
}

.timeline-container {
    position: relative;
    padding: 40px 0;
    margin: 40px 0;
}

/* Straight Line Container */
.timeline-line {
    position: absolute;
    top: 45px; /* Aligns with center of 50px markers (top padding 20px + 25px) */
    left: 12.5%; /* Center of first column (25% / 2) */
    right: 12.5%; /* Center of last column */
    height: 4px;
    z-index: 1;
}

/* Background Line (Gray) */
.timeline-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d1c4d9;
    border-radius: 2px;
}

/* Progress Line (Purple) */
.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* Will be animated */
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Steps */
.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -30px;
    padding: 20px 15px 0; /* Top padding for marker space */
    /* opacity: 0.5;  Removed: User wants them visible initially */
    transition: opacity 0.3s ease;
}

/* Step Marker (The Ball) */
.step-marker {
    width: 50px;
    height: 50px;
    background: white;
    color: #d1c4d9; /* Gray text initially */
    border: 3px solid #d1c4d9; /* Gray border initially */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px; /* Centered */
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
}

/* Active State for Marker */
.timeline-step.active .step-marker {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(82, 34, 208, 0.4);
}

/* Step Content (Title + Desc) */
.step-content {
    opacity: 0; /* Hidden initially */
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* Active State for Content */
.timeline-step.active .step-content {
    opacity: 1;
    transform: translateY(0);
}

/* Make Step 1 Content Visible Immediately if needed, 
   but JS will handle "active" class so it should be fine. 
   Wait, user said "numero e o que é" (number and what it is) appear.
   And "as bolas já estar no design". 
   So markers are visible (gray), content is hidden. */

.step-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Highlight Box at Bottom */
.methodology-highlight {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .timeline-line {
        left: 24px; /* Align with markers on left */
        right: auto;
        width: 4px;
        height: 100%; /* Vertical line */
        top: 0;
        bottom: 0;
    }

    .timeline-line-bg, .timeline-line-progress {
        width: 100%;
        height: 100%; /* Fill vertically */
    }
    
    .timeline-line-progress {
        height: 0%; /* Animate height on mobile */
        width: 100%;
    }

    .timeline-container {
        padding: 0;
    }

    .timeline-step {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
        
    }

    .step-marker {
        margin: 0 20px 0 0; /* Margin right */
        flex-shrink: 0;
    }
    
    /* Reset transforms for mobile simplicity */
    .step-content {
        opacity: 1; 
        transform: none;
        padding-top: 10px;
    }
    
    /* Ensure all steps are visible on mobile without scroll magic if desired, 
       or keep animation. Let's keep it but make sure logic works. */
}
