

:root { 
    --primary-blue: #3B82F6; 
    --primary-purple: #8B5CF6; 
    --background-dark: #020617; 
    --glass-bg: rgba(15, 23, 42, 0.7); 
    --glass-border: rgba(255, 255, 255, 0.1); 
    --text-primary: #F8FAFC; 
    --text-secondary: #d4deed; 
    --card-hover-bg: rgba(30, 41, 59, 0.85);
    --primary-purple2: #c381de; 

    /* Button Specific Colors */
    --btn-bg: #256176;
    --btn-accent: #25aaaa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--background-dark); 
    color: var(--text-secondary); 
    overflow-x: hidden; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
}
/* --- Navbar Positioning & Layout --- */
/* --- تحديث حاوية النافبار لتأخذ العرض الكامل --- */
.novexa-navbar {
    position: absolute;
    top: 30px;
    left: 0; 
    width: 100%; /* العرض كامل بدلاً من التموضع في اليمين فقط */
    padding: 0 40px; /* هوامش جانبية لضمان عدم التصاق العناصر بالحواف */
    display: flex;
    justify-content: space-between; /* يفصل بين مجموعة اليمين ومجموعة اليسار */
    align-items:center;
    direction: rtl; /* ضمان الاتجاه من اليمين لليسار */
    z-index: 1000;
    box-sizing: border-box;
}

/* --- مجموعة الأزرار اليمنى (Nav Items) --- */
.nav-right-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: -20px;
}

/* --- مجموعة اليسار (الشعار + الدخول) --- */
.nav-left-group {
    display: flex;
    align-items: center;
    gap: 40px; /* مسافة بين الشعار وزر الدخول */
    padding-left: 30px;
}

/* --- تنسيق الشعار --- */
.nav-logo {
    height: 55px; /* نفس ارتفاع الأزرار للتناسق */
    width: 75px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}
.nav-left-group a:hover{
    transform: scale(1.1);
}



/* --- تحسين الاستجابة للشاشات الصغيرة --- */
@media (max-width: 768px) {
    .novexa-navbar {
        padding: 20px;
        flex-direction: column-reverse; /* عكس الترتيب في الموبايل ليظهر الشعار بالأعلى */
        gap: 20px;
        position: relative;
    }
    
    .nav-left-group, .nav-right-group {
        justify-content: center;
        width: 100%;
    }
}

/* --- SVG Wrapper & Base Logic --- */
.svg-wrapper {
    position: relative;
    width: 150px;
    height: 40px;
    display: inline-block;
    border-radius: 3px;
    cursor: pointer;
}

/* --- The SVG Shape Animation (Exact Logic Preserved) --- */
.nav-shape {
    stroke-width: 3px; /* Slightly refined for elegance */
    fill: transparent;
    stroke: #009FFD; /* Primary Neon Blue */
    stroke-dasharray: 85 400; /* Creates the underline effect */
    stroke-dashoffset: -220; /* Positions the line at bottom */
    transition: 1s all ease;
}

/* Hover Effect: Wraps the button */
.svg-wrapper:hover .nav-shape,
.svg-wrapper.active .nav-shape {
    stroke-dasharray: 50 0;
    stroke-width: 3px;
    stroke-dashoffset: 0;
    stroke: #06D6A0; /* Secondary Neon Green */
}

/* --- Text Styling inside SVG --- */
.nav-text {
    margin-top: -35px;
    text-align: center;
    position: relative;
    pointer-events: none; /* Let clicks pass through to the wrapper/anchor */
}

