﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;700;800;900&display=swap');

:root {
    /* ألوان الذكاء الاصطناعي الفاخرة */
    --bg-deep: #020617; /* أسود ليلي عميق جداً لراحة العين */
    --card-bg: rgba(15, 23, 42, 0.6); /* كحلي داكن شفاف */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.5);
    /* ألوان النصوص - مصممة للوضوح التام */
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    /* ألوان الهوية (الكريستال والأرجواني) */
    --ai-blue: #38bdf8;
    --ai-purple: #a855f7;
    --ai-accent: #fcd34d; /* لمسة ذهبية لزر الـ Call to Action */

    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body.public-body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-pure);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    position: relative;
    line-height: 1.8; /* تباعد أسطر ممتاز للقراءة */
}

    /* ================= خلفية السديم (Nebula Background) ================= */
    /* إضاءات خلفية هادئة جداً لا تؤثر على قراءة النصوص */
    body.public-body::before,
    body.public-body::after {
        content: "";
        position: fixed;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        filter: blur(120px);
        z-index: -2;
        opacity: 0.15; /* شفافية منخفضة جداً لعدم إزعاج العين */
        pointer-events: none;
        animation: breathe 10s infinite alternate;
    }

    body.public-body::before {
        top: -100px;
        right: -100px;
        background: var(--ai-blue);
    }

    body.public-body::after {
        bottom: -100px;
        left: -100px;
        background: var(--ai-purple);
        animation-delay: -5s;
    }

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* ================= Navbar (شريط التنقل) ================= */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.public-navbar {
    background: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}
/* حل مشكلة القائمة (Flexbox Fix) */
.public-nav-list {
    list-style: none !important;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

    .nav-link:hover, .nav-link.active {
        color: var(--text-pure) !important;
    }

@media (max-width: 991.98px) {
    .public-nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* ================= Hero Section (العنوان الرئيسي) ================= */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--ai-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-pure);
}
/* تدرج لوني واضح جداً للكلمات المميزة */
.text-gradient {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted); /* رمادي فاتح مريح جداً للقراءة */
    max-width: 650px;
}

/* ================= Premium Cards (البطاقات الفاخرة) ================= */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

    /* تأثير التوهج عند التمرير (Spotlight Hover) */
    .premium-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(800px circle at 50% 100%, rgba(56, 189, 248, 0.1), transparent 40%);
        opacity: 0;
        z-index: -1;
        transition: opacity 0.5s;
    }

    .premium-card:hover {
        transform: translateY(-8px);
        border-color: var(--border-glow);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
    }

        .premium-card:hover::before {
            opacity: 1;
        }

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--ai-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.premium-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    color: #fff;
    transform: scale(1.1);
}

.premium-card h4, .premium-card h5 {
    color: var(--text-pure);
    font-weight: 800;
    margin-bottom: 1rem;
}

.premium-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ================= الأزرار (Buttons) ================= */
.btn-primary-ai {
    background: var(--text-pure);
    color: var(--bg-deep);
    font-weight: 800;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

    .btn-primary-ai:hover {
        background: var(--ai-blue);
        color: var(--bg-deep);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
        transform: translateY(-3px);
    }

.btn-outline-ai {
    background: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-subtle);
    font-weight: 700;
    transition: var(--transition-smooth);
}

    .btn-outline-ai:hover {
        border-color: var(--text-pure);
        background: rgba(255,255,255,0.05);
    }

/* ================= CTA Box ================= */
.cta-box {
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .cta-box::after {
        content: "";
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: var(--ai-purple);
        filter: blur(100px);
        opacity: 0.2;
        z-index: 0;
    }

.section-intro-text {
    max-width: 760px;
    margin-inline: auto;
}

.premium-card .hero-badge {
    display: inline-block;
}

.premium-card h4 {
    line-height: 1.6;
}

.premium-card p {
    line-height: 2;
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
}