/* ============================================================================
   ملف التنسيقات الرئيسي (Main CSS) - الإصدار الاحترافي المحدث
   المشروع: Dr. Yousef Portfolio & Blog
   ============================================================================ */

/* ==========================================
   1. متغيرات الألوان والخطوط (CSS Variables)
   ========================================== */
:root {
    /* الألوان الأساسية */
    --primary: #1B3A5C;
    --primary-light: #2A5F8F;
    --primary-dark: #0F2640;
    --secondary: #C9A84C; /* اللون الذهبي الموحد الاحترافي */
    --secondary-light: #E8D5A0;
    --secondary-dark: #A8892E;
    --sand: #E8D5B7;
    --cream: #F5F0E8;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray: #555555;
    --light-gray: #E0DCD4;
    --danger: #e74c3c;
    --success: #2ecc71;
    --info: #3498db;

    /* التأثيرات والحدود */
    --shadow: 0 8px 32px rgba(27, 58, 92, 0.15);
    --shadow-hover: 0 12px 48px rgba(27, 58, 92, 0.25);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* الخطوط الأساسية */
    --font-ar: 'Montserrat', sans-serif;
    --font-en: 'Cinzel', serif;

    /* ألوان عناصر الواجهة (الوضع الفاتح الافتراضي) */
    --bg-body: var(--cream);
    --bg-card: var(--white);
    --text-primary: var(--black);
    --text-secondary: var(--gray);
    --border-color: var(--light-gray);
    --nav-bg: rgba(27, 58, 92, 0.92);
    --nav-text: var(--white);
    --input-bg: var(--white);
    --input-border: var(--light-gray);
}

/* الوضع الداكن (Dark Mode) */
[data-theme="dark"] {
    --bg-body: #1A1A2E;
    --bg-card: #2A2A42;
    --text-primary: #F0ECE8;
    --text-secondary: #B0A8A0;
    --border-color: #3A3A5A;
    --nav-bg: rgba(15, 38, 64, 0.95);
    --nav-text: #F0ECE8;
    --input-bg: #3A3A5A;
    --input-border: #4A4A6A;
    --sand: #3A3A5A;
    --cream: #22223A;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   2. التهيئة العامة (Reset & Base Styles)
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1.85;
    overflow-x: hidden;
    
    /* حماية المحتوى من التظليل والنسخ */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}

/* السماح بالكتابة وتظليل النصوص داخل حقول الإدخال فقط */
input, textarea {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    font-family: var(--font-ar) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* تخصيص شريط التمرير (Scrollbar) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

/* ==========================================
   3. الخطوط والطباعة (Typography Identity)
   ========================================== */
h1, h2, h3, h4, h5, h6,
.section-title,
.logo,
.pharaonic-divider,
.hero-badges span,
.post-title {
    font-family: var(--font-en) !important;
    letter-spacing: 1px;
}

p, .about-text p, .post-content p, .hobby-card p, .excerpt {
    font-size: 16.5px;
    color: var(--text-secondary);
}

.about-text p {
    font-size: 18px;
    line-height: 2.1;
    text-align: justify;
}

/* تمييز الكلمات المهمة باحترافية */
strong, b {
    color: var(--primary) !important;
    font-family: var(--font-en) !important;
    font-weight: 700;
    font-size: 110%;
    background: linear-gradient(120deg, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0.05) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    border-bottom: 2px solid rgba(201,168,76,0.6);
    transition: var(--transition);
    display: inline-block;
}

strong:hover, b:hover {
    background: rgba(201,168,76,0.4);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-1px);
}

/* ==========================================
   4. الحركات التفاعلية (Animations)
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientTextMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* الفئة الخاصة بتأثير الاسم في الصفحة الرئيسية */
.animated-name {
    background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTextMove 4s ease infinite;
}

/* ==========================================
   5. الزخارف الفرعونية (Pharaonic Decorations)
   ========================================== */
.pharaonic-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    color: var(--secondary);
    font-size: 18px;
    opacity: 0.5;
}
.pharaonic-divider::before,
.pharaonic-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    max-width: 80px;
}
[dir="rtl"] .pharaonic-divider::before {
    background: linear-gradient(90deg, var(--secondary), transparent);
}
[dir="rtl"] .pharaonic-divider::after {
    background: linear-gradient(90deg, transparent, var(--secondary));
}
.ankh-icon {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.2em;
    margin: 0 4px;
}

.ankh_1-icon {
    display: inline-block;
    color: var(--secondary);
    font-size: 1.2em;
    margin: 0 4px;
}

