/* =====================================================
   LUXURY METHODOLOGY TIMELINE
   ===================================================== */

.luxury-methodology-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding: 80px 0;
}

/* Background Decoration */
.luxury-methodology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 5% 10%, rgba(59, 130, 246, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 95% 90%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

/* Connecting Line (Desktop) */
.timeline-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 1;
    border-radius: 4px;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Animated via JS if needed, or just static gradient for now */
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: timelineProgress 2s ease-out forwards;
}

@keyframes timelineProgress {
    to { width: 100%; }
}

/* Step Item */
.methodology-step-card {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 15px;
    text-align: center;
    opacity: 0; /* Hidden initially for scroll reveal */
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

/* Revealed State (triggered by IntersectionObserver) */
.methodology-step-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.methodology-step-card:nth-child(1) { transition-delay: 0.1s; }
.methodology-step-card:nth-child(2) { transition-delay: 0.3s; }
.methodology-step-card:nth-child(3) { transition-delay: 0.5s; }
.methodology-step-card:nth-child(4) { transition-delay: 0.7s; }

/* Step Icon Wrapper */
.step-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 3px solid #f0f0f0;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), #2a5298);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(13, 39, 87, 0.3);
    z-index: 3;
}

.step-icon-inner {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: transform 0.5s ease;
}

/* Hover Effects */
.methodology-step-card:hover .step-icon-wrapper {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.methodology-step-card:hover .step-icon-inner {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color); /* Gold */
}

/* Content */
.step-content {
    background: #fff;
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.methodology-step-card:hover .step-content {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.step-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   MOBILE RESPONSIVENESS (Vertical Timeline)
   ===================================================== */
@media (max-width: 991px) {
    .timeline-container {
        flex-direction: column;
        padding-left: 30px; /* Space for line */
    }

    .timeline-line {
        top: 0;
        left: 30px; /* Align with icons */
        width: 4px;
        height: 100%;
    }

    .timeline-line-progress {
        width: 100%;
        height: 0;
        animation: timelineProgressVertical 2s ease-out forwards;
    }

    @keyframes timelineProgressVertical {
        to { height: 100%; }
    }

    .methodology-step-card {
        display: flex;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
        padding: 0;
    }
    
    .methodology-step-card:last-child {
        margin-bottom: 0;
    }

    .step-icon-wrapper {
        width: 60px;
        height: 60px;
        margin: 0 20px 0 -30px; /* Center on line */
        flex-shrink: 0;
    }
    
    .step-icon-inner {
        font-size: 1.5rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        right: -5px;
        top: -5px;
    }

    .step-content {
        text-align: left;
        flex: 1;
    }

    .step-content::before {
        display: none; /* Hide arrow on mobile for simpler look or adjust position */
    }
    
    /* Reveal animation reset */
    .methodology-step-card {
        transform: translateX(20px);
    }
    
    .methodology-step-card.revealed {
        transform: translateX(0);
    }
}
