/* =========================================
   1. الإعدادات العامة للجسم والخطوط
   ========================================= */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    background-color: #f5f7fb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

/* =========================================
   2. الشريط العلوي (Top Bar & Controls)
   ========================================= */
.top-bar {
    width: 100%;
    height: 65px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #091a3e 0%, #05122b 100%);
    border-bottom: 1px solid rgba(0, 162, 255, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.top-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* زر تبديل اللغة */
.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(0, 195, 255, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    line-height: 1.2;
}

.lang-btn:active {
    background: #007bff;
    border-color: #00c3ff;
}

/* شعار الموقع في الهيدر */
.logo {
    height: 46px;
    width: 175px;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* أيقونة القائمة الجانبية (الثلاث شرطات) */
.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.menu-icon span {
    width: 24px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* =========================================
   3. طبقة التعتيم والبلور (Overlay)
   ========================================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   4. القائمة الجانبية (Sidebar & Accordion)
   ========================================= */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background-color: #1a1c20;
    overflow-x: hidden;
    transition: 0.35s ease;
    padding-top: 60px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

/* دعم الوضع الإنجليزي (LTR) للقائمة */
html[dir="ltr"] .sidebar {
    right: auto;
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar .close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
}

html[dir="ltr"] .sidebar .close-btn {
    left: auto;
    right: 20px;
}

.sidebar .close-btn:hover {
    color: #00c3ff;
}

.accordion {
    background-color: #1a1c20;
    color: #e4e6eb;
    cursor: pointer;
    padding: 16px 20px;
    width: 100%;
    text-align: right;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background-color 0.2s;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html[dir="ltr"] .accordion {
    text-align: left;
}

.accordion:hover, .accordion.active {
    background-color: #272a30;
    color: #00c3ff;
}

.panel {
    background-color: #121316;
    display: none;
    overflow: hidden;
}

.panel a {
    padding: 13px 24px;
    text-decoration: none;
    font-size: 14px;
    color: #a6b5cc;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: 0.2s;
}

.panel a:hover {
    color: #ffffff;
    background-color: #1a1c20;
    padding-right: 30px;
}

html[dir="ltr"] .panel a:hover {
    padding-right: 24px;
    padding-left: 30px;
}

/* =========================================
   5. محتوى الصفحة الأولى (الصور والزر)
   ========================================= */
.images-container {
    width: 100%;
    max-width: 500px;
    padding: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.service-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 52px;
    background: linear-gradient(90deg, #005ee6 0%, #00c3ff 100%);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: 19px;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 140, 255, 0.45);
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.next-btn:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(0, 140, 255, 0.3);
}

/* =========================================
   6. الفوتر (Footer Bar)
   ========================================= */
.footer-bar {
    width: 100%;
    background-color: #030d22;
    padding: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.footer-links a {
    color: #7d90a6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:active {
    color: #00c3ff;
}

.footer-links .separator {
    color: #3b4d66;
    font-size: 10px;
}