@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');


/* Top Bar */
.top-bar {
    background:  var(--lightHelper);
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    z-index: 10000000;
    backdrop-filter: blur(10px);
}
.top-bar .container{
    justify-content: center;
}
.top-bar .top-left .socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--white);
    background-color: transparent;
    padding: 3px 10px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.5s;
    font-weight: 600;
    border: 3px solid var(--white);
}

.top-bar .top-left .socials a:hover {
    color: var(--lightHelper);
    background-color: var(--white);
}

.top-bar .top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.socials a {
    margin-left: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 25px;
}

.socials a:hover {
    color: var(--white);
    background-color: var(--lightHelper);
}

/* Main Header */
.main-header {
    position: fixed;
    inset: 0 0 auto 0;
    /* top:0; left:0; right:0 */
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--white);
    /* شفاف في الحالة الابتدائية */
    color: var(--white);
    transition: background rgb(255, 255, 255) ease, color var(--white) ease, box-shadow var(--transparentColor) ease;
    backdrop-filter: none;
    z-index: 9999999;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
}

.main-header.scrolled {
    margin-top: 0;
    /* color: rgb(255, 255, 255); */
    height: 90px;
    z-index: 999999;
    /* box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35); */
    /* backdrop-filter: blur(20px); */
}

/* .main-header.scrolled .nav-links a{
    background-color: var(--helperColor);
    color: var(--white);
   
} */

/* ===== Overlay رمادي شفاف ===== */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* رمادي شفاف */
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* لما المنيو تظهر، يظهر الأوفرلاي */
.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}


.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    /* gap: 12px; */
    height: 100%;
}

.logo {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
}

.nav-links {
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 10px;

}

.nav-links a {
    text-decoration: none;
    color: var(--lightHelper);
    font-weight: 500;
    padding: 8px 20px;
    background-color: transparent;
    border: 3px solid var(--lightHelper);
    border-radius: 20px;
    transition: all 0.5s;
}

.nav-links a.active {
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--lightHelper) 100%);
    color: var(--white) !important;
}

.nav-links a:hover {
    background-color: var(--lightHelper);
    color: var(--white) !important;
}

.dropdown {
    position: relative;
}
#more-services li a{
text-align: start;
padding-right: 10px;
}
#more-services-en li a{
text-align: start;
padding-right: 10px;
}
.dropdown button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: inherit;
    /* يخلي السهم ياخد لون النص */
}
.en{
    background-color: var(--helperColor) !important;
    color: var(--white) !important;
}
.dropdown-menu {
    width: 200px;
    flex-direction: column;
    background: var(--helperColor);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* padding: 10px; */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    border-radius: 20px;
    max-height: 670px;
    overflow: scroll;
    clip-path: inset(0 0 100% 0);
    /* مخفي زي ستارة */
    transition: clip-path 0.5s ease-in-out;
}

.dropdown.open .dropdown-menu {
    clip-path: inset(0 0 0 0);
    /* تنزل لتحت زي الستارة */
    border-radius: 10px;

}

.arrow-dropdown {
    display: inline-block;
    transition: transform 0.4s ease;
}

.dropdown.open .arrow-dropdown {
    transform: rotate(180deg);
    /* السهم يتحرك عند الفتح */

}

/* .dropdown:hover .dropdown-menu { */
/* clip-path: inset(0 0 0 0); */
/* تنزل لتحت زي الستارة */
/* border-radius: 20px; */

/* } */

.a-ul {
    border-radius: 20px 20px 0 0 !important;
}

.a-ul2 {
    border-radius: 0 0 20px 20px !important;
}

.dropdown-menu::-webkit-scrollbar {
    display: none;
}

.dropdown-menu {

    border-radius: 20px;
}

.dropdown-menu li a {
    background-color: var(--white);
    display: block;
    color: var(--helperColor);
    padding: 10px 5px;
    text-decoration: none;
    border-radius: 0px;
    border-bottom: var(--white) 1px solid;
    text-align: center;
}

.a-all-ul {
    border: none !important;
    border-bottom: var(--white) 1px solid !important;


}

.dropdown-menu li a:hover {
    color: var(--white);
    border-radius: 0px;
    background-color: var(--helperColor);
}


.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
    width: 70px;
    height: 55px;
    background-color: var(--white);
    border-radius: 50%;
    font-size: 30px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hamburger {
    display: flex;
    display: none;
    /* مخفي في الحالة العادية */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100000;
    /* علشان يفضل فوق */
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--lightHelper) 100%);
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* عند الضغط (يتحول إلى X) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    /* يختفي */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== responsive additions for style.css ========== */

