html {
    scroll-behavior: smooth;
}
/* الألوان الأساسية */
:root {
    --bg-color: #0f0f12;
    --accent-color: #e63946;
    --text-color: #ffffff;
    --gray-text: #b0b0b0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 15, 18, 0.9);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: 0.3s;
}

nav ul li a.active, nav ul li a:hover {
    color: var(--accent-color);
}

.btn-consult {
    border: 1px solid var(--accent-color);
    background: transparent;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 50px 5%;
    min-height: 80vh;
    
    /* هنا نربط الصورة من جهازك */
    background-image: url('my-background.jpg'); 
    
    /* إعدادات حتى الصورة تطلع مضبوطة */
    background-size: cover;       /* تخلي الصورة تغطي كل المساحة */
    background-position: center;  /* تخلي الصورة بالمنتصف */
    background-repeat: no-repeat; /* تمنع تكرار الصورة */
    
    /* إضافة طبقة تعتيم خفيفة حتى الكلام يظل واضح مثل الصورة الأصلية */
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.6); 
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--gray-text);
}

.btn-main {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
    cursor: pointer;
    margin-top: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
}

/* Icons Section */
.features-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-bottom: 50px;
}

.icon-item {
    width: 60px;
    height: 60px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.active-icon {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}
.hero-tag {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: blink 1s infinite; /* حركة نبض */
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}
/* تنسيق قسم اللوكو بشكل عام */
.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* المسافة بين الدرع والاسم */
    text-decoration: none; /* إذا جان رابط */
}

/* تصميم الدرع السايبراني */
.cyber-shield-logo {
    position: relative;
    width: 45px;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.8)); /* وهج الدرع الرئيسي */
}

/* حدود الدرع (الشكل المضلع) */
.shield-border {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 3px solid var(--accent-color); /* اللون الأحمر */
    border-radius: 5px;
    /* هذا الكود يسوي شكل الدرع المضلع */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(230, 57, 70, 0.05); /* خلفية خفيفة جداً داخل الدرع */
}

/* الحرف اللي داخل الدرع */
.shield-text {
    font-family: 'Poppins', sans-serif; /* خط إنكليزي حديث */
    font-weight: 800;
    font-size: 24px;
    color: var(--accent-color);
    z-index: 1; /* حتى يطلع فوگ الحدود */
    text-shadow: 0 0 5px rgba(230, 57, 70, 1); /* وهج الحرف */
}

/* تنسيق اسم الشركة بصف الدرع */
.company-name {
    display: flex;
    flex-direction: column; /* كلمة فوق كلمة */
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
}

.logo-txt1 {
    font-weight: 300;
    color: var(--gray-text);
    font-size: 16px;
    letter-spacing: 2px;
}

.logo-txt2 {
    font-weight: 800;
    color: var(--text-color);
    font-size: 20px;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)); /* وهج خفيف أبيض */
}
/* الخلفية المعتمة */
.modal {
    display: none; /* راح نتحكم بيها بالجافا سكربت */
    position: fixed;
    z-index: 10000; /* خليتها أعلى شي بالعالم */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    align-items: center; 
    justify-content: center;
}

/* هذا الكلاس هو اللي راح يشغل الفتح */
.modal.show-modal {
    display: flex !important;
}

/* صندوق المحتوى لكل النوافذ */
.modal-content {
    background: #15151a;
    padding: 25px;
    border: 2px solid var(--accent-color);
    width: 90%;
    max-width: 550px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.5);
    
    /* لضمان عدم خروج النافذة عن الشاشة */
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative;
    margin: auto; /* لضمان التوسط في كل المتصفحات */
}

