/* صفحة أعمالنا - Glory Team - نسخة نهائية نظيفة */

/* Hero Section */
.our-work-hero {
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%);
    color: white;
    padding: 1.5rem 0 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.our-work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-overlay.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Agency Stats */
.agency-stats.compact-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.agency-stats.compact-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.agency-stats.compact-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.agency-stats.compact-stats .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
}

.agency-stats.compact-stats .stat-content {
    text-align: left;
}

.agency-stats.compact-stats .stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.agency-stats.compact-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 0.2rem;
    line-height: 1;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
}

.filter-btn {
    background: white;
    border: 1.5px solid #e9ecef;
    color: #666;
    padding: 0.4rem 0.8rem;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    flex-shrink: 0;
    min-width: auto;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #c8a882;
    color: #c8a882;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.filter-btn.active {
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%);
    border-color: #c8a882;
    color: white;
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(200, 168, 130, 0.4);
}

/* زر فلتر المشاريع المميزة */
.filter-btn[data-category="featured"] {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c3e50;
    border-color: #FFD700;
    position: relative;
    overflow: hidden;
}

.filter-btn[data-category="featured"]:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: #2c3e50;
    border-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.filter-btn[data-category="featured"].active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c3e50;
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.filter-btn[data-category="featured"].active:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

.filter-btn[data-category="featured"] i {
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    }
}

/* Projects Grid - نفس تصميم الفرق */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
    gap: 1.26rem;
    margin-bottom: 3rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-grid.loading {
    opacity: 0.3;
    transform: translateY(10px);
    pointer-events: none;
}

.projects-grid.fade-in {
    animation: gridFadeIn 0.6s ease forwards;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Cards - تصميم محسن مع الصورة في النصف */
.project-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 320px;
    border: 1px solid #e9ecef;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(200, 168, 130, 0.18);
    border-color: #c8a882;
}

.project-card.featured {
    border-color: rgba(255, 215, 0, 0.4);
}

.project-card.featured:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.project-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Project Status Badge (نفس علامة الفريق المتعاقد) */
.project-status-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a589 100%);
    color: #ffffff;
    padding: 4px 7px;
    border-radius: 12px;
    font-size: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.35);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.project-status-badge i {
    font-size: 5px;
    animation: shield-glow 2s ease-in-out infinite alternate;
}

@keyframes shield-glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2c3e50;
    padding: 4px 7px;
    border-radius: 12px;
    font-size: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.featured-badge i {
    font-size: 5px;
    animation: starGlow 2s ease-in-out infinite;
}

@keyframes starGlow {
    0%, 100% {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    }
}

/* Project Cover - نصف الكارد بالضبط */
.project-cover {
    width: 100%;
    height: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.project-card:hover .project-cover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.05);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2.5rem;
}

/* Project Overlay (نفس overlay الفريق) */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(200,168,130,0.92), rgba(74,74,74,0.88));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 9px 9px 0 0;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.overlay-content i {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    display: block;
    animation: pulse 2s infinite;
}

.overlay-content p {
    font-size: 0.55rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-details {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.project-details span {
    font-size: 0.6rem;
    font-weight: 800;
    display: block;
}

.project-details small {
    font-size: 0.4rem;
    opacity: 0.9;
}

/* Project Footer - محتوى منفصل مع خلفية واضحة */
.project-footer {
    padding: 0.9rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-top: 1px solid #e9ecef;
    position: relative;
    min-height: auto;
    overflow: visible;
}

.project-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 50%, transparent 100%);
}

.project-info {
    flex-grow: 1;
    margin-bottom: 0;
}

/* عنوان المشروع */
.project-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-height: 2.5rem;
    overflow: hidden;
    position: relative;
}

/* معلومات التاريخ */
.project-date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 500;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(233, 236, 239, 0.4);
    margin-bottom: 0.7rem;
}

.project-date-info i {
    color: #c8a882;
    font-size: 0.65rem;
    margin-left: 0.2rem;
}

/* زر عرض التفاصيل داخل المحتوى */
.project-action-inline {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* تحسين أنماط الزر داخل المحتوى */
.project-info .btn-project-details {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.8rem !important;
    min-width: 110px !important;
    max-width: 130px !important;
    border-radius: 14px !important;
    margin-top: 0 !important;
}

/* Project Actions (نفس أزرار الفريق) */
.project-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.4rem;
    padding: 0;
}

