/* Services Section Styles */
.services-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

/* Services Header */
.services-header {
    margin-bottom: 70px;
}

.services-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.services-header-left {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.services-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 48px;
}

.services-header .section-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.services-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;
}

.services-header .section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 106, 50, 0.3);
}

.section-label-decorations {
    display: flex;
    gap: 5px;
    align-items: center;
}

.deco-line {
    width: 5px;
    height: 22px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.services-header .section-label-wrapper:hover .deco-line {
    transform: scaleY(1.1);
}

.deco-line:nth-child(1) {
    transition-delay: 0s;
}

.deco-line:nth-child(2) {
    transition-delay: 0.05s;
}

.deco-line:nth-child(3) {
    transition-delay: 0.1s;
}

.services-header .section-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.services-header .section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 95%;
    margin-bottom: 0;
}

[dir="ltr"] .services-header .section-description {
    max-width: 100%;
}

.services-header-right .btn {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(11, 106, 50, 0.25);
    transition: all 0.3s ease;
}

.services-header-right .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.35);
}

[dir="rtl"] .services-header-right .btn i {
    transform: rotate(180deg);
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    padding: 45px 30px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    cursor: pointer;
}

[dir="rtl"] .service-item {
    flex-direction: row;
}

[dir="ltr"] .service-item {
    flex-direction: row;
}

.service-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    opacity: 0;
}

[dir="ltr"] .service-item::before {
    right: auto;
    left: 0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background: var(--bg-secondary);
    padding-left: 35px;
    padding-right: 35px;
    border-bottom-color: var(--primary-color);
}

.service-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
}

[dir="ltr"] .service-item:hover {
    padding-left: 35px;
    padding-right: 35px;
}

.service-item-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 70px;
}

[dir="rtl"] .service-item-content {
    flex-direction: row;
}

[dir="ltr"] .service-item-content {
    flex-direction: row;
}

.service-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    min-width: 220px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.service-item:hover .service-title {
    color: var(--primary-color);
    transform: translateX(-5px);
}

[dir="ltr"] .service-item:hover .service-title {
    transform: translateX(5px);
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    max-width: 650px;
    transition: color 0.3s ease;
}

.service-item:hover .service-description {
    color: var(--text-primary);
}

/* Service Navigation Icon */
.service-nav-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    align-self: flex-start;
    margin-top: 2px;
}

[dir="rtl"] .service-nav-icon {
    order: 1;
}

[dir="ltr"] .service-nav-icon {
    order: 1;
}

