.process {
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
    background-color: #908F94;
}

.process .section-tag {
    text-align: center;
    margin-bottom: 50px;
    color: #222831;
}

.process-list {
    position: relative;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    margin-left: -0.5px;
    background: #9c999973;
}

.process-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: #ff6a00;
}

.process-parrot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 45px;
    height: auto;
    z-index: 10;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: top 0.1s linear, transform 0.4s ease-in-out;
    transform-origin: center center;
}

.process-parrot.flip {
    animation: turnAroundRight 0.5s ease-in-out forwards;
}

.process-parrot:not(.flip) {
    animation: turnBackRight 0.5s ease-in-out forwards;
}

@keyframes turnAroundRight {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(calc(-50% + 20px), -50%) rotate(90deg) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

@keyframes turnBackRight {
    0% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
    50% {
        transform: translate(calc(-50% + 20px), -50%) rotate(90deg) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.process-parrot svg {
    width: 100%;
    height: auto;
    display: block;
}

.process-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 0;
    opacity: .35;
    transform: translateY(60px) scale(.96);
    transition: opacity .8s ease, transform .8s ease, box-shadow .8s ease;
}

.process-card:not(:last-child) {
    margin-bottom: 120px;
}

.process-content,
.process-image-placeholder {
    width: 42%;
}

.process-image-placeholder {
    height: 270px;
    background: #d8d6d666;
    border-radius: 4px;
    box-shadow: 0px 0px 4px 0px #bfbfbf;
}

.process-card:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-card:nth-child(even) {
    flex-direction: row;
}

.process-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.process-marker {
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 2;
}

.seed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity .6s cubic-bezier(0.25, 1, 0.5, 1), transform .8s cubic-bezier(0.25, 1, 0.5, 1);
}

.seed-open {
    opacity: 0;
    transform: scale(.4) rotate(-15deg);
    z-index: 2;
}

.process-card.active .seed-close {
    opacity: 0;
    transform: scale(.5) rotate(-20deg);
    z-index: 2;
}

.process-card.active .seed-open {
    opacity: 1;
    transform: scale(1) rotate(0);
    z-index: 2;
}

.process-title {
    display: inline-block;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #FB591E 33%, #F4EA8C 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.process-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #222831;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .process {
        padding: 3rem 1rem 3rem;
    }

    .section-tag {
        font-size: 26px;
    }

    .process-title {
        font-size: 23px;
    }

    .process-list {
        position: relative;
        padding-left: 45px;
    }

    .process-line {
        position: absolute;
        left: 15px;
        top: 20px;
        bottom: 20px;
        width: 1px;
        margin-left: 0;
        background-color: #9c999973;
    }

    .process-line-fill {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #ff5722;
    }

    .process-content {
        width: 100%;
    }

    .process-parrot {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 32px;
        height: auto;
    }

    .process-parrot.flip {
        transform: translate(-50%, -50%) scaleY(-1);
    }

    .process-marker {
        position: absolute;
        left: -50px;
        top: 1rem;
        transform: translateY(-50%);
    }

    .process-card {
        position: relative;
        text-align: left;
        width: 100%;
        transform: translateY(24px) scale(.98);
    }

    .process-card:not(:last-child) {
        margin-bottom: 40px;
    }

    .process-card:last-child {
        margin-bottom: 0;
    }

    .process-card .card-title {
        font-size: 18px;
        font-weight: 700;
        color: #111;
        margin-bottom: 8px;
        transition: color 0.3s ease;
    }

    .process-card.active .card-title {
        color: #ff5722;
    }

    .process-card .card-desc {
        font-size: 14px;
        line-height: 1.5;
        color: #555;
    }

    .process-image-placeholder {
        display: none;
    }
}