/*================================
  1. القواعد الأساسية والخطوط
==================================*/
:root {
    --primary-blue: #008DFF; /* أزرق أساسي للأزرار والتمييز */
    --accent-green: #00FFC0; /* أخضر نيون للإبرازات */
    --dark-bg: #171c37; /* خلفية داكنة جداً */
    --light-text: #E0E0E0; /* لون النص الفاتح */
    --gray-text: #A0A0A0; /* لون النص الرمادي */
    --card-bg: #2B2B3F; /* خلفية البطاقات */
    --border-color: rgba(0, 255, 255, 0.1); /* لون الحدود الشفافة */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #000000; /* خلفية سوداء صلبة كما في التصميم المرجعي */
    color: var(--light-text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: var(--light-text);
    line-height: 1.2;
}

/* الخلفية: نقاط مضيئة خفيفة بدلاً من الشبكة الكاملة */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; /* حجم أصغر للنقاط */
    background-attachment: fixed;
    opacity: 0.5;
    z-index: -1;
}

/*================================
  2. الترويسة وشريط التنقل
==================================*/
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navigation a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.navigation a:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 5px var(--primary-blue);
}

.btn-get-started {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-get-started:hover {
    background-color: #007acc;
    box-shadow: 0 0 15px var(--primary-blue);
}
.main-header .logo {
    display: flex; /* لجعل الصورة تتمركز إن كانت أصغر */
    align-items: center;
    height: 100%; /* لضمان أن الصورة تتناسب مع ارتفاع الهيدر */
}

/* 🟢 تنسيق صورة الشعار نفسها 🟢 */
.main-header .logo-img {
    max-height: 50px; /* لتقييد ارتفاع الشعار في الهيدر */
    width: auto; /* للحفاظ على نسبة الأبعاد */
    filter: drop-shadow(0 0 8px #edbd37); /* تأثير نيون خفيف */
    transition: filter 0.3s ease-in-out;
}

.main-header .logo-img:hover {
    filter: drop-shadow(0 0 15px rgb(118, 79, 119)); /* زيادة الإضاءة عند التحويم */
}

/*================================
  3. الأقسام العامة والتخطيط
==================================*/
section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-title-box {
    margin-bottom: 20px;
}

.section-sub-title {
    color: var(--accent-green);
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.section-sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-green);
}

/* زر "تعرف على المزيد" */
.btn-learn-more {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.btn-learn-more:hover {
    color: var(--primary-blue);
}

.btn-learn-more .arrow {
    transition: transform 0.3s;
}

.btn-learn-more:hover .arrow {
    transform: translateX(-5px);
}

/*================================
  4. القسم الافتتاحي (Hero Section)
==================================*/
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding-top: 120px;
    position: relative;
    overflow: hidden; /* لإخفاء أي عناصر تخرج عن النطاق */
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--light-text);
}

.hero-content .highlight-text {
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--accent-green);
}

.hero-content .hero-description {
    font-size: 1.3em;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.hero-image {
position: relative;
    width: 50%; /* أو 40% حسب ما يناسبك */
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* لتمكين التأثيرات ثلاثية الأبعاد */
}

.hero-main-image { 
    max-width: 80%;
    height: auto;
    display: block;
    transform: rotateX(15deg) rotateY(15deg) rotateZ(-10deg); /* إمالة ثلاثية الأبعاد */
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 31, 101, 0.4); */
    border-radius: 20px; /* حواف مستديرة */
    transition: transform 0.5s ease-in-out;
    animation: floating 4s infinite ease-in-out alternate; /* تأثير الطفو */
}

@keyframes floating {
    0% { transform: translateY(0px) rotateX(15deg) rotateY(15deg) rotateZ(-10deg); }
    100% { transform: translateY(-20px) rotateX(15deg) rotateY(15deg) rotateZ(-10deg); }
}


.phone-mockup {
    max-width: 80%;
    height: auto;
    display: block;
    transform: rotateX(15deg) rotateY(15deg) rotateZ(-10deg); /* إمالة ثلاثية الأبعاد */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    transition: transform 0.5s ease-in-out;
    animation: phone-float 4s infinite ease-in-out alternate;
}

@keyframes phone-float {
    0% { transform: translateY(0px) rotateX(15deg) rotateY(15deg) rotateZ(-10deg); }
    100% { transform: translateY(-20px) rotateX(15deg) rotateY(15deg) rotateZ(-10deg); }
}


