/* ==================== المتغيّرات ==================== */
:root {
    /* الألوان الأساسية */
    --bg-0: #0a0e1a;
    --bg-1: #111827;
    --bg-2: #1a2236;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    /* الألوان البارزة */
    --gold: #d4a857;
    --gold-light: #f0c878;
    --gold-soft: rgba(212, 168, 87, 0.15);
    --emerald: #10b981;
    --emerald-deep: #047857;
    --amber: #f59e0b;
    --crimson: #dc2626;

    /* ألوان النص — تباين أعلى للوضوح */
    --text: #ffffff;
    --text-soft: #e2e8f0;
    --text-mute: #b8c2d1;
    --text-dim: #8a96a8;

    /* التأثيرات */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(212, 168, 87, 0.15);

    /* الخطوط — IBM Plex Sans Arabic للنصوص لوضوح أعلى */
    --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    --font-arabic: 'Amiri', serif;
}

/* ==================== أساسيات ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    line-height: 2;
    font-size: 19px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    letter-spacing: 0;
    font-weight: 400;
}

p {
    line-height: 2;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 700;
}

::selection { background: var(--gold); color: var(--bg-0); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ==================== خلفية متحركة ==================== */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob.b1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 87, 0.3), transparent);
    top: -200px;
    right: -200px;
}

.blob.b2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.blob.b3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2), transparent);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== شريط التنقّل ==================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(212, 168, 87, 0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text);
    letter-spacing: 0;
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--text-mute);
    letter-spacing: 0;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav a {
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    color: var(--text-soft);
    border-radius: 8px;
    transition: all 0.25s;
    position: relative;
    font-weight: 500;
}

.nav a:hover {
    color: var(--gold-light);
    background: var(--gold-soft);
}

.nav a.active {
    color: var(--gold-light);
    background: var(--gold-soft);
}

.nav-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    padding: 0.85rem 1rem;
    color: var(--text-soft);
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

/* ==================== البانر ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
    position: relative;
}

.hero-grid {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #b8843a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-soft);
    line-height: 2.1;
    margin-bottom: 2rem;
    max-width: 580px;
    font-weight: 400;
}

.hero-lead strong {
    color: var(--gold-light);
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s;
}

.stat:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: -2px;
}

.stat-label {
    font-size: 0.92rem;
    color: var(--text-mute);
    margin-top: 0.4rem;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #b8843a 100%);
    color: var(--bg-0);
    box-shadow: 0 8px 24px rgba(212, 168, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 168, 87, 0.5);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ==================== البطاقة المرئية ==================== */
.hero-visual {
    position: relative;
}

.visual-card {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(212, 168, 87, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: sepia(0.25) contrast(1.05);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.85) 100%);
    z-index: 1;
}

.visual-pattern-deco {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23d4a857' stroke-width='0.4' opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.visual-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.visual-poem {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 2.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.visual-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 1rem;
}

.visual-source {
    font-size: 1rem;
    color: var(--text-soft);
    letter-spacing: 0;
    font-weight: 500;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid var(--text-mute);
    border-radius: 100px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scroll-down 1.8s infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ==================== الأقسام ==================== */
.section {
    padding: 5rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--gold-soft);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-mute);
    line-height: 2;
    font-weight: 400;
}

.sub-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 3rem 0 1.75rem;
    text-align: center;
    position: relative;
}

.sub-heading::before,
.sub-heading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 1rem;
}

/* ==================== البطاقات ==================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.card p {
    color: var(--text-soft);
    line-height: 2.05;
    font-size: 1.02rem;
}

/* ==================== نبذة - شبكة المعلومات ==================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: translateX(100%);
    transition: transform 0.5s;
}

.info-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.info-card:hover::before {
    transform: translateX(0);
}

.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-soft), transparent);
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.info-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
}

.info-card strong {
    color: var(--gold-light);
    font-weight: 600;
}

/* ==================== النسب ==================== */
.lineage-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.lineage-tree {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(212, 168, 87, 0.05), transparent);
    border-radius: 16px;
}

.tree-node {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    margin: 0.4rem;
    min-width: 200px;
}

.tree-node:hover {
    transform: scale(1.03);
    border-color: var(--gold);
}

.tree-node .node-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-mute);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.tree-node strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 700;
}

.tree-node.root {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    border-color: rgba(220, 38, 38, 0.4);
}

