/* اختيارياً: تحسين المظهر في العناوين */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    font-weight: 700;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
    font-weight: 600;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

:root {
    /* Color Palette */
    --color-primary: #01103b;
    --color-primary-light: #007a8c;
    --color-accent: #00afc1;
    --color-text: #1e1e1e;
    --color-text-light: #6c757d;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-highlight: #f7941d;
    --color-transparent: transparent;
    --primary: #0d6efd;
    --dark: #0b1c2d;
    --gray: #6c757d;
    --light: #f8f9fa;
    --border: #e5e7eb;

    /* Typography */
    --font-arabic-main: "Tajawal", sans-serif;
    --font-english-main: "Poppins", sans-serif;

    /* Optional UI variables */
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.336);
    --radius-lg: 16px;
    --transition-fast: 0.3s ease;

    --card-w: 360px;
    --card-h: 470px;
    --card-radius: 24px;
    --bg-card: #1e2b3e;
    --text-color: #eef6ff;
}

body {
    font-family: var(--font-english-main);
    background: #fcfdfd;
}

a {
    text-decoration: none;
}

p {
    color: #6c757d;
}

.text-white p {
    color: #e8e8e8;
}







/* 
******************************
********* Loader style *********
******************************
*/
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top-color: #0d556d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ================= End Loader ================= */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;

    padding: 0;
    color: #fff;

    background: transparent;

    /* Performance-friendly transition */
    transition:
        background-color 0.5s ease,
        backdrop-filter 0.5s ease;
}

/* حالة السكروول */
.main-header.scrolled {
    background: linear-gradient(
        to bottom right,
        rgb(1 16 59 / 84%),
        rgb(0 7 28 / 94%)
    );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    width: 80px;
    height: auto;
    aspect-ratio: 774 / 788;
}

.logoAR {
    transform: rotateY(180deg);
}

.brand-name {
    font-weight: bold;
    color: #fff;
    width: 60px;
    font-size: 22px;
    margin-bottom: 0;
    margin-top: 6px;
    white-space: wrap;
}

.nav-link {
    color: var(--color-white) !important;
    font-size: 16px;
    font-weight: 500 !important;
    position: relative;
    transition: all 0.5s ease;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #87ceeb;
    transition: width 0.35s ease;
}

.navbar-nav .active::after,
.nav-link:hover::after {
    width: 100%;
}

.navbar-nav .active,
.nav-link:hover {
    color: #87ceeb !important;
}

.nav-item.dropdown>.nav-link::after {
    display: none;
    /* عشان ما يتعارض مع السهم */
}

.dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.15em;
    border-top: 0.4em solid;
    border-right: 0.4em solid transparent;
    border-left: 0.4em solid transparent;
    transition: transform 0.3s ease;
}

.show>.dropdown-toggle::after {
    transform: rotate(180deg);
}

[dir="rtl"] .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.4rem;
}

.dropdown-menu li a {
    color: var(--color-white) !important;
    font-size: 16px;
    font-weight: 500 !important;
    position: relative;
    transition: all 0.5s ease;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff !important;
    background: #003343;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 100%;
    min-width: 100%;
    transition: all 0.5s ease;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.236);
}

.btn-lang i {
    font-size: 16px;
}

.btn-lang span {
    font-size: 16px;
    margin: 0;
    padding: 0;
    margin-top: 3px;
}

.navbar-toggler {
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar .spans {
    width: 40px;
}

.navbar .spans span {
    display: inline-block;
    height: 3px;
    background: var(--color-bg);
}

.navbar .spans .span1 {
    width: 90%;
}

.navbar .spans .span2 {
    width: 60%;
}

.navbar .spans .span3 {
    width: 30%;
}

/* ===========================
======  Banner Section  ======
=========================== */

.video-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Background Video
=========================== */
.video-banner video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.9) contrast(1.05);
}

/* ===========================
   Overlay Layer
=========================== */
.video-banner .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        #000b2ce7 100%
    );
}

/* ===========================
   Content Wrapper
=========================== */
.video-banner .banner-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px 40px;
    text-align: center;
    margin-top: auto;
    color: #fff;
    animation: fadeUp 1.2s ease forwards;
}

/* ===========================
   Title
=========================== */
.video-banner .banner-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* ===========================
   Description
=========================== */
.video-banner .banner-content p {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    line-height: 1.8;
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* ===========================
   Animation
=========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Mobile Optimization
=========================== */
@media (max-width: 768px) {

    .video-banner {
        height: 100svh;
    }

    .video-banner .banner-content {
        padding: 0 16px 40px;
    }

    .video-banner .banner-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }

    .video-banner .banner-content p {
        font-size: 1rem;
    }
}
