/* ===================================
   تحسينات قسم "من نحن" المطورة
   Enhanced About Us Section
   =================================== */

/* الحاوي الرئيسي */
.large-padding-tb7 {
    padding: 100px 0 !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f4ff 100%) !important;
}

/* تحسين الخلفية */
.large-padding-tb7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%);
    z-index: 1;
}

.large-padding-tb7 .container {
    position: relative;
    z-index: 2;
}

/* تحسين الصور */
.optech-thumb {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.optech-thumb:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.optech-thumb img {
    border-radius: 20px;
    transition: all 0.4s ease;
    width: 100%;
    height: auto;
}

.optech-thumb:hover img {
    transform: scale(1.05);
}

/* الصورة المتداخلة */
.optech-thumb-position {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.optech-thumb-position:hover {
    transform: translateY(-5px) rotate(2deg);
}

.optech-thumb-position img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* تحسين المحتوى النصي */
.optech-default-content {
    padding: 0 20px;
}

.optech-default-content h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
    position: relative;
}

.optech-default-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

.optech-default-content h5 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #007bff !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.optech-default-content p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #666 !important;
    margin-bottom: 30px !important;
    text-align: justify;
}

/* تحسين الأيقونات والنصوص */
.optech-iconbox-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.optech-iconbox-wrap3 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.optech-iconbox-wrap3:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.optech-iconbox-icon3 {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.optech-iconbox-icon3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.optech-iconbox-wrap3:hover .optech-iconbox-icon3::before {
    left: 100%;
}

.optech-iconbox-icon3 svg {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.optech-iconbox-wrap3:hover .optech-iconbox-icon3 {
    transform: rotate(5deg) scale(1.1);
}

.optech-iconbox-data3 p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* تحسين الأشكال الزخرفية */
.optech-shape1 {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    opacity: 0.6;
    z-index: 1;
}

.optech-shape1 svg {
    width: 120px;
    height: auto;
}

/* تأثيرات الحركة */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.optech-thumb-position {
    animation: float 6s ease-in-out infinite;
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 992px) {
    .large-padding-tb7 {
        padding: 80px 0 !important;
    }
    
    .optech-default-content {
        padding: 40px 0 0;
        text-align: center;
    }
    
    .optech-default-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .optech-thumb-position {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 30px auto 0;
        width: 250px;
        height: 250px;
    }
    
    .optech-iconbox-wrap3 {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .optech-iconbox-wrap3:hover {
        transform: translateY(-5px);
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .large-padding-tb7 {
        padding: 60px 0 !important;
    }
    
    .optech-default-content h2 {
        font-size: 2rem !important;
    }
    
    .optech-default-content h5 {
        font-size: 1rem !important;
    }
    
    .optech-default-content p {
        font-size: 1rem !important;
    }
    
    .optech-thumb-position {
        width: 200px;
        height: 200px;
    }
    
    .optech-iconbox-wrap3 {
        padding: 20px;
    }
    
    .optech-iconbox-icon3 {
        width: 50px;
        height: 50px;
    }
    
    .optech-iconbox-icon3 svg {
        width: 24px;
        height: 24px;
    }
}

/* تحسينات للغة العربية */
[dir="rtl"] .optech-default-content h2::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .optech-iconbox-wrap3:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .optech-thumb-position {
    right: auto;
    left: -30px;
}

[dir="rtl"] .optech-shape1 {
    left: auto;
    right: -50px;
}

/* تأثيرات إضافية للتفاعل */
.optech-iconbox-wrap3:hover .optech-iconbox-data3 p {
    color: #333 !important;
}

/* تحسين الانتقالات */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسين الأداء */
.optech-thumb,
.optech-thumb-position,
.optech-iconbox-wrap3,
.optech-iconbox-icon3 {
    will-change: transform;
}

/* إضافة تأثير التدرج للخلفية */
.large-padding-tb7::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #007bff 50%, transparent 100%);
    z-index: 3;
}

/* تحسين التباعد */
.ml40 {
    margin-left: 0 !important;
}

@media (min-width: 992px) {
    .ml40 {
        margin-left: 40px !important;
    }
}

/* تأثير الظلال المتحركة */
.optech-iconbox-wrap3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, transparent 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.optech-iconbox-wrap3:hover::before {
    opacity: 1;
}