/* --- 1. Variables & Reset (Bold & Royal Theme) --- */
:root {
    /* الألوان الخلفية */
    --bg-body: #ffffff;       
    --bg-alt: #f1f5f9;        /* رمادي فاتح مائل للأزرق */
    --bg-dark: #0f172a;       /* كحلي غامق جداً (للأقسام البارزة) */
    
    /* الألوان الأساسية */
    --primary: #020617;       /* أسود كحلي للعناوين */
    --text-light: #f8fafc;    /* أبيض للنصوص على الخلفيات الداكنة */
    
    /* اللون الذهبي البارز (تدرج) */
    --accent-gold: #d97706;   
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    
    /* ألوان النصوص */
    --text-main: #334155;     
    --text-muted: #64748b;    
    
    --font-en: 'Plus Jakarta Sans', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-lg: 20px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Arabic RTL Support */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { font-family: var(--font-ar); }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-en);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- 2. Utilities --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-alt { background-color: var(--bg-alt); }
/* قسم داكن جديد للإبراز */
.bg-dark-section { background-color: var(--bg-dark); color: var(--text-light); }

.icon-svg { width: 32px; height: 32px; color: var(--accent-gold); }

.reveal, .reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active, .reveal-text.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* --- 3. Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent-gold); /* خط ذهبي أسفل الهيدر */
    padding: 15px 0;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.my-custom-logo { height: 55px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

.logo-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 900; color: var(--primary); font-size: 20px; letter-spacing: -0.5px; }
.brand-sub { font-size: 11px; color: var(--accent-gold); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;}

.nav-menu { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-link { 
    color: var(--primary); 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: 700; 
    transition: 0.3s; 
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }
/* خط تحت الرابط عند التحويم */
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--gold-gradient); transition: 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.lang-btn {
    background: #fff;
    border: 2px solid var(--border-color);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-family: inherit; font-weight: 700;
    transition: 0.3s;
}
.lang-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.lang-icon { width: 18px; height: 18px; }

/* --- 4. Hero Section (Bolder) --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px;
    /* صورة خلفية أوضح */
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--bg-dark); /* شارة داكنة */
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid var(--accent-gold);
}

.hero-title {
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary);
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-title span.highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-desc {
    font-size: 20px;
    color: var(--text-main);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; }

