/* Modern How We Work Section Styles */

/* Main How We Work Section */
.modern-process-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.process-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.process-decoration::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: processFloat 30s infinite ease-in-out;
}

.process-decoration::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    animation: processFloat 25s infinite ease-in-out reverse;
}

@keyframes processFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Content Container */
.process-content {
    position: relative;
    z-index: 2;
}

/* Section Header */
.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-subtitle {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.process-title {
    color: #000000;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.process-description {
    color: #495057;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Process Steps Container */
.process-steps-container {
    position: relative;
    margin-top: 4rem;
}

/* Process Timeline */
.process-timeline {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #e9ecef 0%, #007bff 50%, #e9ecef 100%);
    border-radius: 2px;
    z-index: 1;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
    animation: timelineProgress 3s ease-out forwards;
    animation-delay: 1s;
}

@keyframes timelineProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Process Steps Grid */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

/* Individual Process Step */
.process-step {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Step Icon Container */
.step-icon-container {
    position: relative;
    margin-bottom: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.4);
}

.step-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
    z-index: 4;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.2);
    background: #007bff;
}

.step-icon i {
    font-size: 1rem;
    color: #007bff;
    transition: color 0.3s ease;
}

.process-step:hover .step-icon i {
    color: #ffffff;
}

/* Step Content */
.step-title {
    color: #000000;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.process-step:hover .step-title {
    color: #007bff;
}

.step-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Step Features List */
.step-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.step-features li {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.step-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.process-step:hover .step-features li::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.process-step:hover .step-features li {
    color: #343a40;
    transform: translateX(5px);
}

/* Process Flow Indicators */
.process-flow {
    display: none;
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    z-index: 5;
}

.process-flow i {
    font-size: 1.5rem;
    color: #007bff;
    animation: flowPulse 2s infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Statistics Section */
.process-stats {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 24px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (min-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-flow {
        display: block;
    }
    
    .process-step:nth-child(4n) .process-flow {
        display: none;
    }
}

@media (max-width: 768px) {
    .modern-process-section {
        padding: 4rem 0;
    }
    
    .process-title {
        font-size: 2.2rem;
    }
    
    .process-description {
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        padding: 2rem;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        top: -8px;
        right: -8px;
    }
    
    .step-icon i {
        font-size: 0.9rem;
    }
    
    .process-timeline {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .process-stats {
        padding: 2rem;
    }
}

/* Loading Animation */
.process-step {
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Hover Effects */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
    pointer-events: none;
}

.process-step:hover::after {
    opacity: 1;
}

/* Pulse Animation for Step Numbers */
@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.step-number {
    animation: stepPulse 3s infinite;
}

.process-step:hover .step-number {
    animation: none;
}