@import url('../fonts/stylesheet.css');

:root {
    font-size: 16px;
    --main: #452E8A;
    --white: #FFF;
    --gray: #707070;
    --dark: #202020;
}

* {
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    font-family: 'Montserrat-Arabic', 'Cairo', 'Arial', sans-serif !important;
    font-size: 1rem;
}

html {
    scroll-behavior: smooth;
}

a {
    display: inline-block;
}

*:focus {
    outline: none;
}

.btn {
    border: 1px solid var(--main);
    border-radius: 24px;
    padding: 1rem 1.5rem;
    color: var(--main);
    transition: 0.3s;
}

.btn-fill {
    color: var(--white);
    background-color: var(--main);
}

.btn-fill:hover {
    background-color: var(--white);
    color: var(--main);
}

.btn:not(.btn-fill):hover {
    color: var(--white);
    background-color: var(--main);
}

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

@media (min-width: 1px) and (max-width: 767.9px) {
    :root {
        font-size: 14px;
    }

    header .logo {
        width: 100px;
    }

    .btn {
        padding: 0.875rem;
    }

    header .btn {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) and (max-width: 991.9px) {
    :root {
        font-size: 15px;
    }
}

/* Style Header */

header {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #E4F0F8;
}

header .logo {
    height: auto;
    width: auto;
    max-height: 4rem;
}

header a {
    color: var(--gray);
}

.collapse-menu {
    background-color: transparent;
    padding: 0;
}

header.show .links {
    display: flex !important;
    animation: fadeIn 0.5s linear;
}

header .links a {
    position: relative;
    transition: 0.3s;
}

header .links a::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 0;
    background-color: var(--main);
    transition: 0.3s;
}

header .links a:hover {
    color: var(--main);
}

header .links a:hover::before {
    width: 100%;
    height: 2px;
}

header .btn {
    font-size: 0.925rem;
    white-space: nowrap;
    min-width: fit-content;
}

/* Mobile responsive improvements for header buttons */
@media (max-width: 991.98px) {
    header .col-auto.d-flex.align-items-center {
        justify-content: flex-end;
    }
}

.collapse-menu,
.collapse-menu .hamburger-box {
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    background-color: var(--main) !important;
}

header.show+.over {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.5s linear;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

header.show ~ .mobile-menu {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-link {
    color: var(--gray);
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--main);
}

.mobile-menu-buttons {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-menu-buttons .btn {
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
}

.mobile-menu-buttons .btn:last-child {
    margin-bottom: 0;
}

/* تحسين تجربة المستخدم للقائمة المنسدلة */
body.menu-open {
    overflow: hidden;
}

/* تحسين مظهر الأزرار في القائمة المنسدلة */
.mobile-menu-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* تحسين الروابط في القائمة المنسدلة */
.mobile-menu-link {
    position: relative;
    font-weight: 500;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--main);
    transition: width 0.3s ease;
}

.mobile-menu-link:hover::after {
    width: 100%;
}

/* تحسين التمرير في القائمة المنسدلة */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--main);
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #036f51;
}

/* Style Main Section */

.main-sec {
    padding-top: 2.5rem;
    padding-bottom: 10vh;
    position: relative;
    margin-bottom: 5rem;
}

.main-sec::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: calc(100% - 140px);
    z-index: 1;
    background-color: #E4F0F8;
}

@media (min-width: 768px) {
    .main-sec::before {
        height: 77%;
    }
}

.main-sec>div {
    position: relative;
    z-index: 9;
}

.main-sec img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    object-position: center;
}

.main-sec h1 {
    min-height: 110px;
}

.main-sec h1+p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--dark);
}

.main-sec h1 {
    color: var(--main) !important;
}

.main-sec h1,
.main-sec h1 .typed-text {
    font-size: 2.25rem;
    line-height: 1.5;
    color: var(--dark);
}

@media (min-width: 992px) {
    .main-sec h1+p {
        width: 60%;
    }
}

/* Style Features */

.features {
    margin-top: -30px;
}