/* 🟢 أنماط أيقونات التكنولوجيا والعملات المشفرة في قسم Hero 🟢 */
.tech-icon {
    position: absolute;
    font-size: 3em; /* حجم الأيقونة */
    color: #edbd37; /* لونها أخضر نيون */
    text-shadow: 0 0 15px var(--accent-green), 0 0 5px rgba(124, 31, 101, 0.4); /* ظل نيوني */
    opacity: 0.8;
    z-index: 1; /* لتظهر فوق الخلفية وتحت التسميات */
    animation: floating-icon 3s infinite ease-in-out alternate; /* نفس تأثير الطفو */
}

/* 🟢 تحديد موقع أيقونة العملات المشفرة (BitCoin) 🟢 */
.icon-crypto {
    top: 15%;
    left: 15%; /* موقعها العلوي الأيسر */
    animation-delay: 0s; /* بدء الحركة فوراً */
}

/* 🟢 تحديد موقع أيقونة التكنولوجيا (Microchip) 🟢 */
.icon-tech {
    bottom: 10%;
    right: 10%; /* موقعها السفلي الأيمن */
    color: var(--primary-blue); /* يمكن تغيير لونها للأزرق */
    text-shadow: 0 0 15px #b557a8, 0 0 5px rgba(124, 31, 101, 0.4); /* ظل نيوني أزرق */
    animation-delay: 1.5s; /* تأخير بسيط للحركة */
}

/* 🟢 إضافة Keyframes لتأثير الطفو للأيقونات 🟢 */
@keyframes floating-icon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(5deg); } /* حركة طفو ودوران بسيط */
}
/* الأيقونات التوضيحية حول الهاتف */
.tech-label {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--accent-green);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

.tech-label:hover {
    background-color: rgba(0, 255, 255, 0.2);
}

.label-technology { top: 10%; right: 10%; }
.label-ui-ux { bottom: 20%; left: 0%; }
.label-growth { top: 40%; left: 0%; }


/*================================
  5. قسم "ماذا نقدم؟" (What We Do Section)
==================================*/
.what-we-do-section {
    background-color: #020416;
    border-radius: 15px;
    padding: 80px 60px;
    margin-top: 50px;
    text-align: center; /* المحاذاة في المنتصف للعناوين */
}

.what-we-do-section .content-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
}

.what-we-do-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.what-we-do-section p {
    font-size: 1.1em;
    color: var(--gray-text);
}

.what-we-do-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.what-we-do-section .feature-card {
background-color: rgba(0, 0, 0, 0.5); /* خلفية داكنة */
    padding: 40px 30px;
    border-radius: 10px;
    
    /* 🟢 التأثير النيوني الأساسي الرقيق 🟢 */
    border: 1px solid rgba(0, 255, 255, 0.1); 
    text-decoration: none; /* إزالة الخط السفلي من الروابط */
    cursor: pointer; /* جعل المؤشر على شكل يد للتأكيد على أنها قابلة للنقر */
    
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: right;
    position: relative;
    overflow: hidden;
    display: block; /* لجعل الرابط يملأ مساحة البطاقة */
    color: var(--light-text); /* لون النص العادي */
    min-height: 250px; /* لضمان تساوي الارتفاعات */
}

.what-we-do-section .feature-card:hover {
transform: translateY(-15px); /* رفع البطاقة للأعلى */
    
    /* 🟢 تأثير النيون النشط القوي (أكثر من السابق) 🟢 */
    box-shadow: 0 15px 50px rgba(124, 31, 101, 0.4), 0 0 20px rgba(255, 0, 170, 0.6); /* زيادة قوة الظل */
    border-color: rgba(0, 119, 255, 0.5); /* إضاءة حافة البطاقة */
}

