html, body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
:root {
    --primary-color: #090d13;
    --secondary-color: #2e3c5c;
    --gold-color: #FFD700 ;
}
::selection {
    color: white;
    background: black;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
}
@font-face{
    font-family: "IBMPlexSansArabic";
    src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('opentype');
}
    
body {
    font-family: 'IBMPlexSansArabic', sans-serif;
    overflow-x: hidden;
}

/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    width: fit-content;
}
:dir(rtl) .language-switcher{
    left: 20px;
}
:dir(ltr) .language-switcher{
    right: 20px;
}
.language-switcher-toggle {
    background-color: #fff;
    color: #333;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    border: 1px solid #ccc;
    font-size: 14px;
}

.language-switcher-toggle:hover {
    background-color: #ddd;
}

.language-switcher-toggle .current-lang {
    margin-left: 8px;
}

.language-switcher-toggle .arrow {
    margin-left: 8px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.language-menu {
    display: none;
    background-color: #fff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 120px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: #ddd;
}

.language-option .flag-icon {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

/* Arrow rotation when the menu is open */
.language-switcher-toggle.open .arrow {
    transform: rotate(-135deg);
}

.whatsapp-icon {
    position: fixed;
    bottom: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 111;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: bounce 1.5s infinite;
}
.whatsapp-icon svg{
    font-size: 30px;
}
/* تحديد الاتجاه */
:dir(ltr) .whatsapp-icon {
    left: 20px;
}

:dir(rtl) .whatsapp-icon {
    right: 20px;
}

/* تأثير التحريك */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* تأثير عند التحويم */
.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    background-color: #25D366;
    color: white;
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    animation: pulse 1.5s infinite;
}
a{
    text-decoration: none;
}


/* main-header */

.main-header {
    color: #fff;
    padding-bottom:24px;
    position: absolute;
    width: 100%;
    z-index: 11;
}

.main-header .container {
    display: flex;
    align-items: center;
    margin: 0 auto;
}


/* Navbar Styles */
.main-header {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-block: 20px;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(55, 9, 170, 0.15);
}
.logo img {
    width: 120px;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: end;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
    position: relative;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}
.main-nav .active {
    color: #a4a3a3;
}

.main-nav .active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;    
    background-color: #eee;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span{
    width: 100%;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .main-header .container{
        justify-content: space-between;
    }
    .main-nav {
        position: fixed;
        top: 0px;
        left: -100%;
        padding-top: 60px;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        transition: all 0.4s ease;
        z-index: 1000;
    }
    .main-nav a {
        color: white;
    }
    .main-nav a.active{
        color: black;
    }
    .main-nav.active {
        left: 0;        
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .main-nav a {
        font-size: 18px;
    }

    /* Animate toggle icon when active */
    .mobile-menu-toggle.active span{
        width: 100%;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* start hero section  */
.hero {
            position: relative;
            height: 100vh;
            min-height: 600px;
            overflow: hidden;
        }

        .hero-swiper {
            width: 100%;
            height: 100%;
        }

        .hero-slide {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            z-index: 1;
        }

        /* Background images for each slide */
        .hero-slide:nth-child(1) {
            background-image: url('../assets/heroLg1.webp');
        }

        .hero-slide:nth-child(2) {
            background-image: url('../assets/heroLg2.webp');
        }

        .hero-slide:nth-child(3) {
            background-image: url('../assets/heroLg3.webp');
        }


        /* Overlay for better text readability */
        .hero-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: -1;
        }

        .content-box {
            color: white;
            padding: 50px 40px;
            border-radius: 20px;
            margin-right: 0;
        }

        .content-box h1 {
            font-size: 45px;
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: 20px;
        }
        .content-box h1 {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 20px;
        }

        .content-box h2 {
        font-size: 28px;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 15px;
        }

        .content-box p {
        font-size: 18px;
        font-weight: 400;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #ddd; /* ممكن تفتحه شويه عن العنوانين */
}
        .content-box h1 span {
            color: #FFD700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        /* Swiper Navigation */
        .swiper-button-next,
        .swiper-button-prev {
            color: white;
            background: rgba(255, 255, 255, 0.2);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 20px;
        }

        /* Swiper Pagination */
        .swiper-pagination-bullet {
            background: rgba(255, 255, 255, 0.5);
            opacity: 1;
        }

        .swiper-pagination-bullet-active {
            background: #000;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .content-box h1 {
                font-size: 3rem;
            }
            
            .row {
                padding-right: 30px;
            }
        }

        @media (max-width: 992px) {
            .content-box {
                padding: 40px 30px;
            }
            
            .content-box h1 {
                font-size: 2.5rem;
            }
            
            .row {
                padding-right: 20px;
            }
        }

        @media (max-width: 768px) {
            .hero {
                min-height: 500px;
            }
            /* Background images for each slide */
        .hero-slide:nth-child(1) {
            background-image: url('../assets/heroSm1.webp');
        }

        .hero-slide:nth-child(2) {
            background-image: url('../assets/heroSm2.webp');
        }

        .hero-slide:nth-child(3) {
            background-image: url('../assets/heroSm3.webp');
        }
            .container {
                padding: 0 15px;
            }
            
            .row {
                justify-content: center;
                padding-right: 0;
            }
            
            .content-box {
                padding: 30px 25px;
                margin: 20px;
                text-align: center;
            }
            
            .content-box h1 {
                font-size: 28px;
            }

            .content-box h2 {
                font-size: 20px;
            }

            .content-box p {
                font-size: 16px;
            }
            
            .swiper-button-next,
            .swiper-button-prev {
                width: 40px;
                height: 40px;
            }
            
            .swiper-button-next:after,
            .swiper-button-prev:after {
                font-size: 16px;
            }
        }

        @media (max-width: 576px) {
            .hero {
                min-height: 400px;
            }
            
            .content-box {
                padding: 15px;
                margin: 15px;
            }
            
            .swiper-button-next,
            .swiper-button-prev {
                display: none;
            }
        }


        /* Animation */
        .content-box {
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .cta {
background: #000;
  color: white;
  padding: 5px 30px;
  padding-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Bright pulse animation */
.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: pulseGlow 3s infinite;
  z-index: -1;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.7);
    opacity: 0.7;
  }
}

/* Hover effect */
.cta:hover {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  transform: scale(1.03);
}

/* start about area  */
.about-us{
    padding-top: 80px;
}
.oip-about-area {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-block: 80px;
}
.oip-about-area::before {
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    background: #d5eae9c7;
    max-width: 1490px;
    margin: auto;
    z-index: -1;
}
.oip-about-content .top .inner-content .sub {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.4px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.oip-about-content .top .inner-content h2 {
    font-size: 45px;
    margin-bottom: 20px;
}
.online-investment-platform-home p {
    font-family: "Inter", serif;
    font-size: 16px;
    color: #8886B0;
    line-height: 1.8;
    font-weight: 400;
}
.oip-about-image {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}
.oip-about-content .top .inner-image {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}
.oip-about-content .fun-items {
    display: flex
;
    justify-content: space-between;
    border-top: 1px solid rgba(6, 16, 41, 0.1);
    margin-top: 50px;
    padding-top: 30px;
    padding-left: 50px;
}
.oip-about-content .fun-items .item {
    margin-right: 25px;
}
.oip-about-content .fun-items .item h3 {
    display: flex;
    align-items: center;
    font-size: 45px;
    font-weight: 800;
    color: #DD5C00;
    margin-bottom: 10px;
}
.oip-about-content .fun-items .item h5 {
    font-size: 20px;
    margin-bottom: 10px;
}
.oip-about-content .fun-items .item p {
    margin-bottom: 0;
    font-size: 14px;
    color: #061029;
}


@media only screen and (max-width: 767px) {
    .oip-about-image {
        height: 450px;
    }
}

@media only screen and (max-width: 767px) {
    .oip-about-content .top .inner-image {
        height: 350px;
    }
}

@media only screen and (max-width: 767px) {
    .oip-about-content .top .inner-content h2 {
        font-size: 30px;
        margin-bottom: 15px;
    }
}

@media only screen and (max-width: 767px) {
    .oip-about-content .fun-items {
        padding-left: 0;
        display: block;
        margin-top: 30px;
    }
}


/* start services section  */
.services{
    padding-block: 100px;
    position: relative;
}
.services::before{
    position: absolute;
    font-size: 80px;
    font-weight: bold;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: -webkit-linear-gradient(0deg, #dae2ed 30%, #d3ebe9 70%);
    -webkit-text-fill-color: transparent !important;
    -webkit-background-clip: text;
}
:dir(rtl) .services::before{
    content: " مميزاتنا";

}
:dir(ltr) .services::before{
    content: " FEATURES";

}
.services::after{
    content: "";
    position: absolute;
    background-image: url('../assets/shape1.webp');
    width: 361px;
    height: 361px;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
}
.services .section-title{
    color: black;
    margin-bottom: 30px;
}
.service-box{
    padding: 15px;
    text-align: center;
    border-radius: 35px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    height: 100%;
    border-top: 2px solid #84a2b1;
    transition: all 300ms ease-in-out;
}
.service-box:hover{
    transform: translateY(-8px);
}
.service-box .icon-box{
    width: 80px;
    margin: auto;
    margin-bottom: 15px;
}
.service-box .title{
    font-weight: 600;
}

@media(max-width:767px){
    .services::before{
        font-size: 50px;
    }
    .services::after{
        display: none;
    }
    .service-box .icon-box{
        width: 40px;
    }
    .service-box .title{
        font-size: 18px;
    }
    .service-box .description{
        font-size: 14px;
    }
}
/* banner section  */

.banner-section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}



/* start contact section  */

.contact-section {
    background: #fff;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding-block: 45px;
}
.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-image {
    width: 80%;
    margin: auto;
    border-radius: 12px;
    overflow: auto;
}
.contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-form h4 {
    margin: 0;
    color: #555;
    font-size: 14px;
}
.contact-form h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #222;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
[dir="rtl"] .contact-form input,
.contact-form textarea,
.contact-form::placeholder{
    text-align: right;
}
.name-fields {
    display: flex;
    gap: 10px;
}
.name-fields input {
    width: 50%;
}
.contact-form button {
    margin-top: 10px;
    color: white;
    padding: 10px;
    background-color: #000;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}
.contact-form button:hover {
    background-color: var(--primary-color);
}
/* Styles for the popup */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    z-index: 9999; /* Make sure it appears above other content */
    align-items: center;
    justify-content: center;
  }
  
  /* Popup content */
  .popup-content {
    background-color: #0a0e1a;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Adjust the width as needed */
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  
  .popup-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
  }
  
  .popup-content p {
    font-size: 18px;
    color: white;
  }
  /* OK button */
.ok-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
  }
  
  .ok-btn:hover,
  .ok-btn:focus {
    background-color: white;
    color: var(--secondary-color);
  }

.contact-info {
  background-color: #000; /* خلفية داكنة */
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  margin: auto;
  height: 100%;
}
:dir(rtl) .contact-info{
    direction: rtl;
    text-align: right;

}
:dir(ltr) .contact-info{
    direction: ltr;
    text-align: left;

}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 20px;
}