/* تنسيق السكرول بار حتى يطلع شكله حلو وسايبر */
.modal-content::-webkit-scrollbar {
    width: 5px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

/* قائمة المطورين */
.dev-item {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 1.1rem;
}

.dev-item span { color: white; }
.dev-item a { 
    color: var(--accent-color); 
    text-decoration: none; 
    font-weight: bold;
}

/* زر الإغلاق */
.close-btn {
    color: #aaa;
    float: left;
    font-size: 28px;
    cursor: pointer;
}
.close-btn:hover { color: white; }
.hero-content h1 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(230, 57, 70, 0.3);
}
/* تنسيق قسم الدوائر بشكل عام ليسمح بالاسم تحتها */
.features-icons .icon-item {
    display: flex;
    flex-direction: column; /* جعل الأيقونة فوق النص */
    align-items: center;
    position: relative; /* مهم لتموضع الاسم */
}

/* تنسيق الأيقونة البرمجية الجديدة */
.icon-item i {
    font-size: 28px; /* حجم الأيقونة */
    color: var(--accent-color); /* اللون الأحمر */
    text-shadow: 0 0 10px rgba(230, 57, 70, 1); /* الوهج الأحمر للأيقونة */
}

/* تنسيق الاسم تحت الدائرة */
.icon-text {
    color: var(--gray-text); /* لون النص رمادي */
    font-size: 14px;
    margin-top: 10px; /* المسافة بين الدائرة والنص */
    position: absolute;
    bottom: -30px; /* النزول تحت الدائرة */
    white-space: nowrap; /* يمنع نزول النص سطر جديد */
    opacity: 1; /* تأكد إنه ظاهر */
}
.tool-card {
    background: #1e1e24;
    padding: 15px;
    margin: 15px 0;
    border-radius: 10px;
    border-right: 4px solid var(--accent-color);
}
.tool-card input {
    width: 80%;
    padding: 8px;
    background: #0f0f12;
    border: 1px solid #333;
    color: white;
    margin-top: 10px;
}
.strength-bar {
    height: 5px;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-tool {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}
.result-box {
    margin-top: 10px;
    color: #00ff00; /* لون أخضر تقني */
    font-family: monospace;
}
/* تنسيق حاوية النصائح */
.tips-container {
    text-align: right; /* محاذاة النص لليمين للغة العربية */
    margin-top: 20px;
}

/* تنسيق البطاقة العامة */
.tip-card {
    background: #1e1e24;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-right: 5px solid transparent; /* الإطار الجانبي */
    transition: 0.3s;
}

/* تنسيق العناوين والأيقونات داخل البطاقات */
.tip-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تنسيق القوائم والنصوص */
.tip-card ul {
    list-style-type: disc;
    margin-right: 20px;
    color: #b0b0b0;
}
.tip-card p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

/* --- ألوان البطاقات حسب النوع --- */

/* 1. نصائح إيجابية (أخضر) */
.positive-tip {
    border-right-color: #00ff00;
}
.positive-tip h3 { color: #00ff00; }

/* 2. تحذيرات (أصفر) */
.warning-tip {
    border-right-color: #ffcc00;
}
.warning-tip h3 { color: #ffcc00; }

/* 3. تجنب الهجمات (أحمر) */
.attack-tip {
    border-right-color: var(--accent-color);
}
.attack-tip h3 { color: var(--accent-color); }
/* إظهار أيقونة الدرع باللون الأحمر */
.tips-btn i {
    font-size: 30px !important;
    color: #e63946 !important; /* اللون الأحمر مالتك */
    display: block !important;
    text-shadow: 0 0 15px rgba(230, 57, 70, 0.8); /* وهج أحمر */
}

/* إظهار النص تحتها */
.tips-btn .icon-text {
    display: block !important;
    color: white !important;
    margin-top: 10px !important;
}
/* --- تنسيقات نافذة الخريطة --- */
.threat-map-modal .map-content {
    max-width: 95vw; /* تأخذ معظم عرض الشاشة */
    width: 95vw;
    height: 90vh; /* تأخذ معظم ارتفاع الشاشة */
    background: #000; /* خلفية سوداء تماماً لبروز الخريطة */
    border: 1px solid #00ffff; /* إطار فيروزي "سايبر" */
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* منع التمرير الخارجي */
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.map-title {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.close-map-btn {
    color: #00ffff;
    position: absolute;
    left: 20px;
    top: 10px;
}

/* حاوية العرض الرئيسية */
.map-visualization-container {
    display: flex;
    flex: 1; /* تأخذ باقي الارتفاع */
    position: relative;
    gap: 10px;
    overflow: hidden;
}

/* حاوية الخريطة الحية */
.live-map-frame {
    flex: 1; /* الخريطة تأخذ المساحة الكبرى */
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

/* --- تنسيقات الرادار --- */
.radar-scan {
    width: 150px; /* عرض جانبي للرادارات */
    background: repeating-radial-gradient(circle at center, #001a1a 0px, #001a1a 10px, #003333 11px, #003333 20px);
    border: 2px solid #004d4d;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* عارضة الرادار التي تدور */
.radar-beam {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, #00ffff, transparent);
    transform-origin: center;
    animation: radar-spin 4s linear infinite;
    box-shadow: 0 0 15px #00ffff;
}

@keyframes radar-spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* --- تنسيقات قائمة أسماء الهجمات --- */
.radar-attacks-list {
    width: 100%;
    padding: 10px;
    margin-top: auto; /* دفع القائمة للأسفل */
    text-align: center;
    z-index: 10;
}

/* اسم الهجوم الفردي */
.attack-entry {
    color: #ff3333; /* أحمر ناري للهجمات */
    font-family: 'Courier New', monospace; /* خط برمي كلاسيكي */
    font-size: 0.8rem;
    margin-bottom: 5px;
    opacity: 0; /* يبدأ مخفي */
    transform: translateY(10px);
    animation: attack-appear 5s linear forwards;
    text-shadow: 0 0 5px #ff3333;
}

@keyframes attack-appear {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0px); }
    90% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; transform: translateY(-10px); } /* يختفي للأعلى */
}
/* --- تنسيقات نافذة الـ Roadmap الجديدة للنصائح --- */
.tips-roadmap-content {
    max-width: 90vw; /* تأخذ معظم عرض الشاشة */
    width: 90vw;
    height: 85vh; /* تأخذ معظم ارتفاع الشاشة */
    background: #111; /* خلفية سوداء فخمة */
    border: 2px solid #e63946; /* إطار أحمر سايبر */
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* منع التمرير الخارجي */
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(230, 57, 70, 0.3);
}

.roadmap-title {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    margin-bottom: 5px;
    font-size: 1.8rem;
    text-align: center;
}

.roadmap-subtitle {
    color: #aaa;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* حاوية الخريطة الرئيسية */
.roadmap-container {
    flex: 1; /* تأخذ باقي الارتفاع */
    overflow-y: auto; /* تمرير داخلي */
    padding-right: 15px; /* مسافة للشريط */
    position: relative;
}

/* خط الزمن العمودي خلف العناصر */
.roadmap-container::before {
    content: '';
    position: absolute;
    right: 25px; /* مكان الخط */
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #e63946, #00ffff, #00ff00);
    z-index: 1;
}

/* --- تنسيقات المرحلة --- */
.roadmap-phase {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.phase-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a1d;
    color: #e63946;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #e63946;
    box-shadow: 0 0 15px #e63946;
}

.phase-header h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.phase-status {
    font-size: 0.8rem;
    color: #aaa;
    margin-right: 10px;
    font-style: italic;
}

/* --- تنسيقات الكروت (Grid) --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* ترتيب تلقائي */
    gap: 15px;
    margin-right: 65px; /* إزاحة عن خط الزمن */
}

.tip-card-new {
    background: #1a1a1d;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.3s ease; /* أنيميشن عند التمرير */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tip-card-new:hover {
    transform: translateY(-5px); /* يرتفع للأعلى */
    border-color: #00ffff; /* يضوي فيروزي */
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.tip-card-new i {
    font-size: 2rem;
    color: #00ffff; /* لون فيروزي للأيقونات */
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.tip-card-new:hover i {
    transform: scale(1.1); /* تكبير الأيقونة */
}

.tip-card-new h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.tip-card-new p {
    color: #ccc;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* --- تلوين الكروت حسب المرحلة --- */

/* المرحلة الأولى: فيروزي */
.phase-1 .phase-number { border-color: #00ffff; color: #00ffff; box-shadow: 0 0 15px #00ffff; }
.phase-1 .phase-status { color: #00ffff; }
.phase-1 .tip-card-new i { color: #00ffff; }
.phase-1 .tip-card-new:hover { border-color: #00ffff; box-shadow: 0 0 20px rgba(0, 255, 255, 0.4); }

/* المرحلة الثانية: أحمر */
.phase-2 .phase-number { border-color: #e63946; color: #e63946; box-shadow: 0 0 15px #e63946; }
.phase-2 .phase-status { color: #e63946; }
.phase-2 .warning-card i { color: #e63946; }
.phase-2 .tip-card-new:hover { border-color: #e63946; box-shadow: 0 0 20px rgba(230, 57, 70, 0.4); }

/* المرحلة الثالثة: أخضر */
.phase-3 .phase-number { border-color: #00ff00; color: #00ff00; box-shadow: 0 0 15px #00ff00; }
.phase-3 .phase-status { color: #00ff00; }
.phase-3 .attack-card i { color: #00ff00; }
.phase-3 .tip-card-new:hover { border-color: #00ff00; box-shadow: 0 0 20px rgba(0, 255, 0, 0.4); }
.phase-locked {
    filter: blur(8px) grayscale(1); /* ضبابية وأبيض وأسود */
    pointer-events: none; /* يمنع الضغط */
    opacity: 0.5;
}

.unlock-btn {
    background: #e63946;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}
/* كلاس القفل - يخلي المرحلة مغبشة وميسمح بالضغط */
.phase-locked {
    filter: blur(8px) grayscale(1); /* تغبيش وأبيض وأسود */
    pointer-events: none; /* يمنع الضغط على الكروت */
    opacity: 0.4; /* يخليها شفافة شوية */
    user-select: none; /* يمنع تحديد النص */
    transition: all 0.5s ease; /* أنيميشن ناعم من تنفتح */
}

/* تنسيق زر الاختبار */
.unlock-btn {
    background: linear-gradient(45deg, #e63946, #b22222);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    transition: 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.unlock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #e63946;
}
.phase-locked {
    filter: blur(12px) grayscale(1) !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
    user-select: none !important;
    transition: all 0.5s ease-in-out;
}.roadmap-container::-webkit-scrollbar { width: 8px; }
.roadmap-container::-webkit-scrollbar-track { background: #111; }
.roadmap-container::-webkit-scrollbar-thumb { background: #e63946; border-radius: 10px; }
/* هذا الكلاس هو المحرك الأساسي لإظهار النوافذ */
.modal.show-modal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* التنسيق الافتراضي للـ div الخاص بالأيقونة */
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ناعمة مع ارتداد بسيط */
    cursor: pointer;
    padding: 10px;
}

/* تأثير الـ Hover على الـ div بالكامل */
.icon-item:hover {
    transform: scale(1.18); /* تكبير الـ div بنسبة 18% */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8)); /* وهج أحمر قوي وواضح */
}

/* لضمان أن الأيقونة بداخل الـ div لا تتأثر بشكل منفصل وتتحرك مع الـ div بسلاسة */
.icon-item i {
    transition: color 0.3s ease;
}

.icon-item:hover i {
    color: #ff0000; /* تغيير لون الأيقونة للأحمر عند الوقوف عليها (اختياري) */
}

/* تأثير إضافي للنص حتى يبرز مع التكبير */
.icon-item:hover span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    font-weight: bold;
}