.service-nav-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.service-nav-icon i {
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.service-item:hover .service-nav-icon {
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(11, 106, 50, 0.3);
}

.service-item:hover .service-nav-icon::before {
    transform: scale(1);
}

.service-item:hover .service-nav-icon {
    color: #ffffff;
}

.service-item:hover .service-nav-icon i {
    transform: translate(4px, -4px);
}

[dir="rtl"] .service-item:hover .service-nav-icon i {
    transform: translate(-4px, -4px);
}

/* Animation Classes */
.service-item.animate-fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

.service-item:nth-child(1).animate-fade-in {
    animation-delay: 0.1s;
}

.service-item:nth-child(2).animate-fade-in {
    animation-delay: 0.2s;
}

.service-item:nth-child(3).animate-fade-in {
    animation-delay: 0.3s;
}

.service-item:nth-child(4).animate-fade-in {
    animation-delay: 0.4s;
}

.service-item:nth-child(5).animate-fade-in {
    animation-delay: 0.5s;
}

.service-item:nth-child(6).animate-fade-in {
    animation-delay: 0.6s;
}

.service-item:nth-child(7).animate-fade-in {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-header.animate-fade-in {
    animation: fadeInDown 0.8s ease-out both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Animations */
@media (max-width: 768px) {
    .services-header .section-label,
    .services-header .section-title,
    .services-header .section-description,
    .services-header-right .btn {
        opacity: 0;
        transition: all 0.6s ease-out;
    }

    [dir="rtl"] .services-header .section-label.animate-slide-in,
    [dir="rtl"] .services-header .section-title.animate-slide-in,
    [dir="rtl"] .services-header .section-description.animate-slide-in {
        animation: slideInFromRight 0.6s ease-out forwards;
    }

    [dir="ltr"] .services-header .section-label.animate-slide-in,
    [dir="ltr"] .services-header .section-title.animate-slide-in,
    [dir="ltr"] .services-header .section-description.animate-slide-in {
        animation: slideInFromLeft 0.6s ease-out forwards;
    }

    .services-header-right .btn.animate-slide-in {
        animation: slideInFromBottom 0.6s ease-out forwards;
    }

    .service-item {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-item.animate-fade-in {
        opacity: 1;
        transform: translateY(0);
    }

    [dir="rtl"] .service-item {
        transform: translateY(40px) translateX(30px);
    }

    [dir="rtl"] .service-item.animate-fade-in {
        transform: translateY(0) translateX(0);
    }

    [dir="ltr"] .service-item {
        transform: translateY(40px) translateX(-30px);
    }

    [dir="ltr"] .service-item.animate-fade-in {
        transform: translateY(0) translateX(0);
    }

    .service-item-content {
        transition: all 0.4s ease;
    }

    .service-title {
        transition: all 0.4s ease 0.1s;
    }

    .service-description {
        transition: all 0.4s ease 0.2s;
    }

    .service-nav-icon {
        transition: all 0.4s ease 0.15s;
    }

    .service-item.animate-fade-in .service-title {
        animation: fadeInDown 0.5s ease-out 0.2s both;
    }

    .service-item.animate-fade-in .service-description {
        animation: fadeInDown 0.5s ease-out 0.3s both;
    }

    .service-item.animate-fade-in .service-nav-icon {
        animation: fadeInUp 0.5s ease-out 0.35s both;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .services-section {
        padding: 100px 0;
    }

    .services-header {
        margin-bottom: 60px;
    }

    .services-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .services-header-right {
        width: 100%;
        padding-top: 0;
    }

    .services-header-right .btn {
        width: 100%;
        justify-content: center;
    }

    .services-header .section-title {
        font-size: 38px;
    }

    .service-item {
        padding: 35px 20px;
    }

    .service-item:hover {
        padding-left: 25px;
        padding-right: 25px;
    }

    .service-item-content {
        gap: 40px;
    }

    .service-title {
        min-width: 180px;
        font-size: 26px;
    }

    .service-description {
        font-size: 15px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }

    .services-header {
        margin-bottom: 50px;
        text-align: center;
    }

    .services-header-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    .services-header-left {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .services-header .section-label-wrapper {
        justify-content: center;
        margin-bottom: 24px;
    }

    .services-header-right {
        width: 100%;
        padding-top: 0;
        display: flex;
        justify-content: center;
    }

    .services-header-right .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        justify-content: center;
    }

    .services-header .section-title {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
    }

    .services-header .section-description {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 24px;
        text-align: center;
    }

    .service-item {
        padding: 35px 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        position: relative;
    }

    .service-item:hover {
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }

    .service-item::before {
        display: none;
    }

    .service-item-content {
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
        align-items: flex-start;
        flex: 1;
    }

    [dir="rtl"] .service-item-content {
        flex-direction: column !important;
    }

    [dir="ltr"] .service-item-content {
        flex-direction: column !important;
    }

    .service-title {
        min-width: auto !important;
        font-size: 24px;
        width: 100%;
        margin-bottom: 0;
        text-align: left;
        flex-shrink: 1;
    }

    [dir="rtl"] .service-title {
        text-align: right;
    }

    .service-description {
        font-size: 15px;
        max-width: 100%;
        line-height: 1.7;
        text-align: left;
        flex: none;
        width: 100%;
    }

    [dir="rtl"] .service-description {
        text-align: right;
    }

    .service-nav-icon {
        position: relative;
        top: 0;
        width: 48px;
        height: 48px;
        min-width: 48px;
        flex-shrink: 0;
        align-self: flex-end;
        margin-top: 0;
    }

    [dir="rtl"] .service-nav-icon {
        order: -1;
        margin-right: 16px;
        margin-left: 0;
    }

    [dir="ltr"] .service-nav-icon {
        order: 1;
        margin-left: 16px;
        margin-right: 0;
    }

    .service-nav-icon i {
        font-size: 18px;
    }

    .service-item:hover .service-title {
        transform: none;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 60px 0;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-header-content {
        gap: 24px;
    }

    .services-header-right .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        justify-content: center;
    }

    .services-header .section-title {
        font-size: 28px;
        margin-bottom: 18px;
    }

    .services-header .section-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .service-item {
        padding: 30px 0;
        gap: 16px;
        flex-direction: row;
        align-items: flex-start;
    }

    .service-item:hover {
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }

    .service-item-content {
        flex-direction: column !important;
        gap: 12px;
        flex: 1;
        align-items: flex-start;
    }

    [dir="rtl"] .service-item-content {
        flex-direction: column !important;
    }

    [dir="ltr"] .service-item-content {
        flex-direction: column !important;
    }

    .service-title {
        font-size: 22px;
        line-height: 1.3;
        width: 100%;
        min-width: auto !important;
        flex-shrink: 1;
    }

    .service-description {
        font-size: 14px;
        line-height: 1.7;
        width: 100%;
        flex: none;
    }

    .service-nav-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        position: relative;
        top: 0;
        align-self: flex-end;
        margin-top: 0;
    }

    [dir="rtl"] .service-nav-icon {
        order: -1;
        margin-right: 12px;
        margin-left: 0;
    }

    [dir="ltr"] .service-nav-icon {
        order: 1;
        margin-left: 12px;
        margin-right: 0;
    }

    .service-nav-icon i {
        font-size: 16px;
    }
}
