/* ==========================================================================
   Luminous Delight Design System - Radiant, Cheerful, Bright & Uplifting UI
   ========================================================================== */

/* Font-display swap for icon webfonts to eliminate FOIT */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

.hero-bio-text {
    min-height: 80px;
}

:root {
    /* -------------------------------------------------------- */
    /* Light Mode Tokens (ألوان فاتحة، بهية، مريحة وتبعث الانشراح) */
    /* -------------------------------------------------------- */
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0284c7 80%, #06b6d4 100%);
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-subtle: rgba(37, 99, 235, 0.08);

    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%);
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: #fffbeb;
    --accent-subtle: rgba(245, 158, 11, 0.12);

    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --success-color: #059669;
    --success-light: #ecfdf5;

    --info-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --info-color: #0284c7;
    --info-light: #f0f9ff;

    --bg-color: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;

    --border-color: rgba(226, 232, 240, 0.9);
    --border-hover: rgba(37, 99, 235, 0.3);
    --border-glass: rgba(255, 255, 255, 0.7);

    /* Radiant, Sunlit Azure & Sapphire Header */
    --header-bg: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0284c7 85%, #0369a1 100%);
    --header-text: #ffffff;

    --nav-bg: rgba(255, 255, 255, 0.94);
    --nav-link-color: #334155;

    /* Soft Diffused Daylight Shadows */
    --shadow-xs: 0 1px 3px 0 rgba(37, 99, 235, 0.04);
    --shadow-sm: 0 4px 10px -2px rgba(37, 99, 235, 0.05), 0 2px 4px -2px rgba(37, 99, 235, 0.03);
    --shadow-md: 0 12px 24px -4px rgba(37, 99, 235, 0.07), 0 4px 8px -2px rgba(37, 99, 235, 0.03);
    --shadow-lg: 0 20px 35px -6px rgba(37, 99, 235, 0.09), 0 8px 12px -4px rgba(37, 99, 235, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(37, 99, 235, 0.18);
    --shadow-hover: 0 20px 40px -6px rgba(37, 99, 235, 0.15);
    --shadow-primary: 0 8px 20px rgba(37, 99, 235, 0.28);
    --shadow-accent: 0 8px 20px rgba(245, 158, 11, 0.28);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;
}

