/* --- المتغيرات الأساسية للهوية البصرية --- */
:root {
    --primary: #1A4FBB;
    --primary-light: #3c75b7;
    --secondary: #2E86DE;
    --secondary-dark: #1E6FFF;
    --dark-bg: #06091A;
    --card-bg: rgba(8, 14, 28, 0.7);
    --card-border: rgba(46, 134, 222, 0.25);
    --text-main: #ffffff;
    --text-muted: #e8edf8;
    --glow-color-1: rgba(30, 111, 255, 0.25);
    --glow-color-2: rgba(46, 134, 222, 0.25);
}

/* --- الإعدادات العامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232E86DE' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l1.414 1.414c-.816.817-1.25 1.92-1.25 3.076v3.45c0 1.156.434 2.26 1.25 3.076l-1.414 1.414c-1.192-1.19-1.836-2.81-1.836-4.49V12.54c0-1.68.644-3.3 1.836-4.49zm-3.536 3.536l1.414 1.414c-.4.4-.64.96-.64 1.54v3.45c0 .58.24 1.14.64 1.54l-1.414 1.414c-.77-.77-1.2-1.83-1.2-2.95V12.54c0-1.12.43-2.18 1.2-2.95z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- العناوين والنصوص --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.4;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* تأثير لون متدرج للنصوص (Glow text effect) */
    background: linear-gradient(to left, #ffffff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- تأثيرات التوهج الخلفية (Glow Background) --- */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow-color-1), transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--glow-color-2), transparent 70%);
    animation-delay: -7s;
}

.orb-3 {
    top: 30%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(143, 148, 251, 0.15), transparent 70%);
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 8%) scale(1.15);
    }
}

/* --- Header --- */
.main-header {
    padding: 0 0 10px 0;
    /* تم رفعه للأعلى */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* الخط الذي يمتد ويمر خلف الشعار */
.main-header::before {
    content: '';
    position: absolute;
    top: 43%;
    /* يتمركز عمودياً ليمر خلف الشعار */
    left: 50%;
    transform: translateX(-50%);
    /* لجعله في المنتصف تماماً */
    width: 60%;
    /* تم تقصير طول الخط إلى النصف */
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(46, 134, 222, 0.5) 20%, rgba(46, 134, 222, 0.5) 80%, transparent 100%);
    z-index: -1;
}

/* --- أيقونة التبديل للوضع الفاتح --- */
.theme-toggle {
    position: absolute;
    top: 43%;
    left: 24%;
    /* قبل نهاية الخط قليلاً للداخل */
    transform: translateY(-50%);
    font-size: 1.4rem;
    /* تصغير الأيقونة */
    color: rgba(46, 134, 222, 0.8);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 101;
    background: transparent;
    /* بدون خلفية */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--secondary);
    transform: translateY(-50%) scale(1.15);
    /* تكبير طفيف عند التمرير */
}

.logo-placeholder {
    height: 130px;
    /* تم تصغير الشعار */
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-placeholder:hover {
    transform: scale(1.05);
    /* تأثير بسيط عند المرور عليه */
}

/* --- الأزرار --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    /* تقليل الحجم ليتسع الزران في سطر واحد */
    border-radius: 50px;
    font-size: 0.95rem;
    /* تصغير حجم الخط */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    white-space: nowrap;
    /* منع النص من الانقسام لسطرين داخل الزر */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary-dark));
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* --- الكروت الزجاجية (Glassmorphism Cards) --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(46, 134, 222, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(46, 134, 222, 0.1);
}

/* --- الكروت المصمتة (Flat Cards للأقسام العادية) --- */
.flat-card {
    background: #0b1525;
    border: 1px solid rgba(46, 134, 222, 0.15);
    border-radius: 24px;
    padding: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.flat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(46, 134, 222, 0.35);
}

/* --- القسم الأول (Hero Section) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 190px 0 80px;
    /* تعديل المسافة بناءً على طلبك */
}