.nav-text a {
    color: #F8FAFC;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Poppins', sans-serif; /* Consistent Font */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
/* هذا هو الشكل الذي سيظهر عند السكرول */
.novexa-navbar.active {
    background: rgba(2, 6, 23, 0.8) !important; /* خلفية داكنة */
    backdrop-filter: blur(10px); /* تنعيم خلفية النافبار */
    padding: 15px 40px; /* تصغير المسافة قليلاً عند السكرول */
    position: fixed; /* يجعله ثابتاً في الأعلى */
    top: 0;
    right: 0;
    width: 100%;
    transition: all 0.3s ease;
}
   
.spot {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

/* --- Dropdown Menu Styling --- */
.dropdown-trigger {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 55px; /* Spacing from button */
    left: 0;
    width: 180px;
    background: rgba(2, 6, 23, 0.95); /* Deep dark background */
    border: 1px solid rgba(0, 159, 253, 0.2);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    
    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

/* Dropdown Active State */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: block;
    padding: 12px 15px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    text-align: right; /* Align text for Arabic */
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #009FFD;
    padding-right: 20px; /* Subtle slide effect */
    border-bottom: 1px solid rgba(0, 159, 253, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .novexa-navbar {
        position: relative; /* Unfix on mobile to prevent overlap */
        top: 0;
        right: 0;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
        width: 100%;
    }
    
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 200px;
    }
    
    .dropdown-menu.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* --- Background Animation --- */
.sky-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.stars { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; }
#stars1 { animation: animate-stars 150s linear infinite; } 
#stars2 { animation: animate-stars 100s linear infinite; } 
#stars3 { animation: animate-stars 75s linear infinite; }
@keyframes animate-stars { from { transform: translateY(0px); } to { transform: translateY(-2000px); } }
.shooting-star { position: absolute; height: 2px; background: linear-gradient(-45deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); border-radius: 999px; filter: drop-shadow(0 0 6px rgba(192, 218, 255, 0.5)); animation: shooting-star-anim 10s ease-in-out infinite; }
@keyframes shooting-star-anim { 0% { opacity: 1; transform: translateX(100vw) translateY(-50vh) scaleX(0); } 5% { opacity: 1; transform: translateX(50vw) translateY(-25vh) scaleX(1); } 10% { opacity: 0; transform: translateX(0vw) translateY(0vh) scaleX(0); } 100% { opacity: 0; } }
.galaxy-glow { position: fixed; width: 100vw; height: 100vh; background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, rgba(2, 6, 23, 0) 60%); z-index: 0; pointer-events: none; }

/* --- Layout Containers --- */
.main-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header {margin-right: 20px; text-align: center; margin-bottom: 47px; margin-top: 55px;}
.header img { max-width: 220px; margin-bottom: 8px; filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4)); }
.header p {font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    
    /* Fix: This keeps it centered and prevents it from moving */
    width: fit-content;
    margin: 10px auto 0; 
    display: block; 
    text-align: center;

    /* Gradient Text Logic */
    background: linear-gradient(
        to right, 
        #3B82F6, 
        #8B5CF6, 
        #25aaaa, 
        #3B82F6
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Combined Animations: Heartbeat + Color Flow */
    -webkit-animation: heartbeat 2.6s ease-in-out 1.8s infinite both, colorFlow 4s linear infinite;
            animation: heartbeat 2.6s ease-in-out 1.8s infinite both, colorFlow 4s linear infinite;  }

.ecosystem-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-bottom: 60px;
}

/* --- Feature Block Styling --- */
.feature-block {
    text-decoration: none;
    display: flex;
    width: 80%;
    min-height: 280px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.block-image {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.img-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(270deg, var(--background-dark) 0%, rgba(2, 6, 23, 0) 100%);
    opacity: 0.6;
}
.block-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان ملء المساحة بدون تشويه */
    transition: transform 0.6s ease;
    display: block;
}

.block-content {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.icon-badge {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.block-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.block-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.block-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 90%;
}

/* --- New Interactive Button Component --- */
.novexa-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 24px;
    overflow: hidden;
    font-weight: 500;
    background-color: var(--btn-bg);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Top Right Corner Effect */
.novexa-btn-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: var(--btn-accent);
    border-radius: 4px;
    transition: all 0.5s ease-in-out;
    z-index: 2;
}

.feature-block:hover .novexa-btn-corner,
.novexa-btn:hover .novexa-btn-corner {
    margin-right: -16px;
    margin-top: -16px;
}

.novexa-btn-corner span {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: translate(50%, -50%) rotate(45deg);
}

/* Fill Animation */
.novexa-btn-fill {
    position: absolute;
    bottom: 0;
    left: 0; /* RTL Aware: Left is physical left */
    width: 100%;
    height: 100%;
    background-color: var(--btn-accent);
    border-radius: 8px;
    transition: all 0.5s ease-in-out 0.2s;
    transform: translate(-100%, 100%);
    z-index: 0;
}

.feature-block:hover .novexa-btn-fill,
.novexa-btn:hover .novexa-btn-fill {
    transform: translate(0, 0);
}

/* Button Text */
.novexa-btn-text {
    position: relative;
    width: 80px;
    text-align: left; /* Preserved per request */
    font-size: 1rem;
    font-weight: 600;
    color: white;
    z-index: 10;
    transition: color 0.2s ease-in-out;
}