/* ==========================================
   6. القائمة العلوية (Header & Navigation)
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 2px solid rgba(201, 168, 76, 0.2);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--nav-text);
}

.logo span {
    color: var(--secondary);
}

.logo .ankh {
    font-size: 18px;
    margin-right: 6px;
}

.logo .ankh_1 {
    font-size: 18px;
    margin-right: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--nav-text);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    text-transform: capitalize;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(201, 168, 76, 0.2);
    color: var(--secondary);
}

.nav-links a i {
    margin-right: 6px;
    font-size: 13px;
}

[dir="rtl"] .nav-links a i {
    margin-right: 0;
    margin-left: 6px;
}

/* القائمة المنسدلة (Dropdown) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary);
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff !important;
    font-size: 14px !important;
}

.dropdown-menu li a:hover {
    background-color: rgba(201, 168, 76, 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown a i.fa-caret-down {
    margin-left: 5px;
    font-size: 14px;
}

/* أزرار الإجراءات في القائمة (Nav Actions) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions button {
    background: none;
    color: var(--nav-text);
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* زر القائمة للهواتف (Menu Toggle) */
#header .menu-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    #header .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--nav-text);
        font-size: 26px;
        cursor: pointer;
    }
    
    #header .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 20px;
        gap: 6px;
        border-bottom: 2px solid rgba(201, 168, 76, 0.2);
    }
    
    #header .nav-links.open {
        display: flex !important;
    }
    
    #header .nav-links a {
        padding: 10px 16px;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0,0,0,0.1);
    }
    
    .dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ==========================================
   7. القسم الترحيبي العلوي (Hero Section)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '𓂀 𓃥 𓃠 𓃰 ☥';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.05;
    color: var(--secondary);
    letter-spacing: 20px;
    pointer-events: none;
    transform: rotate(10deg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-content .subtitle {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.hero-content .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    border-left: 3px solid var(--secondary);
    padding-left: 16px;
}

[dir="rtl"] .hero-content .tagline {
    border-left: none;
    border-right: 3px solid var(--secondary);
    padding-left: 0;
    padding-right: 16px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-badges span {
    background: rgba(201, 168, 76, 0.15);
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .profile-frame {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 4px solid var(--secondary);
    padding: 8px;
    background: rgba(201, 168, 76, 0.1);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
    position: relative;
}

.hero-image .profile-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-image .profile-frame .ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--secondary);
    border-right-color: var(--secondary);
    animation: spin 8s linear infinite;
    pointer-events: none;
}

/* ==========================================
   8. الأزرار العامة للموقع (Global Buttons)
   ========================================== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary, .btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ==========================================
   9. عناوين وتنسيق الأقسام (Section Styles)
   ========================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.section-title span {
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 48px;
}
/* ==========================================
   10. قسم عنّي (About Section)
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.about-stats .stat {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border-bottom: 3px solid var(--secondary);
    transition: var(--transition);
}

.about-stats .stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-stats .stat .num {
    font-family: var(--font-en);
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.about-stats .stat .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image .img-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--secondary);
    position: relative;
}

.about-image .img-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image .img-wrapper:hover img {
    transform: scale(1.05);
}

.about-image .img-wrapper .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(27, 58, 92, 0.8), transparent);
    padding: 20px;
    text-align: center;
    color: var(--white);
    font-weight: 600;
}

/* ==========================================
   11. قسم السيرة الذاتية (CV Section)
   ========================================== */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.cv-container .cv-icon {
    font-size: 64px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.cv-container h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cv-container p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cv-container .cv-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   12. قسم الهوايات (Hobbies Section)
   ========================================== */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.hobby-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 168, 76, 0.4);
}

.hobby-card .icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 12px;
    transition: var(--transition);
}

.hobby-card:hover .icon {
    transform: scale(1.1);
}

.hobby-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary);
}

/* ==========================================
   13. شبكة المقالات (Blog Grid & Cards)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-card img {
    border-bottom: 3px solid var(--secondary);
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.blog-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-body h3 a {
    color: var(--primary);
    transition: var(--transition);
}

.blog-card .card-body h3 a:hover {
    color: var(--secondary);
}

.blog-card .card-body .excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
/* ==========================================
   14. المقال الفردي والتعليقات (Single Post & Comments)
   ========================================== */
.article-header {
    padding: 140px 20px 40px;
    background: var(--bg-body);
    text-align: center;
}

.back-btn-container {
    margin-bottom: 25px;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(201,168,76,0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    border: 1px solid rgba(201,168,76,0.3);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-blog:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(201,168,76,0.2);
}

.article-cover {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 50px;
    display: block;
    box-shadow: var(--card-shadow);
}

.article-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 2.2;
    color: var(--text-primary);
}

.comments-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

/* ==========================================
   15. صفحة التواصل (Contact Section)
   ========================================== */
.contact-hero {
    position: relative;
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
    text-align: center;
    color: var(--white);
    overflow: hidden;
    border-bottom: 3px solid var(--secondary);
}

