/* ===== VARIABLES ===== */
:root {
    --primary: #1a9e6e;
    --primary-dark: #0d7a52;
    --primary-light: #22c58a;
    --gold: #f0a500;
    --gold-dark: #c88a00;
    --dark: #071b2e;
    --dark-2: #0a2744;
    --dark-3: #0d3a5f;
    --text: #e8f0fe;
    --text-muted: #8baabf;
    --white: #ffffff;
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-sm: 0 8px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font: 'Cairo', 'Tajawal', sans-serif;
}

[data-theme="light"] {
    --dark: #f8f9fa;
    --dark-2: #ffffff;
    --dark-3: #f0f2f5;
    --text: #2d3748;
    --text-muted: #718096;
    --white: #1a202c;
    --glass: rgba(255,255,255,0.9);
    --glass-border: rgba(0,0,0,0.08);
    --shadow: 0 20px 60px rgba(0,0,0,0.05);
    --shadow-sm: 0 8px 30px rgba(0,0,0,0.03);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: rgba(26,158,110,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(26,158,110,0.3);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}
.section-title span { color: var(--primary-light); }
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-size: 1rem; font-weight: 700; font-family: var(--font);
    transition: var(--transition); cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(26,158,110,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(26,158,110,0.5); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-3px); }
.btn-sm { padding: 10px 24px; font-size: 0.9rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== PRELOADER ===== */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { margin-bottom: 30px; }
.preloader-logo .logo-text {
    display: block; font-size: 2.5rem; font-weight: 900;
    color: var(--primary-light); line-height: 1;
}
.preloader-logo .logo-sub {
    display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 4px;
}
.preloader-bar {
    width: 200px; height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 3px; overflow: hidden;
}
.preloader-fill {
    height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 3px; animation: fillBar 2s ease forwards;
}
@keyframes fillBar { to { width: 100%; } }

/* ===== HEADER TOP ===== */
.header-top {
    background: var(--dark-2);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    font-size: 0.85rem;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-contact-info { display: flex; gap: 20px; }
.header-contact-info a { color: var(--text-muted); }
.header-contact-info a:hover { color: var(--primary-light); }
.header-social { display: flex; gap: 12px; }
.header-social a {
    color: var(--text-muted); font-weight: 700; font-size: 0.9rem;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--glass-border); border-radius: 6px;
}
.header-social a:hover { color: var(--primary-light); border-color: var(--primary); }

/* ===== MAIN NAV ===== */
.main-nav {
    background: rgba(7,27,46,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 100;
    transition: var(--transition);
}
.main-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

.site-logo .logo-link { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name { font-size: 1.3rem; font-weight: 900; color: var(--white); line-height: 1; }
.logo-tagline { font-size: 0.72rem; color: var(--text-muted); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu li a {
    display: block; padding: 8px 16px; color: var(--text-muted);
    font-weight: 600; border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.nav-menu li a:hover { color: var(--white); background: var(--glass); }

.nav-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white) !important;
    padding: 10px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(26,158,110,0.3);
    margin-right: 12px;
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,158,110,0.4); }

.nav-menu-wrap { display: flex; align-items: center; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 25px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at top right, rgba(26,158,110,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(13,122,82,0.1) 0%, transparent 60%),
                linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
    display: flex; align-items: center;
    padding: 120px 0 80px;
    position: relative; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.12;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -200px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--gold); bottom: -150px; left: -150px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: var(--primary-dark); top: 50%; left: 40%; animation: float 7s ease-in-out infinite 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

.hero-section .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 24px;
}
.badge-dot { width: 8px; height: 8px; background: var(--primary-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.title-main { display: block; color: var(--white); }
.title-sub {
    display: block;
    background: linear-gradient(135deg, var(--primary-light), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; max-width: 520px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-pills span {
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 8px 18px; border-radius: 50px; font-size: 0.88rem;
    color: var(--text-muted);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 900; color: var(--primary-light); }
.stat-plus { font-size: 1.5rem; font-weight: 900; color: var(--gold); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 50px; background: var(--glass-border); }

/* Hero Visual */
.hero-visual { flex: 0 0 420px; }
.hero-card-wrap { position: relative; }
.hero-chart {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 24px;
    backdrop-filter: blur(10px);
}
.hero-chart svg { width: 100%; }
.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm);
}
.hero-card.card-1 { top: -20px; right: -20px; }
.hero-card.card-2 { bottom: -20px; left: -20px; }
.card-icon { font-size: 1.8rem; }
.hero-card strong { display: block; color: var(--white); font-size: 0.9rem; }
.hero-card small { color: var(--text-muted); font-size: 0.78rem; }

.hero-scroll-hint {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    text-align: center; color: var(--text-muted); font-size: 0.8rem;
}
.scroll-arrow {
    width: 28px; height: 28px; border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg); margin: 0 auto 8px;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }
