:root {
    /* الوضع الليلي (الافتراضي) - ألوان احترافية عميقة */
    --bg-main: #0f172a;
    --bg-sec: #1e293b;
    --text-main: #f8fafc;
    --text-sec: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    /* الوضع النهاري */
    --bg-main: #f8fafc;
    --bg-sec: #f1f5f9;
    --text-main: #0f172a;
    --text-sec: #475569;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--bg-sec);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.controls button {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    margin: 0 5px;
    padding: 8px;
    border-radius: 5px;
}

.controls button:hover {
    background-color: var(--border);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 30px;
}

/* Google Play Button */
.play-store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    gap: 15px;
    transition: transform 0.2s;
}

[data-theme="light"] .play-store-btn {
    background-color: #222;
}

.play-store-btn:hover {
    transform: translateY(-3px);
}

.play-store-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text .small-text {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.btn-text .large-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.app-mockup {
    font-size: 15rem;
    color: var(--primary);
    text-align: center;
    opacity: 0.8;
}

/* Services */
.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-sec);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-main);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--text-sec);
    font-size: 0.95rem;
}

/* App Details */
.app-desc-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.feature-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-sec);
}

/* Footer */
footer {
    background-color: var(--bg-sec);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.copyright {
    text-align: center;
    color: var(--text-sec);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* 404 & Privacy Specifics */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.text-center { text-align: center; }
.error-code { font-size: 8rem; color: var(--primary); line-height: 1; }
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
}
.privacy-content h3 { margin-top: 30px; color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
}