/* =========================================
   WORKING PROCESS SECTION
========================================= */

.working-process-section {
    position: relative;
    width: 100%;
    min-height: 665px;
    padding: 55px 0 75px;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.working-process-section .container {
    max-width: 1320px;
    width: 100%;
    margin: auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   SECTION HEADING
========================================= */

.process-section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.process-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #3479ff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.process-subtitle i {
    font-size: 14px;
}

.process-section-heading h2 {
    font-size: 30px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -1px;
    color: #091d45;
    margin: 0;
}

.process-section-heading h2 span {
    color: #3479ff;
}

/* =========================================
   PROCESS TIMELINE
========================================= */

.process-timeline {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-top: 15px;
}

.process-connecting-line {
    position: absolute;
    width: 82%;
    height: 100px;
    top: 5px;
    left: 9%;
    overflow: visible;
    z-index: 1;
}

/* =========================================
   PROCESS GRID
========================================= */

.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    z-index: 2;
}

.process-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-content {
    width: 100%;
    max-width: 260px;
}

.process-content h3 {
    font-size: 17px;
    line-height: 1.4;
    color: #102448;
    font-weight: 700;
    margin: 0 0 24px;
}

.process-content p {
    font-size: 14px;
    line-height: 1.55;
    color: #718098;
    font-weight: 400;
    margin: 0;
}

/* =========================================
   ALTERNATING PROCESS POSITIONS
========================================= */

.process-item-one {
    padding-top: 55px;
}

.process-item-two {
    padding-top: 98px;
}

.process-item-three {
    padding-top: 55px;
}

.process-item-four {
    padding-top: 98px;
}

/* =========================================
   PROCESS ICONS
========================================= */

.process-icon-box {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dce7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    transition: all 0.35s ease;
}

.process-icon-box i {
    font-size: 39px;
    transition: all 0.35s ease;
}

.process-icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(52, 121, 255, 0.12);
}

/* Individual Colors */

.process-orange i {
    color: #ff684b;
}

.process-blue i {
    color: #3479ff;
}

.process-green i {
    color: #59c96b;
}

.process-pink i {
    color: #ff3290;
}

/* =========================================
   PROCESS NUMBER BADGES
========================================= */

.process-number {
    position: absolute;
    right: -19px;
    bottom: 11px;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.process-orange .process-number {
    background: #ff684b;
}

.process-blue .process-number {
    background: #3479ff;
}

.process-green .process-number {
    background: #59c96b;
}

.process-pink .process-number {
    background: #ff3290;
}

/* =========================================
   DECORATIVE BUBBLES
========================================= */

.process-bubbles {
    position: absolute;
    width: 140px;
    height: 260px;
    pointer-events: none;
    z-index: 0;
}

.process-bubbles-left {
    top: 25px;
    left: -15px;
}

.process-bubbles-right {
    right: -10px;
    bottom: 40px;
}

.process-bubbles span {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #d5d5d5;
    background: radial-gradient(circle at 30% 25%,
            #ffffff 0%,
            #eeeeee 30%,
            #c7c7c7 65%,
            #ffffff 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.process-bubbles span:nth-child(1) {
    top: 10px;
    left: 65px;
    width: 10px;
    height: 10px;
}

.process-bubbles span:nth-child(2) {
    top: 40px;
    left: 35px;
    width: 18px;
    height: 18px;
}

.process-bubbles span:nth-child(3) {
    top: 75px;
    left: 75px;
    width: 23px;
    height: 23px;
}

.process-bubbles span:nth-child(4) {
    top: 110px;
    left: 20px;
}

.process-bubbles span:nth-child(5) {
    top: 145px;
    left: 55px;
    width: 16px;
    height: 16px;
}

.process-bubbles span:nth-child(6) {
    top: 185px;
    left: 90px;
    width: 20px;
    height: 20px;
}

.process-bubbles span:nth-child(7) {
    top: 220px;
    left: 30px;
    width: 17px;
    height: 17px;
}

.process-bubbles span:nth-child(8) {
    top: 30px;
    left: 110px;
    width: 7px;
    height: 7px;
}

.process-bubbles span:nth-child(9) {
    top: 95px;
    left: 115px;
    width: 8px;
    height: 8px;
}

.process-bubbles span:nth-child(10) {
    top: 165px;
    left: 10px;
    width: 7px;
    height: 7px;
}

.process-bubbles span:nth-child(11) {
    top: 250px;
    left: 75px;
    width: 8px;
    height: 8px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1100px) {

    .working-process-section {
        min-height: auto;
        padding: 55px 0;
    }

    .process-grid {
        gap: 12px;
    }

    .process-content {
        max-width: 220px;
    }

    .process-content h3 {
        font-size: 15px;
    }

    .process-content p {
        font-size: 13px;
    }

    .process-icon-box {
        width: 85px;
        height: 85px;
    }

    .process-icon-box i {
        font-size: 32px;
    }

    .process-item-one,
    .process-item-three {
        padding-top: 55px;
    }

    .process-item-two,
    .process-item-four {
        padding-top: 95px;
    }
}

/* Tablet */

@media (max-width: 767px) {

    .working-process-section {
        padding: 50px 0;
    }

    .process-section-heading {
        margin-bottom: 35px;
    }

    .process-section-heading h2 {
        font-size: 25px;
    }

    .process-timeline {
        min-height: auto;
        margin-top: 0;
    }

    .process-connecting-line {
        display: none;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
        column-gap: 20px;
    }

    .process-item-one,
    .process-item-two,
    .process-item-three,
    .process-item-four {
        padding-top: 0;
    }

    .process-content {
        max-width: 100%;
    }

    .process-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .process-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .process-icon-box {
        margin-top: 20px;
        width: 85px;
        height: 85px;
    }

    .process-bubbles {
        opacity: 0.45;
    }
}

/* Mobile */

@media (max-width: 480px) {

    .process-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .process-section-heading h2 {
        font-size: 23px;
        line-height: 1.4;
        letter-spacing: -0.5px;
    }

    .process-subtitle {
        font-size: 12px;
    }

    .process-content {
        max-width: 300px;
    }

    .process-content h3 {
        font-size: 17px;
    }

    .process-content p {
        font-size: 14px;
    }

    .process-icon-box {
        width: 90px;
        height: 90px;
    }

    .process-bubbles-left {
        left: -75px;
    }

    .process-bubbles-right {
        right: -85px;
    }
}
/* ==========================================
   WORKING PROCESS ANIMATIONS
   Keep existing UI unchanged
========================================== */

/* Section background bubbles */
.working-process-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.process-bubbles {
    pointer-events: none;
    z-index: 0;
}

.working-process-section .container {
    position: relative;
    z-index: 2;
}

/* ==========================================
   FLOATING BACKGROUND BUBBLES
========================================== */

.process-bubbles span {
    animation: processBubbleFloat 7s ease-in-out infinite;
    will-change: transform;
}

.process-bubbles span:nth-child(2n) {
    animation-duration: 9s;
    animation-delay: -2s;
}

.process-bubbles span:nth-child(3n) {
    animation-duration: 11s;
    animation-delay: -4s;
}

.process-bubbles span:nth-child(4n) {
    animation-duration: 8s;
    animation-delay: -1s;
}

@keyframes processBubbleFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    25% {
        transform: translate3d(12px, -20px, 0) scale(1.05);
    }

    50% {
        transform: translate3d(-8px, -35px, 0) scale(0.95);
    }

    75% {
        transform: translate3d(15px, -15px, 0) scale(1.03);
    }
}

/* ==========================================
   HEADING ANIMATION
========================================== */

.process-section-heading {
    animation: processHeadingReveal 1s ease both;
}

.process-subtitle i {
    animation: processTagWiggle 3s ease-in-out infinite;
}

@keyframes processHeadingReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes processTagWiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(12deg);
    }
}

