/* لوحة الألوان الفخمة ونظام التصميم */
:root {
    --bg-main: #ffffff;
    --bg-sub: #f4f8fc;
    --primary: #0052cc;
    --primary-hover: #0041a3;
    --primary-light: #e6f0ff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --border-accent: #cbd5e1;
    --radius-sm: 4px;
    --radius-md: 8px;
    --max-width: 1140px;
}

/* تصفير الإعدادات العامة وتحسين الرؤية */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* القائمة العلوية الفخمة */
.main-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.site-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.site-name .thin-text {
    font-weight: 300;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* نظام الجرس والإشعارات المطور */
.notification-bell-container {
    position: relative;
}

.bell-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.bell-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
}

.bell-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

.notifications-dropdown {
    position: absolute;
    left: 0;
    top: 50px;
    width: 340px;
    background-color: #ffffff;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: none;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1100;
}

.notifications-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 14px 16px;
    background-color: var(--bg-sub);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notif-item:hover {
    background-color: var(--primary-light);
}

.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.notif-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 4px 0;
}

.notif-date {
    font-size: 0.75rem;
    color: var(--primary);
}

/* قسم الـ Hero الاحترافي وبراويز الصورة الفخمة */
.hero-section {
    background-color: var(--bg-sub);
    padding: 90px 20px;
    border-bottom: 1px solid var(--border-color);
}

.hero-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.15s ease;
}

.social-links a:hover {
    color: var(--primary);
}

/* إطار الصورة الشخصية الفخم (تصميم هندسي راقي) */
.hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.avatar-frame {
    position: relative;
    width: 280px;
    height: 340px;
    background-color: #ffffff;
    border: 1px solid var(--border-accent);
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.04);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%);
    border: 1px solid var(--border-color);
}

/* زوايا الديكور الهندسي لإعطاء فخامة البلوبرينت */
.frame-decor-1 {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--primary);
}

.frame-decor-2 {
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
}

/* تصميم ترويسة الأقسام المشتركة */
.section-header {
    max-width: 650px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background-color: var(--primary);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* شبكة المشاريع الاحترافية Grid */
.projects-section, .events-section, .contact-section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.04);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.project-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* خط زمني فخم للأحداث */
.events-timeline {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
}

.event-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.event-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.event-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* نموذج اتصال فخم ومنظم */
.contact-box {
    background-color: var(--bg-sub);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: var(--radius-md);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-accent);
    background-color: #ffffff;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: auto;
    margin-top: 10px;
    transition: background-color 0.15s ease;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* فوتر نظيف واحترافي */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 20px;
    background-color: #ffffff;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-status {
    color: var(--primary);
    font-weight: 600;
}

/* التوافق الكامل والممتاز مع الهواتف الذكية الأجهزة الضعيفة */
@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .avatar-frame {
        width: 240px;
        height: 290px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .notification-bell-container {
        position: static;
    }
    
    .notifications-dropdown {
        left: 16px;
        right: 16px;
        width: auto;
        top: 120px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-box {
        padding: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==========================================================================
   قسم الدعم والتبرع الفخم (Donation Section)
   ========================================================================== */
.donation-section {
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.donation-box {
    background-color: #ffffff;
    /* إطار أزرق متقطع يعطي طابع التصاميم الهندسية الفخمة */
    border: 2px dashed var(--primary); 
    padding: 45px 30px;
    border-radius: var(--radius-md);
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.02);
}

.donation-icon {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 16px;
    /* حركة نبض خفيفة جداً وغير مؤثرة على أداء الأجهزة */
}

.donation-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.donation-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 28px auto;
    line-height: 1.7;
}

.btn-donation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease;
}

.btn-donation:hover {
    background-color: var(--primary-hover);
}

/* التوافق مع الهواتف الذكية */
@media (max-width: 768px) {
    .donation-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .donation-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   ستايل زر منصة الديسكورد في الناف بار (لجذب الزوار)
   ========================================================================== */
.discord-nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: var(--primary) !important;
    font-weight: 700 !important;
    position: relative;
    padding-right: 15px; /* مسافة بسيطة عشان الشارة */
}

.discord-nav-link i {
    font-size: 1.15rem;
}

/* شارة "جديد" مع حركة نبض خفيفة جداً */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #ef4444; /* لون أحمر جاذب */
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* تعديل بسيط للجوال عشان ما يخرب الترتيب */
@media (max-width: 768px) {
    .discord-nav-link {
        padding-right: 0;
    }
    .nav-badge {
        right: -25px;
    }
}

/* ==========================================================================
   تأثير تساقط الأيقونات (Pure CSS Snow/Fall Effect)
   ========================================================================== */
.falling-roles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 9999; /* ليكون فوق كل شيء في الموقع */
    pointer-events: none; /* 🔴 مهم جداً: يمنع الأيقونات من إعاقة ضغطات الماوس */
}

.falling-icon {
    position: absolute;
    top: -60px; /* تبدأ من خارج الشاشة بالأعلى */
    width: 35px; /* حجم الأيقونات الافتراضي */
    height: auto;
    opacity: 0.65; /* شفافية خفيفة عشان ما تزعج العين وتغطي على النصوص */
    animation: fall linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 82, 204, 0.4)); /* توهج أزرق خفيف حول الرتب */
}

/* حركة السقوط والدوران */
@keyframes fall {
    0% {
        transform: translateY(-60px) rotate(0deg) scale(1);
    }
    100% {
        transform: translateY(110vh) rotate(360deg) scale(0.8); /* تنزل لأسفل الشاشة مع دوران */
    }
}

