/********** Template CSS **********/
:root {
    --primary: #005CB3;
    --secondary: #FB9F38;
    --light: #F5F8F2;
    --dark: #252C30;
    font-family: "Cairo", sans-serif;

    --nav-radius: 0.6rem;
    --nav-gap: clamp(0.5rem, 1.2vw, 1.2rem);
    --nav-vert-pad: clamp(0.45rem, 1.2vw, 0.9rem);
    --brand-min: 5.5rem;
    --brand-max: 9.5rem;
    --accent: #005cb3;
    --muted-bg: rgba(217, 217, 217, 0.48);
}

/********** Body **********/
body {
    font-family: "Cairo", sans-serif;
    background: #FFFFFF;
}
html {
  scroll-padding-top: var(--navbar-height);
}
/********** Typography **********/
.fw-medium {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-black {
    font-weight: 900;
}

/********** Back to Top **********/
.back-to-top {
    position: fixed;
    display: none;
    left: 30px;
    bottom: 30px;
    z-index: 99;
}

/********** Spinner **********/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/********** Buttons **********/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/********** Navbar **********/
.sticky-top {
    top: 0; /* بدل -150px */
    transition: .5s;
}



/* Navbar */
.navbar {
    background: #F0F0F0;
    padding: 0 1rem;
    height: 55px;              /* ارتفاع ثابت */
    display: flex;
    align-items: center;       /* العناصر في النص عمودي */
}

/* شعار الشركة */
.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* اللوقو */
.logo {
    height: 3rem;   /* ⬅️ حجم ثابت للوغو */
    width: auto;
    object-fit: contain;
    display: block;
}


.navbar .nav-link {
    color: #005CB3 !important;
    font-weight: 600;
    background-color: #D9D9D97D;
    border-radius: 2rem;
    font-size: 0.8rem;
    padding: 0.2rem;
    transition: 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background-color: #005CB3;
    color: #fff !important;
}

/* Dropdown */
.navbar .dropdown-menu {
    min-width: 8rem;
    padding: 0.2rem 0;
}

.navbar .dropdown-menu .dropdown-item {
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
}

/* RTL & Hamburger */
.navbar-toggler {
    border: none;
}

.navbar-nav .nav-link img {
    vertical-align: middle;
}

.navbar .nav-link.active {
    background-color: #fff !important;
    color: #005CB3 !important;
}

/* Icons */
.lang-icon-desktop {
    width: 3em;
    height: auto;
    max-height: 2rem;
    object-fit: contain;
    background-color: none;
}

.lang-icon-mobile {
    width: 2em;
    height: auto;
    max-height: 2.5rem;
    object-fit: contain;
}

.lang {
    background-color: transparent !important;
}

/* Media Queries Navbar */
@media (max-width: 991.98px) {
    .navbar .nav-link {
        display: block;
        margin: 0.4rem 0;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .navbar .navbar-nav {
        margin-top: 1rem;
    }

    /* Navbar collapse (القائمة المنسدلة على الجوال) */
.navbar-collapse {
    background-color: #F0F0F0; /* لون الخلفية المطلوب */
    padding: 1rem 0;           /* مسافة داخلية للقائمة */
}
}
.navbar { background:#F0F0F0; padding:0 1rem; height:55px; display:flex; align-items:center; }
.navbar-brand { padding:0; margin:0; line-height:0; display:flex; align-items:center; height:100%; }
.logo { height:3rem; width:auto; object-fit:contain; display:block; }

.navbar .nav-link { color:#005CB3 !important; font-weight:600; background:#D9D9D97D; border-radius:2rem; font-size:0.8rem; padding:0.2rem; transition:0.3s; }
.navbar .nav-link:hover, .navbar .nav-link.active { background:#005CB3; color:#fff !important; }
.navbar-toggler { border:none; }
.lang-icon-mobile { width:2em; height:auto; max-height:2.5rem; object-fit:contain; }

.offcanvas { width:80%; max-width:300px; background:#F0F0F0; }
.logo-offcanvas { height:4rem; width:auto; object-fit:contain; display:block; margin:0 auto; }
.offcanvas .nav-link { display:block; font-size:1.2rem; color:#005CB3 !important; padding:0.8rem 1rem; margin-bottom:0.5rem; border-radius:1.5rem; background:#D9D9D97D; transition:0.3s; }
.offcanvas .nav-link:hover, .offcanvas .nav-link.active { background:#005CB3; color:#fff !important; }
.offcanvas-header { border-bottom:1px solid #ddd; justify-content:flex-end; }
.btn-close { font-size:1.5rem; }

.navbar .nav-link.active {
    background-color: #fff !important;
    color: #005CB3 !important;
}
.navbar .nav-link.active {
    background-color: #fff !important;
    color: #005CB3 !important;
}

.offcanvas .navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1.2rem;
  background-color:#F0F0F0 ;

}

/* العنصر النشط فقط */
.offcanvas .navbar-nav .nav-link.active {
  font-weight: 700;
}
/* Facebook */
.offcanvas .bi-facebook {
  color: #1877f2; /* الأزرق الرسمي */
}

/* Twitter (X حالياً) */
.offcanvas .bi-twitter {
  color: #1da1f2; /* سماوي */
}

/* Instagram */
.offcanvas .bi-instagram {
  color: #e1306c; /* وردي/أحمر */
}

/* WhatsApp */
.offcanvas .bi-whatsapp {
  color: #25d366; /* أخضر */
}

/* تأثير hover لو تبغى يصير أغمق */
.offcanvas .bi:hover {
  opacity: 0.8;
}

.offcanvas .navbar-nav .nav-link:hover {
  background-color: #005CB3;
  color: #fff !important;
}
/* Media Queries */
@media (max-width:991.98px){
  .navbar .nav-link { display:block; margin:0.4rem 0; padding:0.8rem; font-size:1rem; }
  .navbar .navbar-nav { margin-top:1rem; }
}


/********** Header / Carousel **********/
.carousel-caption {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(136, 180, 78, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
}

/* Media Queries Carousel */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/********** Sections: Home  **********/
.home {
    min-height: 90vh;
    max-height: 90vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    overflow: hidden; /* يمنع التمدد */
}

/* زر مخصص */
.btn-custom {
    background-color: #005CB3;
    font-size: 0.8rem;
    color: #fff;
    justify-content: center;

    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    transition: 0.3s;
}


.btn-custom:hover {
    background-color: #003E7E;
    color: #fff;
}

/* العمود الأيمن: الصور */
.home .col-lg-6.d-flex.flex-column {
    gap: 0.2rem; /* المسافة بين الصور */
}



/* Custom Images */
.custom-img {
    aspect-ratio: 5/3;
    border-radius: 3rem;
    width: auto;           /* العرض تلقائي حسب الارتفاع */
    max-height: 41vh;      /* كل صورة أقصى ارتفاع */
    object-fit: cover;
    border-radius: 2rem;
    margin-bottom: 0;      /* الغي المسافة الزائدة */
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* النصوص */
.home h6 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;

}

.home p {
    font-size: 0.9rem;
    line-height: 2;
    text-align: start;
    margin-bottom: 1.5rem;
        color: #000000;

}
/* العمود الأيمن: الصور */
.home .col-lg-6.d-flex.flex-column {
    gap: 0.5rem; /* المسافة بين الصور */
    align-items: center;
}

/* Media Queries لتجاوب الجوال */
@media (max-width: 991.98px) {
    .home {
        flex-direction: column-reverse;
        min-height: auto;
        max-height: none;
    }

    .home .col-lg-6 {
        width: 100%;
        text-align: center;
        align-items: center !important;
        justify-content: center !important;
    }

    .home h6 {
        font-size: 0.9rem;
        margin-top: 1rem;

    }

    .home p {
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 0;
    }

    .home .col-lg-6.d-flex.flex-column img.custom-img {
        width: 80%;
        max-height: 22vh;
    }

    .btn-custom {
        width: 60%;
        margin: 0.5rem auto 0;
        justify-content:center;
    }
}




/********** About Section **********/
.about-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: #fefefe;
}

/* البطاقات */
.about-box {
    background: #F9F9F9;
    border-radius: 2rem;
    padding: 0  0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 350px;
    max-height: 85vh; /* لضمان عدم تجاوز القسم 90vh */
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* يمنع خروج النص */
}

.about-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}

/* أيقونات أكبر وواضحة */
.about-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* العناوين */
.about-title {
    font-weight: 700;
    font-size: 0.8rem;
        color: #000000;
    margin-bottom: 0.9rem;
    line-height: 0.5;
}

/* النصوص */
.about-text {
    font-weight: 400;
    font-size: 0.6rem;
    line-height: 1.5;
    color: #000000;
    margin: 0;
}

/* القوائم */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    font-size: 0.6rem;
    line-height: 1.5;
    padding-inline-start: 0.6rem;
    position: relative;
        color: #000000;
    word-wrap: break-word;
}

.about-list li::before {
    content: "-";
    left: 0;
    color: #007bff;
    font-size: 1rem;
    top: 0;
}

/* Media Queries */
@media (max-width: 1199.98px) {
    .about-icon {
        width: 100px;
        height: 100px;
    }

    .about-title {
        font-size: 1rem;
    }

    .about-text, .about-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 991.98px) {
    .about-box {
        min-height: auto;
        max-height: none;
        padding: 1.8rem 1rem;
    }

    .about-icon {
        width: 90px;
        height: 90px;
    }

    .about-title {
        font-size: 1.1rem;
    }

    .about-text, .about-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .about-box {
        padding: 1.5rem 0.8rem;
        margin-bottom: 1rem;
    }

    .about-icon {
        width: 70px;
        height: 70px;
    }

    .about-title {
        font-size: 0.8;
    }

    .about-text, .about-list li {
        font-size: 0.75rem;
    }
}

/********** Service Cards **********/
.service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
        height: 450px; /* الارتفاع الأساسي */
    max-width: 100%; /* مرنة */
    margin: auto;
    margin-top: 5%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* الصور */
.service-img {
    width: 100%;
    height: 260px; /* تكبير الصورة */
    margin-bottom: 0.5rem;
    object-fit: content;
}

/* محتوى البطاقة */
.service-content {
    flex: 1; /* النص يأخذ المساحة الباقية */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* النصوص بالوسط عموديًا */
    align-items: center;
    text-align: center;
    background-color: #F9F9F9;
     height: 7rem;
     border-radius: 3rem;

}
/* العناوين */
.service-content h4 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #005CB3;
}

/* النصوص */
.service-content span {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #000;
}

/********** Services Carousel **********/
.services-carousel {
    padding: 1rem 0;
}

.services-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.services-carousel .owl-nav .owl-prev,
.services-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #005CB3;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.services-carousel .owl-nav .owl-prev:hover,
.services-carousel .owl-nav .owl-next:hover {
    background: #fff;
    color: #005CB3;
}

/* Responsive */
@media (max-width: 991.98px) {
    .service-card { min-height: 350px; }
    .service-img { height: 220px; }
    .service-content h4 { font-size: 1rem; }
    .service-content span { font-size: 0.9rem; }
}

@media (max-width: 767.98px) {
    .service-card {
        margin-top: 10%;
        min-height: 420px; /* ارتفاع أكبر في الموبايل */
    }
    .service-img { height: 260px; }
    .service-content { padding: 1rem; }
    .service-content h4 { font-size: 1rem; }
    .service-content span { font-size: 0.85rem; }
}

@media (max-width: 575.98px) {
    .services-carousel { padding: 0.5rem 0; }
    .service-card { min-height: 450px;
        margin-top: 20%; } /* في أصغر الشاشات */
    .service-img { height: 280px; } /* تكبير الصورة أكثر */
    .service-content { padding: 0.8rem;
    border-radius: 1.5rem; }
    .service-content h4 { font-size: 0.95rem; }
    .service-content span { font-size: 0.8rem; }
}

/********** Works Carousel **********/
.works-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.works-carousel .owl-nav .owl-prev,
.works-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .15);
    font-size: 25px;
    transition: .5s;
}

.works-carousel .owl-nav .owl-prev:hover,
.works-carousel .owl-nav .owl-next:hover {
    background: #FFFFFF;
    color: var(--primary);
}

/********** Work Cards **********/
#work{
    padding:0;
    margin: 0;
}
.work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background-color: #F9F9F9;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: auto;
    margin-bottom: 0;
        margin-top: 0;

    height: 400px; /* الارتفاع الأساسي */
    max-width: 100%;

}

.work-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* الصورة */
.product-img {
    width: 100%;
    height: 250px;   /* حجم الصورة الأساسي */
    object-fit: content;
}

/* النصوص */
.work-content {
    padding: 1rem;
    text-align: center;
    flex: 1;
        height: 7rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.work-content h4 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #005CB3;
}

.work-content span {
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
}

/********** Responsive **********/
@media (max-width: 991px) {
    .work-card { height: 280px; }
    .product-img { height: 160px; }
    .work-content h4 { font-size: 0.95rem; }
    .work-content span { font-size: 0.8rem; }
}

@media (max-width: 767px) {
    .work-card { height: 250px; }
    .product-img { height: 140px; }
    .work-content h4 { font-size: 0.9rem; }
    .work-content span { font-size: 0.75rem; }
}

@media (max-width: 575px) {
    .work-card {min-height: 450px;
    margin-top: 10%;}
    .product-img { height: 200px; }
    .work-content { padding: 0.8rem; }
    .work-content h4 { font-size: 0.85rem; }
    .work-content span { font-size: 0.7rem; }
}

/********** Contact Section **********/
.contact-form {
    background: #fff;
    height: 100%;
width: 100%;

}

.contact-form input,
.contact-form textarea {
    font-size: 0.6rem;
    width: 100%;

}

.contact-form button {
    background-color: #005CB3;
    font-size: 0.8rem;
    width: 100%;
    color: #fff;
}

/* Contact Bar */
.contact-bar {
    background: #D9D9D97D;
    position: relative;
    height: auto;
}

.contact-item {
    position: relative;
    padding-top: 0;
}

.contact-item .icon-img {
    width: 3rem;
    height: auto;
    object-fit: contain;
    margin-top: -40px;
}

.contact-item h4 {
    font-weight: 500;
    font-size: 0.9rem;
     color: #000000;

    font-family: 'Cairo', sans-serif;
}

.contact-item span {
    display: block;
        font-size: 0.7rem;
     color: #000000;
    font-family: 'Cairo', sans-serif;
}

/* Media Queries Contact */
@media (max-width: 767px) {
    .contact-bar {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .contact-item .icon-img {
        width: 60px;
        margin-top: -30px;
    }

    .contact-item h4 {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    .contact-item span {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .contact-item {
        margin-bottom: 3px;
    }
}


/* Contact Form */
.contact-form {
    background: #fff;
    width: 100%;
    padding: 0.8rem;
    border-radius: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    font-size: 0.85rem;
    width: 100%;
    border-radius: 0.35rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #ddd;
    background-color: #D9D9D97D;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    background-color: #005CB3;
    font-size: 0.9rem;
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #004080;
}

/* Contact Bar */
.contact-bar {
    background: #D9D9D97D;
    border-radius: 0.4rem;
    margin-top: 0.8rem;
    padding: 1rem 0.5rem;
}

.contact-item {
    text-align: center;
}

.contact-item .icon-img {
    width: 2.5rem;
    margin-bottom: 0.2rem;
}

.contact-item h4 {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.contact-item span {
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 0.8rem;
        padding: 0.4rem 0.45rem;
    }
    .contact-form button {
        font-size: 0.85rem;
        width: 100%;
        padding: 0.35rem 0.5rem;
    }
    .contact-item .icon-img {
        width: 2.3rem;
    }
    .contact-item h4 {
        font-size: 0.8rem;
    }
    .contact-item span {
        font-size: 0.65rem;
    }
}

@media (max-width: 767px) {
    .contact-form input,
    .contact-form textarea {
        font-size: 0.75rem;
        padding: 0.35rem 0.4rem;
    }
    .contact-form button {
        font-size: 0.8rem;
        padding: 0.3rem 0.45rem;
    }
    .contact-item .icon-img {
        width: 2rem;
    }
    .contact-item h4 {
        font-size: 0.75rem;
    }
    .contact-item span {
        font-size: 0.6rem;
    }
}

@media (max-width: 575px) {


    .contact-form input,
    .contact-form textarea {
        font-size: 0.7rem;
    }
    .contact-form button {
        font-size: 0.75rem;
    }
    .contact-item .icon-img {
        width: 1.8rem;
        margin:0

    }
    .contact-item h4 {
        font-size: 0.7rem;
       margin:0


    }
    .contact-item span {
        font-size: 0.55rem;
        margin-bottom: 3%;
    }
    .contact-bar {
    background: #D9D9D97D;
    border-radius: 0.4rem;
    margin-top: 0.8rem;
        margin-bottom: 30%;

    padding: 1rem 0.5rem;
}
}


.footer {
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Cairo', sans-serif;
}

.footer h4 {
    font-weight: 500;
    font-size: 0.9rem;
    color: #005CB3;
    margin-bottom: 0.5rem;
}

.footer p,
.footer a {
    font-weight: 400;
    font-size: 0.8rem;
    color: #000000;
    line-height: 1.4;
}

.footer a {
    display: block;
    margin-bottom: 3px;
    text-transform: capitalize;
    transition: 0.3s;
      text-decoration: none; /* إزالة الخط الافتراضي */

}

.footer a:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

.social-link img {
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 767px) {
    .footer h4 {
        font-size: 0.9rem;
    }
    .footer p,
    .footer a {
        font-size: 0.75rem;
    }
    .social-link img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 575px) {
    .footer h4 {
        font-size: 0.85rem;
    }
    .footer p,
    .footer a {
        font-size: 0.7rem;
    }
    .social-link img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
  .footer {
    min-height: 80vh; /* يكبر أكثر في الشاشات الصغيرة */
  }
}

@media (max-width: 576px) {
  .footer {
    min-height: 80vh;
    /* أكبر شيء للموبايل الصغير */
  }
}
/* ===================== Animations ===================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Class جاهزة لتطبيقها على الأقسام */
.animate {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.animate.show {
    opacity: 1;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}


/* Back to Top Button ثابت دائمًا */
.back-to-top {
    position: fixed; /* ثابت على الشاشة */
    bottom: 30px;    /* من الأسفل */
    right: 30px;     /* من اليمين */
    z-index: 9999;
    width: 50px;
    height: 50px;
    background-color: #005CB3;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 1;            /* دائمًا ظاهر */
    pointer-events: auto;  /* يمكن الضغط عليه */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hover */
.back-to-top:hover {
    background-color: #003E7E;
    transform: scale(1.2);
    color: #fff;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* خلفية Preloader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ليكون فوق كل العناصر */
}