.what-we-do-section .feature-card h3 {
color: var(--accent-green);
    margin-bottom: 15px;
    font-size: 1.5em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: color 0.3s, text-shadow 0.3s;
}
.what-we-do-section .feature-card:hover h3 {
    color: var(--primary-blue); /* تغيير اللون عند التفاعل */
    text-shadow: 0 0 10px var(--primary-blue); /* إضاءة العنوان بقوة */
}
.what-we-do-section .feature-card p {
    color: var(--gray-text);
    font-size: 1em;
}
.what-we-do-section .card-icon {
    position: absolute;
    font-size: 5em;
    opacity: 0.15; /* زيادة الشفافية قليلاً لتكون واضحة أكثر كخلفية */
    bottom: 10px;
    right: 20px;
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green);
    pointer-events: none;
    transition: opacity 0.3s, color 0.3s;
}
.what-we-do-section .feature-card:hover .card-icon {
    opacity: 0.3; /* زيادة وضوح الأيقونة الرمزية عند التفاعل */
    color: var(--primary-blue); /* تغيير لون الأيقونة الرمزية عند التحويم */
}
.card-icon {
    position: absolute;
    width: 60px;
    height: auto;
    opacity: 0.2;
    bottom: 20px;
    right: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7));
}

/*================================
  6. قسم الخدمات (Services Section)
==================================*/
.services-section {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: #18182780; /* خلفية مميزة لهذا القسم */
    border-radius: 15px;
    padding: 100px 5%;
    margin-top: 80px;
}
.services-section .content-box {
    display: flex; /* تفعيل التقسيم */
    width: 100%; /* يجب أن يملأ العرض بالكامل */
    gap: 50px;
    align-items: center;
}
.services-section .right-column {
    flex: 1;
    max-width: 50%; /* تقييد العرض إلى النصف */
}

.services-section .right-column h2 {
    font-size: 2.5em;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.services-section .right-column p {
    color: var(--gray-text);
    margin-bottom: 40px;

}
.services-section .service-image-mockup {
max-width: 100%;
    height: auto;
    /* تأكد من وجود هذه الخاصية لتحسين مظهر الصورة */
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}
/* 🟢 أنماط شريط نقاط الخدمة الجديدة 🟢 */


/* 🟢 بطاقة الخدمة الصغيرة (Service Card) 🟢 */
.service-points .service-card {
display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 8px;
    text-decoration: none;
    color: var(--light-text);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s;
    /* 💥 نعتمد هذه القيمة لضمان توزيع الثلاثة مع الـ gap 💥 */
    flex-basis: calc(33.33% - 14px); 
    min-width: 150px; 
    text-align: right;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}
.service-points {
    display: flex; /* 💥 هام: لتوزيع البطاقات أفقياً 💥 */
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; 
}

/* 🟢 تأثير التحويم (Hover) على بطاقة الخدمة الصغيرة 🟢 */
.service-points .service-card:hover {
    transform: translateY(-5px); /* رفع خفيف */
    flex-basis: calc(33.33% - 14px); /* لضمان عرض 3 بطاقات في سطر واحد */
    box-shadow: 0 0 15px #b557a8, 0 0 25px rgba(124, 31, 101, 0.4); /* ظل نيون قوي */
    border-color: var(--accent-green);
    color: var(--primary-blue);
}

/* 🟢 أيقونة الخدمة 🟢 */
.service-points .service-icon {
    font-size: 1.4em;
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
    transition: color 0.3s, text-shadow 0.3s;
}

/* 🟢 تأثير الأيقونة عند التحويم 🟢 */
.service-points .service-card:hover .service-icon {
    color: rgba(167, 117, 154, 0.4);
    text-shadow: 0 0 8px var(--primary-blue);
}



.services-section .left-column {
flex: 1; 
    text-align: center;
    max-width: 50%;
}

.service-image-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
}

/*================================
  7. قسم الأعمال (Works Section)
==================================*/
.app-web-designs-section {
    text-align: center;
    margin-top: 80px;
}

.app-web-designs-section h2 {
    font-size: 2.5em;
    margin-top: 10px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.app-web-designs-section p {
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 40px;
}

.works-mockup {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.app-mockup-item {
    width: 250px; /* حجم موحد للموك اب */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    transition: transform 0.3s;
}

.app-mockup-item:hover {
    transform: translateY(-10px);
}

/*================================
  8. قسم التواصل (Contact Section)
==================================*/
.contact-section {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background-color: var(--dark-bg);
    border-radius: 15px;
    padding: 80px 60px;
    margin-top: 80px;
}

.contact-form-container {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    border-radius: 8px;
    text-align: right;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px var(--primary-blue);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-text);
}

.btn-send {
    width: 100%;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-send:hover {
    background-color: #007acc;
    box-shadow: 0 0 15px var(--primary-blue);
}

.contact-info {
    flex: 1;
    text-align: right;
}

.contact-info h2 {
    font-size: 2.5em;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--gray-text);
    margin-bottom: 40px;
}

.btn-contact-learn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.btn-contact-learn-more:hover {
    color: var(--accent-green);
}

/*================================
  9. التذييل (Footer)
==================================*/
.main-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    background-color: #000;
    font-size: 0.9em;
    color: var(--gray-text);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-blue);
}
/*================================
  10. وسائط (Media Queries) للتجاوبية - الأكواد النهائية الموحدة
==================================*/

