/* Work Process Section Styles */
.work-process-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

.work-process-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Decorations */
.work-process-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.work-process-box {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.06;
    border-radius: 12px;
    animation: rotateFloat 15s ease-in-out infinite;
}

.decoration-box-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    right: 8%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

[dir="ltr"] .decoration-box-1 {
    right: auto;
    left: 8%;
}

.decoration-box-2 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    left: 10%;
    transform: rotate(-30deg);
    animation-delay: 3s;
}

[dir="ltr"] .decoration-box-2 {
    left: auto;
    right: 10%;
}

.work-process-circle {
    position: absolute;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseRotate 10s ease-in-out infinite;
}

.decoration-circle-1 {
    width: 280px;
    height: 280px;
    top: 25%;
    right: -120px;
    animation-delay: 1.5s;
}

[dir="ltr"] .decoration-circle-1 {
    right: auto;
    left: -120px;
}

.decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: -90px;
    animation-delay: 4.5s;
}

[dir="ltr"] .decoration-circle-2 {
    left: auto;
    right: -90px;
}

@keyframes rotateFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0) scale(1);
    }
    25% {
        transform: rotate(50deg) translateY(-25px) scale(1.05);
    }
    50% {
        transform: rotate(45deg) translateY(-15px) scale(1);
    }
    75% {
        transform: rotate(40deg) translateY(-20px) scale(0.95);
    }
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.2;
    }
}

/* Section Header */
.work-process-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease-out;
}

.work-process-header.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.work-process-header .section-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.work-process-header .section-label {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.2);
    transition: all 0.3s ease;
}

.work-process-header .section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 106, 50, 0.3);
}

.work-process-header .section-label-line {
    flex: 1;
    max-width: 150px;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.5;
}

[dir="ltr"] .work-process-header .section-label-line {
    background: repeating-linear-gradient(
        to left,
        var(--primary-color) 0px,
        var(--primary-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.process-main-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.process-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Layout */
.work-process-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Timeline Line */
.work-process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--primary-light) 0px,
        var(--primary-light) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
    z-index: 1;
}

[dir="ltr"] .work-process-timeline::before {
    transform: translateX(-50%);
}

/* Process Steps Container */
.work-process-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    z-index: 2;
}

/* Process Step Card */
.process-step {
    position: relative;
    padding: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.process-step.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate layout for steps */
.process-step:nth-child(odd) {
    padding-right: calc(50% - 30px);
    text-align: right;
}

[dir="ltr"] .process-step:nth-child(odd) {
    padding-right: 0;
    padding-left: calc(50% - 30px);
    text-align: left;
}

.process-step:nth-child(even) {
    padding-left: calc(50% - 30px);
    text-align: left;
    margin-top: 0;
}

[dir="ltr"] .process-step:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% - 30px);
    text-align: right;
}

/* Step Content */
.step-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 35px 30px 30px 30px;
    padding-top: 42px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-right: 4px solid transparent;
    overflow: visible;
}

[dir="ltr"] .step-content {
    border-right: none;
    border-left: 4px solid transparent;
}

.process-step:nth-child(1) .step-content {
    border-right-color: var(--primary-color);
}

[dir="ltr"] .process-step:nth-child(1) .step-content {
    border-right: none;
    border-left-color: var(--primary-color);
}

.process-step:nth-child(2) .step-content {
    border-left-color: var(--accent-color);
}

[dir="ltr"] .process-step:nth-child(2) .step-content {
    border-left: none;
    border-right-color: var(--accent-color);
}

.process-step:nth-child(3) .step-content {
    border-right-color: var(--primary-light);
}

[dir="ltr"] .process-step:nth-child(3) .step-content {
    border-right: none;
    border-left-color: var(--primary-light);
}

.process-step:nth-child(4) .step-content {
    border-left-color: var(--primary-dark);
}

[dir="ltr"] .process-step:nth-child(4) .step-content {
    border-left: none;
    border-right-color: var(--primary-dark);
}

.step-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 106, 50, 0.15);
}

/* Step Icon Circle */
.step-icon-wrapper {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.25);
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s ease;
}

/* Odd steps (1, 3) - Icon on the right side (RTL) / left side (LTR) */
.process-step:nth-child(odd) .step-icon-wrapper {
    right: -40px;
}

[dir="ltr"] .process-step:nth-child(odd) .step-icon-wrapper {
    right: auto;
    left: -40px;
}

/* Even steps (2, 4) - Icon on the left side (RTL) / right side (LTR) */
.process-step:nth-child(even) .step-icon-wrapper {
    left: -40px;
}

[dir="ltr"] .process-step:nth-child(even) .step-icon-wrapper {
    left: auto;
    right: -40px;
}

.process-step:hover .step-icon-wrapper {
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(11, 106, 50, 0.35);
}

.process-step:nth-child(even):hover .step-icon-wrapper {
    transform: translateY(-50%) scale(1.15) rotate(-5deg);
}

.step-icon {
    color: #ffffff;
    font-size: 32px;
}

/* Step Number */
.step-number {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    z-index: 4;
}

[dir="ltr"] .step-number {
    right: auto;
    left: -22px;
}

