:root {
    --bg-dark: #020617;         /* خلفية عامة (أزرق شبه أسود) */
    --bg-section: #020617;
    --surface: #0b1220;         /* كروت وهيدر */
    --surface-soft: #111827;
    --accent: #38bdf8;          /* سماوي فاقع */
    --accent-soft: #0ea5e9;
    --accent-2: #6366f1;        /* بنفسجي أزرق */
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

/* reset بسيط */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    direction: rtl;
}

body {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 45%, #000 100%);
    color: var(--text-main);
}

/* الهيدر */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* لوقو كتابي بدون صورة */
.logo-text-only {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(120deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(56,189,248,0.4);
}

.logo-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* الروابط في الهيدر */
.nav-links a {
    margin-left: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.15s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    transition: width 0.2s;
}

.nav-links a:hover {
    color: #e5e7eb;
}

.nav-links a:hover::after {
    width: 100%;
}

/* قسم الهيرو بالصورة الكبيرة */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* ارتفاع كبير يشيل الصورة */
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* تخلي الصورة تغطي كل المساحة */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.55); /* تغميق فوق الصورة */
    backdrop-filter: blur(2px);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(120deg, #e5e7eb, var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* الأزرار تحت الصورة */
.buttons-container {
    margin-top: 30px;
}

/* أزرار الصفحات – كروت مضيئة مرتبة في سطر واحد */
.page-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px auto 40px;
    max-width: 1000px;
}

.page-button {
    display: block;
    width: 30%;              /* ثلاث كروت في السطر */
    padding: 18px 15px;
    text-decoration: none;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.22), transparent 55%),
                radial-gradient(circle at bottom, rgba(99,102,241,0.18), transparent 55%),
                var(--surface);
    color: var(--text-main);
    box-shadow:
        0 18px 35px rgba(15,23,42,0.9),
        0 0 0 1px rgba(148,163,184,0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease;
}

.page-button-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 1rem;
}

.page-button-text {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.page-button:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow:
        0 25px 45px rgba(15,23,42,1),
        0 0 0 1px rgba(56,189,248,0.5);
}

/* الصفحات الداخلية (لو حتستخدميها في من نحن/المنتجات/التواصل) */
.page-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    background: linear-gradient(120deg, #e5e7eb, var(--accent-soft));
    -webkit-background-clip: text;
    color: transparent;
}

.page-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
    max-width: 760px;
    background: rgba(15,23,42,0.75);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow:
        0 18px 35px rgba(15,23,42,0.85),
        0 0 0 1px rgba(30,64,175,0.5);
    margin: 20px auto;
}

/* فوتر */
.footer {
    margin-top: 10px;
    padding: 14px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(148,163,184,0.2);
    background: rgba(15,23,42,0.96);
    backdrop-filter: blur(14px);
}

.footer span {
    color: var(--accent);
}

/* موبايل */
@media (max-width: 800px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        height: 55vh;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .page-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .page-button {
        width: 100%;
    }
}
