/*
Theme Name: kadu
Theme URI: http://themexriver.com/wp/kadu
Author: themexriver
Author URI: http://themexriver.com/
Description: kadu - IT Solutions WordPress Theme
Version: 1.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kadu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/













/* CSS Fix لمنع تقطيع النصوص في الـ Animation */

/* منع تقطيع النصوص العربية */
.kd-split-text,
.kd-h2-split-text,
.kd-title-ani,
.kd-h2-title-ani {
    /* منع تقطيع الكلمات */
    word-break: keep-all !important;
    white-space: nowrap !important;
    
    /* تحسين عرض النص العربي */
    direction: rtl !important;
    text-align: right !important;
    
    /* منع overflow مخفي */
    overflow: visible !important;
    
    /* تحسين الخط العربي */
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
    
    /* منع تداخل العناصر */
    position: relative !important;
    z-index: 1 !important;
}

/* إصلاح للنصوص الطويلة */
.kd-split-text.long-text,
.kd-h2-split-text.long-text {
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.4 !important;
}

/* تحسين الـ animation للنصوص */
.kd-split-text,
.kd-h2-split-text {
    transition: all 0.3s ease-in-out !important;
}

/* منع مشاكل الـ transform */
.kd-split-text *,
.kd-h2-split-text * {
    transform-origin: center !important;
}

/* إصلاح للعناوين الرئيسية */
h1.kd-split-text,
h2.kd-split-text,
h3.kd-split-text,
h1.kd-h2-split-text,
h2.kd-h2-split-text,
h3.kd-h2-split-text {
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .kd-split-text,
    .kd-h2-split-text {
        font-size: 90% !important;
        white-space: normal !important;
        word-break: normal !important;
    }
}

/* إصلاح مشاكل الـ GSAP */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end {
    display: none !important;
}

/* منع مشاكل الـ SplitText */
.split-line {
    overflow: visible !important;
    display: inline !important;
}

/* تحسين الأداء */
.kd-split-text,
.kd-h2-split-text {
    will-change: auto !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
}