.advanced-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: -30px; 
    position: relative;
    z-index: 5;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.method-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.4);
}

.method-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.method-card:hover .icon-wrapper {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 16px 16px 0 0;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    display: block;
    margin-bottom: 8px;
}

/* ==========================================
   16. الفوتر (Footer)
   ========================================== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 24px;
    margin-top: 40px;
}

footer .footer-brand {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 24px;
    color: var(--white);
}

footer .footer-brand span {
    color: var(--secondary);
}

footer .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

footer .footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: var(--secondary);
}

footer .footer-copy {
    font-size: 13px;
    text-align: center;
    width: 100%;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

/* الأيقونات الذكية في الفوتر */
.footer-social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end; 
    margin-top: 20px;
}

.footer-social-icons a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.footer-social-icons a:hover {
    color: var(--secondary);
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-3px);
}

/* ==========================================
   17. التجاوب مع الشاشات (Responsive Design)
   ========================================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-grid, .advanced-contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image .profile-frame {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }
    .hero-badges, .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 34px; }
    .section-title { font-size: 28px; }
    .blog-grid { grid-template-columns: 1fr; }
    .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .cv-container, .article-body { padding: 24px; }
    .hero-image .profile-frame { width: 200px; height: 200px; }
    
    .footer-top { flex-direction: column; text-align: center; }
    .footer-brand-links { text-align: center !important; margin-top: 20px; }
    .footer-newsletter form { flex-direction: column; }
    .footer-social-icons { justify-content: center; }
    
    .article-title { font-size: 30px !important; }
    .article-cover { height: 250px !important; margin-top: 20px !important; }
}

@media (max-width: 480px) {
    .hobbies-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero-badges span { font-size: 11px; padding: 4px 12px; }
    .btn-primary, .btn-outline, .btn-secondary { padding: 10px 20px; font-size: 13px; }
}
/* ==========================================
   18. تأثيرات اللوجو المتحرك (Animated Logo)
   ========================================== */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.animated-logo-text {
    background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s linear infinite;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
}

@keyframes shineEffect {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* حركة دوران الرمز الفرعوني عند مرور الماوس */
.logo-link .ankh {
    display: inline-block;
    color: var(--secondary);
    font-size: 20px;
    margin-right: 6px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .logo-link .ankh { margin-right: 0; margin-left: 6px; }

.logo-link:hover .ankh {
    transform: rotate(360deg) scale(1.1);
}

.logo-link .ankh_1 {
     background: linear-gradient(270deg, var(--secondary), #ffffff, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineEffect 3s linear infinite;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .logo-link .ankh_1 { margin-right: 0; margin-left: 6px; }

.logo-link:hover .ankh_1 {
    transform: rotate(360deg) scale(1.1);
}

/* ==========================================
   19. تصميم الفوتر الاحترافي (Modern Footer)
   ========================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.8;
}

.footer-grid h4 {
    font-family: var(--font-en);
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* خط تجميلي تحت عناوين الفوتر */
.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}
[dir="rtl"] .footer-grid h4::after { left: auto; right: 0; }

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links-col a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}
[dir="rtl"] .footer-links-col a:hover { transform: translateX(-5px); }

/* تصميم مصغر وأنيق لنموذج النشرة البريدية */
.newsletter-modern-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.newsletter-modern-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.newsletter-modern-form button {
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-modern-form button:hover {
    background: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* التجاوب مع الشاشات (Responsive Footer) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links-col {
        align-items: center;
    }
    .footer-social-icons {
        justify-content: center !important;
    }
}
/* ==========================================
   20. زر العودة للأعلى (Scroll to Top Button)
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    z-index: 9999;
    /* إخفاء الزر افتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

/* الفئة التي ستتم إضافتها برمجياً لإظهار الزر */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* ضبط موقع الزر في الصفحات الداعمة للغة العربية (RTL) */
[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}
/* تنسيق الرمز الفرعوني داخل زر العودة للأعلى */
.pharaonic-up-icon {
    font-size: 26px; /* تكبير الرمز ليظهر بوضوح */
    line-height: 1;
    display: inline-block;
    transform: translateY(-2px); /* تعديل طفيف لضبط التوسيط البصري للرمز */
    transition: transform 0.3s ease;
}

/* إضافة تأثير طيران خفيف للصقر عند مرور الماوس على الزر */
.scroll-to-top:hover .pharaonic-up-icon {
    transform: translateY(-5px) scale(1.1);
}
/* ==========================================
   21. تنسيق رسالة حالة الاشتراك
   ========================================== */
.status-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: none; /* مخفية افتراضياً */
    text-align: center;
    transition: all 0.3s ease;
}

/* تنسيق حالة النجاح */
.status-success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* تنسيق حالة الخطأ */
.status-error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}