/* تحسينات مظهر محتوى الصفحات - Body Enhancements
   ملف CSS لتحسين مظهر محتوى الصفحات وضمان التناسق مع الهيدر والفوتر
*/

/* تحسينات عامة للمحتوى */
section {
    padding: 50px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* عناوين الأقسام */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    font-size: 2.2rem;
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* تحسين البطاقات */
.service-card, .project-card, .blog-card, .team-card, .vm-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .project-card:hover, .blog-card:hover, .team-card:hover, .vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* تحسين صور المحتوى */
.about-intro-image img, .project-image img, .blog-image img, .team-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image img:hover, .blog-image img:hover {
    transform: scale(1.05);
}

/* تحسين عرض النص في المحتوى */
.about-intro-text h2, .service-content h3, .project-content h3, .blog-content h3 {
    color: #0a3a78;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-intro-text p, .service-content p, .project-content p, .blog-content p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* تحسين عرض الصفوف والأعمدة */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col {
    flex: 1;
    padding: 15px;
    min-width: 250px;
}

/* تحسين قسم "من نحن" */
.about-intro-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.vm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.vm-card {
    padding: 30px;
    text-align: center;
}

.vm-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.vm-icon i {
    font-size: 28px;
    color: #fff;
}

/* تحسين قسم المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    position: relative;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    height: 220px;
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 14px;
    color: #0a3a78;
    margin-bottom: 10px;
    font-weight: 600;
}

/* تحسين قسم الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 30px;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-icon img {
    width: 100%;
    height: auto;
}

/* تحسين قسم المدونة */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.blog-image {
    height: 200px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* تحسين الأزرار */
.btn-premium {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.btn-primary-premium {
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
    color: #fff;
}

.btn-primary-premium:hover {
    background: linear-gradient(135deg, #072b5a 0%, #0a4999 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 58, 120, 0.3);
}

.btn-secondary-premium {
    background: transparent;
    color: #0a3a78;
    border: 2px solid #0a3a78;
}

.btn-secondary-premium:hover {
    background-color: #0a3a78;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(10, 58, 120, 0.2);
}

/* تحسين قسم الفريق */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.team-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.team-content {
    padding: 20px;
    text-align: center;
}

.team-position {
    color: #0a3a78;
    font-size: 14px;
    margin-top: 5px;
}

/* تحسين قسم شركاؤنا */
.clients-section {
    background-color: #f9f9f9;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-slide-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 150px;
    padding: 10px;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* تأثيرات إضافية */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInRight 0.8s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 10));
    }
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-intro-content, .vm-cards, .services-grid, .projects-grid, .blog-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .vm-card, .service-card {
        padding: 20px;
    }
    
    .vm-icon {
        width: 60px;
        height: 60px;
    }
    
    .vm-icon i {
        font-size: 24px;
    }
}