.tree-node.root strong { color: #fca5a5; }

.tree-node.primary {
    background: linear-gradient(135deg, var(--gold), #b8843a);
    border-color: var(--gold-light);
    box-shadow: 0 8px 24px rgba(212, 168, 87, 0.3);
}

.tree-node.primary strong { color: var(--bg-0); font-size: 1.2rem; }

.tree-node.primary .node-label { color: rgba(0, 0, 0, 0.6); }

.tree-line {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, var(--border-strong), var(--gold));
    margin: 0 auto;
}

.tree-leaves {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tree-leaf {
    padding: 0.55rem 1.1rem;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    font-size: 0.98rem;
    color: var(--text-soft);
    font-weight: 500;
}

.lineage-text h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.lineage-text p {
    color: var(--text-soft);
    line-height: 2.1;
    margin-bottom: 1.1rem;
    font-size: 1.02rem;
}

.lineage-text strong { color: var(--gold-light); }

/* ==================== الجدول الزمني ==================== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    right: 30px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 100%);
}

.t-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.t-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), #b8843a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(212, 168, 87, 0.3);
    position: relative;
    z-index: 1;
}

.t-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-0);
}

.t-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.t-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateX(-6px);
}

.t-era {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--gold-soft);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.t-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.t-card p {
    color: var(--text-soft);
    line-height: 2.05;
    font-size: 1.03rem;
}

/* ==================== الديار ==================== */
.lands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.land {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
}

.land:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.land-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}

.land-image img,
.land-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    display: block;
    filter: sepia(0.3) contrast(1.05);
}

.land:hover .land-art,
.land:hover .land-image img {
    transform: scale(1.05);
}

.land-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 26, 0.7) 100%);
}

.land-body {
    padding: 1.75rem;
}

.land-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 2;
}

.land h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.land p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.land-tag {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== الشعراء ==================== */
.poets-intro {
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 168, 87, 0.06), transparent);
}

.poets-intro p {
    font-size: 1.1rem;
    line-height: 2.2;
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-soft);
}

.poets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.poet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    position: relative;
}

.poet-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.poet-era {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gold-soft);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.poet-card h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.poet-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.poet-card blockquote {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    color: var(--gold-light);
    line-height: 2.3;
    padding: 1.1rem 1.4rem;
    background: rgba(212, 168, 87, 0.08);
    border-right: 3px solid var(--gold);
    border-radius: 10px;
    margin: 1.1rem 0 0.95rem;
    font-style: italic;
    font-weight: 400;
}

.poet-note {
    font-size: 0.92rem;
    color: var(--text-mute);
    font-style: italic;
}

/* ==================== الشعراء المعروفون ==================== */
.named-poets {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.named-poet {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(212, 168, 87, 0.06), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
}

.named-poet:hover {
    border-color: var(--gold-soft);
    box-shadow: var(--shadow-md);
}

.poet-photo {
    position: relative;
}

.photo-frame {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--gold-soft);
    position: relative;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
}

.photo-frame img,
.frame-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame-art {
    filter: sepia(0.15);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 26, 0.5) 100%);
}

.poet-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 0.4rem 0.95rem;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.poet-info h4 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.poet-meta {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 2.05;
    margin-bottom: 1.5rem;
}

.poet-poem {
    background: rgba(212, 168, 87, 0.07);
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
}

.poem-label {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    background: var(--gold);
    color: var(--bg-0);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.poet-poem h5 {
    font-family: var(--font-arabic);
    font-size: 1.55rem;
    color: var(--gold-light);
    margin-bottom: 0.85rem;
    font-weight: 700;
    line-height: 1.7;
}

.poem-desc {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.poem-text-placeholder {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.placeholder-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.poem-text-placeholder p {
    color: var(--text-mute);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

.featured-poems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.featured-poem {
    background: linear-gradient(135deg, rgba(212, 168, 87, 0.08), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.featured-poem::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.15;
    font-family: var(--font-arabic);
    line-height: 1;
}

.poem-num {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--gold);
    color: var(--bg-0);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.featured-poem blockquote {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--text);
    line-height: 2.6;
    margin-bottom: 1.2rem;
    font-style: italic;
    font-weight: 400;
}

.featured-poem figcaption {
    color: var(--gold-light);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

/* ==================== الحروب ==================== */
.wars-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06), transparent);
    border-color: rgba(220, 38, 38, 0.15);
}

.wars-intro p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

.wars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.war-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.war-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--crimson), transparent);
    opacity: 0.6;
}

.war-card.islamic::before {
    background: linear-gradient(180deg, var(--emerald), transparent);
}

.war-card:hover {
    background: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.war-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.war-icon {
    width: 44px;
    height: 44px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fca5a5;
}

.war-card.islamic .war-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.war-period {
    padding: 0.35rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
}

.war-card h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.war-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
}

/* ==================== بطاقة شيخ القبيلة ==================== */
.sheikh-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    background:
        linear-gradient(135deg, rgba(212, 168, 87, 0.12), rgba(16, 185, 129, 0.04));
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 87, 0.2);
    align-items: center;
}

.sheikh-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 87, 0.18), transparent 70%);
    pointer-events: none;
}