/* زر عرض التفاصيل - توحيد الأبعاد لجميع البطولات */
.btn-project-details {
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    box-shadow: 0 2px 6px rgba(200, 168, 130, 0.25) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: 115px !important;
    height: 32px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

.btn-project-details:hover {
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%) !important;
    color: white !important;
    border-color: #c8a882 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(200, 168, 130, 0.3) !important;
}

.btn-project-details:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 3px rgba(200, 168, 130, 0.3) !important;
}

.btn-project-details i {
    font-size: 0.65rem !important;
    margin: 0 !important;
}

/* CSS للزر تم حذفه لاستخدام Bootstrap فقط */

/* Animation for project cards */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    color: #c8a882;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-family: 'Cairo', sans-serif;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c8a882;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نافذة المشاريع الجميلة - بنفس أسلوب نوافذ الفريق */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 20px;
    padding-top: 140px;
    box-sizing: border-box;
    overflow-y: auto;
}

.project-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 160px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(200, 168, 130, 0.15);
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.project-modal-overlay.show .project-modal-content {
    transform: scale(1) translateY(0);
}

/* زر الإغلاق */
.project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(200, 168, 130, 0.1);
    border: 1px solid rgba(200, 168, 130, 0.3);
    border-radius: 50%;
    color: #c8a882;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-modal-close:hover {
    background: #c8a882;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.3);
}

/* رأس النافذة مع صورة كبيرة */
.project-modal-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0;
    border-bottom: 1px solid rgba(200, 168, 130, 0.15);
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-modal-header-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.project-modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.project-modal-header-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

.project-modal-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
    padding: 1.5rem 2rem 1rem;
    color: white;
}

.project-modal-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
    display: none; /* مخفي الآن لأننا نستخدم الصورة الكبيرة */
}

.project-modal-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 4px solid #c8a882;
    box-shadow: 0 8px 20px rgba(200, 168, 130, 0.3);
}

.project-modal-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(135deg, #c8a882 0%, #d4b896 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    border: 4px solid #c8a882;
    box-shadow: 0 8px 20px rgba(200, 168, 130, 0.3);
}

.project-modal-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.project-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.1) 0%, rgba(200, 168, 130, 0.05) 100%);
    color: #c8a882;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(200, 168, 130, 0.2);
    margin-bottom: 0.75rem;
}

.project-modal-status.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.project-modal-status.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: #ffa500;
    border-color: rgba(255, 215, 0, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* جسم النافذة */
.project-modal-body {
    text-align: center;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - 420px);
}

.project-modal-section {
    margin-bottom: 1.5rem;
}

.project-modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.project-modal-section-title i {
    font-size: 0.9rem;
    color: #c8a882;
}

.project-modal-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    text-align: right;
    direction: rtl;
    background: rgba(248, 249, 250, 0.8);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(200, 168, 130, 0.1);
    margin: 0 0 1rem 0;
    font-family: 'Cairo', sans-serif;
    max-height: 120px;
    overflow-y: auto;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.project-info-item {
    background: rgba(248, 249, 250, 0.6);
    padding: 0.375rem;
    border-radius: 6px;
    border: 1px solid rgba(200, 168, 130, 0.1);
    transition: all 0.3s ease;
    min-height: auto;
}

.project-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.15);
    border-color: rgba(200, 168, 130, 0.3);
}

.project-info-label {
    font-size: 0.35rem;
    font-weight: 600;
    color: #8e8e8e;
    margin-bottom: 0.2rem;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.project-info-value {
    font-size: 0.425rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
}

.project-info-icon {
    font-size: 0.5rem;
    margin-bottom: 0.2rem;
    display: block;
}

.project-info-item.category .project-info-icon {
    color: #6f42c1;
}

.project-info-item.date .project-info-icon {
    color: #fd7e14;
}

.project-info-item.external-link .project-info-icon {
    color: #007bff;
}

/* زر الرابط الخارجي في النافذة المنبثقة */
.project-modal-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-top: 0.5rem;
}

.project-modal-external-link:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.project-modal-external-link i {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Scrollbar مخصص */
.project-modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 130, 0.3) transparent;
}

.project-modal-content::-webkit-scrollbar {
    width: 6px;
}

.project-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 130, 0.3);
    border-radius: 3px;
}

.project-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 130, 0.5);
}

