:root {
    --primary: #6E45E2;
    --secondary: #88D3CE;
    --accent: #FF7E5F;
    --dark: #0a0a15;
    --light: #f0f4ff;
    --neon: #00F9FF;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* أنماط الهيدر */
.color {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.5);
}

/* قسم الهيرو */
.major-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a3a 100%);
    color: white;
    padding: 180px 5% 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(110, 69, 226, 0.3);
}

.major-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(110, 69, 226, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(136, 211, 206, 0.2) 0%, transparent 30%);
    z-index: 1;
}

.hologram-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(110, 69, 226, 0.7);
    position: relative;
    z-index: 2;
    animation: titleGlow 3s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(110, 69, 226, 0.7); }
    50% { text-shadow: 0 0 50px rgba(136, 211, 206, 0.8); }
    100% { text-shadow: 0 0 70px rgba(255, 126, 95, 0.6); }
}

.major-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* أقسام الصفحة */
.major-section {
    padding: 120px 5%;
    position: relative;
    background-color: var(--dark);
    border-bottom: 1px solid rgba(110, 69, 226, 0.3);
}

.major-section.light {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
    color: var(--dark);
}

.section-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(110, 69, 226, 0.5);
}

.major-section.light .section-title {
    color: var(--dark);
    text-shadow: 0 0 20px rgba(136, 211, 206, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.5);
}

/* بطاقات المحتوى المحسنة */
.major-card {
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3),
                inset 0 0 10px rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(110, 69, 226, 0.3);
    backdrop-filter: blur(10px);
}

.major-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.5);
}

.major-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(110, 69, 226, 0.5),
                inset 0 0 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(110, 69, 226, 0.5);
}

.major-card.light {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 69, 226, 0.2);
    color: var(--dark);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.major-card-title {
    font-size: 2rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
}

.major-card.light .major-card-title {
    color: var(--primary);
}

.major-card-content {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    font-size: 1.2rem;
}

.major-card.light .major-card-content {
    color: var(--dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
}

.content-icon i {
    font-size: 3rem;
    color: var(--accent);
    background: rgba(110, 69, 226, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.highlight-box {
    background: rgba(136, 211, 206, 0.15);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-right: 3px solid var(--accent);
}

/* مسار التخصص المحسن */
.path-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.path-year {
    background: rgba(255,255,255,0.05);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2),
                inset 0 0 10px rgba(255,255,255,0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(110, 69, 226, 0.3);
    backdrop-filter: blur(10px);
}

.path-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.5);
}

.path-year:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(110, 69, 226, 0.4),
                inset 0 0 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(110, 69, 226, 0.5);
}

.path-year.light {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 69, 226, 0.2);
    color: var(--dark);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.path-year-header {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.path-year-header i {
    font-size: 1.8rem;
}

.path-year-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 700;
}

.path-year.light .path-year-title {
    color: var(--primary);
}

.path-course {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(110, 69, 226, 0.3);
}

.path-year.light .path-course {
    border-bottom: 1px dashed rgba(110, 69, 226, 0.2);
}

.path-course:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.course-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.path-course-name {
    font-weight: bold;
    color: var(--secondary);
    margin: 0;
    font-size: 1.3rem;
}

.path-year.light .path-course-name {
    color: var(--primary);
}

.path-course-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 10px 0;
}

