/* الألوان والمتغيرات */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --accent: #ffc107;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #6c757d;
    --bg-light: #f8fafc;
    --bg-dark: #0a2647;
    --bg-gradient: linear-gradient(135deg, #0a2647, #144272);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* الأساسيات */
body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* الهيدر */
.navbar {
    background: var(--bg-dark);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: var(--bg-dark);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* البانر الرئيسي */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 38, 71, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* المعرض */
.gallery-section {
    padding: 6rem 0;
}

.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* الخدمات */
.services {
    background: var(--bg-light);
    padding: 6rem 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* الشهادات */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-gradient);
    color: var(--text-light);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* نموذج الاتصال */
.contact-form {
    padding: 6rem 0;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--text-muted);
    border-radius: 0.5rem;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

/* التذييل */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .navbar {
        background: var(--bg-dark);
    }

    .hero {
        text-align: center;
    }

    .gallery-img {
        height: 250px;
    }
}

/* تحسينات اللغة */
.en { display: none; }
[lang="en"] .en { display: block; }
[lang="en"] .ar { display: none; }

/* تحسينات RTL/LTR */
[dir="ltr"] .me-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-3 { margin-right: 1rem !important; margin-left: 0 !important; }
[dir="ltr"] .ms-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="ltr"] .ms-auto { margin-left: auto !important; margin-right: 0 !important; }