/* Responsive للنافذة المنبثقة */
@media (max-width: 768px) {
    .project-modal-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 140px;
    }
    
    .project-modal-content {
        max-width: 95vw;
        width: 100%;
        max-height: calc(100vh - 170px);
        margin: 0;
        border-radius: 15px;
    }
    
    .project-modal-body {
        padding: 1.5rem;
        max-height: calc(100vh - 460px);
    }
    
    .project-modal-avatar {
        width: 80px;
        height: 80px;
    }
    
    .project-modal-name {
        font-size: 1.2rem;
    }
    
    .project-modal-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-modal-description {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .project-modal-info {
        gap: 0.35rem;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .project-info-item {
        padding: 0.325rem;
    }
    
    .project-info-label {
        font-size: 0.3rem;
    }
    
    .project-info-value {
        font-size: 0.375rem;
    }
    
    .project-info-icon {
        font-size: 0.425rem;
    }
}

@media (max-width: 480px) {
    .project-modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 130px;
    }
    
    .project-modal-content {
        max-width: calc(100vw - 20px);
        width: 100%;
        max-height: calc(100vh - 150px);
        border-radius: 12px;
        margin: 0;
    }
    
    .project-modal-body {
        padding: 1.2rem;
        max-height: calc(100vh - 430px);
    }
    
    .project-modal-avatar {
        width: 70px;
        height: 70px;
    }
    
    .project-modal-avatar-fallback {
        font-size: 2rem;
    }
    
    .project-modal-name {
        font-size: 1.1rem;
    }
    
    .project-modal-status {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .project-modal-description {
        font-size: 0.85rem;
        padding: 0.8rem;
        line-height: 1.6;
    }
    
    .project-modal-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .project-info-item {
        padding: 0.275rem;
    }
    
    .project-info-label {
        font-size: 0.28rem;
    }
    
    .project-info-value {
        font-size: 0.325rem;
    }
    
    .project-info-icon {
        font-size: 0.375rem;
    }
}

/* أنماط النافذة المنبثقة للفريق (لاستخدامها في المشاريع) */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.team-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(200, 168, 130, 0.15);
    overflow: hidden;
    cursor: default;
}

/* رأس النافذة */
.team-modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(200, 168, 130, 0.15);
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.02) 0%, rgba(248, 249, 250, 0.8) 100%);
}

.team-modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.team-modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #c8a882;
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.3);
}

.team-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal-title-section {
    flex: 1;
}

.team-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a4a4a;
    margin: 0 0 0.5rem 0;
    font-family: 'Cairo', sans-serif;
}

.team-modal-status {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-modal-close {
    width: 35px;
    height: 35px;
    background: rgba(200, 168, 130, 0.1);
    border: 1px solid rgba(200, 168, 130, 0.3);
    border-radius: 50%;
    color: #c8a882;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.team-modal-close:hover {
    background: #c8a882;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.3);
}

/* جسم النافذة */
.team-modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.team-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(248, 249, 250, 0.6);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 130, 0.1);
    transition: all 0.3s ease;
}

.team-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.15);
    border-color: rgba(200, 168, 130, 0.3);
}

.info-card-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, rgba(200, 168, 130, 0.1) 0%, rgba(200, 168, 130, 0.05) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8a882;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8e8e8e;
    margin-bottom: 0.3rem;
    font-family: 'Cairo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Cairo', sans-serif;
    margin: 0;
}

/* قسم الوصف */
.team-description-section {
    margin-top: 1.5rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
}

.section-title i {
    font-size: 0.9rem;
    color: #c8a882;
}

.team-description-content {
    background: rgba(248, 249, 250, 0.8);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(200, 168, 130, 0.1);
    text-align: right;
    direction: rtl;
}

.team-description-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
    font-family: 'Cairo', sans-serif;
}

/* ذيل النافذة */
.team-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-modal-close {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn-modal-close:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* علامات الحالة */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.status-badge.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.status-badge.featured {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: #ffa500;
    border-color: rgba(255, 215, 0, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

.status-badge i {
    font-size: 0.7rem;
}

/* حالات الفريق */
.team-status-active {
    color: #28a745 !important;
}

.team-status-featured {
    color: #ffa500 !important;
}

/* Scrollbar مخصص */
.team-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 168, 130, 0.3) transparent;
}

.team-modal-body::-webkit-scrollbar {
    width: 6px;
}

.team-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.team-modal-body::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 130, 0.3);
    border-radius: 3px;
}

