@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    /* ألوان أكثر فخامة وعمقاً */
    --bg-dark: #08080A; /* أسود أونيكس */
    --gold: #C6A87C; /* ذهبي شامباني ناعم */
    --gold-glow: rgba(198, 168, 124, 0.4);
    --text-light: #F4F4F6;
    --text-muted: #A0A0A5;
    
    /* زجاج محسّن */
    --glass-bg: rgba(18, 18, 22, 0.5);
    --glass-border: rgba(198, 168, 124, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
    transition: all 0.3s ease;
}

/* تبديل الخط للغة الإنجليزية */
html[lang="en"] body { font-family: 'Playfair Display', serif; }
html[lang="en"] .badge, html[lang="en"] .btn-primary { font-family: sans-serif; letter-spacing: 1px; }

/* التحميل */
#loader {
    position: fixed; inset: 0; background: var(--bg-dark); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader-brand { font-size: 2.5rem; font-weight: 700; letter-spacing: 0.8rem; color: var(--gold); margin-bottom: 2rem; }
.progress-container { width: 300px; height: 1px; background: rgba(255,255,255,0.1); }
#progress-bar { width: 0%; height: 100%; background: var(--gold); transition: width 0.1s; box-shadow: 0 0 10px var(--gold-glow); }
#loading-text { margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); }

/* الثري دي */
#canvas-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
canvas { display: block; outline: none; }

/* شريط التنقل */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%;
    background: linear-gradient(to bottom, rgba(8,8,10,0.9), transparent);
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; }
.gold { color: var(--gold); }
.nav-menu { display: flex; gap: 2.5rem; }
.nav-menu a { color: var(--text-light); text-decoration: none; opacity: 0.6; transition: 0.3s; font-size: 1.1rem; }
.nav-menu a:hover, .nav-menu a.active { opacity: 1; color: var(--gold); }

/* الأزرار التفاعلية */
.header-actions { display: flex; gap: 1.5rem; align-items: center; }
.ghost-btn { background: none; border: 1px solid transparent; color: var(--text-light); font-weight: bold; cursor: pointer; transition: 0.3s; padding: 5px 10px; border-radius: 4px;}
.ghost-btn:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary {
    background: var(--gold); color: #000; border: none; padding: 0.8rem 2.5rem;
    font-family: inherit; font-weight: 700; cursor: pointer; border-radius: 30px;
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px var(--gold-glow); background: #d8bc92; }

/* المحتوى */
.main-content { position: relative; z-index: 10; }
.panel { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 5%; position: relative; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; }

.hero-title { font-size: clamp(4rem, 10vw, 8rem); line-height: 1.1; font-weight: 700; margin-bottom: 1.5rem; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 500px; line-height: 1.8; }

.scroll-indicator { position: absolute; bottom: 4rem; display: flex; align-items: center; gap: 1rem; color: var(--text-muted); }
.scroll-indicator .line { width: 60px; height: 1px; background: var(--gold); }

/* البطاقات (CSS Logical Properties للغات) */
.align-end { display: flex; justify-content: flex-end; }
.align-start { display: flex; justify-content: flex-start; }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); padding: 3.5rem; border-radius: 16px;
    width: 100%; max-width: 550px; box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.badge { display: inline-block; padding: 0.4rem 1.2rem; border: 1px solid var(--gold); color: var(--gold); font-size: 0.85rem; border-radius: 50px; margin-bottom: 1.5rem; }
.badge.gold-bg { background: var(--gold); color: #000; }
.glass-card h2 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--text-light); }
.glass-card p { line-height: 1.9; color: var(--text-muted); font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.stat-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--gold); margin-bottom: 0.3rem; }
.stat-label { font-size: 0.95rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { margin-top: 4rem; }
    .glass-card { padding: 2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}