.path-year.light .path-course-desc {
    color: rgba(0,0,0,0.8);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.level-tag {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.level-tag.beginner {
    background: rgba(110, 69, 226, 0.2);
    color: var(--primary);
}

.level-tag.intermediate {
    background: rgba(136, 211, 206, 0.2);
    color: var(--secondary);
}

.level-tag.advanced {
    background: rgba(255, 126, 95, 0.2);
    color: var(--accent);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.resource-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* أنماط المشاريع المحسنة */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 69, 226, 0.2);
}

.project-item:hover {
    transform: translateY(-5px);
    background: rgba(110, 69, 226, 0.1);
    border-color: var(--secondary);
}

.project-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.3);
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tech-tags span {
    background: rgba(136, 211, 206, 0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
    gap: 8px;
}

/* أنماط الأسئلة الشائعة المحسنة */
.faq-accordion {
    border-radius: 10px;
    overflow: hidden;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.faq-question:hover {
    background: rgba(110, 69, 226, 0.2);
}

.faq-question i:first-child {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 10px;
}

.answer-content {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
    border-radius: 10px;
}

.answer-content i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

/* تأثيرات الجسيمات */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon);
    border-radius: 50%;
    animation: floatParticle linear infinite;
    opacity: 0.8;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--neon),
                0 0 20px var(--neon);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* تأثير الشلال الثنائي */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.15;
}

.binary-code {
    position: absolute;
    color: var(--neon);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    text-shadow: 0 0 5px var(--neon);
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* زر الانتقال */
.major-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    box-shadow: 0 15px 35px rgba(110, 69, 226, 0.5),
                inset 0 0 10px rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.major-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(110, 69, 226, 0.7),
                inset 0 0 15px rgba(255,255,255,0.3);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    gap: 15px;
}

.major-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    z-index: -1;
    transition: all 0.4s ease;
}

.major-btn:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent);
}

/* تأثيرات إضافية */
.glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(110, 69, 226, 0.3), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.scanline {
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(136, 211, 206, 0.3), 
        transparent);
    animation: scanline 4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* قسم التنقل السريع */
.quick-nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.quick-nav-card {
    background: rgba(110, 69, 226, 0.1);
    border: 1px solid rgba(110, 69, 226, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
}

.quick-nav-card i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.quick-nav-card:hover {
    transform: translateY(-10px);
    background: rgba(110, 69, 226, 0.3);
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.3);
    border-color: var(--secondary);
}

/* خطة الدراسة */
.plan-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.plan-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(110, 69, 226, 0.2);
    transition: all 0.3s ease;
}

.plan-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(110, 69, 226, 0.3);
}

.plan-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.plan-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 69, 226, 0.4);
}

/* الفيديو */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* الفوتر */

/* تكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .hologram-title {
        font-size: 3.5rem;
    }
    
    .major-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 21, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: all 0.5s ease;
        z-index: 999;
    }
    
    nav ul.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hologram-title {
        font-size: 2.5rem;
    }
    
    .major-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .robot-container {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .major-card, .path-year {
        padding: 25px;
    }
    
    .path-container {
        grid-template-columns: 1fr;
    }
    
    .quick-nav-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hologram-title {
        font-size: 2rem;
    }
    
    .major-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .quick-nav-container {
        grid-template-columns: 1fr;
    }
    
    .plan-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .plan-btn {
        width: 100%;
    }
}

/* إضافة في بداية ملف major.css */