/* --- Feature Block Hover States --- */
.feature-block:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.feature-block:hover .block-image img {
    transform: scale(1.05);
}
/* =======================================================
   Aura Section & Smooth Transition Background
   ======================================================= */

   .aura-section {
    position: relative;
    width: 100vw;
    /* حيلة برمجية لجعل القسم بعرض الشاشة بالكامل حتى لو كان داخل حاوية محدودة */
    margin-left: calc(-50vw + 50%); 
    min-height: 100vh;
    
    /* هذا هو السر: تدرج لوني يبدأ شفافاً ليظهر النجوم ثم يتحول للون الموقع الداكن */
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 1) 15%, rgba(2, 6, 23, 1) 100%);
    
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* يضمن ظهوره فوق خلفية النجوم وليس تحتها */
}

/* تنسيق النصوص */
.cont_error {
    position: relative;
    z-index: 10;
    text-align: center;
    direction: ltr; /* الحفاظ على اتجاه النص الإنجليزي */
}

.cont_error h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 8vw; /* حجم متجاوب */
    color: #fff;
    transform: translateX(-150vw); /* يبدأ خارج الشاشة */
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cont_error p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: var(--text-secondary);
    transform: translateX(150vw); /* يبدأ خارج الشاشة */
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s; /* تأخير بسيط لجمالية الحركة */
}

/* أشكال الهالة البنفسجية (Auras) */
.cont_aura_1 {
    position: absolute;
    width: 300px;
    height: 120%;
    top: 25px;
    right: -340px;
    background-color: var(--primary-purple); /* استخدام لون هويتك */
    box-shadow: 0px 0px 80px 30px rgba(139, 92, 246, 0.3);
    transition: all 0.8s ease;
    z-index: 1;
}

.cont_aura_2 {
    position: absolute;
    width: 100%;
    height: 300px;
    right: -10%;
    bottom: -301px;
    background-color: var(--primary-purple);
    box-shadow: 0px 0px 80px 20px rgba(139, 92, 246, 0.3), 0px 0px 20px 0px rgba(0,0,0,0.1);
    z-index: 1;
    transition: all 0.8s ease;
}

/* --- حالات الأنميشن (يتم تفعيلها بواسطة الـ JS عند السكرول) --- */
.aura-section.cont_error_active .cont_error h1,
.aura-section.cont_error_active .cont_error p {
    transform: translateX(0); /* دخول النص للشاشة */
}

.aura-section.cont_error_active .cont_aura_2 {
    animation: animation_error_2 5s linear infinite alternate;
    transform: rotate(-20deg);    
}

.aura-section.cont_error_active .cont_aura_1 {
    transform: rotate(20deg);
    right: -170px;
    animation: animation_error_1 5s linear infinite alternate;
}

.footer{
    margin-top: 20px;
    margin-bottom: 0px;
}

/* --- الإطارات الرئيسية (Keyframes) بحركة ناعمة --- */
@keyframes animation_error_1 {
    from { transform: rotate(20deg); }
    to { transform: rotate(25deg); }
}

@keyframes animation_error_2 {
    from { transform: rotate(-15deg); }
    to { transform: rotate(-20deg); }
}

/* --- التجاوب مع الموبايل --- */
@media (max-width: 768px) {
    .cont_error h1 { font-size: 4rem; }
    .cont_error p { font-size: 1rem; letter-spacing: 2px; }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .feature-block { width: 90%; }
    .block-image{
        width: 50%;
    }
}

