/* تحسينات قسم المشاريع - Enhanced Projects Styles
   تنسيقات مخصصة لصفحة المشاريع وعرضها بشكل أكثر جاذبية
*/

/* فلتر المشاريع */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn-premium {
    padding: 8px 20px;
    background: transparent;
    color: #0a3a78;
    border: 2px solid #0a3a78;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* شبكة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* بطاقة المشروع */
.project-card-premium {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(10, 58, 120, 0.1);
}

/* صورة المشروع */
.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card-premium:hover .project-image::before {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card-premium:hover .project-image img {
    transform: scale(1.08);
}

/* محتوى المشروع */
.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-content h3 {
    font-size: 20px;
    color: #0a3a78;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.project-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* بيانات المشروع */
.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-meta i {
    color: #0a3a78;
}

/* زر التفاصيل */
.project-card-premium .btn-premium {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

/* فئة المشروع */
.project-category {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #0a3a78 0%, #1a5baa 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(10, 58, 120, 0.2);
}

/* تأثيرات الانتقال */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* تأخير الظهور بالتدريج */
.projects-grid .project-card-premium:nth-child(1) {
    animation-delay: 0.1s;
}

.projects-grid .project-card-premium:nth-child(2) {
    animation-delay: 0.2s;
}

.projects-grid .project-card-premium:nth-child(3) {
    animation-delay: 0.3s;
}

.projects-grid .project-card-premium:nth-child(4) {
    animation-delay: 0.4s;
}

.projects-grid .project-card-premium:nth-child(5) {
    animation-delay: 0.5s;
}

.projects-grid .project-card-premium:nth-child(6) {
    animation-delay: 0.6s;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 18px;
    }
}