.contact-info .content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;  
}

.contact-info .icon {
  flex: 0 0 auto;          /* تثبيت حجم الأيقونة */
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #0f1c4d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px; /* تباعد إذا لف النص */
  font-size: 16px;
}
:dir(rtl) .contact-info .icon{
    margin-left: 15px;
}
:dir(ltr) .contact-info .icon{
    margin-right: 15px;
}
.contact-info .text {
  flex: 1 1 200px; /* يتيح لها الامتداد واللف حسب المساحة */
  min-width: 0;    /* مهم لمنع overflow */
}
:dir(ltr) .contact-info .text{
    text-align: left;
}
.contact-info .text h3 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.contact-info .text a,
.contact-info .text span {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.contact-info .text a:hover {
  text-decoration: underline;
}
:dir(ltr) form textarea::placeholder{
    text-align: left;
}
.footer {
    background: #000;
    color: white;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}
.footer::before{
    content: "";
    position: absolute;
    width: 600px;
    height: 100%;
    top: 0;
    left: -200px;
    opacity: .1;
    z-index: -1;
}

.footer-brand .icon img{
    width: 200px;
    margin-bottom: 35px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links li {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .contact-form  {
        padding: 30px 20px;
    }
    .footer-brand .icon img{
        width: 150px;
    }
    .footer::before{
        left: -400px;
    }
}

.hero-slide::after,
.banner-section::after{
    position: absolute;
    font-size: 8px;
    color: white;
}
:dir(rtl) .hero-slide::after,
:dir(rtl) .banner-section::after{
    content: "تطبق الشروط والأحكام";
    left: 20px;
    bottom: 20px;
}
:dir(ltr) .hero-slide::after,
:dir(ltr) .banner-section::after{
    content: "Terms and conditions apply";
    bottom: 20px;
    right: 20px;
}