.team-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 130, 0.5);
}

/* Responsive Design للنافذة */
@media (max-width: 768px) {
    .team-modal-content {
        width: 95%;
        max-width: 380px;
    }
    
    .team-modal-header {
        padding: 1.2rem;
    }
    
    .team-modal-logo {
        width: 50px;
        height: 50px;
    }
    
    .team-modal-title {
        font-size: 1.1rem;
    }
    
    .team-modal-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .team-modal-body {
        padding: 1.2rem;
        max-height: 50vh;
    }
    
    .team-info-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .team-info-card {
        padding: 0.8rem;
    }
    
    .info-card-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .team-modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .team-modal-content {
        width: 98%;
        max-width: 340px;
        max-height: 85vh;
    }
    
    .team-modal-header {
        padding: 1rem;
    }
    
    .team-modal-logo {
        width: 45px;
        height: 45px;
    }
    
    .team-modal-title {
        font-size: 1rem;
    }
    
    .team-modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .team-modal-body {
        padding: 1rem;
        max-height: 45vh;
    }
    
    .team-info-card {
        padding: 0.7rem;
        gap: 0.6rem;
    }
    
    .info-card-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .info-card-value {
        font-size: 0.9rem;
    }
    
    .team-modal-footer {
        padding: 0.8rem;
        flex-direction: column;
    }
    
    .btn-modal-close {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* تحسينات الـ Badge */
.badge {
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #2c3e50 !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
        gap: 1.05rem;
    }
    
    .project-card {
        height: auto;
        min-height: 227px;
    }
    
    .project-cover {
        height: 126px;
    }
    
    .project-footer {
        padding: 0.756rem;
    }
    
    .project-title {
        font-size: 0.756rem;
    }
    
    .project-meta {
        gap: 4.2px;
    }
    
    .project-date,
    .project-category-info {
        font-size: 0.504rem;
    }
}

@media (max-width: 768px) {
    .our-work-hero {
        padding: 1rem 0;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }

    .filter-buttons {
        gap: 0.39rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.325rem 0.65rem;
        font-size: 0.55rem;
        border-radius: 16px;
    }

    .filter-btn i {
        font-size: 0.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .project-card {
        height: 280px;
        min-height: 280px;
    }

    .project-image {
        height: 120px;
    }

    .project-content {
        padding: 0.8rem;
        min-height: 140px;
    }

    .featured-badge {
        padding: 4px 6px;
        font-size: 0.55rem;
        top: 6px;
        right: 6px;
    }

    .featured-badge i {
        font-size: 0.5rem;
    }

    .agency-stats.compact-stats {
        gap: 1rem;
        max-width: 350px;
    }

    .agency-stats.compact-stats .stat-item {
        padding: 0.6rem 1rem;
        gap: 0.6rem;
    }

    .agency-stats.compact-stats .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .agency-stats.compact-stats .stat-number {
        font-size: 1.2rem;
    }

    .agency-stats.compact-stats .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .our-work-hero {
        padding: 0.8rem 0;
    }

    .main-content {
        padding: 1.2rem 0;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .page-subtitle {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        height: 280px;
        min-height: 280px;
    }

    .project-image {
        height: 120px;
    }

    .project-content {
        padding: 0.8rem;
        min-height: 140px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .agency-stats.compact-stats {
        gap: 0.8rem;
        max-width: 300px;
        flex-direction: column;
    }

    .agency-stats.compact-stats .stat-item {
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
        min-width: 140px;
    }

    .agency-stats.compact-stats .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .agency-stats.compact-stats .stat-number {
        font-size: 1rem;
    }

    .agency-stats.compact-stats .stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    .our-work-hero {
        padding: 0.6rem 0;
    }

    .main-content {
        padding: 1rem 0;
    }

    .page-title {
        font-size: 1rem;
    }

    .page-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .featured-badge {
        padding: 3px 6px;
        font-size: 0.5rem;
        top: 6px;
        right: 6px;
        border-radius: 8px;
        gap: 2px;
    }

    .featured-badge i {
        font-size: 0.45rem;
    }

    .featured-badge span {
        font-size: 0.5rem;
    }
}

/* Updated: تحديث النافذة المنبثقة للمشاريع - 2024-01-01 */
