/* إعدادات الخطوط والألوان العامة */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* الهيدر */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

header .logo span {
    color: var(--primary);
}

header nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 700;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary);
}

/* القسم الرئيسي (Hero) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: radial-gradient(circle at 80% 20%, #1e1b4b 0%, var(--bg-color) 50%);
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.highlight {
    color: var(--primary);
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background-color: #25d366;
    margin-top: 20px;
}
.whatsapp-btn:hover {
    background-color: #20ba5a;
}

/* العناوين المشتركة */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* الأقسام العامة */
section {
    padding: 100px 8%;
}

/* الكروت للخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    color: var(--text-muted);
}

/* المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    padding: 30px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

/* الاتصال */
.contact {
    text-align: center;
    background-color: #0b0f19;
}

.contact-info {
    margin-top: 30px;
    font-size: 20px;
}

/* الفوتر */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-color);
    border-top: 1px solid #1e293b;
    color: var(--text-muted);
}

/* التجاوب مع الهواتف الصغير */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    header nav {
        margin-top: 15px;
    }
    header nav a {
        margin: 0 10px;
        font-size: 14px;
    }
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-text h2 {
        font-size: 22px;
    }
}
/* الـ Modal (الخلفية المظلمة) */
#modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}

/* المحتوى د الـ Modal */
.modal-content {
    position: relative;
    background: white;
    color: black;
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* زر الإغلاق */
.close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10000;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px; /* كبرناه باش يسهل الكليك */
    cursor: pointer;
    z-index: 99999; /* رقم كبير بزاااف باش يجي فوق كلشي */
    pointer-events: auto; /* باش المتصفح يعرف بلي هاد البلاصة ديال الكليك */
}