﻿
/* =========================================
   OUR PROCESS - DIGITAL PREMIUM DESIGN
   Theme: Midnight Navy + Electric Blue + Cyan
========================================= */

.process-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 95px 0;
    background: radial-gradient(circle at 10% 15%, rgba(59,130,246,.09), transparent 30%), radial-gradient(circle at 90% 85%, rgba(6,182,212,.10), transparent 30%), linear-gradient(135deg, #f3f6fc, #f8fbff);
}

    /* Background Decorative Elements */

    .process-section::before,
    .process-section::after {
        content: "";
        position: absolute;
        z-index: -1;
        border: 1px solid rgba(37,99,235,.10);
        border-radius: 50%;
        pointer-events: none;
    }

    .process-section::before {
        width: 350px;
        height: 350px;
        top: -190px;
        right: -100px;
    }

    .process-section::after {
        width: 250px;
        height: 250px;
        bottom: -150px;
        left: -100px;
    }

    /* Section Heading */

    .process-section .section-heading {
        position: relative;
        margin-bottom: 60px;
    }

    .process-section .section-tag {
        color: #2563eb;
        letter-spacing: 2.5px;
        font-weight: 900;
    }

    .process-section .section-heading h2 {
        color: #101d3a;
    }

    .process-section .section-heading p {
        color: #64748b;
    }

/* Process Grid */

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

    /* Connecting Line */

    .process-grid::before {
        content: "";
        position: absolute;
        top: 63px;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient( 90deg, #2563eb, #06b6d4, #6366f1, #2563eb );
        opacity: .25;
    }

/* Process Card */

.process-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 35px 25px 32px;
    min-height: 290px;
    text-align: center;
    border: 1px solid #e0e8f5;
    border-radius: 22px;
    background: linear-gradient(150deg, #ffffff, #f8faff);
    box-shadow: 0 8px 28px rgba(20,45,90,.055);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

    /* Decorative Glow */

    .process-card::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: 170px;
        height: 170px;
        top: -100px;
        right: -90px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(59,130,246,.17), transparent 70% );
        transition: transform .5s ease;
    }

    /* Bottom Animated Line */

    .process-card::after {
        content: "";
        position: absolute;
        left: 25px;
        right: 25px;
        bottom: 0;
        height: 3px;
        border-radius: 5px 5px 0 0;
        background: linear-gradient(90deg, #2563eb, #06b6d4);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .4s ease;
    }

    /* Hover */

    .process-card:hover {
        transform: translateY(-11px);
        border-color: rgba(37,99,235,.35);
        box-shadow: 0 22px 48px rgba(30,64,175,.13);
    }

        .process-card:hover::before {
            transform: scale(1.6);
        }

        .process-card:hover::after {
            transform: scaleX(1);
        }

/* Process Number */

.process-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(37,99,235,.20);
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(145deg, #1d4ed8, #0891b2);
    box-shadow: 0 10px 25px rgba(37,99,235,.22);
    font-size: 22px;
    font-weight: 900;
    transition: transform .45s ease, border-radius .45s ease, box-shadow .45s ease;
}

.process-card:hover .process-icon {
    transform: rotateY(180deg) scale(1.08);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(6,182,212,.30);
}

/* Card Content */

.process-card h3 {
    margin-bottom: 13px;
    color: #14213d;
    font-size: 21px;
    font-weight: 800;
}

.process-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

/* =========================================
   UNIQUE WORKFLOW REVEAL ANIMATION
========================================= */

/* Initial State */

.process-section .process-card {
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    will-change: opacity, translate, rotate, filter;
}

/* Step 1 - Flip Up */

.process-section.is-visible .process-card:nth-child(1) {
    animation: processStepOne 1.1s cubic-bezier(.16,1,.3,1) .15s both;
}

/* Step 2 - Slide From Right */

.process-section.is-visible .process-card:nth-child(2) {
    animation: processStepTwo 1.15s cubic-bezier(.16,1,.3,1) .65s both;
}

/* Step 3 - Slide From Left */

.process-section.is-visible .process-card:nth-child(3) {
    animation: processStepThree 1.15s cubic-bezier(.16,1,.3,1) 1.15s both;
}

/* Step 4 - Zoom In */

.process-section.is-visible .process-card:nth-child(4) {
    animation: processStepFour 1.25s cubic-bezier(.16,1,.3,1) 1.65s both;
}

/* Step 1 */

@keyframes processStepOne {
    from {
        opacity: 0;
        visibility: visible;
        translate: 0 80px;
        rotate: -7deg;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        rotate: 0deg;
        filter: blur(0);
    }
}

/* Step 2 */

@keyframes processStepTwo {
    from {
        opacity: 0;
        visibility: visible;
        translate: 90px 20px;
        rotate: 8deg;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        rotate: 0deg;
        filter: blur(0);
    }
}

/* Step 3 */

@keyframes processStepThree {
    from {
        opacity: 0;
        visibility: visible;
        translate: -90px 20px;
        rotate: -8deg;
        filter: blur(10px);
    }

    to {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        rotate: 0deg;
        filter: blur(0);
    }
}

/* Step 4 */

@keyframes processStepFour {
    from {
        opacity: 0;
        visibility: visible;
        translate: 0 35px;
        rotate: 5deg;
        scale: .65;
        filter: blur(14px);
    }

    to {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        rotate: 0deg;
        scale: 1;
        filter: blur(0);
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

        .process-grid::before {
            display: none;
        }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .process-section {
        padding: 65px 0;
    }

        .process-section .section-heading {
            margin-bottom: 38px;
        }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .process-card {
        min-height: auto;
        padding: 28px 23px;
    }

    /* Consistent movement on mobile */

    .process-section.is-visible .process-card {
        animation-name: processMobileReveal;
        animation-duration: .9s;
    }

        .process-section.is-visible .process-card:nth-child(1) {
            animation-delay: .1s;
        }

        .process-section.is-visible .process-card:nth-child(2) {
            animation-delay: .45s;
        }

        .process-section.is-visible .process-card:nth-child(3) {
            animation-delay: .8s;
        }

        .process-section.is-visible .process-card:nth-child(4) {
            animation-delay: 1.15s;
        }
}

@keyframes processMobileReveal {
    from {
        opacity: 0;
        visibility: visible;
        translate: 0 55px;
        rotate: 0deg;
        scale: .94;
        filter: blur(8px);
    }

    to {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        rotate: 0deg;
        scale: 1;
        filter: blur(0);
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .process-section .process-card {
        opacity: 1;
        visibility: visible;
        translate: none;
        rotate: none;
        scale: 1;
        filter: none;
        animation: none !important;
        will-change: auto;
    }

    .process-card,
    .process-icon {
        transition: none !important;
    }
}
