/* تحسينات تصميم صفحات الخدمات */


/* تحسين تصميم البطاقات الرئيسية للخدمات */
.service-details-wrapper {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}


/* تحسين الصورة الرئيسية */
.details-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.details-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}




/* تحسين محتوى الخدمة */
.service-details-content {
    padding: 40px;
}

.service-details-content h3 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}



.service-details-content>p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 10px;
    text-align: justify;
}

/* تحسين بطاقات الميزات */
.service-box-items-5 {
    border-radius: 15px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #f0f4f8;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-box-items-5::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);

    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-box-items-5:hover::before {
    transform: scaleX(1);
}

.service-box-items-5:hover {
    transform: translateY(-8px);
    border-color: #e3f2fd;
}

.service-box-items-5 .icon {
    margin-bottom: 10px;
    text-align: center;
}

.service-box-items-5 .icon img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.2));
    transition: transform 0.3s ease;
}



.service-box-items-5 .content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-box-items-5 .content p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* تحسين عناوين الأقسام */
.service-feature-list h3,
.service-process h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px;
}

.service-feature-list h3::before,
.service-process h3::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 40px;
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);

    border-radius: 3px;
}

/* تحسين بطاقات العملية */
.feature-box-items-2 {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f4f8;
    height: 100%;
    position: relative;
    overflow: hidden;
}




.feature-box-items-2 .icon {
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.feature-box-items-2 .icon .number {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);

    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}



.feature-box-items-2 .content {
    position: relative;
    z-index: 2;
}

.feature-box-items-2 .content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.feature-box-items-2 .content p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}



@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-wrapper-5 h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.cta-wrapper-5 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-wrapper-5 .gt-theme-btn {
    background: #fff;
    color: #4a90e2;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



/* تحسين الشريط الجانبي */
.main-sidebar {
    position: sticky;
    top: 100px;
}

.single-sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 30px 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f4f8;
    transition: all 0.3s ease;
}



.single-sidebar-widget .wid-title h2,
.single-sidebar-widget .wid-title h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}



.service-widget-categories ul li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.service-widget-categories ul li a {
    color: #5a6c7d;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}



.service-widget-categories ul li a i {
    margin-left: 10px;
    font-size: 0.9rem;
}

/* تحسين معلومات الاتصال */
.contact-info-items {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}



.contact-info-items .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.contact-info-items .icon i {
    color: #fff;
    font-size: 1.1rem;
}

.contact-info-items .content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-items .content h3 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}


.contact-info-items .content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
    .service-details-content {
        padding: 25px 20px;
    }

    .service-details-content h3 {
        font-size: 1.8rem;
    }

    .service-box-items-5,
    .feature-box-items-2 {
        margin-bottom: 20px;
    }

    .cta-wrapper-5 {
        padding: 35px 25px;
    }

    .cta-wrapper-5 h2 {
        font-size: 1.5rem;
    }

    .main-sidebar {
        position: static;
        margin-top: 30px;
    }
}

/* تأثيرات إضافية للتفاعل */
.service-details-wrapper,
.service-box-items-5,
.feature-box-items-2,
.single-sidebar-widget {
    will-change: transform;
}