.process-step:hover .step-number {
    transform: scale(1.08) rotate(360deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* Step Title */
.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.process-step:hover .step-content h3 {
    color: var(--primary-color);
}

/* Step Description */
.step-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .work-process-section {
        padding: 100px 0;
    }

    .work-process-header {
        margin-bottom: 60px;
    }

    .process-main-title {
        font-size: 38px;
    }

    .process-subtitle {
        font-size: 16px;
    }

    .work-process-timeline {
        padding: 50px 0;
    }

    .work-process-timeline::before {
        right: 40px;
        transform: none;
    }

    [dir="ltr"] .work-process-timeline::before {
        right: auto;
        left: 40px;
    }

    .work-process-steps {
        grid-template-columns: 1fr;
    }

    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        padding-right: 80px;
        padding-left: 0;
        text-align: right;
        margin-top: 0;
    }

    [dir="ltr"] .process-step:nth-child(odd),
    [dir="ltr"] .process-step:nth-child(even) {
        padding-right: 0;
        padding-left: 80px;
        text-align: left;
    }

    .step-icon-wrapper {
        width: 70px;
        height: 70px;
        transform: translateY(-50%);
    }

    /* Odd steps - Icon on the right side (RTL) / left side (LTR) */
    .process-step:nth-child(odd) .step-icon-wrapper {
        right: -35px;
    }

    [dir="ltr"] .process-step:nth-child(odd) .step-icon-wrapper {
        right: auto;
        left: -35px;
    }

    /* Even steps - Icon on the left side (RTL) / right side (LTR) */
    .process-step:nth-child(even) .step-icon-wrapper {
        left: -35px;
    }

    [dir="ltr"] .process-step:nth-child(even) .step-icon-wrapper {
        left: auto;
        right: -35px;
    }

    .step-icon {
        font-size: 28px;
    }

    .step-content {
        border-right: 4px solid;
        border-left: none;
    }

    [dir="ltr"] .step-content {
        border-right: none;
        border-left: 4px solid;
    }
}

@media (max-width: 768px) {
    .work-process-section {
        padding: 80px 0;
    }

    .work-process-header {
        margin-bottom: 50px;
    }

    .process-main-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .process-subtitle {
        font-size: 15px;
    }

    .work-process-timeline {
        padding: 40px 0;
    }

    .work-process-timeline::before {
        right: 30px;
    }

    [dir="ltr"] .work-process-timeline::before {
        right: auto;
        left: 30px;
    }

    .process-step {
        padding: 30px 20px;
        padding-right: 70px;
    }

    [dir="ltr"] .process-step {
        padding-right: 20px;
        padding-left: 70px;
    }

    .step-icon-wrapper {
        width: 60px;
        height: 60px;
        transform: translateY(-50%);
    }

    /* Odd steps - Icon on the right side (RTL) / left side (LTR) */
    .process-step:nth-child(odd) .step-icon-wrapper {
        right: -30px;
    }

    [dir="ltr"] .process-step:nth-child(odd) .step-icon-wrapper {
        right: auto;
        left: -30px;
    }

    /* Even steps - Icon on the left side (RTL) / right side (LTR) */
    .process-step:nth-child(even) .step-icon-wrapper {
        left: -30px;
    }

    [dir="ltr"] .process-step:nth-child(even) .step-icon-wrapper {
        left: auto;
        right: -30px;
    }

    .step-icon {
        font-size: 24px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 16px;
        top: -18px;
        right: -18px;
        line-height: 1;
        padding: 0;
        letter-spacing: 0.2px;
    }

    [dir="ltr"] .step-number {
        right: auto;
        left: -18px;
    }

    .step-content {
        padding: 25px 20px;
        padding-top: 35px;
    }

    .step-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .step-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .work-process-section {
        padding: 60px 0;
    }

    .work-process-header {
        margin-bottom: 40px;
    }

    .process-main-title {
        font-size: 28px;
    }

    .process-subtitle {
        font-size: 14px;
    }

    .work-process-timeline::before {
        right: 25px;
    }

    [dir="ltr"] .work-process-timeline::before {
        right: auto;
        left: 25px;
    }

    .process-step {
        padding: 25px 15px;
        padding-right: 60px;
    }

    [dir="ltr"] .process-step {
        padding-right: 15px;
        padding-left: 60px;
    }

    .step-icon-wrapper {
        width: 50px;
        height: 50px;
        transform: translateY(-50%);
    }

    /* Odd steps - Icon on the right side (RTL) / left side (LTR) */
    .process-step:nth-child(odd) .step-icon-wrapper {
        right: -25px;
    }

    [dir="ltr"] .process-step:nth-child(odd) .step-icon-wrapper {
        right: auto;
        left: -25px;
    }

    /* Even steps - Icon on the left side (RTL) / right side (LTR) */
    .process-step:nth-child(even) .step-icon-wrapper {
        left: -25px;
    }

    [dir="ltr"] .process-step:nth-child(even) .step-icon-wrapper {
        left: auto;
        right: -25px;
    }

    .step-icon {
        font-size: 20px;
    }

    .step-number {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 14px;
        top: -16px;
        right: -16px;
        line-height: 1;
        padding: 0;
        letter-spacing: 0.1px;
    }

    [dir="ltr"] .step-number {
        right: auto;
        left: -16px;
    }

    .step-content {
        padding: 20px 18px;
        padding-top: 28px;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .step-content p {
        font-size: 14px;
    }
}
