/* الألوان الجمالية والخطوط الراقية المستوحاة مباشرة من نيون ومصطلحات الدائرة الذكية */
:root {
    --main-bg: #050508;
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff007f;
    --luxury-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --border-soft: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.02);
}

body {
    background-color: var(--main-bg);
    color: var(--luxury-white);
      font-family: 'Plus Jakarta Sans', 'Amiri', serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    overflow-x: hidden;
    margin: 0;
}

/* شريط التنقل الزجاجي العصري */
.navbar {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    z-index: 1050;
}
.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500; /* جعل خط لوجو الناف بار مريح وأنحف */
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400; /* تنحيف خط اللينكات */
    transition: all 0.3s ease;
}
.nav-link:hover {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* تخصيص زر الـ 3 شرط وتوسيطه التام على الجوال */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    margin: 10px auto 0 auto;
}
.custom-toggler-icon {
    display: block;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: all 0.3s ease;
}

/* واجهة العرض الرئيسية وخلفية الفيديو */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(5,5,8,0.2) 0%, var(--main-bg) 95%);
    z-index: -1;
}

/* الشعار الدائري الفاخر المتطابق مع نيون الدائرة */
.brand-circle-badge {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.math-svg-logo {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 0px 20px rgba(0, 243, 255, 0.3));
}
.math-glow-ring {
    position: absolute;
    width: 185px;
    height: 185px;
    border-radius: 50%;
    border: 1.5px dashed var(--neon-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
    animation: rotateStudio 25s linear infinite;
}

/* تأثير المعادلات العائمة */
.lab-equation {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(5, 5, 8, 0.85);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-soft);
    animation: mathFloat 4s ease-in-out infinite alternate;
}
.eq-1 { top: -10px; left: -30px; border-color: var(--neon-cyan); }
.eq-2 { top: 30px; right: -50px; border-color: var(--neon-magenta); animation-delay: 1s; }
.eq-3 { bottom: -5px; left: -40px; border-color: var(--border-soft); animation-delay: 2s; }
.eq-4 { bottom: 20px; right: -40px; border-color: var(--neon-cyan); animation-delay: 3s; }

/* [تعديل مستر كريم] - ضبط العناوين الرئيسية لتكون أنيقة ونحيفة وبدون بولد ضخم */
.eng-title-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 400; /* خفض البولد المزعج ليصبح خطاً سينمائياً فخماً */
    letter-spacing: 7px;
    color: var(--luxury-white);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(255,255,255,0.15);
}
.collection-year-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300; /* جعل السطر الفرعي ناعم جداً ومقروء */
    letter-spacing: 4px;
}

/* الأزرار بنسيج نيون أنيق وبوردر واضح */
.hero-btn-premium {
    background: transparent;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 2px;
    padding: 14px 40px;
    border-radius: 4px; 
    border: 2px solid var(--neon-cyan); 
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-btn-premium:hover {
    background-color: var(--neon-cyan);
    color: #000000;
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}
/* كرت عرض المستر الفخم (Rounded Circle Panel) بخطوط متناسقة النحافة */
.rounded-circle-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 40px; 
    padding: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255,255,255,0.1);
}
.profile-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* [تعديل مستر كريم] - تنحيف العناوين داخل لوحة السيرة الذاتية */
.master-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 500; /* خفض سماكة الاسم لتطابق النمط الفاخر المريح */
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.master-title {
    font-size: 0.95rem;
    color: var(--neon-cyan);
    font-weight: 400; /* خط فرعي خفيف */
    letter-spacing: 1px;
}
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), transparent);
    border: none;
    opacity: 0.5;
    margin: 20px 0;
}
.master-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin-bottom: 15px;
}

