/* ===================================
   تحسينات متقدمة لقسم "من نحن"
   Advanced About Us Enhancements
   =================================== */

/* تأثيرات الخلفية المتحركة */
.large-padding-tb7 {
    position: relative;
    background-attachment: fixed;
}

.large-padding-tb7::before {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        linear-gradient(135deg, rgba(240, 244, 255, 0.5) 0%, rgba(248, 249, 255, 0.8) 100%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 0% 0%; 
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 100% 100%; 
    }
}

/* تحسين الصور مع تأثيرات متقدمة */
.optech-thumb {
    position: relative;
    overflow: hidden;
}

.optech-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.optech-thumb:hover::before {
    transform: translateX(100%);
}

/* تأثير الانعكاس للصور */
.optech-thumb::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    transform: scaleY(-1);
    opacity: 0.3;
    border-radius: 0 0 20px 20px;
}

/* تحسين الصورة المتداخلة */
.optech-thumb-position {
    position: relative;
}

.optech-thumb-position::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.1));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.optech-thumb-position:hover::before {
    opacity: 1;
    transform: rotate(2deg);
}

/* تحسين النصوص مع تأثيرات الكتابة */
.optech-default-content h2 {
    position: relative;
    overflow: hidden;
}

.optech-default-content h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

/* تحسين البطاقات مع تأثيرات ثلاثية الأبعاد */
.optech-iconbox-wrap3 {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.optech-iconbox-wrap3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 86, 179, 0.02));
    border-radius: 15px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.optech-iconbox-wrap3:hover::after {
    opacity: 1;
    transform: translateZ(-10px);
}

/* تأثير الجسيمات المتحركة */
.large-padding-tb7::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 123, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 86, 179, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 123, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 86, 179, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* تحسين الأيقونات مع تأثيرات متقدمة */
.optech-iconbox-icon3 {
    position: relative;
    overflow: hidden;
}

.optech-iconbox-icon3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.optech-iconbox-wrap3:hover .optech-iconbox-icon3::after {
    width: 100%;
    height: 100%;
}

/* تأثير النبضة للأيقونات */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.optech-iconbox-icon3:hover {
    animation: pulse 1.5s infinite;
}

/* تحسين النصوص مع تأثير الكتابة المتدرجة */
.optech-iconbox-data3 p {
    position: relative;
    overflow: hidden;
}

.optech-iconbox-data3 p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.optech-iconbox-wrap3:hover .optech-iconbox-data3 p::before {
    left: 100%;
}

/* تأثيرات الماوس المتقدمة */
.optech-iconbox-wrap3 {
    cursor: pointer;
    user-select: none;
}

.optech-iconbox-wrap3:active {
    transform: scale(0.98);
}

/* تحسين الأشكال الزخرفية */
.optech-shape1 {
    animation: shapeFloat 8s ease-in-out infinite;
}

@keyframes shapeFloat {
    0%, 100% { 
        transform: translateY(-50%) rotate(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-60%) rotate(5deg); 
        opacity: 0.8; 
    }
}

/* تأثير التدرج المتحرك للخط السفلي */
.optech-default-content h2::after {
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* تحسينات للشاشات عالية الدقة */
@media (min-resolution: 2dppx) {
    .optech-thumb,
    .optech-thumb-position {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* تحسين الأداء للحركات */
.optech-thumb,
.optech-thumb-position,
.optech-iconbox-wrap3,
.optech-iconbox-icon3 {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* تأثير الضوء المتحرك */
.large-padding-tb7 {
    position: relative;
}

.large-padding-tb7::before {
    background-image: 
        radial-gradient(ellipse at top left, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 86, 179, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(240, 244, 255, 0.6) 0%, rgba(248, 249, 255, 0.9) 100%);
    animation: lightMove 25s ease-in-out infinite;
}

@keyframes lightMove {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 0% 0%;
        opacity: 1;
    }
    25% { 
        background-position: 100% 0%, 0% 100%, 25% 25%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 50% 50%;
        opacity: 1;
    }
    75% { 
        background-position: 0% 100%, 100% 0%, 75% 75%;
        opacity: 0.9;
    }
}

/* تحسين التفاعل مع اللمس */
@media (hover: none) and (pointer: coarse) {
    .optech-iconbox-wrap3:hover {
        transform: none;
    }
    
    .optech-iconbox-wrap3:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* تأثير الانتقال السلس للصفحة */
.large-padding-tb7 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.large-padding-tb7.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين إمكانية الوصول */
.optech-iconbox-wrap3:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.optech-iconbox-wrap3:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}