/* تحسينات للأجهزة الضعيفة */
@media (max-width: 768px), (max-device-width: 768px) {
    /* تعطيل بعض التأثيرات المرئية الثقيلة */
    .particles,
    .binary-rain,
    .hologram-effect::before,
    .glow,
    .scanline,
    .robot-overlay {
        display: none !important;
    }
    
    /* تبسيط تأثيرات النص */
    .hologram-title {
        text-shadow: 0 0 10px rgba(110, 69, 226, 0.5) !important;
        animation: none !important;
    }
    
    /* تقليل حجم الخطوط */
    .hologram-title {
        font-size: 2.2rem !important;
    }
    
    .major-subtitle {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    /* تقليل حجم الروبوت ثلاثي الأبعاد */
    .robot-container {
        height: 300px !important;
    }
    
    /* تعطيل تأثيرات hover على الأجهزة التي لا تدعمها */
    @media (hover: none) {
        .major-card:hover, 
        .path-year:hover, 
        .quick-nav-card:hover,
        .project-item:hover {
            transform: none !important;
            box-shadow: none !important;
        }
    }
    
    /* تحسين عرض البطاقات */
    .major-card, .path-year {
        padding: 20px !important;
    }
    
    /* تبسيط شبكة العناصر */
    .quick-nav-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .project-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* تحسين أداء القوائم */
    nav ul {
        will-change: transform;
    }
}

/* تحسينات إضافية للأجهزة الضعيفة جدًا */
@media (max-width: 480px), (max-device-width: 480px) {
    /* إزالة المزيد من التأثيرات */
    .hologram-effect {
        display: none !important;
    }
    
    /* تقليل حجم الخطوط أكثر */
    .hologram-title {
        font-size: 1.8rem !important;
    }
    
    .major-subtitle {
        font-size: 1rem !important;
    }
    
    /* تبسيط الروبوت */
    .robot-container {
        height: 250px !important;
    }
    
    /* جعل البطاقات تأخذ عرض كامل */
    .major-card, .path-year {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* تعديل عرض أزرار التنقل السريع */
    .quick-nav-container {
        grid-template-columns: 1fr !important;
    }
    
    /* تحسين أداء الفيديو */
    .video-container iframe {
        transform: translateZ(0);
    }
}

/* إضافة أنماط fallback للروبوت */
.fallback-robot {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fallback-robot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* تحسينات للأجهزة المتوسطة */
@media (min-width: 769px) and (max-width: 1024px) {
    /* تقليل بعض التأثيرات */
    .particles {
        display: none;
    }
    
    .binary-rain {
        opacity: 0.05 !important;
    }
    
    /* تعديل أحجام الخطوط */
    .hologram-title {
        font-size: 3.5rem !important;
    }
    
    .major-subtitle {
        font-size: 1.4rem !important;
    }
    
    /* تعديل حجم الروبوت */
    .robot-container {
        height: 450px !important;
    }
    
    /* تبسيط تأثيرات البطاقات */
    .major-card:hover, 
    .path-year:hover {
        transform: translateY(-5px) !important;
    }
      .hologram-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .major-subtitle {
    font-size: 1.1rem;
  }
  
  /* تبسيط تأثيرات البطاقات */
  .major-card, .path-year {
    padding: 20px !important;
    margin-bottom: 20px;
  }
  
  /* تعطيل بعض التأثيرات على الأجهزة المحمولة */
  .particles, .binary-rain, .scanline {
    display: none;
  }
}

/* تحسينات للأجهزة التي تدعم prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* زر الصفحة الرئيسية الثابت */
.home-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(110, 69, 226, 0.5);
  z-index: 1000000000000;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.home-button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(110, 69, 226, 0.7);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.home-button i {
  transition: transform 0.3s ease;
}

.home-button:hover i {
  transform: scale(1.2);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(110, 69, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(110, 69, 226, 0);
  }
}

/* تكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .home-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 20px;
    left: 20px;
  }
}



/* خريطة الصفحة - تصميم خرافي */
#page-map-section {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  z-index: 10;
}

.page-map {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 40px;
  margin: 0 auto;
  max-width: 1200px;
  box-shadow: 0 25px 60px rgba(110, 69, 226, 0.15),
              0 15px 40px rgba(136, 211, 206, 0.1),
              inset 0 0 30px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  z-index: 2;
}

.holographic-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(110, 69, 226, 0.05) 0%, 
              rgba(136, 211, 206, 0.05) 50%, 
              rgba(255, 126, 95, 0.05) 100%);
  z-index: 1;
  animation: hologramPulse 8s infinite alternate;
}

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-particles::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(circle, 
                    rgba(110, 69, 226, 0.1) 1px, 
                    transparent 1px);
  background-size: 20px 20px;
  animation: particleMove 40s linear infinite;
  opacity: 0.3;
}

.page-map h3 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: floatIcon 3s ease-in-out infinite;
}

.title-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.title-underline {
  display: block;
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  margin-top: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 15px rgba(110, 69, 226, 0.4);
}

.map-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 3;
}

.map-item {
  perspective: 1000px;
}