.sheikh-frame {
    position: relative;
    z-index: 1;
}

.sheikh-image {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--gold);
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.sheikh-image img,
.emblem-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    display: block;
}

.emblem-art {
    filter: drop-shadow(0 0 20px rgba(212, 168, 87, 0.2));
}

.sheikh-card:hover .sheikh-image img,
.sheikh-card:hover .emblem-art {
    transform: scale(1.04);
}

.sheikh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 14, 26, 0.65) 100%);
}

.sheikh-tag {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--gold), #b8843a);
    color: var(--bg-0);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(212, 168, 87, 0.4);
    z-index: 2;
}

.sheikh-info {
    position: relative;
    z-index: 1;
}

.sheikh-position {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gold-soft);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sheikh-info h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sheikh-lead {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 2.1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.sheikh-lead strong {
    color: var(--gold-light);
    font-weight: 700;
}

.sheikh-info p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 2.05;
    margin-bottom: 1.25rem;
}

.sheikh-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.trait {
    padding: 0.55rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-soft);
    font-weight: 500;
    transition: all 0.3s;
}

.trait:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sheikh-card {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.5rem 2rem;
        gap: 2rem;
    }
    .sheikh-image {
        max-width: 280px;
        margin: 0 auto;
    }
    .sheikh-info {
        text-align: center;
    }
    .sheikh-traits {
        justify-content: center;
    }
}

/* ==================== الأعلام ==================== */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.figure-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    text-align: center;
}

.figure-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.figure-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold), #b8843a);
    color: var(--bg-0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(212, 168, 87, 0.3);
}

.figure-era {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    background: var(--gold-soft);
    color: var(--gold-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.figure-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.figure-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
}

/* ==================== العادات ==================== */
.customs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.custom {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.custom::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-soft), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.custom:hover {
    border-color: var(--gold-soft);
    transform: translateY(-4px);
}

.custom:hover::before { opacity: 1; }

.custom-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.custom h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.custom p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    position: relative;
    z-index: 1;
}

/* ==================== المصادر ==================== */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.source-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-align: right;
}

.source-card:hover {
    background: var(--surface-hover);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.source-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.source-card h4 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.source-card p {
    color: var(--text-mute);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==================== صندوق ملاحظات ==================== */
.note-box {
    background: linear-gradient(135deg, var(--gold-soft), transparent);
    border: 1px solid var(--gold-soft);
    border-right: 4px solid var(--gold);
    padding: 1.4rem 1.7rem;
    border-radius: 12px;
    margin-top: 1.75rem;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 2;
}

.note-box strong {
    color: var(--gold-light);
}

/* ==================== التذييل ==================== */
.footer {
    background: linear-gradient(180deg, transparent, var(--bg-1));
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1240px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.footer-brand p {
    color: var(--text-mute);
    font-size: 1rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-cols h5 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    letter-spacing: 0;
}

.footer-cols a {
    display: block;
    color: var(--text-mute);
    padding: 0.45rem 0;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 400;
}

.footer-cols a:hover { color: var(--gold-light); }

.footer-quote {
    text-align: center;
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: var(--gold-light);
    line-height: 2.5;
    font-style: italic;
    padding: 2.2rem 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    font-weight: 400;
}

.footer-bottom {
    text-align: center;
    color: var(--text-mute);
    font-size: 0.95rem;
}

/* ==================== زر العودة للأعلى ==================== */
.to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), #b8843a);
    color: var(--bg-0);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(212, 168, 87, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 168, 87, 0.6);
}

/* ==================== تأثيرات الظهور ==================== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== الاستجابة ==================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    .lineage-card { grid-template-columns: 1fr; padding: 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .hero { min-height: 80vh; padding: 2rem 1rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat { padding: 0.85rem; }
    .stat-num { font-size: 1.8rem; }
    .timeline::before { right: 22px; }
    .t-marker { width: 44px; height: 44px; }
    .t-num { font-size: 0.95rem; }
    .t-row { gap: 1.25rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .section { padding: 3.5rem 0; }
    .section-head h2 { font-size: 2rem; }
    .featured-poem blockquote { font-size: 1.05rem; }
}

@media (max-width: 768px) {
    .named-poet {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .photo-frame {
        max-width: 240px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    body { font-size: 17px; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    .card, .info-card, .figure-card, .poet-card, .war-card, .custom { padding: 1.5rem 1.25rem; }
    .land-body { padding: 1.5rem 1.25rem; }
    .featured-poem { padding: 2rem 1.25rem 1.5rem; }
    .named-poet { padding: 1.5rem 1.25rem; }
    .poet-info h4 { font-size: 1.4rem; }
    .poet-poem h5 { font-size: 1.3rem; }
}
