/* 
 * تحسينات إضافية لصفحات التفاصيل
 * Additional enhancements for details pages
 */

/* تحسين التخطيط العام */
.service-details-section,
.project-details-section {
    min-height: 100vh;
    padding: 80px 0;
}

/* تحسين الصور الرئيسية */
.service-main-image,
.project-main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.service-main-image img,
.project-main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.service-main-image:hover img,
.project-main-image:hover img {
    transform: scale(1.05);
}

/* تحسين العناوين مع تأثيرات بصرية */
.service-info-header,
.project-info-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}



/* تحسين قسم النظرة العامة */
.service-overview,
.project-description {
    border-radius: 15px;
    padding: 40px;
    position: relative;
}

.service-overview::before,
.project-description::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 60px;
    color: #6B41FF;
    opacity: 0.3;
    font-family: serif;
}

/* تحسين بطاقات الميزات مع تأثيرات متقدمة */
.service-features,
.project-features {
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}



@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* تحسين قسم الفوائد */
.service-benefits {
    border-radius: 20px;
    padding: 40px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.benefits-list li {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.benefits-list li:hover {
    transform: translateX(10px);
    border-color: #6B41FF;
    box-shadow: 0 5px 15px rgba(107, 65, 255, 0.2);
}

/* تحسين خطوات العمل */
.service-process {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.service-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6B41FF, #A0EA71);
    border-radius: 20px 20px 0 0;
}

/* تحسين الشريط الجانبي */
.service-sidebar,
.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* تحسين ويدجت الاتصال */
.contact-widget {
    background: linear-gradient(135deg, #6B41FF, #A0EA71);
    color: #ffffff !important;
    text-align: center;
}

.contact-widget h4 {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-widget p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-widget .gt-theme-btn {
    background-color: #ffffff;
    color: #6B41FF !important;
    border-color: #ffffff;
}

.contact-widget .gt-theme-btn:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
}

/* تحسين المشاريع ذات الصلة */
.related-projects {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
}

.related-project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-thumb {
    height: 200px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-card:hover .project-thumb img {
    transform: scale(1.1);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* تحسين معرض الصور */
.project-gallery {
    border-radius: 20px;
    padding: 40px;
}

/* تحسين النتائج والإحصائيات */
.project-results {
    border-radius: 20px;
    padding: 40px;
}

.results-stats {
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
}



/* تأثيرات التحميل */
.loading-animation {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B41FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات للطباعة */
@media print {
    .service-sidebar,
    .project-sidebar,
    .share-buttons,
    .contact-widget {
        display: none;
    }
    
    .service-details-wrapper,
    .project-details-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .service-details-wrapper,
    .project-details-wrapper {
        padding: 60px;
    }
    
    .service-details-content h2,
    .project-details-content h2 {
        font-size: 3rem;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (max-width: 992px) {
    .service-sidebar,
    .project-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 576px) {
    .service-details-section,
    .project-details-section {
        padding: 40px 0;
    }
    
    .service-overview,
    .project-description,
    .service-features,
    .project-features,
    .service-benefits,
    .service-process,
    .project-gallery,
    .project-results,
    .related-projects {
        padding: 25px;
        margin: 15px;
    }
    
    .service-info-header h2,
    .project-info-header h2 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* تحسين إمكانية الوصول */
.service-details-content *:focus,
.project-details-content *:focus {
    outline: 2px solid #6B41FF;
    outline-offset: 2px;
}

/* تحسين التباين للنصوص */
.service-details-content,
.project-details-content {
    font-size: 16px;
    line-height: 1.8;
}

/* تأثيرات الحركة المتقدمة */
.service-feature-item,
.feature-item,
.process-step,
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-feature-item:nth-child(1) { animation-delay: 0.1s; }
.service-feature-item:nth-child(2) { animation-delay: 0.2s; }
.service-feature-item:nth-child(3) { animation-delay: 0.3s; }
.service-feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* إضافة تأثيرات للروابط */
a {
    transition: all 0.3s ease;
}

/* تحسين الأزرار */
.gt-theme-btn {
    position: relative;
    overflow: hidden;
}

.gt-theme-btn::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: width 0.6s, height 0.6s;
}

.gt-theme-btn:hover::after {
    width: 300px;
    height: 300px;
}