.btn-action-premium {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 30px;
    border: 2px solid var(--neon-magenta); 
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-action-premium:hover {
    background: linear-gradient(90deg, var(--neon-magenta), #ff0055);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* الكروت الثلاثة لشرح الهوية المعملية */
.sub-header-tag {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--neon-magenta);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500; /* تنحيف عناوين الأقسام */
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.info-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-soft);
    padding: 50px 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-magenta);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.1);
}
.icon-box {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--neon-cyan);
}
.info-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 500; /* تنحيف خطوط الكروت الجانبية */
}

/* تصميم كروت الـ 3 أعمدة المخصصة لقنوات الاتصال النيون متساوية المساحة وبأحجام متناسقة */
.bg-form-section {
    background-color: #030305;
    border-top: 1px solid var(--border-soft);
}
.contact-channel-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-soft);
    padding: 40px 20px;
    border-radius: 20px;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.contact-channel-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.05);
}
.channel-icon-box {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
}
.cyan-glow { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,243,255,0.3); }
.magenta-glow { color: var(--neon-magenta); text-shadow: 0 0 10px rgba(255,0,127,0.3); }

.contact-channel-card h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500; /* تنحيف خط كروت الاتصال الثلاثة */
}
.channel-data {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.channel-data a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

/* إبراز زر الواتساب المتوهج */
.whatsapp-trigger-area {
    position: relative;
    display: inline-block;
    padding: 10px;
}
.btn-whatsapp-premium {
    background: rgba(37, 211, 102, 0.05);
    color: #ffffff;
    font-weight: 500; /* تنحيف الزر الممتد */
    font-size: 0.95rem;
    letter-spacing: 2px;
    border-radius: 8px;
    border: 2px solid #25D366; 
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.4); 
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-whatsapp-premium:hover {
    background-color: #25D366;
    color: #000000;
    box-shadow: 0 0 45px rgba(37, 211, 102, 0.85); 
    transform: translateY(-4px);
}

footer {
    background-color: #020203;
    padding: 40px 0;
    border-top: 1px solid var(--border-soft);
}
.copyright-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}
.audio-control-panel {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999;
    color: var(--neon-cyan);
    transition: all 0.3s;
}

@keyframes rotateStudio { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes mathFloat { 0% { transform: translateY(0px); } 100% { transform: translateY(-10px); } }

/* تعديلات الجوال والتأكد من التوسيط لزر الـ 3 شرط والكتل النصية النحيفة */
@media (max-width: 991px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .navbar-collapse {
        background: rgba(5, 5, 8, 0.98);
        padding: 20px;
        margin-top: 15px;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        width: 100%;
    }
    .hero-section { min-height: 100vh; height: auto; padding-top: 140px; padding-bottom: 60px; }
    .eng-title-brand { font-size: 2.1rem; letter-spacing: 3px; }
    .rounded-circle-panel { padding: 30px 20px; border-radius: 24px; }
    .master-name { font-size: 1.7rem; }
}
/* تصميم لوحة زر الترجمة المحدثة بكلمات كاملة في الجنوب الشرقي */
.translate-trigger-panel {
    position: fixed;
    bottom: 30px; 
    right: 30px;
    padding: 0 18px; /* تمديد العرض ليتسع للكلمات الكاملة */
    height: 46px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid #ff007f; 
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px; /* تحويل التدوير إلى كبسولة أنيقة مريحة للعين */
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    z-index: 9999;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.translate-trigger-panel:hover {
    border-color: #00f3ff; 
    box-shadow: 0 0 20px #00f3ff;
    color: #00f3ff;
    transform: scale(1.05);
}

/* فئات التحكم البرمجية لقلب اتجاه الموقع وتنسيق الخط العربي يدوياً */
body.rtl-active {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Segoe UI', sans-serif; 
}
body.rtl-active .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}
body.rtl-active .text-start,
body.rtl-active .text-lg-start {
    text-align: right !important;
}
body.rtl-active .eng-title-brand,
body.rtl-active .collection-year-tag,
body.rtl-active .sub-header-tag {
    letter-spacing: 0px !important;
}
.navbar-brand{
    margin-left: 5px;
}




