[data-theme="dark"],
[data-bs-theme="dark"],
body.dark-mode {
    /* Dark Mode Tokens */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #38bdf8 100%);
    --primary-color: #60a5fa;
    --primary-hover: #93c5fd;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-subtle: rgba(59, 130, 246, 0.15);

    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --accent-color: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-light: rgba(245, 158, 11, 0.15);
    --accent-subtle: rgba(245, 158, 11, 0.15);

    --bg-color: #0b0f19;
    --bg-surface: #111827;
    --bg-glass: rgba(17, 24, 39, 0.85);
    --card-bg: #111827;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    --border-color: rgba(51, 65, 85, 0.7);
    --border-hover: rgba(96, 165, 250, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);

    --header-bg: linear-gradient(135deg, #030712 0%, #0f172a 50%, #1e3a8a 100%);
    --header-text: #ffffff;

    --nav-bg: rgba(17, 24, 39, 0.9);
    --nav-link-color: #e2e8f0;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 25px 45px -12px rgba(59, 130, 246, 0.3);
}

/* ======================================================== */
/* 1. Base Setup & Typography                               */
/* ======================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.06) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, rgba(251, 191, 36, 0.06) 0px, transparent 50%),
                      radial-gradient(at 50% 100%, rgba(37, 99, 235, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Tajawal', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.text-muted {
    color: var(--text-muted) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-hover);
}

/* Dark mode helpers */
[data-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark,
body.dark-mode .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-white,
body.dark-mode .bg-white {
    background-color: var(--card-bg) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light,
body.dark-mode .bg-light {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-main) !important;
}

/* ======================================================== */
/* 2. Top Scroll Progress Bar                               */
/* ======================================================== */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981, #f59e0b);
    z-index: 99999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* ======================================================== */
/* 3. Global Notification Banner                            */
/* ======================================================== */
.global-notification-bar {
    padding: 12px 20px;
    font-size: 0.98rem;
    font-weight: 600;
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification-info { background: var(--primary-gradient); color: #fff; }
.notification-success { background: var(--success-gradient); color: #fff; }
.notification-warning { background: var(--accent-gradient); color: #fff; }
.notification-danger { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); color: #fff; }

.notification-btn {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 12px;
    transition: all 0.2s;
}
.notification-btn:hover {
    background: #fff;
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

.notification-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    margin: 0 12px;
}
.notification-close-btn:hover { opacity: 1; }

/* ======================================================== */
/* 4. Floating Controls (Language & Theme Toggle)           */
/* ======================================================== */
.site-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    display: flex;
    gap: 12px;
}
[dir="ltr"] .site-controls {
    left: auto;
    right: 20px;
}

.control-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.15rem;
}
.control-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: relative;
    padding-bottom: 10px;
}
.lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    min-width: 160px;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
}
[dir="ltr"] .lang-menu { left: auto; right: 0; }
.lang-dropdown:hover .lang-menu { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-item {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s;
}
.lang-item:hover {
    background: var(--primary-subtle);
    color: var(--primary-color);
    padding-right: 22px;
}
.lang-item.active {
    font-weight: 800;
    color: var(--primary-color);
    background: var(--primary-light);
}

/* ======================================================== */
/* 5. Site Header Hero (ترويسة مبهجة، منيرة وتبعث الانشراح)  */
/* ======================================================== */
.site-header {
    background: var(--header-bg);
    padding: 75px 0 65px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.35) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(251, 191, 36, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    animation: headerRotate 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes headerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.site-header .container {
    position: relative;
    z-index: 2;
}

.site-title {
    font-family: 'Amiri', serif;
    font-size: 4rem;
    font-weight: 700;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 45%, #fbbf24 85%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.site-title-small {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
    padding: 6px 22px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.site-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
}

/* ======================================================== */
/* 6. Floating Glass Navbar (شريط تنقل زجاجي عائم فائق النعومة) */
/* ======================================================== */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 10px 22px !important;
    color: var(--nav-link-color) !important;
    margin: 0 4px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-primary);
}

/* ======================================================== */
/* 7. News Ticker (شريط الأخبار)                            */
/* ======================================================== */
.news-ticker-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    padding: 6px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 56px;
    position: relative;
}

.ticker-label {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 24px;
    font-weight: 800;
    border-radius: var(--radius-full);
    z-index: 10;
    white-space: nowrap;
    font-size: 0.95rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-animation 40s linear infinite;
    padding: 0;
    margin: 0;
    width: max-content;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[dir="rtl"] .ticker-content {
    animation: ticker-animation-rtl 40s linear infinite;
}

[dir="rtl"] .ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-animation-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    transition: color 0.2s, transform 0.2s ease;
    white-space: nowrap;
}

.ticker-item:hover {
    color: var(--primary-color);
}

.ticker-item i {
    color: var(--accent-color);
    margin: 0 8px;
}

/* Featured Ticker Items & Dynamic Multi-Color Highlights */
.ticker-item-featured {
    padding: 4px 18px !important;
    border-radius: var(--radius-full);
    margin: 0 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ticker-featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    color: #ffffff;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* 1. Theme Gold (ذهبي / إشراق) */
.ticker-theme-gold {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, rgba(253, 230, 138, 0.6) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    color: #92400e !important;
}
.ticker-badge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.ticker-theme-gold:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

/* 2. Theme Emerald (زمردي / أخضر) */
.ticker-theme-emerald {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.85) 0%, rgba(167, 243, 208, 0.6) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.45);
    color: #065f46 !important;
}
.ticker-badge-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.ticker-theme-emerald:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* 3. Theme Crimson (قرمزي / عاجل) */
.ticker-theme-crimson {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.85) 0%, rgba(254, 202, 202, 0.6) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    color: #991b1b !important;
}
.ticker-badge-crimson {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.ticker-theme-crimson:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* 4. Theme Purple (بنفسجي / ملكي) */
.ticker-theme-purple {
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.85) 0%, rgba(233, 213, 255, 0.6) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.45);
    color: #5b21b6 !important;
}
.ticker-badge-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}
.ticker-theme-purple:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8b5cf6;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* 5. Theme Cyan (سماوي / رقمي) */
.ticker-theme-cyan {
    background: linear-gradient(135deg, rgba(207, 250, 254, 0.85) 0%, rgba(165, 243, 252, 0.6) 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.45);
    color: #155e75 !important;
}
.ticker-badge-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
}
.ticker-theme-cyan:hover {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    border-color: #06b6d4;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
    transform: translateY(-1px);
}

