:root {
    --primary-serif: 'Playfair Display', serif;
    --secondary-sans: 'Plus Jakarta Sans', sans-serif;
    
    /* باليت الألوان المستوحاة بدقة من الصورة: درجات الرمادي الدافئ مع لمسات أزرق مائي ملوكي */
    --bg-warm-gray: #f2ede9;
    --text-navy: #162e49;
    --text-muted: #4a5568;
    --line-color: rgba(22, 46, 73, 0.15);
    
    /* تدرج مائي ناعم يدمج أطراف التصميم */
    --watercolor-gradient: radial-gradient(circle at 10% 30%, rgba(135, 169, 197, 0.4) 0%, rgba(242, 237, 233, 0.2) 60%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-warm-gray);
    color: var(--text-navy);
    font-family: var(--secondary-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الحاوية الأساسية للموقع - محاذاة أفقية متناسقة */
.landing-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 2rem 4rem;
    background: var(--watercolor-gradient);
}

/* القسم الخاص بالصورة جهة اليسار مدمجة بالتأثير الضبابي المائي */
.profile-side {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.profile-image-mask {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 85vh;
    bottom: 0;
    overflow: hidden;
    /* تأثير تلاشي أطراف الصورة السفلية والجانبية لتبدو مدمجة مع الخلفية */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%, black 85%, transparent 100%),
                        linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 0%, black 15%, black 85%, transparent 100%),
                linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.02) brightness(1.01);
}

/* قسم المحتوى والنصوص والروابط */
.content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    z-index: 5;
}

.hero-header {
    margin-bottom: 4.5rem;
}

.main-title {
    font-family: var(--primary-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-navy);
    line-height: 1.3;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-family: var(--primary-serif);
    font-size: 2.2rem;
    font-style: italic;
    color: var(--text-navy);
    opacity: 0.9;
    position: relative;
    display: inline-block;
}

/* الخط الأفقي اليدوي تحت العبارة البديلة */
.tagline::after {
    content: '';
    display: block;
    width: 140px;
    height: 1px;
    background-color: var(--text-navy);
    margin: 0.6rem auto 0 0;
    opacity: 0.6;
}

/* شريط الروابط الأفقي مصحوباً بالخطوط العمودية الفاصلة */
.links-navigation {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-navy);
    padding: 0 2.5rem;
    position: relative;
    transition: transform 0.25s ease;
}

/* رسم الخطوط الفاصلة العمودية بين الروابط باستثناء الرابط الأول */
.nav-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--line-color);
}

.nav-item:first-child {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.icon-wrapper {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    color: var(--text-navy);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.link-label {
    font-family: var(--primary-serif);
    font-size: 1.1rem;
    font-weight: 400;
    white-space: nowrap;
}

/* تأثير حركة ناعم وحميمي عند تمرير مؤشر الفأرة فوق الروابط */
.nav-item:hover {
    transform: translateY(-4px);
}

.nav-item:hover .icon-wrapper {
    opacity: 1;
}

/* البوصلة الديكورية الخلفية في أسفل اليمين */
.decorative-compass {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    width: 100px;
    height: 100px;
    opacity: 0.15;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23162e49" stroke-width="1"><circle cx="12" cy="12" r="10"/><path d="M16.24 7.76l-2.12 6.36-6.36 2.12 2.12-6.36z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* معايير التجاوب التام لشاشات التابلت والهواتف الذكية */
@media (max-width: 1024px) {
    .landing-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 4rem 2rem;
        text-align: center;
        gap: 3rem;
    }

    .profile-side {
        order: 2; /* نزول الصورة لأسفل في الشاشات الصغيرة لإعطاء الأولوية للنص */
        height: auto;
    }

    .profile-image-mask {
        height: 50vh;
        max-width: 380px;
    }

    .content-side {
        order: 1;
        padding-left: 0;
        align-items: center;
    }

    .main-title {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 1.8rem;
    }

    .tagline::after {
        margin: 0.6rem auto 0 auto;
    }

    .links-navigation {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 2rem;
        width: 100%;
        max-width: 500px;
        margin-top: 2rem;
    }

    .nav-item {
        padding: 1rem !important;
    }

    .nav-item::before {
        display: none; /* إخفاء الخطوط العمودية في وضع الشاشات الصغيرة لعدم تداخلها */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .links-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}