﻿/* الألوان الأساسية: تم التغيير للأبيض والأسود والرمادي */
:root {
    --primary-color: #000000; /* أسود */
    --primary-light: #f8f9fa; /* رمادي فاتح للخلفيات */
    --text-color: #212529; /* لون النص الأساسي */
    --shadow-color-light: rgba(0, 0, 0, 0.08); /* ظل خفيف */
    --shadow-color-medium: rgba(0, 0, 0, 0.15); /* ظل متوسط */
}

/* تنسيق العناوين والمساحات */
.container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* فاصل أسود خفيف */
.divider-black {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

/* أقسام الموقع والشعار (Alternate Layout) */
.image-container-site img {
    /* لا حدود، فقط ظل خفيف */
    border: none;
    box-shadow: 0 4px 10px var(--shadow-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-height: 300px;
    width: 100%;
    object-fit: contain;
}

    .image-container-site img:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px var(--shadow-color-medium);
    }

/* حاوية الشعار في شكل دائرة */
.logo-circle-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .logo-circle-wrapper:hover {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.1) !important;
    }

/* الصورة نفسها داخل الدائرة */
.logo-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}


/* ******************************************* */
/* تصميم بطاقات المشاريع الديناميكية */
/* ******************************************* */

.work-card-dynamic {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .work-card-dynamic:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px var(--shadow-color-medium) !important;
    }

.work-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .work-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

/* تأثير التكبير عند التحويم على الصورة */
.work-card-dynamic:hover .work-img-wrapper img {
    transform: scale(1.1);
}

/* تأثير التغطية (Overlay) عند التحويم */
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.work-card-dynamic:hover .work-overlay {
    opacity: 1;
}

/* تنسيق النصوص داخل البطاقة */
.card-body {
    /* التعديل الجديد هنا لفرض التوسيط */
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط أفقي */
    text-align: center; /* احتياط للتوافق مع النصوص */
}

.card-title {
    font-size: 1.35rem;
    color: var(--text-color);
    /* إزالة text-align: center !important; والسماح للـ flex بتوليه الأمر */
}

.card-text {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center; /* التأكد من أن وصف المشروع يتوسط أيضا */
}

/* responsive adjustments */
@media (max-width: 767px) {
    .work-img-wrapper {
        height: 200px;
    }

    .display-1 {
        font-size: 3rem !important;
    }

    .work-description {
        text-align: center !important;
    }

    .row > div {
        text-align: center !important;
    }

    .logo-circle-wrapper {
        width: 150px;
        height: 150px;
    }

    .image-container-site img {
        max-height: 200px;
    }
}
