/* =========================================
   1. Variables & Global Reset
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* الهوية */
    --color-primary: #c9a961;       /* الذهبي */
    --color-secondary: #182C4C;     /* الكحلي */
    --color-accent: #d4af37;

    /* ✅ الخلفيات العامة: شفافة علشان الفيديو يبان */
    --color-background: transparent;

    /* ✅ الكروت: أسود في الوضعين */
    --color-surface: #141414;

    --color-text: #f2f2f2;
    --color-text-light: #c9c9c9;
    --color-border: rgba(255,255,255,0.10);
    --color-hover: #b8984e;

    --glass-bg: rgba(0, 0, 0, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.25);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.45);

    --transition-speed: 0.3s;
    --border-radius: 12px;
}

/* Dark Mode Variables (✅ نفس شكل الكروت والخلفيات) */
[data-theme="dark"] {
    --color-primary: #d4b876;
    --color-secondary: #0f1c30;
    --color-accent: #d4af37;

    /* ✅ نفس الفكرة: الفيديو يبان */
    --color-background: transparent;

    /* ✅ نفس لون الكروت */
    --color-surface: #141414;

    --color-text: #f2f2f2;
    --color-text-light: #c9c9c9;
    --color-border: rgba(255,255,255,0.10);
    --color-hover: #e0c585;

    --glass-bg: rgba(0, 0, 0, 0.55);
    --glass-border: rgba(255, 255, 255, 0.10);

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.35);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: transparent; /* ✅ الفيديو يبان */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.navbar {
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: all var(--transition-speed) ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo img { height: 50px; width: auto; }

.header-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.20);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--color-primary);
    color: #111;
    border-color: var(--color-primary);
}

.lang-btn {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after { width: 80%; }

.nav-menu li a:hover,
.nav-menu li a.active { color: var(--color-primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* =========================================
   3. Hero / Page Header
   ========================================= */
.hero {
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* الفيديو داخل الهيرو موجود (هنخليه Global تحت) */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(24, 44, 76, 0.55), rgba(0,0,0,0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    animation: slideUp 0.8s ease-out;
}

.hero h1 span { color: var(--color-primary); }

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideUp 1s ease-out;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1.5s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #111;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.35);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #111;
}

/* =========================================
   4. Sections (✅ خلي الخلفيات تختفي علشان الفيديو يبان)
   ========================================= */
.section {
    padding: 80px 0;
    background: transparent !important; /* ✅ */
}

/* العناوين فوق الفيديو */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff; /* ✅ واضح فوق الفيديو */
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

/* =========================================
   5. Cards (✅ أسود في الوضعين + زي ما هو)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-card,
.testimonial-card,
.team-card {
    background: var(--color-surface) !important; /* ✅ أسود */
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    color: var(--color-text);
}

.service-card {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201,169,97,0.35);
}

.icon-box {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(201, 169, 97, 0.10);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.service-card:hover .icon-box {
    background: var(--color-primary);
    color: #111;
    transform: rotateY(180deg);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fff;
}

.service-card p {
    color: rgba(255,255,255,0.70);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
    background: transparent !important; /* ✅ */
}

.testimonial-card p {
    color: rgba(255,255,255,0.80);
    opacity: 1;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(201, 169, 97, 0.25);
    position: absolute;
    top: 20px;
    left: 20px;
}
[dir="rtl"] .quote-icon { left: auto; right: 20px; }

/* Team */
.team-card {
    text-align: center;
    padding-bottom: 20px;
    transition: 0.3s;
}

.team-card:hover { transform: translateY(-10px); }

.team-img {
    height: 350px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: 0.5s;
}

.team-card:hover .team-img img { transform: scale(1.1); }

.team-info { padding: 20px; }

.team-info h3 {
    color: #fff;
    margin-bottom: 5px;
}

.team-info span {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* =========================================
   6. Forms (سيبناها Surface لكن لو عايزها كرت أسود زي الباقي قولّي)
   ========================================= */
.contact-form {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.form-group { margin-bottom: 20px; text-align: start; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: rgba(201,169,97,0.6);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

/* =========================================
   7. Modals
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show { display: flex; opacity: 1; }

.modal-content {
    background: #141414;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

.modal.show .modal-content { transform: translateY(0); }

.modal-header {
    background: rgba(0,0,0,0.35);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-header h2 { color: #fff; margin: 0; font-size: 1.5rem; }

.modal-close {
    background: rgba(255,255,255,0.10);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-primary);
    color: #111;
    transform: rotate(90deg);
}

.modal-body { padding: 40px; }

/* =========================================
   8. Footer (كما هو)
   ========================================= */
footer {
    background: #101820;
    color: #fff;
    padding: 70px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}
[dir="rtl"] .footer-col h3::after { left: auto; right: 0; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--color-primary); padding-inline-start: 10px; }

.contact-list li { display: flex; align-items: center; gap: 10px; color: #ccc; }
.contact-list i { color: var(--color-primary); }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #888;
    font-size: 0.9rem;
}
.copyright a { color: var(--color-primary); text-decoration: none; }

/* =========================================
   9. Floating WhatsApp
   ========================================= */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 10001;
    text-decoration: none;
    transition: 0.3s;
    animation: pulse 2s infinite;
}
.float-whatsapp:hover { transform: scale(1.1); }
[dir="rtl"] .float-whatsapp { right: auto; left: 30px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in-up { animation: slideUp 0.8s ease-out forwards; }

/* =========================================
   10. Responsive
   ========================================= */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0,0,0,0.85);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255,255,255,0.10);
        z-index: 10000;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
}

@media (max-width: 576px) {
    .header-tools { gap: 10px; }
    .icon-btn { width: 35px; height: 35px; }
    .lang-btn { padding: 0 10px; font-size: 12px; }
    .hero { height: 70vh; }
    .modal-content { max-width: 95%; }
}

/* ==========================================================
   ✅ GLOBAL VIDEO BACKGROUND (video visible behind everything)
   ========================================================== */
.hero-video {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    z-index: -100 !important;
    pointer-events: none !important;
}

/* Overlay خفيف جدًا بس علشان القراءة */
.hero-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -99 !important;
    pointer-events: none !important;
    background: rgba(0,0,0,0.25) !important;
}
