/* تصميم احترافي لكروت الخدمات - متجاوب مع جميع الأجهزة */

.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Layout - متجاوب */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* تصميم الكارت الاحترافي */
.service-card-modern {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
    border-color: #3b82f6;
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

/* أيقونة الخدمة */
.service-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

/* عنوان الخدمة */
.service-title-modern {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* وصف الخدمة */
.service-description-modern {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* زر الإجراء */
.service-action-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.service-action-modern:hover {
    background: #1e40af;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.service-action-modern::after {
    content: '←';
    transition: transform 0.3s ease;
}

.service-action-modern:hover::after {
    transform: translateX(-4px);
}

/* شارة مميزة */
.service-badge-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.service-badge-modern.popular {
    background: #f59e0b;
}

.service-badge-modern.new {
    background: #8b5cf6;
}

/* تصميم متجاوب للهواتف */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-header h2 {
        font-size: 2rem;
    }
    
    .services-header p {
        font-size: 1rem;
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-modern {
        padding: 24px;
    }
    
    .service-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .service-title-modern {
        font-size: 1.1rem;
    }
    
    .service-description-modern {
        font-size: 0.9rem;
    }
}

/* تصميم متجاوب للأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* تصميم للشاشات الكبيرة */
@media (min-width: 1400px) {
    .services-grid-modern {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.service-card-modern:nth-child(1) { animation-delay: 0.1s; }
.service-card-modern:nth-child(2) { animation-delay: 0.2s; }
.service-card-modern:nth-child(3) { animation-delay: 0.3s; }
.service-card-modern:nth-child(4) { animation-delay: 0.4s; }
.service-card-modern:nth-child(5) { animation-delay: 0.5s; }
.service-card-modern:nth-child(6) { animation-delay: 0.6s; }

/* تحسينات للطباعة */
@media print {
    .service-card-modern {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}