/* 🟢 تصميم زر الهمبرغر 🟢 */
.hamburger {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-size: 1.8em;
  cursor: pointer;
  padding: 0;
  display: none; /* إخفاء الزر افتراضياً على شاشات الكمبيوتر */
  transition: color 0.3s ease;
  z-index: 110; /* فوق جميع العناصر */
}

.hamburger:hover {
  color: var(--accent-green);
}

/* ========================================================================= */
/* 📱 992px: الأجهزة اللوحية وشاشات الجوال الكبيرة */
/* ========================================================================= */
@media (max-width: 992px) {
  /* 1. إعدادات الهيدر والهمبرغر */
.hamburger {
        display: block !important;
        z-index: 2000; /* رفعه فوق القائمة */
        color: white; /* تأكد من لونه ليكون واضحاً */
    }
    .navigation {
        position: fixed;
        top: 0;
        right: -100%; /* مخفية خارج الشاشة */
        width: 100%; /* ملء العرض */
        height: 100vh; /* ملء الارتفاع */
        background-color: rgba(15, 23, 42, 0.98); /* لون داكن يتناسب مع هويتك */
        backdrop-filter: blur(10px);
        display: flex !important; /* نستخدم flex لترتيب الروابط */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1500;
        transition: right 0.4s ease-in-out;
        opacity: 1 !important; /* إلغاء أي شفافية قديمة */
        visibility: visible !important; /* إلغاء أي إخفاء قديم */
    }

  .main-header .logo-img {
    max-height: 40px;
  }

  .hamburger {
    display: block;
  }

  .main-header .btn-get-started {
    display: none;
  }

  /* قائمة التنقل (القائمة الجانبية في الجوال) */
  .navigation {
    position: fixed;
    inset: 0; /* اختصار top:0; left:0; width:100%; height:100%; */
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 90;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease-out, opacity 0.4s ease;
  }

  .navigation.nav-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .navigation ul {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .navigation a {
    font-size: 1.5em;
    padding: 10px 0;
    display: block;
  }

  /* 2. الأقسام العامة */
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    max-width: 100%;
    width: 100%;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .phone-mockup {
    max-width: 60%;
  }

  .tech-label {
    display: none;
  }

  .contact-section {
    flex-direction: column;
  }

  .works-mockup {
    flex-wrap: wrap;
  }

  .app-mockup-item {
    width: 45%;
  }

  /* 3. قسم الخدمات */
  .services-section {
    flex-direction: column;
    gap: 40px;
  }

  .services-section .right-column,
  .services-section .left-column {
    max-width: 100%;
    flex-basis: 100%;
  }

  .service-points {
    justify-content: center;
  }

  .service-points .service-card {
    flex-basis: 100%;
  }
}

/* ========================================================================= */
/* 📱 768px: الهواتف الذكية */
/* ========================================================================= */
@media (max-width: 768px) {
  /* 1. الهيدر */
  .main-header {
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 15px 5%;
  }

  .navigation {
    display: none; /* تبقى مخفية إلى أن تُفتح بالهمبرغر */
  }

  .main-header .btn-get-started {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* 2. الأقسام العامة */
  section {
    padding: 80px 20px;
  }

  .hero-content h1 {
    font-size: 2.8em;
  }

  .what-we-do-section,
  .services-section,
  .contact-section {
    padding: 40px 20px;
  }

  .what-we-do-section .features-grid {
    grid-template-columns: 1fr;
  }

  .app-mockup-item {
    width: 80%;
  }
}

/* ========================================================================= */
/* 📱 480px: الهواتف الصغيرة جداً */
/* ========================================================================= */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.3em;
  }

  .hero-content .hero-description {
    font-size: 1em;
  }

  .phone-mockup {
    max-width: 90%;
  }

  .what-we-do-section h2,
  .services-section .right-column h2,
  .app-web-designs-section h2,
  .contact-info h2 {
    font-size: 1.8em;
  }
}
