/* How We Work Section Styles */
.how-we-work-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

.how-we-work-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Background Decorations */
.how-we-work-decorations {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Decoration Boxes */
.how-we-work-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%;
}

/* Decoration Circles */
.how-we-work-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;
}

/* Animations for Decorations */
@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;
    }
}

/* Content Layout */
.how-we-work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

[dir="rtl"] .how-we-work-content {
    direction: rtl;
}

[dir="ltr"] .how-we-work-content {
    direction: ltr;
}

/* Visual Section */
.how-we-work-visual {
    position: relative;
    max-width: 100%;
}

.how-we-work-image-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-we-work-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.how-we-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.how-we-work-image:hover img {
    transform: scale(1.05);
}

.how-we-work-stat-box {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 35px 45px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(11, 106, 50, 0.35);
    z-index: 2;
    min-width: 200px;
}

[dir="ltr"] .how-we-work-stat-box {
    right: auto;
    left: 50px;
}

.stat-box-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-box-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: capitalize;
}

.how-we-work-decorations-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

[dir="ltr"] .how-we-work-decorations-visual {
    right: auto;
    left: 0;
}

.decoration-cube {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: rotate(45deg);
    opacity: 0.15;
    border-radius: 8px;
    animation: rotateFloat 8s ease-in-out infinite;
}

[dir="ltr"] .decoration-cube {
    right: auto;
    left: -30px;
}

.decoration-circle {
    position: absolute;
    top: 20px;
    right: -80px;
    width: 200px;
    height: 200px;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseRotate 6s ease-in-out infinite;
}

[dir="ltr"] .decoration-circle {
    right: auto;
    left: -80px;
}

/* Text Section */
.how-we-work-text {
    max-width: 100%;
}

.how-we-work-header {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

[dir="ltr"] .how-we-work-header {
    transform: translateX(30px);
}

.how-we-work-header.animate-fade-in {
    opacity: 1;
    transform: translateX(0);
}

.how-we-work-header .section-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.how-we-work-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;
}

.how-we-work-header .section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 106, 50, 0.3);
}

.how-we-work-header .section-label-decorations {
    display: flex;
    gap: 5px;
    align-items: center;
}

.how-we-work-header .deco-line {
    width: 5px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.how-we-work-header .section-label-wrapper:hover .deco-line {
    transform: scaleY(1.1);
}

.how-we-work-header .section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.how-we-work-header .section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 95%;
    margin-bottom: 0;
}

[dir="ltr"] .how-we-work-header .section-description {
    max-width: 100%;
}

/* Features Section */
.how-we-work-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out 0.2s;
}

[dir="ltr"] .how-we-work-features {
    transform: translateX(30px);
}

.how-we-work-features.animate-fade-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.25);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(11, 106, 50, 0.35);
}

.feature-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* CTA Section */
.how-we-work-cta {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out 0.4s;
}

[dir="ltr"] .how-we-work-cta {
    transform: translateX(30px);
}

.how-we-work-cta.animate-fade-in {
    opacity: 1;
    transform: translateX(0);
}

.cta-quote {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
}

[dir="ltr"] .cta-quote {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

.cta-quote i {
    font-size: 32px;
    color: var(--primary-color);
    opacity: 0.3;
    flex-shrink: 0;
    margin-top: 5px;
}

.cta-quote p {
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.cta-actions .btn {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(11, 106, 50, 0.25);
    transition: all 0.3s ease;
}

.cta-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.35);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(11, 106, 50, 0.2);
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.team-role {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .how-we-work-section {
        padding: 100px 0;
    }

    .how-we-work-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .how-we-work-visual {
        order: 1;
    }

    .how-we-work-text {
        order: 2;
    }

    .how-we-work-image-wrapper {
        height: 450px;
    }

    .how-we-work-header {
        text-align: center;
        margin-bottom: 35px;
    }

    .how-we-work-header .section-label-wrapper {
        justify-content: center;
    }

    .how-we-work-header .section-title {
        font-size: 36px;
    }

    .how-we-work-features {
        justify-content: center;
        margin-bottom: 35px;
    }

    .how-we-work-cta {
        text-align: center;
    }

    .cta-quote {
        text-align: center;
        border-right: none;
        border-bottom: 4px solid var(--primary-color);
        border-left: none;
        padding: 20px;
    }

    [dir="ltr"] .cta-quote {
        border-left: none;
        border-bottom: 4px solid var(--primary-color);
        border-right: none;
    }

    .cta-actions {
        justify-content: center;
    }

    .decoration-box-1 {
        width: 150px;
        height: 150px;
    }

    .decoration-box-2 {
        width: 120px;
        height: 120px;
    }

    .decoration-circle-1 {
        width: 220px;
        height: 220px;
    }

    .decoration-circle-2 {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .how-we-work-section {
        padding: 80px 0;
    }

    .how-we-work-content {
        gap: 50px;
    }

    .how-we-work-image-wrapper {
        height: 400px;
    }

    .how-we-work-stat-box {
        bottom: 30px;
        right: 30px;
        padding: 28px 35px;
        min-width: 180px;
    }

    [dir="ltr"] .how-we-work-stat-box {
        right: auto;
        left: 30px;
    }

    .stat-box-number {
        font-size: 48px;
    }

    .stat-box-label {
        font-size: 14px;
    }

    .how-we-work-header {
        margin-bottom: 30px;
    }

    .how-we-work-header .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .how-we-work-header .section-description {
        font-size: 16px;
    }

    .how-we-work-features {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cta-quote {
        margin-bottom: 25px;
        padding: 20px;
    }

    .cta-quote p {
        font-size: 16px;
    }

    .cta-actions {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .team-info {
        justify-content: center;
    }

    .decoration-box-1 {
        width: 120px;
        height: 120px;
    }

    .decoration-box-2 {
        width: 100px;
        height: 100px;
    }

    .decoration-circle-1 {
        width: 180px;
        height: 180px;
    }

    .decoration-circle-2 {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .how-we-work-section {
        padding: 60px 0;
    }

    .how-we-work-content {
        gap: 40px;
    }

    .how-we-work-image-wrapper {
        height: 350px;
    }

    .how-we-work-stat-box {
        bottom: 20px;
        right: 20px;
        padding: 24px 28px;
        min-width: 160px;
    }

    [dir="ltr"] .how-we-work-stat-box {
        right: auto;
        left: 20px;
    }

    .stat-box-number {
        font-size: 42px;
    }

    .stat-box-label {
        font-size: 13px;
    }

    .how-we-work-header .section-title {
        font-size: 28px;
    }

    .how-we-work-header .section-description {
        font-size: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
    }

    .feature-text {
        font-size: 15px;
    }

    .cta-quote {
        padding: 18px;
    }

    .cta-quote i {
        font-size: 28px;
    }

    .cta-quote p {
        font-size: 15px;
    }
}