.boxFeature {
    position: relative;
    border: 1px solid #d6d6d6;
    border-radius: 0.5rem;
    padding: 1rem;
}

.features .title-feature {
    color: var(--gray);
    font-size: 1.125rem;
    font-family: 'Bold';
    font-weight: 700;
    position: absolute;
    top: -1.5rem;
    right: 2rem;
    background-color: #fff;
    padding: 0 1rem;
}

.features .boxFeature p {
    line-height: 1.7;
    color: var(--gray);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .features {
        margin-top: -60px;
    }
}

.single-feature {
    overflow: hidden;
    position: relative;
    padding-top: 70px;
    padding-bottom: 70px;
}

.text h3,
.titleSection {
    font-size: 2.25rem;
    font-family: 'Bold';
    font-weight: 700;
    color: var(--dark);
}

.single-feature .text h3+p,
.titleSection+p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--dark);
    margin-top: 0.875rem;
}

.single-feature .img {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.single-feature.right .img {
    justify-content: flex-end;
}

.single-feature img {
    width: 125%;
    border-radius: 0 8px 8px 0;
    transform: translateX(-24px);
}

.single-feature img.shadow {
    box-shadow: 0 3px 99px rgba(0, 0, 0, 0.1);
}

.single-feature.right .img img {
    transform: translateX(24px);
}

@media (max-width: 991.9px) {
    .single-feature .row {
        gap: 15px;
    }

    .single-feature .img {
        justify-content: center;
    }

    .single-feature .img img {
        width: 100%;
    }

    .single-feature .img img,
    .single-feature.right .img img {
        transform: translateX(0);
    }
}

/* ourCategories */

.ourCategories {
    display: flex;
    height: 400px;
    justify-content: space-between;
}

.ourCategories .swiperX {
    height: 500px;
    width: calc((100% / 3) - 0.75rem);
}

.ourCategories .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
}

.ourCategories .swiper-slide::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.4);
}

.ourCategories .swiper-slide img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: unset;
    object-position: center;
    z-index: 7;
}

.ourCategories .swiper-slide span {
    color: #fff;
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 11;
}

.cloud-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* الغيمة من الأعلى */
.cloud-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, rgb(255 255 255) 0%, rgba(245, 247, 255, 0) 100%);
    pointer-events: none;
    z-index: 3;
}

/* الغيمة من الأسفل */
.cloud-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(0deg, rgb(255 255 255) 0%, rgba(245, 247, 255, 0) 100%);
    pointer-events: none;
    z-index: 3;
}

/* boxQuestion */

.boxQuestion {
    border: 1px solid #E4F0F8;
    padding: 1.125rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px 1px #e4f0f889;
    margin-bottom: 2rem;
}

.boxQuestion:last-child {
    margin-bottom: 0;
}

.boxQuestion>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boxQuestion h5 {
    font-size: 1.25rem;
    color: var(--dark);
}

.boxQuestion span {
    cursor: pointer;
}

.boxQuestion svg {
    width: 2rem;
    height: 2rem;
}

.boxQuestion svg [stroke] {
    stroke: #452E8A;
}

.boxQuestion p {
    color: var(--gray);
    font-size: 1rem;
    margin-top: 0.75rem;
    line-height: 1.85;
}

.boxQuestion:not(.show) svg.minus {
    display: none;
}

.boxQuestion.show svg.plus {
    display: none;
}

.boxQuestion:not(.show) p {
    display: none;
}

.boxQuestion.show p {
    display: block;
    animation: showOpacityLinear 0.3s linear;
}

@keyframes showOpacityLinear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.faq img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Style Have */

.have {
    /* background-color: var(--main); */
    background: linear-gradient(to left, #452e8a, #036f51);
}

.have .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1px) and (max-width: 767.9px) {
    .have .container {
        flex-direction: column;
        text-align: center;
    }

    .text h3 {
        font-size: 1.75rem;
    }
}

.have .text h3 {
    color: #fff;
}

.have .text p {
    color: #fff;
    font-size: 1.125rem;
}