/* توزيع الأيقونات بأماكن، أحجام، وسرعات مختلفة لتبدو طبيعية وعشوائية */
.falling-icon:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 40px; }
.falling-icon:nth-child(2) { left: 25%; animation-duration: 16s; animation-delay: 2s; }
.falling-icon:nth-child(3) { left: 40%; animation-duration: 11s; animation-delay: 4s; width: 30px;}
.falling-icon:nth-child(4) { left: 55%; animation-duration: 18s; animation-delay: 1s; }
.falling-icon:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: 3s; width: 45px;}
.falling-icon:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; }
.falling-icon:nth-child(7) { left: 95%; animation-duration: 13s; animation-delay: 0.5s; width: 28px;}
.falling-icon:nth-child(8) { left: 15%; animation-duration: 17s; animation-delay: 6s; }

/* ==========================================================================
   إعدادات القائمة المنسدلة (Drop Menu) للهواتف
   ========================================================================== */

/* إخفاء زر الجوال في شاشات البيسي */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

/* تفعيل التنسيق الخاص بشاشات الجوال */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap; /* للسماح للعناصر بالنزول */
    }

    /* إظهار زر الجوال */
    .mobile-menu-btn {
        display: block;
        order: 1; /* ترتيبه بجانب الشعار */
    }

    /* تعديل الإشعارات لتكون بجانب الشعار والزر */
    .notification-bell-container {
        order: 2;
    }

    /* إخفاء القائمة الأصلية وتجهيزها لتكون منسدلة */
    .nav-menu {
        display: none; /* مخفية افتراضياً */
        flex-direction: column;
        width: 100%;
        order: 3; /* تنزل تحت الشعار والزر */
        background-color: var(--bg-main);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: 0 10px 25px rgba(0, 82, 204, 0.08);
        padding: 15px;
        margin-top: 15px;
        text-align: center;
        gap: 15px;
    }

    /* هذا الكلاس سيتم إضافته بالجافاسكريبت لإظهار القائمة بنعومة */
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}




/* ==========================================================================
   تنسيق قسم آراء العملاء (Testimonials)
   ========================================================================== */
.testimonials-section {
    padding: 80px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 82, 204, 0.03);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.08);
}

.stars {
    color: #ffb800;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.client-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.client-role {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* ==========================================================================
   تنسيق زر إظهار المزيد والمشاريع المخفية
   ========================================================================== */

/* إخفاء البطاقات التي تتجاوز العدد المسموح به */
.project-card.hidden-project {
    display: none !important;
}

/* حاوية زر إظهار المزيد */
.show-more-container {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

/* تصميم الزر الفخم */
.btn-show-more {
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.05);
}

.btn-show-more:hover {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.2);
    transform: translateY(-2px);
}

/* تنسيق قائمة تغيير اللغة المنسدلة */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color, #d2d2d2);
    color: var(--text-color, #1a1a1a);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--primary, #0052cc);
    color: var(--primary, #0052cc);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.08);
    border: 1px solid var(--border-color, #d2d2d2);
    border-radius: 6px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

/* الكلاس الجديد اللي راح يتحكم فيه الجافاسكريبت */
.lang-menu.show-menu {
    display: block;
}

.lang-menu a {
    color: #1a1a1a !important;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

.lang-menu a:hover {
    background-color: var(--primary-light, #e6f0ff);
    color: var(--primary, #0052cc) !important;
    padding-right: 20px;
}

.lang-menu a.active-lang {
    font-weight: bold;
    color: var(--primary, #0052cc) !important;
    background-color: #fafafa;
}


/* ==========================================================================
   1. وضع التيتانيوم الليلي (Titanium Dark Mode)
   ========================================================================== */
body.titanium-dark {
    --bg-main: #0d1117;        /* لون خلفية داكن جداً */
    --bg-sub: #161b22;         /* لون التيتانيوم المعدني */
    --text-color: #e6edf3;     /* نصوص فاتحة */
    --border-color: #30363d;
    background-color: var(--bg-main);
    color: var(--text-color);
}

/* تطبيق التيتانيوم على العناصر */
body.titanium-dark .main-header,
body.titanium-dark .lang-menu,
body.titanium-dark .form-wrapper,
body.titanium-dark .project-card,
body.titanium-dark .testimonial-card,
body.titanium-dark .manga-screen {
    background-color: var(--bg-sub);
    border-color: var(--border-color);
}

body.titanium-dark .contact-form input,
body.titanium-dark .contact-form textarea {
    background-color: #0d1117;
    color: #e6edf3;
    border-color: #30363d;
}

body.titanium-dark .nav-menu a {
    color: #e6edf3;
}

/* ==========================================================================
   2. زر وضع الاسترخاء (Chill Mode)
   ========================================================================== */
.floating-chill-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: #0052cc;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-chill-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.floating-chill-btn.playing {
    background-color: #1a7f37; /* لون أخضر هادئ عند التشغيل */
    animation: pulseAudio 2s infinite;
}

@keyframes pulseAudio {
    0% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(26, 127, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); }
}

/* ==========================================================================
   3. تأثير التلاشي السلس (Smooth Fade-in)
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   4. الإيستر إيج (Easter Egg Popup)
   ========================================================================== */
.easter-egg-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: #161b22;
    color: #e6edf3;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    z-index: 10000;
    border: 2px solid #0052cc;
    box-shadow: 0 0 40px rgba(0, 82, 204, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.easter-egg-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

