/* تنسيقات خاصة بالصفحات */

/* الفونت الأساسي للموقع */
body {
    font-family: 'Tajawal', sans-serif;
}

body[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

/* صفحة من نحن */
.about-content {
    position: relative;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,86,179,0.1));
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,123,255,0.4);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.experience-badge h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0,123,255,0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(0,123,255,0.1);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-left: 1rem;
}

/* بطاقات الرؤية والرسالة */
.vision-card, .mission-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-10px);
}

.vision-card::before, .mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 25px rgba(0,123,255,0.3);
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

/* إحصائيات */
.statistics {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007bff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23007bff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23007bff" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="%23007bff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.stat-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.counter {
    font-size: 3rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 0.5rem;
}

/* فريق العمل */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.9), rgba(0,86,179,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: #007bff;
    transform: translateY(-3px);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-position {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-description {
    color: #666;
    font-size: 0.9rem;
}

/* صفحة الخدمات */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,123,255,0.4);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-content h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #0056b3;
    transform: translateX(5px);
}

/* خطوات العمل */
.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(0,123,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: rgba(0,123,255,0.2);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 1.8rem;
    color: #007bff;
}

.process-step h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* بطاقات المواد */
.material-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.material-image {
    height: 200px;
    overflow: hidden;
}

.material-content {
    padding: 2rem;
    text-align: center;
}

.material-content h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.material-content p {
    color: #666;
    line-height: 1.6;
}

/* صفحة المشاريع */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,123,255,0.3));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: white;
    color: #007bff;
    transform: scale(1.1);
}

.project-info {
    text-align: center;
}

.project-type {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.project-info h5 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.project-content {
    padding: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.project-content h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-budget {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .experience-badge {
        position: static;
        margin-top: 2rem;
        transform: none;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .stat-item,
    .service-card,
    .process-step,
    .material-card,
    .project-card {
        margin-bottom: 2rem;
    }
}

/* تأثيرات إضافية */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* تأثير التحميل */
.loading-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading-animation.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين الطباعة */
@media print {
    .whatsapp-float,
    .social-links,
    .project-actions,
    .filter-buttons {
        display: none !important;
    }
    
    .project-card,
    .service-card,
    .team-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}