/* ---- الأنماط العامة وإعدادات الخطوط ---- */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700&family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #6f42c1;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --subtle-color: #666;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Almarai', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease-in-out;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
p { font-size: 1.1rem; }

/* ---- الهيدر (العنصر الثابت) ---- */
.main-header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.lang-switch {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease-in-out;
}

.lang-switch:hover {
    background-color: var(--text-color);
    color: white;
}

/* ---- قسم البطل (Hero Section) ---- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* ليتجنب الهيدر الثابت */
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all var(--transition-speed) ease-in-out;
}

.cta-button:hover {
    background-color: var(--text-color);
    color: white;
    transform: translateY(-5px);
}

/* ---- أقسام المحتوى ---- */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease-in-out;
}

.service-item:hover {
    transform: translateY(-10px);
}

/* ---- الفوتر (Footer) ---- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #222;
    color: white;
    font-size: 0.9rem;
}

/* ---- التجاوب مع شاشات الجوال ---- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ---- الأنماط الخاصة بالفيديو في قسم البطل ---- */
.hero-section {
    position: relative; /* مهم لتمكين الفيديو من التمدد بشكل صحيح */
    background: none; /* إزالة الخلفية المتدرجة التي كانت موجودة سابقًا */
    height: 100vh;
    overflow: hidden; /* لمنع ظهور أي أجزاء زائدة من الفيديو */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* لجعل الفيديو يظهر خلف المحتوى النصي */
    transform: translateX(-50%) translateY(-50%);
}

.hero-section .content {
    position: relative;
    z-index: 1;
    color: white; /* للتأكد من أن النص يظهر بوضوح فوق الفيديو */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* لإضافة ظل للنص لزيادة الوضوح */
}