/* ========================================
   دار الذكاء الاصطناعي - ملف التنسيقات
   ======================================== */

/* المتغيرات */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #6366f1;
    --accent: #818cf8;
    --bg-dark: #0a0f1e;
    --bg-darker: #060b16;
    --bg-card: #0f1a2e;
    --bg-card-hover: #162236;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e2d45;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    --shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.1);
    --shadow-md: 0 4px 20px rgba(14, 165, 233, 0.15);
    --shadow-lg: 0 8px 40px rgba(14, 165, 233, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

/* إعادة التعيين */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* الحاوية */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* رأس ترويسة القسم */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ======== شريط التنقل ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.logo-img {
    height: 160px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-toggle {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    margin-inline-start: 8px;
}

.lang-toggle:hover {
    background: var(--primary);
    color: #fff;
}

/* ======== القسم الرئيسي (Hero) ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero > .container {
    position: relative;
    z-index: 10;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-cover-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('cover.png') center center / cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 10, 25, 0.60);
    z-index: 2;
}

.grid-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #0ea5e9;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: 20%;
    left: 10%;
    animation-delay: -2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #38bdf8;
    top: 50%;
    left: 50%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(-20px, -10px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 1.6rem;
    color: #e0f2fe;
    margin-bottom: 6px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero .subtitle-univ {
    font-size: 1.15rem;
    color: #bae6fd;
    margin-bottom: 20px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero .description {
    font-size: 1.3rem;
    color: #e0f2fe;
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 12px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-pillars {
    font-size: 1.05rem;
    color: #7dd3fc;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.25s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== قسم عن الدار ======== */
.about {
    padding: 120px 0;
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--success);
    font-size: 1.2rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-brain {
    width: 300px;
    height: 300px;
}

.brain-svg {
    width: 100%;
    height: 100%;
}

.brain-circle {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.neural-nodes circle {
    animation: pulse 2s ease-in-out infinite;
}

.neural-nodes circle:nth-child(2) { animation-delay: 0.2s; }
.neural-nodes circle:nth-child(3) { animation-delay: 0.4s; }
.neural-nodes circle:nth-child(4) { animation-delay: 0.6s; }
.neural-nodes circle:nth-child(5) { animation-delay: 0.8s; }
.neural-nodes circle:nth-child(6) { animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ======== قسم الأهداف ======== */
.goals {
    padding: 120px 0;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.goal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.goal-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.goal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.goal-icon i {
    font-size: 2rem;
    color: white;
}

.goal-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.goal-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ======== قسم الفضاءات ======== */
.spaces {
    padding: 120px 0;
    background: var(--bg-darker);
}

.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.space-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.space-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.space-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.space-content {
    padding: 30px;
}

.space-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.space-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.space-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.space-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.space-features li i {
    color: var(--success);
}

/* ======== قسم النشاطات ======== */
.activities {
    padding: 120px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.activity-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.activity-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.activity-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.activity-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.activity-frequency {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ======== خارطة الطريق ======== */
.roadmap {
    padding: 120px 0;
    background: var(--bg-darker);
    overflow: hidden;
}

.roadmap-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 0;
}

/* خط عمودي متوهج في المنتصف */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--primary) 8%,
        var(--primary) 92%,
        transparent 100%);
    filter: drop-shadow(0 0 8px var(--primary));
}

/* شبكة ثلاثة أعمدة: بطاقة | نقطة | بطاقة */
.roadmap-item {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    column-gap: 0;
    align-items: start;
    margin-bottom: 70px;
    position: relative;
}

/* نقطة المسار في العمود الأوسط */
.roadmap-node {
    grid-column: 2;
    grid-row: 1;
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 8px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--bg-darker);
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s,
                opacity 0.3s ease 0.3s,
                box-shadow 0.4s ease 0.3s;
}

.roadmap-node::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s;
}

.roadmap-item.road-visible .roadmap-node {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 6px var(--bg-darker), 0 0 24px rgba(14, 165, 233, 0.4);
}

.roadmap-item.road-visible .roadmap-node::after {
    opacity: 0.5;
    transform: scale(1);
}

/* البطاقات — عناصر فردية: العمود الأول (يمين في RTL) */
.roadmap-item:nth-child(odd) .roadmap-content {
    grid-column: 1;
    grid-row: 1;
    margin-left: 20px;
    opacity: 0;
    transform: translateX(70px);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease,
                border-color 0.4s, box-shadow 0.4s;
}

/* البطاقات — عناصر زوجية: العمود الثالث (يسار في RTL) */
.roadmap-item:nth-child(even) .roadmap-content {
    grid-column: 3;
    grid-row: 1;
    margin-right: 20px;
    opacity: 0;
    transform: translateX(-70px);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s ease,
                border-color 0.4s, box-shadow 0.4s;
}

.roadmap-item.road-visible .roadmap-content {
    opacity: 1;
    transform: translateX(0);
}

.roadmap-content {
    background: var(--bg-card);
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    position: relative;
}

.roadmap-item.road-visible .roadmap-content {
    border-color: rgba(14, 165, 233, 0.35);
    border-top-color: var(--primary);
    box-shadow: 0 8px 40px rgba(14, 165, 233, 0.08);
}

/* سهم يشير نحو المنتصف — عناصر فردية (بطاقة يمين → سهم يسار) */
.roadmap-item:nth-child(odd) .roadmap-content::after {
    content: '';
    position: absolute;
    top: 22px;
    left: -10px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--bg-card);
}