/* 6. Theme Orange (برتقالي / ناري) */
.ticker-theme-orange {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.85) 0%, rgba(254, 215, 170, 0.6) 100%);
    border: 1.5px solid rgba(249, 115, 22, 0.45);
    color: #9a3412 !important;
}
.ticker-badge-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.ticker-theme-orange:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border-color: #f97316;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
}

/* Dark Mode Overrides for Featured Ticker Items */
[data-theme="dark"] .ticker-theme-gold, body.dark-mode .ticker-theme-gold {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde68a !important;
}
[data-theme="dark"] .ticker-theme-emerald, body.dark-mode .ticker-theme-emerald {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
    color: #a7f3d0 !important;
}
[data-theme="dark"] .ticker-theme-crimson, body.dark-mode .ticker-theme-crimson {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5 !important;
}
[data-theme="dark"] .ticker-theme-purple, body.dark-mode .ticker-theme-purple {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.5);
    color: #ddd6fe !important;
}
[data-theme="dark"] .ticker-theme-cyan, body.dark-mode .ticker-theme-cyan {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.5);
    color: #a5f3fc !important;
}
[data-theme="dark"] .ticker-theme-orange, body.dark-mode .ticker-theme-orange {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.5);
    color: #fed7aa !important;
}

/* ======================================================== */
/* 8. Cards, Surfaces & Visual Depth (البطاقات الفاخرة المبهجة) */
/* ======================================================== */
.card, 
.portfolio-card-premium, 
.stats-card-premium, 
.premium-ad, 
.admin-sidebar, 
.admin-content-card,
.service-commercial-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover, 
.portfolio-card-premium:hover, 
.stats-card-premium:hover,
.service-commercial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

/* Section Title Wrapper */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.section-title-wrapper h2 {
    font-size: 2.3rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.12rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ======================================================== */
/* 9. Buttons (أزرار عصرية براقة ومرنة)                      */
/* ======================================================== */
.btn {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-warning {
    background: var(--accent-gradient);
    border: none;
    color: #0f172a;
    box-shadow: var(--shadow-accent);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
    color: #ffffff;
}

/* ======================================================== */
/* 10. Portfolio Grid & Filter Pills                         */
/* ======================================================== */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.portfolio-card-premium {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #e2e8f0;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-card-premium:hover .portfolio-img-wrapper img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card-premium:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-action-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.15) rotate(8deg);
}

.portfolio-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
[dir="ltr"] .portfolio-category-badge {
    right: auto;
    left: 15px;
}

/* ======================================================== */
/* 11. Resume & Career Timeline Section                      */
/* ======================================================== */
.resume-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.resume-hero-header {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resume-profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    margin-bottom: 20px;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}
[dir="ltr"] .timeline-container::before {
    right: auto;
    left: 24px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-right: 65px;
}
[dir="ltr"] .timeline-item {
    padding-right: 0;
    padding-left: 65px;
}

.timeline-icon-dot {
    position: absolute;
    top: 0;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
    z-index: 2;
    transition: all 0.3s ease;
}
[dir="ltr"] .timeline-icon-dot {
    right: auto;
    left: 8px;
}
.timeline-item:hover .timeline-icon-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3);
    background: var(--accent-gradient);
}