@media (max-width: 768px) {
    .feature-block {
        flex-direction: column;
        width: 95%;
        min-height: auto;
        
    }

    .block-image {
        width: 100%;
        height: 200px;
    }
    
    .img-overlay {
        background: linear-gradient(0deg, var(--background-dark) 0%, rgba(2, 6, 23, 0) 100%);
    }

    .block-content {
        width: 100%;
        padding: 30px 20px;
    }

    .block-content h2 { font-size: 1.6rem; }
    .block-content p { max-width: 100%; }
}
/* ----------------------------------------------
 * Animation: Heartbeat
 * ---------------------------------------------- */
 @-webkit-keyframes heartbeat {
    from {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-transform-origin: center center;
              transform-origin: center center;
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    10% {
      -webkit-transform: scale(0.91);
              transform: scale(0.91);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    17% {
      -webkit-transform: scale(0.98);
              transform: scale(0.98);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    33% {
      -webkit-transform: scale(0.87);
              transform: scale(0.87);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    45% {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
  }
  @keyframes heartbeat {
    from {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-transform-origin: center center;
              transform-origin: center center;
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    10% {
      -webkit-transform: scale(0.91);
              transform: scale(0.91);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    17% {
      -webkit-transform: scale(0.98);
              transform: scale(0.98);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    33% {
      -webkit-transform: scale(0.87);
              transform: scale(0.87);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    45% {
      -webkit-transform: scale(1);
              transform: scale(1);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
  }
  /* Animation to move the colors through the text */
@keyframes colorFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}
.services-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 80px auto; /* مسافات متناسقة مع الأقسام السابقة */
    padding: 0 20px;
    direction: rtl;
    position: relative;
    z-index: 10;
}

/* --- تنسيق العنوان --- */
.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-header h2 {
    font-size: 2.4rem;
    color: #F8FAFC;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.services-header h2 span.highlight {
    color: var(--primary-purple, #8B5CF6); /* استخدام اللون البنفسجي الخاص بك */
}

.services-header p {
    color: var(--text-secondary, #94A3B8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- تنسيق شبكة الصناديق (Grid Layout) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* --- تصميم الصندوق الأساسي (Dark Charcoal) --- */
.service-box {
    background-color: rgba(15, 23, 42, 0.6); /* لون فحمي داكن وشفاف قليلاً */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden; /* ضروري لعدم خروج تأثير الإضاءة خارج الصندوق */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* --- إبقاء المحتوى فوق تأثير الإضاءة --- */
.service-content {
    position: relative;
    z-index: 2; 
}

/* --- تأثير الإضاءة المتصاعدة عند الـ Hover (Glassmorphism Light) --- */
.service-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%; /* يغطي ثلث الصندوق تقريباً */
    background: linear-gradient(to top, rgba(139, 92, 246, 0.15), transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateY(100%); /* مخفي بالأسفل في الحالة العادية */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

/* تفعيل التأثير عند تمرير الماوس */
.service-box:hover::before {
    transform: translateY(0);
}

.service-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

/* --- تنسيق الأيقونات والنصوص داخل الصندوق --- */
.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-purple, #8B5CF6);
    transition: transform 0.4s ease;
}

.service-box:hover .service-icon {
    transform: scale(1.05);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-box h3 {
    font-size: 1.4rem;
    color: #F8FAFC;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-box p {
    color: var(--text-secondary, #94A3B8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* --- التجاوب مع الشاشات الأصغر (Responsive) --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* ترتيب عمودي في الموبايل */
    }
    
    .services-header h2 {
        font-size: 2rem;
    }
}
.contact-section {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    direction: rtl;
    position: relative;
    z-index: 10;
}

/* --- العنوان --- */
.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.6rem;
    color: #F8FAFC;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.contact-header h2 .highlight {
    color: var(--primary-purple, #8B5CF6);
}

.contact-header p {
    color: var(--text-secondary, #94A3B8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- تخطيط الشبكة (Grid Layout) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* الصندوق الأيسر يأخذ مساحة أكبر للنموذج */
    gap: 40px;
    align-items: stretch;
}

/* --- الصناديق الزجاجية العامة --- */
.contact-info-box, .contact-form-box {
    background: rgba(15, 23, 42, 0.6); /* تطابق var(--glass-bg) */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

/* تأثير الـ Hover للصناديق */
.contact-info-box:hover, .contact-form-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

/* تأثير انعكاس الزجاج لصندوق المعلومات فقط */
.contact-info-box::before {
    content: '';
    position: absolute;
    bottom: -100%; left: -50%; width: 200%; height: 35%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 20%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 80%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(5px);
    transform: rotate(-15deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2; pointer-events: none;
}
.contact-info-box:hover::before { transform: translateY(-300%) rotate(-15deg); }

/* --- محتوى صندوق المعلومات --- */
.contact-info-box h3 {
    font-size: 1.5rem;
    color: #F8FAFC;
    margin-bottom: 15px;
    position: relative; z-index: 3;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative; z-index: 3;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative; z-index: 3;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

a.contact-method:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(-5px); /* تحرك بسيط لليسار في RTL */
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(246, 92, 138, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple2, #8B5CF6);
    transition: transform 0.4s ease, background 0.4s ease;
}

a.contact-method:hover .method-icon {
    transform: scale(1.1);
    background: rgba(139, 92, 246, 0.2);
}

.method-icon svg { width: 22px; height: 22px; }

.method-text h4 {
    color: #F8FAFC;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.method-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- نموذج التواصل (Contact Form) --- */
.novexa-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative; z-index: 3;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group { width: 100%; }

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.5); /* أغمق قليلاً من الصندوق لعمق بصري */
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* تأثير الـ Focus للحقول */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-purple, #8B5CF6);
    background: rgba(2, 6, 23, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

/* --- أنميشن الظهور عند التمرير (Scroll Fade In) --- */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
   GSAP Stacking Cards Refinement
   ======================================================= */
   .feature-block {
    /* Prevent GSAP stuttering by isolating transitions to colors/shadows only */
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    
    /* Ensures the card scales from the top edge, keeping it perfectly glued to the 120px pin line */
    transform-origin: top center; 
    
    /* Hardware acceleration for buttery smooth scrolling */
    will-change: transform, opacity; 
}

.feature-block:hover {
    /* Remove hover positional jump so it doesn't fight the GSAP scroll state */
    transform: none !important; 
}



/* --- التجاوب مع الموبايل (Responsive) --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-box { order: 2; } /* في الموبايل، النموذج يظهر أولاً */
    .contact-form-box { order: 1; }
}

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 20px; }
    .contact-header h2 { font-size: 2rem; }
    .contact-info-box, .contact-form-box { padding: 30px 20px; }
}
/* =======================================================
   Corporate Hero / About Section
   ======================================================= */
   .corp-hero-section {
    width: 100%;
    padding: 160px 0 80px; /* Space for the navbar */
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.corp-hero-container {
    width: 80vw; /* Exactly 80% of viewport width as requested */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
    gap: 60px;
}

/* --- Right Side: Brand Identity --- */
.corp-brand-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns to the far right in RTL */
    /* Subtle entrance animation */
    opacity: 0;
    transform: translateY(15px);
    animation: corpFadeUp 0.8s ease-out forwards;
}

.corp-logo {
    max-width: 220px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.15));
}

.corp-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px; /* Very slight spacing for Arabic sophistication */
    opacity: 0.9;
}

@keyframes corpFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Left Side: Who We Are --- */
.corp-about-col {
    flex: 1.2; /* Takes slightly more space for the text */
    max-width: 650px;
}

.corp-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.corp-title .highlight {
    color: var(--primary-purple);
    position: relative;
}

/* Subtle underline accent for the highlight */
.corp-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    opacity: 0.6;
}

.corp-description {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Vanilla JS Spanizer Animation Styles --- */
.corp-description span {
    opacity: 0;
    display: inline-block;
    /* Using your requested cubic-bezier for a premium, heavy feel */
    animation: word-reveal 1s cubic-bezier(.19,1,.22,1) forwards;
}

@keyframes word-reveal {
    0%   { opacity: 0; text-shadow: 0px 0px 1px rgba(255,255,255,0.05); transform: translateY(5px); }
    50%  { opacity: 1; text-shadow: 0px 0px 15px rgba(255,255,255,0.3); }
    100% { opacity: 0.85; text-shadow: 0px 0px 0px transparent; transform: translateY(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .corp-hero-container {
        flex-direction: column;
        text-align: center;
        width: 90vw; /* Slightly wider on mobile for readability */
        gap: 50px;
    }

    .corp-brand-col {
        align-items: center;
        justify-content: center;
    }

    .corp-title {
        justify-content: center;
        font-size: 2.2rem;
    }
}/* =======================================================
   Modern Hero / About Section
   ======================================================= */
.modern-hero-section {
    width: 80%;
    padding: 45px 0 10px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.modern-hero-container {
    width: 80vw; /* العرض 80% كما طلبت */
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

/* --- الجزء الأيمن --- */
.brand-col {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

/* --- الجزء الأيسر (اللمسة العصرية) --- */
.about-col {
    flex: 1.3;
    max-width: 700px;
    position: relative;
    /* خط جانبي عصري يعطي طابع تقني */
    border-right: 2px solid rgba(139, 92, 246, 0.2); 
    padding-right: 30px;
}

/* الشارة التقنية (Tech Badge) */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-purple);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modern-title .highlight {
    color: var(--primary-purple);
}

.modern-description {
    font-size: 1.2rem;
    line-height: 2.1;
    color: var(--text-secondary);
    font-weight: 400;
}

/* تأثير الظهور الفخم للكلمات */
.modern-description span {
    opacity: 0;
    display: inline-block;
    animation: word-fade-up 1s cubic-bezier(.19,1,.22,1) forwards;
}

@keyframes word-fade-up {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0.9; transform: translateY(0); }
}

/* --- تجاوب الشاشات الصغيرة --- */
@media (max-width: 992px) {
    .modern-hero-container {
        flex-direction: column;
        width: 90vw;
        gap: 50px;
        text-align: right;
    }
}