.have a {
    border-color: #452e8a !important;
    background-color: #452e8a;
}

.have a:hover {
    color: #452e8a;
    background-color: var(--white);
}

/* Style Contact */

.contact {
    background-color: #E4F0F8;
    background-color: #325077;
    background: linear-gradient(to left, #452e8a, #036f51);
    position: relative;
}

.contact>img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    background-position: center;
}

.contact>div {
    position: relative;
    z-index: 99;
}

.contact li svg [stroke] {
    stroke: #f3f3f3;
}

.contact p {
    font-size: 1rem;
    font-family: 'Bold';
    font-weight: 700;
    color: var(--white);
}

.contact p.logo-p {
    font-size: 1.125rem;
    font-family: 'Regular';
    font-weight: 400;
    max-width: 350px;
    line-height: 1.5;
}

.contact ul {
    padding: 0;
}

.contact li {
    color: #f3f3f3;
    margin-bottom: 12px;
    font-size: 0.875rem;
    list-style: none;
}

.contact li svg {
    width: 1.125rem;
    height: auto;
}

.contact li:last-child {
    margin-bottom: 0;
}

.contact a {
    color: #f3f3f3;
    font-size: 0.875rem;
}

/* Style Footer */

.icon-whatsapp {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 9999;
    background-color: #1BD741;
    height: 3.5rem;
    width: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px #1bd74188;
    transition: 0.3s;
}

.icon-whatsapp:hover {
    transform: scale(1.1);
}

.icon-whatsapp svg {
    width: 2rem;
    height: auto;
}

.logo-footer {
    height: 55px;
}

/* Form Contact */