/* Desktop wide — adjust header height */
@media (max-width: 1200px) {
    .container {
        padding: 0 14px;
    }

    .logo {
        width: 170px;
        height: 90px;
    }
}

/* Medium screens: collapse spacing, reduce header height */
@media (max-width: 1023px) {
    :root {
        --header-height: 180px;
    }

    .main-header {
        height: 180px;
        padding: 0 14px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Small tablets & large phones */
@media (max-width: 900px) {

    /* Top Bar */
    .top-bar {

        z-index: 10000;

    }

    .container {
        flex-direction: row;
    }

    .main-header {
        height: 200px;
        padding: 10px 12px;
    }

    .nav-links {
        display: flex;
        gap: 0;
        flex-direction: column;
        position: fixed;
        top: 0;
        border-radius: 15px 0 0 15px;
        right: -100%;
        /* تبدأ مخفية خارج الشاشة */
        height: 100vh;
        width: 220px;
        background: var(--white);
        color: var(--helperColor);
        /* padding: 20px; */
        transition: right 0.8s ease-in-out;
        z-index: 999999999;

    }
    .nav-links-en {
        display: flex;
        gap: 0;
        flex-direction: column;
        position: fixed;
        top: 0;
        border-radius: 15px 0 0 15px;
        left: -100%;
        /* تبدأ مخفية خارج الشاشة */
        height: 100vh;
        width: 220px;
        background: var(--white);
        color: var(--helperColor);
        /* padding: 20px; */
        transition: all 0.8s ease-in-out;
        z-index: 999999999;

    }

    .nav-links.show {
        right: 0;
        box-shadow: 0 6px 18px rgba(2, 6, 23, 0.733);

    }
    .nav-links-en.show {
        left: 0;
        box-shadow: 0 6px 18px rgba(2, 6, 23, 0.733);

    }


    .nav-links a {
        border-bottom: 1px dotted var(--lightHelper);
        padding: 1px;
        border-radius: 0;
        color: var(--helperColor);
        background-color: var(--white);
        display: block;
        text-align: right;
        border: none;
    }
    .nav-links-en a {
        border-bottom: 1px dotted var(--lightHelper);
        padding: 1px;
        border-radius: 0;
        color: var(--helperColor);
        background-color: var(--white);
        display: block;
        text-align: left;
        border: none;
    }

    .nav-links a.nav-links a:hover {

        border-radius: 0;

    }

    .hamburger {
        display: flex;
    }

    .brand {
        gap: 8px;
    }

    .logo {
        width: 115px;
        height: 70px;
    }

    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu li a {
        border-bottom: 1px dashed var(--primaryColor);
        text-align: right;

    }
    .dropdown-menu-en li a {
        border-bottom: 1px dashed var(--primaryColor);
        text-align: left;

    }

    .nav-links a:hover {
        border-radius: 0;
        background-image: linear-gradient(90deg, var(--lightHelper) 0%, var(--lightHelper) 100%);
    }

    .header-actions {
        display: flex;
    }

    .top-bar .container {
        justify-content: center;
    }

}

/* Phones */
@media (max-width: 576px) {

    .top-bar .container {
        padding: 0 10px;
        /* justify-content: space-between; */
    }

    .header-inner {
        align-items: start !important;

    }

    .nav-links a {
        font-size: 15px;
        padding: 10px 0px;
    }

    .top-bar {
        font-size: 0.85rem;
        padding: 12.5px 0;
    }

    .top-bar .top-left {
        order: 1;
    }

    .top-bar .top-right {
        order: 2;
    }

    .top-bar .top-left a {
        order: 0;
        margin-left: 8px;
    }

    .socials a {
        font-size: 26px;
        font-weight: 800;
        margin-left: 10px;
        background-color: transparent;
        padding: 0px;
        color: var(--white);
    }

    .main-header {
        margin-top: 58px;
        height: 60px;
        padding: 0 30px;
    }

    .main-header.scrolled {
        margin-top: 0;
        height: 60px;
    }

    /* .main-header.scrolled .nav-links { */
    /* top: 100%; */
    /* background-color: var(--helperColor); */
    /* } */

    .dropdown {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding-inline: 10px;
        border-bottom: 1px dotted var(--lightHelper);

    }

    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu li a {
        border-bottom: 1px dotted var(--lightHelper) !important;
        padding-right: 22px;

    }
    .dropdown-menu-en li a {
        border-bottom: 1px dotted var(--lightHelper) !important;
        padding-left: 22px;

    }


}