.map-link {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(110, 69, 226, 0.1),
              0 4px 16px rgba(136, 211, 206, 0.1),
              inset 0 0 16px rgba(255, 255, 255, 0.8);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.map-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(110, 69, 226, 0.1) 0%, 
              rgba(136, 211, 206, 0.1) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.link-icon {
  font-size: 1.8rem;
  margin-left: 15px;
  transition: transform 0.4s ease;
}

.link-text {
  flex-grow: 1;
  transition: transform 0.4s ease, color 0.4s ease;
}

.link-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: var(--accent);
  font-weight: bold;
}

.map-link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-8px) scale(1.03) rotateX(5deg);
  box-shadow: 0 15px 45px rgba(110, 69, 226, 0.2),
              0 8px 24px rgba(136, 211, 206, 0.2),
              inset 0 0 20px rgba(255, 255, 255, 0.9);
}

.map-link:hover .link-text {
  color: var(--primary);
  transform: translateX(5px);
}

.map-link:hover .link-icon {
  transform: scale(1.2) rotate(10deg);
}

.map-link:hover .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.map-link:hover::before {
  opacity: 1;
}

.map-footer {
  position: relative;
  height: 20px;
  margin-top: 40px;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, 
              transparent, 
              rgba(136, 211, 206, 0.5), 
              transparent);
  animation: scanline 4s linear infinite;
  filter: drop-shadow(0 0 5px var(--secondary));
}

.glow-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 0 30px rgba(110, 69, 226, 0.3),
              inset 0 0 30px rgba(136, 211, 206, 0.2);
  pointer-events: none;
}

/* Animations */
@keyframes hologramPulse {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

@keyframes particleMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50%, 50%); }
}

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-map {
    padding: 30px;
  }
  
  .page-map h3 {
    font-size: 2rem;
  }
  
  .map-sections {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-map {
    padding: 25px;
    border-radius: 20px;
  }
  
  .page-map h3 {
    font-size: 1.8rem;
  }
  
  .map-sections {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .map-link {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-map {
    padding: 20px;
    border-radius: 18px;
  }
  
  .map-sections {
    grid-template-columns: 1fr;
  }
  
  .page-map h3 {
    font-size: 1.6rem;
  }
  
  .title-underline {
    width: 80px;
    height: 3px;
    margin-top: 10px;
  }
}
/* تصميم جديد للتنقل السريع */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.quick-nav-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    box-shadow: 0 10px 30px rgba(110, 69, 226, 0.1);
    border: 1px solid rgba(110, 69, 226, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.quick-nav-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(110, 69, 226, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.card-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    font-size: 2.2rem;
    color: var(--primary);
    z-index: 2;
    transition: all 0.4s ease;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(110, 69, 226, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 3s infinite;
    opacity: 0;
}

.quick-nav-card h3 {
    color: var(--primary);
    margin: 0 0 10px;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.quick-nav-card p {
    color: var(--dark);
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
    transition: opacity 0.3s ease;
}

.quick-nav-card:hover h3 {
    color: var(--accent);
}

.quick-nav-card:hover p {
    opacity: 1;
}

.quick-nav-card:hover .card-icon i {
    transform: scale(1.2) rotate(10deg);
}

.card-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.quick-nav-card:hover .card-wave {
    transform: scaleX(1);
}

/* موجات الخلفية */
.nav-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%236E45E2" opacity=".05"/></svg>');
    background-repeat: repeat-x;
    animation: waveMove 15s linear infinite;
}

.wave-1 {
    opacity: 0.7;
    animation-delay: 0s;
    bottom: 10px;
}

.wave-2 {
    opacity: 0.4;
    animation-delay: -5s;
    bottom: 20px;
    animation-duration: 20s;
}

/* تأثيرات الأدوات المساعدة */
.resource-tooltip {
    position: relative;
}

.resource-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: max-content;
    max-width: 200px;
    z-index: 10;
}

.resource-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .quick-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-nav-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-nav-card {
        padding: 18px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .quick-nav-card h3 {
        font-size: 1.2rem;
    }
}