.formContactUs {
    background-color: #E4F0F8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.formContactUs input,
.formContactUs textarea,
.formContactUs select,
.heroCreateNew input {
    width: 100%;
    border: 2px solid #e0e6ed;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    color: var(--dark);
    font-size: 0.9125rem;
    background-color: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.formContactUs input:focus,
.formContactUs textarea:focus,
.formContactUs select:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 0.2rem rgba(69, 46, 138, 0.15);
    transform: translateY(-1px);
}

.formContactUs textarea {
    min-height: 120px;
    resize: vertical;
}

.formContactUs button,
.heroCreateNew button {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* تحسين حالات الأخطاء */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* تحسين الرسائل */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* تحسين الزر أثناء التحميل */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* تحسين placeholder */
.formContactUs input::placeholder,
.formContactUs textarea::placeholder,
.formContactUs select option[value=""] {
    color: #6c757d;
    opacity: 0.8;
}

/* تحسين العناصر المطلوبة */
.text-danger {
    color: #dc3545 !important;
}

/* تحسينات إضافية للفورم */
.form-group {
    position: relative;
}

.form-group:hover .form-control,
.form-group:hover .form-select {
    border-color: var(--main);
}

/* تأثير عائم للعناصر */
.formContactUs .form-group {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.formContactUs .form-group:hover {
    transform: translateY(-2px);
}

/* تحسين التمرير للرسائل */
.alert {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين أيقونة التحميل */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسين responsive للفورم */
@media (max-width: 767.98px) {
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .formContactUs input,
    .formContactUs textarea,
    .formContactUs select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

/* Create New */

.boxForm {
    /* background-color: var(--main);
    background: linear-gradient(-135deg, rgba(69, 46, 138, 1) 30%, rgba(3, 111, 80, 1)); */
    background: linear-gradient(-135deg, rgba(69, 46, 138, 1) 30%, rgba(3, 111, 80, 1));
    padding: 2rem;
    border-radius: 1rem;
}

.boxForm img {
    width: 100%;
    height: auto;
}

.boxForm h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.boxForm p {
    font-size: 1rem;
    color: #dcdcdc !important;
    line-height: 2;
}

.heroCreateNew form p {
    color: var(--white) !important;
    font-weight: 500;
}

.heroCreateNew label {
    color: var(--white);
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.heroCreateNew input[type="radio"]+label {
    border: 1px solid var(--gray);
    padding: 0.325rem 0.5rem;
    display: inline-block;
    margin: 1rem 0 0 0.5rem;
    border-radius: 0.5rem;
    color: var(--gray);
    background-color: var(--white);
    transition: 0.3s;
    cursor: pointer;
}

.heroCreateNew input[type="radio"]:checked+label {
    border-color: #036f51;
    background-color: #036f51;
    color: var(--white);
}

@media (max-width: 991.9px) {
    .heroCreateNew .colText {
        text-align: center;
    }
}

/* .heroCreateNew form {
    background: #fff;
    padding: 1rem;
    margin: 0.5rem;
    border-radius: 1rem;
} */

/* تحسينات إضافية للصفحة */
.form-select {
    background-color: var(--white);
    color: var(--dark);
    font-size: 0.9125rem;
}

.form-select:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 0.2rem rgba(69, 46, 138, 0.25);
}

/* تحسين الأيقونات في قسم المميزات */
.text-center svg {
    transition: transform 0.3s ease;
}

.text-center:hover svg {
    transform: scale(1.1);
}

/* تحسين الأزرار */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    min-width: 180px;
    white-space: nowrap;
}

.btn i {
    font-size: 1.1em;
    opacity: 0.9;
}

.btn-fill {
    box-shadow: 0 4px 15px rgba(69, 46, 138, 0.3);
}

.btn-fill:hover {
    box-shadow: 0 6px 20px rgba(69, 46, 138, 0.4);
    transform: translateY(-2px);
}

.btn-fill:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.btn:not(.btn-fill):hover i {
    transform: scale(1.1);
    opacity: 1;
}

/* تحسين الأزرار في الشاشات الصغيرة */
@media (max-width: 575.98px) {
    .btn {
        min-width: 100%;
        justify-content: center !important;
        padding: 1rem 1.5rem;
    }
    
    .d-flex.flex-column.flex-sm-row {
        align-items: stretch;
    }
    
    .btn i {
        font-size: 1.2em;
    }
}

/* تحسين الأزرار في الشاشات المتوسطة */
@media (min-width: 576px) and (max-width: 991.98px) {
    .btn {
        min-width: 200px;
    }
}

/* تأثير نبضة للزر الرئيسي */
.btn-fill {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(69, 46, 138, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(69, 46, 138, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(69, 46, 138, 0.3);
    }
}

.btn-fill:hover {
    animation: none;
}

/* تحسين العناوين */
.titleSection {
    position: relative;
    padding-bottom: 1rem;
}

.titleSection::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--main), #036f51);
    border-radius: 2px;
}

/* تحسين الصور */
.main-sec img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* تحسين قسم المميزات */
.boxFeature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boxFeature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* تحسين الأسئلة الشائعة */
.boxQuestion {
    transition: all 0.3s ease;
}

.boxQuestion:hover {
    border-color: var(--main);
    box-shadow: 0 5px 20px rgba(69, 46, 138, 0.1);
}

/* ضمان تحميل Font Awesome وعرض الأيقونات */
.fas, .fa, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.far {
    font-weight: 400;
}

.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* تحسين مظهر الأيقونات في بطاقات نوع المزود */
.vendor-icon i {
    font-size: 28px;
    transition: all 0.3s ease;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* ضمان عدم ظهور مربعات بدلاً من الأيقونات */
.vendor-icon i:before {
    content: attr(data-icon);
}

/* تحسين عرض الأيقونات في جميع أنحاء الموقع */
i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

/* تحسين أيقونات الأزرار */
.btn i[class*="fa-"] {
    margin-left: 0.5rem;
    font-style: normal;
}

/* تحسين أيقونات القائمة المنسدلة */
.mobile-menu-buttons .btn i[class*="fa-"] {
    margin-left: 0.5rem;
    font-style: normal;
}

/* تحسين أيقونات الأزرار */
.btn i {
    margin-left: 0.5rem;
    font-style: normal;
}

/* تحسين أيقونات القائمة المنسدلة */
.mobile-menu-buttons .btn i {
    margin-left: 0.5rem;
    font-style: normal;
}