.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.timeline-item:hover .timeline-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* ======================================================== */
/* 12. Floating WhatsApp Interactive Widget                  */
/* ======================================================== */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
[dir="ltr"] .whatsapp-floating-widget {
    right: auto;
    left: 28px;
    flex-direction: row-reverse;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

.whatsapp-icon-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-icon-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-icon-btn:hover {
    transform: scale(1.1) rotate(10deg);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-box {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 330px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    overflow: hidden;
    display: none;
    transform-origin: bottom right;
    animation: popupScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 1px solid rgba(0,0,0,0.08);
}
[dir="ltr"] .whatsapp-chat-box {
    right: auto;
    left: 28px;
    transform-origin: bottom left;
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.7) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.whatsapp-chat-header {
    background: #075e54;
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-chat-body {
    padding: 22px 18px;
    background: #f0ebe3;
    background-image: radial-gradient(#d4c7b8 1px, transparent 1px);
    background-size: 16px 16px;
}

.whatsapp-bubble-msg {
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 18px;
    border-top-right-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
[dir="ltr"] .whatsapp-bubble-msg {
    border-top-right-radius: 18px;
    border-top-left-radius: 4px;
}

/* ======================================================== */
/* 13. Interactive Cost Calculator & Comparison Table        */
/* ======================================================== */
.calc-option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--card-bg);
}
.calc-option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.calc-option-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-subtle);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-price-badge {
    background: var(--success-gradient);
    color: #ffffff;
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', monospace;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Pricing Table */
.pricing-tier-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.pricing-tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pricing-tier-card.featured-tier {
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    transform: scale(1.03);
}
.pricing-tier-card.featured-tier:hover {
    transform: scale(1.05) translateY(-6px);
}
.featured-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-accent);
    letter-spacing: 0.5px;
}

/* ======================================================== */
/* 14. Footer (تذييل أنيق وفخم بتناسق عالٍ)                   */
/* ======================================================== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #f1f5f9;
    padding: 70px 0 35px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-link:hover {
    background: var(--accent-color);
    color: #0f172a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.35);
}

/* ======================================================== */
/* 15. Mobile Responsiveness                                */
/* ======================================================== */
@media (max-width: 768px) {
    .site-title { font-size: 2.6rem; }
    .site-title-small { font-size: 1.05rem; }
    .site-header { padding: 45px 0 35px; }
    .news-ticker-wrapper { min-height: 88px; height: auto; border-radius: var(--radius-lg); flex-direction: column; }
    .ticker-label { width: 100%; border-radius: var(--radius-md); justify-content: center; }
    .ticker-scroll { padding: 8px 0; }
    .hero-bio-text { min-height: 125px; }
    .site-controls { top: 12px; left: 12px; }
    [dir="ltr"] .site-controls { right: 12px; }
    .control-btn { width: 40px; height: 40px; font-size: 1rem; }
}

/* ======================================================== */
/* 16. Hero Image Showcase                                 */
/* ======================================================== */
.hero-image-container {
    max-width: 320px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.hero-image-container:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-image-frame {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.15) !important;
}

.hero-image-frame img.hero-img {
    transition: transform 0.4s ease;
    object-position: center;
}

.hero-image-container:hover .hero-image-frame img.hero-img {
    transform: scale(1.02);
}

/* ======================================================== */
/* 17. Quick Links Organized Cards                          */
/* ======================================================== */
.quick-link-card {
    display: block;
    color: inherit;
    outline: none;
}

.quick-link-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    color: var(--primary-color);
    font-size: 1.2rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-link-text {
    font-size: 0.95rem;
    color: var(--text-main) !important;
    transition: color 0.25s ease;
    line-height: 1.4;
}

.quick-link-domain {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.quick-link-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-link-card:hover .quick-link-box {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border-hover) !important;
}

.quick-link-card:hover .quick-link-box::before {
    opacity: 1;
}

.quick-link-card:hover .quick-link-icon {
    background: var(--primary-gradient);
    color: #ffffff !important;
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.quick-link-card:hover .quick-link-text {
    color: var(--primary-color) !important;
}

.quick-link-card:hover .quick-link-arrow {
    background: var(--primary-subtle);
    color: var(--primary-color);
    transform: scale(1.15) translate(-2px, -2px);
}

[dir="rtl"] .quick-link-card:hover .quick-link-arrow {
    transform: scale(1.15) translate(2px, -2px);
}

/* Dark Mode Adjustments for Quick Links */
[data-theme="dark"] .quick-link-arrow,
body.dark-mode .quick-link-arrow {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

[data-theme="dark"] .quick-link-box,
body.dark-mode .quick-link-box {
    background: #111827;
    border-color: rgba(51, 65, 85, 0.7) !important;
}

/* ============================================================ */
/* 2026 ENHANCEMENTS: Mourning Mode (شارة ووشاح الحداد) */
/* ============================================================ */
.site-mourning-grayscale {
    filter: grayscale(100%) !important;
    transition: filter 0.5s ease;
}

.mourning-top-bar {
    background: linear-gradient(90deg, #111827 0%, #000000 50%, #111827 100%);
    border-bottom: 2px solid #374151;
    position: relative;
    z-index: 999999;
}

.mourning-corner-ribbon {
    position: fixed;
    top: 0;
    width: 220px;
    height: 220px;
    overflow: hidden;
    pointer-events: none;
    z-index: 999999;
}

.mourning-corner-ribbon.ribbon-top-right {
    right: 0;
}

.mourning-corner-ribbon.ribbon-top-left {
    left: 0;
}

.mourning-corner-ribbon .ribbon-content {
    position: absolute;
    display: block;
    width: 320px;
    padding: 9px 0;
    background-color: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    color: #f3f4f6;
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    text-align: center;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
    pointer-events: auto;
    letter-spacing: 0.3px;
}

.mourning-corner-ribbon.ribbon-top-right .ribbon-content {
    right: -75px;
    top: 45px;
    transform: rotate(45deg);
}

.mourning-corner-ribbon.ribbon-top-left .ribbon-content {
    left: -75px;
    top: 45px;
    transform: rotate(-45deg);
}

/* ============================================================ */
/* 2026 ENHANCEMENTS: Celebration & Fireworks Engine */
/* ============================================================ */
.celebration-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999998;
}

.celebration-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    border: 2px solid #fef08a !important;
    position: relative;
}

[data-theme="dark"] .celebration-modal-content,
body.dark-mode .celebration-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #eab308 !important;
}

.celebration-badge-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, #fef08a 0%, #fde047 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.35);
    animation: celebrationPulse 2s infinite alternate;
}

@keyframes celebrationPulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(234, 179, 8, 0.4); }
    100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(234, 179, 8, 0.7); }
}

.celebration-banner-bar {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
    color: #ffffff;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    border-radius: 50px;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0 1rem;
    animation: bannerSlideUp 0.6s ease-out;
}

@keyframes bannerSlideUp {
    from { transform: translate(-50%, 60px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============================================================ */
/* 2026 ENHANCEMENTS: Promotional Video Floating Player */
/* ============================================================ */
.promo-sticky-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 360px;
    max-width: 90vw;
    background: #0f172a;
    border-radius: 1.25rem;
    overflow: hidden;
    z-index: 999995;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: stickyFlyIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .promo-sticky-container {
    right: auto;
    left: 25px;
}

@keyframes stickyFlyIn {
    from { transform: translateY(80px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.promo-sticky-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.promo-sticky-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}