.btn-primary {
    padding: 18px 40px;
    background: var(--gold-gradient); /* زر بتدرج ذهبي */
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.3);
    border: none;
}
.btn-primary:hover { 
    background: var(--gold-gradient-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    padding: 18px 40px;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* --- 5. About / Vision --- */
.bento-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.section-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 800;
    display: block;
    margin-bottom: 15px;
}
.section-title { font-size: 46px; font-weight: 800; color: var(--primary); margin-bottom: 20px; line-height: 1.2; }
.bg-dark-section .section-title { color: #fff; } /* عناوين بيضاء في الأقسام الداكنة */

.section-text { color: var(--text-muted); margin-bottom: 40px; font-size: 17px; }
.bg-dark-section .section-text { color: #cbd5e1; }

.stats-row { display: flex; gap: 50px; border-top: 2px solid var(--border-color); padding-top: 30px; }
.stat-item h3 { font-size: 36px; font-weight: 900; color: var(--accent-gold); margin-bottom: 5px; }
.stat-item p { font-size: 14px; color: var(--text-main); font-weight: 700; text-transform: uppercase;}

.glass-card-vision {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
/* شريط ذهبي جانبي للكارت */
.glass-card-vision::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 6px; background: var(--gold-gradient);
}
html[lang="ar"] .glass-card-vision::before { left: auto; right: 0; }

.vision-icon .icon-svg { width: 56px; height: 56px; margin-bottom: 24px; color: var(--accent-gold); }

/* --- 6. Products Grid (Pop Effect) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold); /* إطار ذهبي عند التحويم */
}
.product-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--gold-gradient); transform: scaleX(0); transition: 0.4s;
}
.product-card:hover::after { transform: scaleX(1); }

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f8fafc;
}
.product-info { padding: 30px; }
.product-info h3 { color: var(--primary); font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.product-info p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* --- 7. Services (Dark Theme for Contrast) --- */
/* تم نقل التنسيقات الخاصة بالخلفية الداكنة إلى كلاس .bg-dark-section */
.section-header { text-align: center; margin-bottom: 70px; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.bento-item {
    background: rgba(255, 255, 255, 0.05); /* خلفية شفافة في القسم الداكن */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
/* إذا كان القسم فاتحًا */
section:not(.bg-dark-section) .bento-item {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.bento-item:hover { 
    transform: translateY(-8px); 
    border-color: var(--accent-gold); 
    background: rgba(255,255,255,0.08);
}
section:not(.bg-dark-section) .bento-item:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.bento-large { grid-column: span 2; }

.card-icon-box {
    width: 70px; height: 70px;
    background: var(--gold-gradient);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    color: #fff; /* أيقونة بيضاء على خلفية ذهبية */
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}
.icon-svg { color: currentColor; } 

.bento-item h3 { font-size: 24px; margin-bottom: 15px; font-weight: 700; color: #fff; }
section:not(.bg-dark-section) .bento-item h3 { color: var(--primary); }

.bento-item p { color: #cbd5e1; font-size: 16px; line-height: 1.7; }
section:not(.bg-dark-section) .bento-item p { color: var(--text-muted); }

/* --- 8. Payment Section --- */
.payment-card {
    background: #fff;
    border: 2px solid #eab308; /* إطار أصفر ذهبي واضح */
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(234, 179, 8, 0.15); /* ظل ذهبي */
    position: relative;
    overflow: hidden;
}
.payment-card::after {
    content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px;
    background: var(--gold-gradient); opacity: 0.1; border-radius: 50%; blur: 50px;
}

.pay-icon-wrapper {
    width: 80px; height: 80px;
    background: #fffbeb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border: 2px solid var(--accent-gold);
}
.pay-text h2 { color: var(--primary); margin-bottom: 10px; font-weight: 900; font-size: 32px; }
.btn-ziina {
    background: var(--primary);
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex; align-items: center; gap: 12px;
    transition: 0.3s;
    font-size: 18px;
}
.btn-ziina:hover { background: var(--accent-gold); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.card-icons { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end;}
.c-icon { font-size: 11px; font-weight: 800; color: var(--primary); background: #e2e8f0; padding: 6px 12px; border-radius: 6px; }

/* --- 9. Contact & Footer (Dark Footer) --- */
.contact-bg { background: #fff; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }

.cd-item { 
    display: flex; gap: 20px; margin-bottom: 30px; 
    padding: 20px; border-radius: 12px; transition: 0.3s;
}
.cd-item:hover { background: #f8fafc; transform: translateX(10px); }
html[lang="ar"] .cd-item:hover { transform: translateX(-10px); }

.cd-icon { 
    width: 60px; height: 60px; 
    background: var(--primary); 
    border-radius: 50%; 
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center; 
    color: #fff; 
}

.contact-form-box { 
    background: #fff; padding: 50px; border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent-gold);
}
.input-group label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--primary); font-size: 14px; text-transform: uppercase;}
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 16px;
    background: #f8fafc; border: 2px solid #e2e8f0;
    border-radius: 10px; color: var(--primary); font-family: inherit; font-weight: 600;
    transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus { 
    outline: none; border-color: var(--accent-gold); background: #fff; 
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}
.btn-submit { 
    width: 100%; padding: 18px; background: var(--primary); color: #fff; 
    border: none; border-radius: 10px; font-weight: 800; cursor: pointer; transition: 0.3s; 
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover { background: var(--accent-gold); }

/* Footer Dark */
.footer { 
    border-top: none; 
    padding: 80px 0 40px; 
    background: var(--bg-dark); /* خلفية داكنة */
    color: #fff;
}
.footer h3 { color: #fff !important; }
.footer p { color: #94a3b8; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; margin-bottom: 40px;}
.footer-links a { color: #cbd5e1; text-decoration: none; margin-left: 30px; font-weight: 600; transition: 0.3s;}
.footer-links a:hover { color: var(--accent-gold); }
.footer-copy { text-align: center; color: #64748b; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }

/* Loader */
.loader { position: fixed; inset: 0; background: #fff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: 0.5s; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-spinner { width: 60px; height: 60px; border: 4px solid #e2e8f0; border-top-color: var(--accent-gold); border-radius: 50%; animation: spin 0.8s infinite linear; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Mobile */
@media (max-width: 992px) {
    .bento-split, .contact-wrapper { grid-template-columns: 1fr; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .hero-title { font-size: 42px; }
    .payment-card { flex-direction: column; text-align: center; gap: 30px; }
    .card-icons { justify-content: center; }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 78px; left: 0; width: 100%; background: #fff;
        flex-direction: column; padding: 40px; border-top: 1px solid var(--border-color);
        transform: translateY(-150%); transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-menu.active { transform: translateY(0); }
    .menu-toggle { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
    .menu-toggle span { width: 30px; height: 3px; background: var(--primary); border-radius: 3px; }
    .btn-nav { display: none; }
}