:root {
    --primary: #6a1b9a;
    --secondary: #ba68c8;
    --bg-body: #ffffff;
    --bg-card: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #f5f5f5;
    --text-muted: #b2bec3;
    --primary: #bb86fc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Tajawal', sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.7; transition: var(--transition); text-align: right; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Hero */
.header { background: var(--bg-body); padding: 15px 0; box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo-img {width: 68;}
.logo { line-height: 0; }
.nav-menu ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 600; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }

.theme-btn {
    background: var(--bg-card); border: 1px solid rgba(0,0,0,0.1);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.hero-section { padding: 50px 0; background: linear-gradient(135deg, #1e1e2f 0%, #0a0a0f 100%); color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 3.2rem; margin-bottom: 20px; }
.log-img {width: 200px; margin-right: -39px;}
.highlight { color: var(--secondary); }
.app-links {margin-top: 20px; display: flex; gap: 15px; }
.app-btn {display: flex; align-items: center; gap: 3px; padding: 12px 25px; border-radius: 10px; color: white; text-decoration: none; font-weight: bold; background: #00b894; }
.app-btn.app-store {background: #000000; gap: 8px;}
.fa-apple:before { content: "\f179"; font-size: 18px;}
.hero-image {display: flex; justify-content: center;}
.mockup-img {transform: rotate(-7deg); width: 250px;}

.menu-icon { display: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

@media (max-width: 768px) {
    .header {padding: 10px 0;}
    .hero-image {display: none;}
    .menu-icon { display: block; }
    .app-links {justify-content: center;}
    .nav-menu {
        position: fixed; top: 75px; right: -100%;
        width: 260px; height: 100vh; background: var(--bg-card);
        padding: 40px 20px; transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active-menu { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; }
}

/* Stats */
.stats-section { padding: 60px 0; background: var(--primary); color: white; text-align: center; }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; }
.stat-item h2 { font-size: 3rem; }

/* About & Team Message */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.goals-list { list-style: none; margin-top: 20px; }
.goals-list li { margin-bottom: 15px; }
.goals-list i { color: var(--primary); margin-left: 10px; }

/* تنسيق كرت كلمة الفريق الجديد */
.quote-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-right: 6px solid var(--primary);
}
.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
}
.team-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.9;
    position: relative;
    z-index: 1;
}
.team-signature {
    margin-top: 25px;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: left;
}

/* Steps */
.steps-section {
    padding: 80px 0;
    background-color: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.step-card {
    background: var(--bg-body);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 27, 154, 0.2);
}

/* تنسيق الأيقونات */
.step-icon-wrap {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon-wrap {
    transform: rotate(15deg) scale(1.1);
}

/* الكلام المخفي */
.extra-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 15px;
    line-height: 1.6;
}

.extra-content p {
    font-size: 14px;
}

/* الحالة عند تفعيل الكرت بالضغط */
.step-card.is-active {
    background: var(--primary);
    color: white;
}

.step-card.is-active .extra-content {
    max-height: 300px;
    opacity: 1;
    color: white;
}

.step-card.is-active .short-desc {
    display: none;
}

.step-card.is-active .step-icon-wrap {
    background: white;
    color: var(--primary);
}

/* Animation Classes */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.footer { padding: 40px 0; text-align: center; border-top: 1px solid rgba(0,0,0,0.1); }
.socials { margin-top: 15px; font-size: 1.5rem; }
.socials a { color: var(--primary); margin: 0 10px; }

@media (max-width: 768px) {
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
}

.footerNav a {
     text-decoration: none; color: var(--text-main); font-weight: 600; transition: 0.3s; }
.footerNav ul {list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 150px)); gap: 20px; align-items: center; justify-content: center; margin-bottom: 15px;}
.footerNav a:hover { color: var(--primary); }


/* تنسيقات صفحة الخصوصية */
.privacy-hero {
    padding: 120px 0 60px; /* لتقليل ارتفاع الهيرو عن الصفحة الرئيسية */
    text-align: center;
}

.privacy-content-section {
    padding: 60px 0;
    background-color: var(--bg-card);
}

.policy-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.policy-card {
    background: var(--bg-body);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-right: 5px solid var(--primary);
}

.policy-card h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-card p, .policy-card li {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.policy-card ul {
    margin-right: 25px;
    list-style-type: square;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    text-align: center;
}

.contact-card h2, .contact-card p, .contact-card .email-link {
    color: white;
}

.email-link {
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: underline;
}

/* تنسيقات صفحة الأسئلة الشائعة */
.faq-hero {
    padding: 100px 0 50px;
    text-align: center;
}

.faq-wrapper {
    max-width: 850px;
    margin: 0 auto 70px;
}

.faq-item {
    background: var(--bg-body);
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--bg-body);
}

.faq-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary);
}

.faq-header i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-section {
    padding: 60px 0 0;
}

.faq-content {
    font-size: 1.15rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-card);
}

.faq-content p {
    padding: 10px 28px;
    margin: 0;
    color: var(--text-main);
    line-height: 1.8;
}

/* حالة الفتح (Active State) */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(106, 27, 154, 0.1);
}

.faq-item.active .faq-content {
    max-height: 300px; /* القيمة التي تسمح بظهور النص */
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}