/* سهم يشير نحو المنتصف — عناصر زوجية (بطاقة يسار → سهم يمين) */
.roadmap-item:nth-child(even) .roadmap-content::after {
    content: '';
    position: absolute;
    top: 22px;
    right: -10px;
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--bg-card);
}

.roadmap-step {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.roadmap-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.roadmap-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.roadmap-content .duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ======== قسم الفريق ======== */
.team {
    padding: 120px 0;
    background: var(--bg-darker);
}

.team-invite {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(99,102,241,0.08));
    border: 1px solid rgba(14,165,233,0.25);
    border-radius: var(--radius-lg);
    max-width: 680px;
    position: relative;
    overflow: hidden;
}

.team-invite::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,0.06), transparent);
    animation: shimmer-t 3s ease-in-out infinite;
}

@keyframes shimmer-t {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.team-invite i {
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.team-invite p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-align: start;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-avatar i {
    font-size: 2.5rem;
    color: white;
}

.team-avatar.female {
    background: linear-gradient(145deg, #fb7185 0%, #f472b6 40%, #a855f7 100%);
    border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
    box-shadow:
        0 0 0 5px var(--bg-card),
        0 0 0 9px rgba(244, 114, 182, 0.45),
        0 14px 35px rgba(168, 85, 247, 0.35);
    overflow: visible;
    position: relative;
}

.team-avatar.female::after {
    content: '✿';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.15rem;
    color: #fda4af;
    text-shadow: 0 0 10px #ec4899, 0 0 20px #a855f7;
    animation: bloom-f 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes bloom-f {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
    50%       { transform: translateX(-50%) scale(1.25) rotate(20deg); opacity: 0.65; }
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: white;
}

/* ======== الأسئلة الشائعة ======== */
.faq {
    padding: 120px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ======== حسابات التواصل ======== */
.social {
    padding: 120px 0;
    background: var(--bg-darker);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.social-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
}

.social-card:hover {
    transform: translateY(-5px);
}

.social-card i {
    font-size: 3rem;
    margin-bottom: 16px;
}

.social-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.social-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.social-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-card.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}
.social-card.facebook i { color: #1877f2; }

.social-card.instagram:hover {
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
}
.social-card.instagram i { color: #e4405f; }

.social-card.linkedin:hover {
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}
.social-card.linkedin i { color: #0077b5; }

.social-card.youtube:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}
.social-card.youtube i { color: #ff0000; }

.social-card.telegram:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}
.social-card.telegram i { color: #0088cc; }

.social-card.github:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.social-card.github i { color: #fff; }

/* ======== الشركاء ======== */
.partners {
    padding: 120px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.partner-card i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.partner-card span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ======== قسم التسجيل ======== */
.join {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.join-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.join h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.join p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.join-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.join-form input,
.join-form select {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
}

.join-form input::placeholder {
    color: var(--text-muted);
}

.join-form select {
    cursor: pointer;
}

.join-form .btn {
    background: var(--bg-dark);
    color: white;
    margin-top: 10px;
}

.join-form .btn:hover {
    background: var(--bg-darker);
}

/* ======== قسم التواصل ======== */
.contact {
    padding: 120px 0;
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-darker);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* ======== الفوتر ======== */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ======== التجاوب ======== */
@media (max-width: 1024px) {
    .goals-grid,
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 100px 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .navbar .btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .goals-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .spaces-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roadmap-timeline::before {
        left: 30px;
        transform: none;
    }

    .roadmap-item {
        grid-template-columns: 60px 1fr;
        column-gap: 16px;
    }

    .roadmap-node {
        grid-column: 1;
        grid-row: 1;
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
        margin: 6px 0 0;
    }

    .roadmap-item:nth-child(odd) .roadmap-content,
    .roadmap-item:nth-child(even) .roadmap-content {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        transform: translateX(40px);
    }

    .roadmap-item:nth-child(odd) .roadmap-content::after,
    .roadmap-item:nth-child(even) .roadmap-content::after {
        left: -10px;
        right: auto;
        border-right: 10px solid var(--bg-card);
        border-left: none;
    }
    
    .join-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto 25px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stat {
        width: 45%;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form {
        padding: 25px;
    }
}
