/* Enhanced Process Steps Styles */

.enhanced-process-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.process-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.process-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 25%);
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.enhanced-process-section .container {
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #6d28d9;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid #a78bfa;
}

.section-badge i {
    color: #8b5cf6;
}

.enhanced-process-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 4rem 0;
}

.process-timeline {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e5e7eb, #d1d5db, #e5e7eb);
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 1;
}

.enhanced-step {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: stepFadeIn 0.8s ease-out forwards;
}

.enhanced-step:nth-child(2) { animation-delay: 0.2s; }
.enhanced-step:nth-child(3) { animation-delay: 0.4s; }
.enhanced-step:nth-child(4) { animation-delay: 0.6s; }

@keyframes stepFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.enhanced-step:nth-child(even) .step-container {
    flex-direction: row-reverse;
}

.step-number-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    z-index: 3;
}

.step-number {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-content:hover::before {
    transform: scaleX(1);
}

.step-icon-wrapper {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.step-content:hover .step-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: scale(1.1);
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.step-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.feature-tag i {
    color: #16a34a;
    font-size: 0.75rem;
}

.process-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 220px;
    margin-bottom: 2rem;
}

.btn-large small {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.process-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .enhanced-process-section {
        padding: 4rem 0;
    }
    
    .step-container {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem;
    }
    
    .process-timeline {
        display: none;
    }
    
    .step-number-circle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-bottom: 1rem;
    }
    
    .step-content {
        padding: 2rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .enhanced-process-section {
        padding: 3rem 0;
    }
    
    .enhanced-process-steps {
        gap: 2rem;
        margin: 3rem 0;
    }
    
    .step-content {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .process-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .step-features {
        justify-content: center;
    }

    .btn-large {
        width: 100%;
        max-width: 280px;
    }
}

/* Additional Animation Classes */
.enhanced-step.animate-in {
    animation: stepSlideIn 0.8s ease-out forwards;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.enhanced-step:nth-child(even).animate-in {
    animation: stepSlideInRight 0.8s ease-out forwards;
}

@keyframes stepSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse animation for step numbers */
.step-number-circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5), 0 0 0 10px rgba(59, 130, 246, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    }
}

/* Enhanced hover effects */
.enhanced-step:hover .step-number-circle {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

.enhanced-step:hover .step-content {
    border-color: #3b82f6;
}

/* Loading animation for the timeline */
.process-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #3b82f6, #10b981);
    border-radius: 2px;
    animation: timelineGrow 3s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes timelineGrow {
    to {
        height: 100%;
    }
}