/* ==========================================
   TIMELINE DASH ANIMATION
========================================== */

.process-connecting-line path {
    animation: processDashMove 12s linear infinite;
}

@keyframes processDashMove {
    to {
        stroke-dashoffset: -100;
    }
}

/* ==========================================
   PROCESS ITEMS – SCROLL REVEAL
========================================== */

.process-item {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Add this class when section appears */
.working-process-section.process-visible .process-item {
    opacity: 1;
    transform: translateY(0);
}

.process-item-one {
    transition-delay: 0.1s;
}

.process-item-two {
    transition-delay: 0.25s;
}

.process-item-three {
    transition-delay: 0.4s;
}

.process-item-four {
    transition-delay: 0.55s;
}

/* ==========================================
   ICON POP-UP ANIMATION
========================================== */

.process-icon-box {
    transform: scale(0.85);
    transition:
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
}

.working-process-section.process-visible .process-icon-box {
    animation: processIconPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.process-item-one .process-icon-box {
    animation-delay: 0.15s;
}

.process-item-two .process-icon-box {
    animation-delay: 0.3s;
}

.process-item-three .process-icon-box {
    animation-delay: 0.45s;
}

.process-item-four .process-icon-box {
    animation-delay: 0.6s;
}

@keyframes processIconPop {
    0% {
        transform: scale(0.65) rotate(-12deg);
    }

    65% {
        transform: scale(1.12) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* ==========================================
   ICON HOVER EFFECT
========================================== */

.process-icon-box i {
    transition: transform 0.4s ease;
}

.process-item:hover .process-icon-box {
    transform: translateY(-8px);
}

.process-item:hover .process-icon-box i {
    transform: scale(1.15) rotate(-8deg);
}

/* Number badge pulse */
.process-number {
    animation: processNumberPulse 2.5s ease-in-out infinite;
}

@keyframes processNumberPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(84, 141, 64, 0.15);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(84, 141, 64, 0);
    }
}

/* ==========================================
   PROCESS CONTENT HOVER
========================================== */

.process-content h3 {
    transition: color 0.3s ease;
}

.process-item:hover .process-content h3 {
    color: #548d40;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .working-process-section *,
    .working-process-section *::before,
    .working-process-section *::after {
        animation: none !important;
        transition: none !important;
    }

    .process-item {
        opacity: 1;
        transform: none;
    }
}