.hero .container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    /* زيادة مساحة الفيديو على حساب النص ليكون المربع أضخم */
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2.8rem;
    /* تصغير طفيف ليتناسب مع المساحة الجديدة */
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(to left, var(--secondary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 45px;
    color: #c4cbd3;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* حاوية الفيديو */
.hero-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    aspect-ratio: 16/10;
    /* تم تعديل الأبعاد لتقصير الارتفاع قليلاً */
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* تم تغييره ليظهر الفيديو بالكامل دون قص */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-text {
    text-align: center;
    border: 2px dashed rgba(46, 134, 222, 0.4);
    padding: 30px;
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.6);
}

.video-text p {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- تنسيقات الأقسام المشتركة --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* --- الأقسام المصمتة (بدون زجاج أو توهج) --- */
.section-solid {
    background-color: #080E1C;
    /* كحلي أفتح قليلاً لإخفاء الخلفية المموجة والتوهج */
    position: relative;
    z-index: 1;
    /* لإخفاء طبقة الـ glow-bg التي في الخلف */
    border-top: 1px solid rgba(46, 134, 222, 0.08);
    border-bottom: 1px solid rgba(46, 134, 222, 0.08);
}

/* --- قسم المشكلة والحل (Cards Grid) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.icon-box {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.15), rgba(0, 242, 254, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- قسم الخصائص المتقدمة --- */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(143, 148, 251, 0.4);
}

.feature-text h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #fff;
}

.feature-text ul {
    list-style: none;
}

.feature-text ul li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.feature-text ul li::before {
    content: '\eb84';
    /* Boxicons check mark */
    font-family: 'boxicons';
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--secondary);
    font-size: 1.2rem;
}

/* --- قسم الأسئلة الشائعة (FAQ) --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    margin-bottom: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* تعديل مظهر الأسئلة الشائعة عندما تكون في قسم مصمت */
.section-solid .faq-item {
    background: #0b1525;
    backdrop-filter: none;
    border: 1px solid rgba(46, 134, 222, 0.15);
}

.section-solid .faq-item:hover {
    background: #112040;
    border-color: rgba(46, 134, 222, 0.3);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
}

.faq-question i {
    font-size: 1.6rem;
    color: var(--secondary);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 300px;
    opacity: 1;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- قسم نموذج الحجز (Lead Capture) --- */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
}

.booking-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* --- الفوتر (Footer) --- */
footer {
    padding: 30px 0;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
}

/* --- تأثيرات الحركة (Animations) --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* --- Light Mode Overrides --- */
body.light-mode {
    --dark-bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(46, 134, 222, 0.2);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glow-color-1: rgba(30, 111, 255, 0.08);
    --glow-color-2: rgba(46, 134, 222, 0.08);
}

body.light-mode .section-solid {
    background-color: #f1f5f9;
}

body.light-mode .flat-card,
body.light-mode .section-solid .faq-item {
    background: #ffffff;
    border-color: rgba(46, 134, 222, 0.2);
}

body.light-mode .section-solid .faq-item:hover {
    background: #f8fafc;
}

body.light-mode h2 {
    background: linear-gradient(to left, #0f172a, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero h1 span {
    background: linear-gradient(to left, var(--primary), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero p {
    color: #334155;
}

body.light-mode .form-group input {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(46, 134, 222, 0.3);
}

body.light-mode .form-group input::placeholder {
    color: #94a3b8;
}

body.light-mode .form-group label {
    color: #0f172a;
}

body.light-mode .video-text {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .video-text p {
    color: #0f172a;
}

body.light-mode .video-text span {
    color: #475569;
}

body.light-mode .theme-toggle {
    color: #273d6c;
    /* جعل أيقونة القمر بلون أغمق في الوضع الفاتح */
}

body.light-mode .btn-secondary {
    color: #0f172a;
    border-color: rgba(46, 134, 222, 0.4);
}

body.light-mode .btn-secondary:hover {
    background: rgba(46, 134, 222, 0.05);
    border-color: rgba(46, 134, 222, 0.8);
}

/* --- التجاوب مع الشاشات (Responsive Design) --- */
@media (max-width: 992px) {
    .main-header {
        padding-top: 5px;
        /* تقليل المسافة فوق اللوجو في الشاشات الصغيرة */
    }

    .hero {
        padding-top: 1 قث;
        /* زيادة المسافة لتجنب التداخل مع اللوجو الكبير */
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 40px;
    }

    .booking-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        padding-top: 180px;
        /* زيادة بسيطة للمسافة بناءً على طلبك */
        padding-bottom: 50px;
    }

    .cards-grid,
    .features-list {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 25px;
    }

    .booking-wrapper {
        padding: 30px 20px;
    }

    .theme-toggle {
        left: 20px;
        /* على الجوال تكون في الطرف أكثر */
    }
}