:root {
    --primary: #2D3ED2; /* Indigo Blue */
    --primary-dark: #1E2BB1;
    --primary-light: #E8EAF6;
    --secondary: #0D1B2A;
    --accent: #4CAF50; /* Success/Reading Green */
    --text-main: #1A1A1A;
    --text-muted: #5F6368;
    --bg-main: #FFFFFF;
    --bg-alt: #F8F9FA;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-md: 0 12px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* Arabic reading app */
}

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

/* Nav */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: 0.3s;
}

/* Hero */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 24px;
}

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

.badge-5000 {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(45, 62, 210, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(45, 62, 210, 0.3);
}

.hero-mockup img {
    width: 300px;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.15);
    border: 8px solid white;
}

/* Stats */
.stats {
    padding: 80px 0;
    background: var(--secondary);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h3 { font-size: 3rem; color: var(--primary); }

/* Features */
.features { padding: 100px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-10px); background: white; box-shadow: var(--shadow-md); }

/* Dev Profile */
.dev-section { padding: 100px 0; background: var(--bg-alt); }
.dev-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

/* Gallery */
.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 40px 0;
    scroll-snap-type: x mandatory;
}

.gallery-item {
    min-width: 250px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
}