/* تحسين الانتقالات السلسة */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسين التباعد العام */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* 
شارة الخدمة المتميزة */
.service-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);

    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.service-badge i {
    margin-left: 8px;
    font-size: 0.9rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين إضافي للعناوين الفرعية */
.service-feature-list h3,
.service-process h3 {
    background: linear-gradient(90deg, #6B41FF 0%, #A0EA71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* تأثير التمرير السلس للصفحة */
html {
    scroll-behavior: smooth;
}

/* تحسين الظلال للبطاقات */
.service-box-items-5,
.feature-box-items-2,
.single-sidebar-widget {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* تحسين الأزرار */
.gt-theme-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}



/* تحسين الانتقالات للعناصر التفاعلية */
.service-box-items-5 .content h3,
.feature-box-items-2 .content h3 {
    transition: color 0.3s ease;
}


/* إضافة تأثير الضوء المتحرك */
@keyframes lightMove {
    0% {
        transform: translateX(-100px) skewX(-15deg);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) skewX(-15deg);
    }
}


/* تحسين التجاوب مع الأجهزة الصغيرة */
@media (max-width: 576px) {
    .service-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .service-details-content h3 {
        font-size: 1.6rem;
    }

    .service-feature-list h3,
    .service-process h3 {
        font-size: 1.5rem;
    }

    .cta-wrapper-5 h2 {
        font-size: 1.3rem;
    }

    .cta-wrapper-5 p {
        font-size: 1rem;
    }
}

/*
 تحسينات إضافية للتفاعل والحيوية */

/* تأثير الكتابة المتحركة للعناوين */
.service-details-content h3 {
    overflow: hidden;
    border-left: 3px solid #4a90e2;
    white-space: nowrap;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #4a90e2;
    }
}

/* إزالة التأثير بعد انتهاء الأنيميشن */
.service-details-content h3 {
    animation: none;
    white-space: normal;
    border-left: none;
}

/* تأثير الظهور التدريجي للعناصر */
.service-box-items-5,
.feature-box-items-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-box-items-5:nth-child(1) {
    animation-delay: 0.1s;
}

.service-box-items-5:nth-child(2) {
    animation-delay: 0.2s;
}

.service-box-items-5:nth-child(3) {
    animation-delay: 0.3s;
}

.service-box-items-5:nth-child(4) {
    animation-delay: 0.4s;
}

.service-box-items-5:nth-child(5) {
    animation-delay: 0.5s;
}

.service-box-items-5:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-box-items-2:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-box-items-2:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-box-items-2:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-box-items-2:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين الخطوط والقراءة */
.service-details-content,
.service-box-items-5,
.feature-box-items-2 {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* تأثير التمرير للأيقونات */
.service-box-items-5 .icon,
.feature-box-items-2 .icon {
    position: relative;
}



/* تحسين الألوان والتدرجات */
:root {
    --primary-gradient: linear-gradient(135deg, #4a90e2 0%, #8f37cd 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* تأثيرات الماوس المتقدمة */
.service-box-items-5,
.feature-box-items-2 {
    user-select: none;
}

.service-box-items-5:active,
.feature-box-items-2:active {
    transform: translateY(-5px) scale(0.98);
}

/* تحسين الشفافية والعمق */
.service-details-wrapper {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* تأثير الضوء المتحرك للبطاقات */
.service-box-items-5::before,
.feature-box-items-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}


/* تحسين النصوص والمحاذاة */
.service-details-content p,
.service-box-items-5 .content p,
.feature-box-items-2 .content p {
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.1em;
}

/* تأثيرات الحركة للشريط الجانبي */
.single-sidebar-widget {
    transform: translateX(20px);
    opacity: 0;
    animation: slideInRight 0.6s ease-out forwards;
}

.single-sidebar-widget:nth-child(1) {
    animation-delay: 0.3s;
}

.single-sidebar-widget:nth-child(2) {
    animation-delay: 0.5s;
}

.single-sidebar-widget:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* تحسين الاستجابة للأجهزة اللوحية */
@media (max-width: 992px) {
    .service-details-content {
        padding: 30px 15px;
    }

    .service-box-items-5,
    .feature-box-items-2 {
        margin-bottom: 15px;
    }

    .single-sidebar-widget {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* تحسين الطباعة */
@media print {

    .service-details-wrapper,
    .service-box-items-5,
    .feature-box-items-2,
    .single-sidebar-widget {
        box-shadow: none !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
    }

    .cta-wrapper-5 {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/*
 التحسينات النهائية والمتقدمة */

/* تحسين الخلفيات والأنماط */
.service-details-section {
    position: relative;
    overflow: hidden;
}

.service-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(143, 55, 205, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* تحسين العناوين الرئيسية */
.service-details-content h3 {
    position: relative;
    display: inline-block;
}

.service-details-content h3::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* تحسين الأيقونات والرموز */
.service-box-items-5 .icon img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



/* تأثيرات الإضاءة المتقدمة */
.cta-wrapper-5 {
    position: relative;
    overflow: hidden;
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* تحسين الانتقالات السلسة */
.service-box-items-5,
.feature-box-items-2,
.single-sidebar-widget {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تأثيرات الكتابة المحسنة */
.service-details-content>p {
    position: relative;
    padding-right: 20px;
}

.service-details-content>p::before {
    content: '"';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 3rem;
    color: rgba(74, 144, 226, 0.2);
    font-family: serif;
    line-height: 1;
}

/* تحسين الشبكة والتخطيط */
.row.g-4 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

/* تأثيرات التمرير المتقدمة */
@media (prefers-reduced-motion: no-preference) {

    .service-box-items-5,
    .feature-box-items-2 {
        scroll-margin-top: 100px;
    }

    /* تأثير الظهور عند التمرير */
    .service-box-items-5,
    .feature-box-items-2 {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        transition: all 0.6s ease-out;
    }

    .service-box-items-5.animate-in,
    .feature-box-items-2.animate-in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* تحسين الأداء والتحسين */
.service-box-items-5,
.feature-box-items-2,
.single-sidebar-widget {
    contain: layout style paint;
    will-change: transform, opacity;
}