/* ENHANCED PROCESS TIMELINE - Beautiful & Interactive */
/* Advanced responsive design for all devices */

/* TIMELINE CONTAINER */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* MOBILE FIRST - VERTICAL TIMELINE */
.timeline-step {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* STEP CONNECTOR - LEFT SIDE */
.step-connector {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* ADVANCED STEP NUMBER */
.step-number-advanced {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(1,174,170,0.3),
        0 0 0 4px rgba(255,255,255,1),
        0 0 0 8px rgba(1,174,170,0.1);
    margin-bottom: 20px;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number-advanced:hover {
    transform: translateZ(10px) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(1,174,170,0.4),
        0 0 0 4px rgba(255,255,255,1),
        0 0 0 8px rgba(1,174,170,0.2);
}

.step-digit {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1;
}

/* PROGRESS RING ANIMATION */
.step-progress {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 68px;
    height: 68px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary);
    opacity: 0;
    animation: step-progress 2s ease-in-out infinite;
}

.timeline-step.active .step-progress {
    opacity: 1;
}

@keyframes step-progress {
    0% { transform: rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { transform: rotate(360deg); opacity: 0.3; }
}

/* CONNECTION LINE */
.connection-line {
    width: 4px;
    flex: 1;
    background: linear-gradient(180deg, 
        var(--primary) 0%, 
        var(--primary-light) 50%, 
        var(--primary-lighter) 100%);
    border-radius: 2px;
    position: relative;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.connection-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 1s ease;
}

.timeline-step.completed .connection-line::after {
    height: 100%;
}

/* Remove line from last step */
.timeline-step:last-child .connection-line {
    display: none;
}

/* STEP CARD */
.step-card {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.95) 0%, 
        rgba(248,249,250,0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--primary-lighter);
    border-radius: 24px;
    padding: 30px 25px;
    margin-left: 80px;
    box-shadow: 
        0 20px 50px rgba(1,174,170,0.1),
        0 0 0 1px rgba(1,174,170,0.05),
        inset 0 1px 0 rgba(255,255,255,0.4);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--reflection-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.step-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 
        0 30px 70px rgba(1,174,170,0.15),
        0 0 0 1px rgba(1,174,170,0.1),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.step-card:hover::before {
    opacity: 1;
}

/* STEP HEADER */
.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: rotateY(180deg) scale(1.1);
}

.step-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    margin: 0;
}

.step-duration {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* STEP DESCRIPTION */
.step-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* STEP BENEFITS */
.step-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}

.benefit-item.exclusive .benefit-icon {
    background: var(--gradient-primary);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(1,174,170,0.3); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 15px rgba(1,174,170,0.5); 
        transform: scale(1.1);
    }
}

/* STEP OUTCOME */
.step-outcome {
    background: rgba(1,174,170,0.05);
    border: 1px solid rgba(1,174,170,0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.step-outcome.success {
    background: rgba(39,174,96,0.05);
    border-color: rgba(39,174,96,0.1);
    border-left-color: var(--success);
}

.step-outcome strong {
    color: var(--primary);
    font-weight: 600;
}

/* TABLET RESPONSIVE */
@media (min-width: 769px) and (max-width: 1024px) {
    .process-timeline {
        max-width: 700px;
        padding: 50px 0;
    }
    
    .timeline-step {
        margin-bottom: 80px;
    }
    
    .step-card {
        padding: 35px 30px;
        margin-left: 100px;
    }
    
    .step-number-advanced {
        width: 70px;
        height: 70px;
    }
    
    .step-digit {
        font-size: 1.75rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
}

/* DESKTOP RESPONSIVE */
@media (min-width: 1025px) {
    .process-timeline {
        max-width: 1000px;
        padding: 60px 0;
    }
    
    /* HORIZONTAL TIMELINE FOR DESKTOP */
    .timeline-step {
        display: flex;
        align-items: flex-start;
        margin-bottom: 100px;
    }
    
    .timeline-step:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .timeline-step:nth-child(even) .step-card {
        margin-left: 0;
        margin-right: 100px;
    }
    
    .timeline-step:nth-child(even) .step-connector {
        left: auto;
        right: 0;
    }
    
    .step-card {
        flex: 1;
        max-width: 450px;
        padding: 40px 35px;
    }
    
    .step-connector {
        position: relative;
        width: 80px;
        height: auto;
    }
    
    .step-number-advanced {
        width: 80px;
        height: 80px;
        position: relative;
    }
    
    .step-digit {
        font-size: 2rem;
    }
    
    .connection-line {
        display: none; /* Hide vertical lines on desktop */
    }
    
    /* Enhanced desktop hover effects */
    .step-card:hover {
        transform: translateY(-15px) rotateX(-2deg) rotateY(1deg);
    }
    
    .step-header h3 {
        font-size: 1.625rem;
    }
    
    .step-description {
        font-size: 1.125rem;
    }
}

/* LARGE DESKTOP */
@media (min-width: 1400px) {
    .process-timeline {
        max-width: 1200px;
    }
    
    .step-card {
        max-width: 500px;
        padding: 50px 40px;
    }
    
    .step-number-advanced {
        width: 90px;
        height: 90px;
    }
    
    .step-digit {
        font-size: 2.25rem;
    }
}

/* ANIMATION ON SCROLL */
.timeline-step[data-step=\"1\"] {
    animation-delay: 0.2s;
}

.timeline-step[data-step=\"2\"] {
    animation-delay: 0.4s;
}

.timeline-step[data-step=\"3\"] {
    animation-delay: 0.6s;
}

/* TOUCH ENHANCEMENTS */
@media (hover: none) and (pointer: coarse) {
    .step-card:hover {
        transform: none;
    }
    
    .step-card:active {
        transform: scale(0.98);
    }
    
    .step-number-advanced:hover {
        transform: none;
    }
    
    .step-number-advanced:active {
        transform: scale(0.95);
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .step-card {
        border-width: 3px;
        box-shadow: none;
    }
    
    .step-number-advanced {
        border: 3px solid var(--primary-dark);
        box-shadow: none;
    }
    
    .benefit-icon {
        border: 2px solid currentColor;
    }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .timeline-step,
    .step-card,
    .step-number-advanced,
    .benefit-icon {
        transition: none;
        animation: none;
        transform: none;
    }
    
    .step-progress {
        display: none;
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.timeline-step,
.step-card,
.step-number-advanced {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}