/* Basic styles and Tailwind CSS translations will be added here */
body {
    margin: 0;
    font-family: 'ibm-plex-sans-arabic', sans-serif !important;
    background-color: #fff;
    color: #090909;
}
body.dark-mode {
    background-color: #051640;
    color: #fff;
}
body.dark-mode .about-section {
    background-color: #051640;
}

body.dark-mode .about-text h2,
body.dark-mode .about-text p,
body.dark-mode .card-text h3 {
    color: #fff;
}

body.dark-mode .card-text p {
    color: #fff;
}

body.dark-mode .card {
    background-color: #1E2D53;
}

body.dark-mode .read-more-btn-dark {
    color: #fff;
    border-color: #fff;
}
body.dark-mode .read-more-btn-dark img {
    filter: invert(1);
}

body.dark-mode .quote-section {
    background-color: #1E2D53;
}

body.dark-mode .quote-text p {
    color: #fff;
}

body.dark-mode .services-section,
body.dark-mode .partners-section,
body.dark-mode .stats-section,
body.dark-mode .cta-section {
    background-color: #051640;
}

body.dark-mode .services-section h2,
body.dark-mode .services-section .subtitle,
body.dark-mode .partners-section h2,
body.dark-mode .stats-section h2,
body.dark-mode .stat-number,
body.dark-mode .stat-description,
body.dark-mode .cta-content h2 {
    color: #fff;
}

body.dark-mode .service-card {
    background-color: #1E2D53;
}

body.dark-mode .service-card p {
    color: #fff;
}

button{
    font-family: 'ibm-plex-sans-arabic', sans-serif !important;
}

.hero-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px; /* 0.625rem */
    height: 668px;
    align-items: center;
    justify-content: flex-start;
    padding: 0px 80px 71px 80px;
    color: white;
    position: relative;
    overflow: hidden; /* Hide video overflow */
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 96, 251, 0.85); /* Blue overlay */
    z-index: -1;
}

.hero-content-wrapper {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.nav-header {
    position: relative;
    top: 50px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0px 24px 34px 20px inset rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 21px;
}

.logo-menu-items {
    display: flex;
    align-items: center;
    gap: 61px;
}

.logo img {
    width: 114px;
    height: 36px;
}

.menu-items {
    display: flex;
    gap: 4px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.theme-toggle img {
    width: 24px;
    height: 24px;
}

.lang-switcher {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switcher img {
    width: 24px;
    height: 24px;
}

.training-platform-link {
    background-color: rgba(22, 213, 157, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0px 24px 34px 20px inset rgba(255, 255, 255, 0.04);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 16px;
}

.hero-main-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 150px; /* Adjust as needed to position below nav */
}

.hero-main-content h1 {
    font-size: 54px;
    font-weight: 600;
    line-height: 62px;
    margin: 0;
}

.hero-main-content p {
    font-size: 20px;
    line-height: 30px;
    margin: 0;
}

.read-more-btn {
    background-color: white;
    color: #090909;
    border: none;
    border-radius: 99px;
    padding: 8px 22px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn img {
    width: 24px;
    height: 24px;
}

.about-section {
    background-color: white;
    padding: 85px 0;
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: #f3f5fb;
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 626px;
    box-sizing: border-box;
}

.card-icon {
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 76px;
    width: 90px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-icon img {
    width: 40px;
    height: 40px;
}

.card-text h3 {
    font-size: 30px;
    font-weight: 600;
    color: black;
    margin: 0 0 10px 0;
}

.card-text p {
    font-size: 20px;
    color: #4a4a4a;
    line-height: 28px;
    margin: 0;
}

.about-text {
    width: 554px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    text-align: start;
    /* margin-left: 60px; */
    margin-top: 16px;
}

.about-text h2 {
    font-size: 50px;
    font-weight: 600;
    color: black;
    line-height: 62px;
    margin: 0;
}

.about-text p {
    font-size: 20px;
    color: black;
    line-height: 30px;
    margin: 0;
}

.read-more-btn-dark {
    background-color: transparent;
    color: #090909;
    border: 1px solid #090909;
    border-radius: 99px;
    padding: 8px 22px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn-dark img {
    width: 24px;
    height: 24px;
}

.quote-section {
    background-color: #f3f5fb;
    height: 586px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}

.quote-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    /* z-index: 2; */
}

.quote-image {
    width: 463px;
    height: 519px;
    z-index: 2;
}

.quote-image img {
    width: 100%;
    max-width: 420px;
    height: 100%;
    object-fit: cover;
}

.quote-text {
    width: 754px;
    text-align: justify;
    margin-bottom: auto;
}

.quote-text p {
    font-size: 24px;
    line-height: 38px;
    color: #4a4a4a;
}

.quote-text .bold-text {
    font-weight: 600;
}

.quote-pattern {
    position: absolute;
    bottom: 19%;
    left: 0;
    width: 200%;
    /* z-index: 1; */
    display: flex;
    animation: scroll-horizontal 20s linear infinite;
}

.quote-pattern img {
    width: 50%;
    display: block;
    flex-shrink: 0;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.services-section {
    background-color: white;
    padding: 110px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.services-section h2 {
    font-size: 50px;
    font-weight: 600;
    color: black;
    margin: 0;
}

.services-section .subtitle {
    font-size: 24px;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 0 40px 0;
}

.services-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.service-card {
    background-color: #f3f5fb;
    border-radius: 20px;
    padding: 10px;
    width: 290px;
    height: 208px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}

.service-icon {
    background-color: white;
    border-radius: 76px;
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon img {
    width: 24px;
    height: 24px;
}

.service-card p {
    font-size: 20px;
    font-weight: 500;
    color: black;
    text-align: center;
    line-height: 26px;
    margin: 0;
}

.partners-section {
    background-color: #f3f5fb;
    padding: 56px 100px 88px 100px;
    text-align: center;
}

.partners-section h2 {
    font-size: 50px;
    font-weight: 600;
    color: black;
    margin-bottom: 60px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 90px;
}

.partners-logos img {
    height: auto;
    max-height: 73px;
    width: auto;
}

.stats-section {
    background-color: white;
    padding: 60px 100px;
    text-align: center;
}

.stats-section h2 {
    font-size: 50px;
    font-weight: 600;
    color: black;
    margin-bottom: 60px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 50px;
    font-weight: 600;
    color: black;
}

.stat-description {
    font-size: 16px;
    color: black;
}

.individuals-section {
    background: linear-gradient(90deg, #4d7cf2 70.5%, #1758fe 99.824%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.individuals-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

/* .individuals-image img {
    width: 277px;
    height: 563px;
} */

.individuals-text {
    width: 538px;
    text-align: start;
}

.individuals-text h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 62px;
    margin: 0 0 24px 0;
}

.individuals-text p {
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 24px 0;
}

.business-section {
    background: #7a3bf3; /* Placeholder purple */
    padding: 95px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.business-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

.business-image img {
    width: 713px;
    height: 411px;
}

.business-text {
    width: 538px;
    text-align: start;
}

.business-text h2 {
    font-size: 50px;
    font-weight: 600;
    line-height: 62px;
    margin: 0 0 24px 0;
}

.business-text p {
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 24px 0;
}

.read-more-btn-purple {
    background-color: white;
    color: #7a3bf3;
    border: none;
    border-radius: 99px;
    padding: 8px 22px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn-purple img {
    width: 24px;
    height: 24px;
}

.cta-section {
    background-color: white;
    /* padding: 80px 0; */
    position: relative;
    overflow: hidden;
    height: 553px;
}
.pattern-image {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 200%;
    z-index: 1;
    display: flex;
    animation: scroll-horizontal 20s linear infinite;
}

.pattern-image img {
    width: 50%;
    display: block;
    flex-shrink: 0;
}
.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 7%;
}

.cta-content h2 {
    font-size: 54px;
    font-weight: 600;
    color: #090909;
    text-align: center;
    line-height: 65px;
    margin: 0;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

footer {
    background-color: #051640;
    color: white;
    padding: 70px 100px 30px 100px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 105px;
}

.footer-links {
    display: flex;
    gap: 106px;
    align-items: baseline;
}

.link-column {
    text-align: start;
}

.link-column h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0px;
}

.link-column a, .link-column p {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 13px;
    font-size: 18px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons img {
    width: 18px;
    height: 18px;
}

.footer-logo img {
    width: 152px;
    height: 48px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 16px;
}

/* .pattern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'ibm-plex-sans-arabic';
    src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 24px;
    height: 24px;
}
.hamburger-menu img {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
}
.hamburger-menu .close-icon {
    display: none;
}
.hamburger-menu.active .menu-icon {
    display: none;
}
.hamburger-menu.active .close-icon {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 22, 64, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    width: 1057px;
    max-width: 90%;
    /* height: 597px; */
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 27px 32px;
    padding-bottom: 10px;
}

.modal-header h2 {
    font-family: 'ibm-plex-sans-arabic', sans-serif;
    font-size: 38px;
    color: black;
    margin: 0;
}

.close-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body {
    padding: 15px 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-feature {
    background-color: #f3f5fb;
    border-radius: 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.service-feature p {
    font-family: 'ibm-plex-sans-arabic', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1E2D53;
    text-align: right;
    margin: 0;
    display: list-item;
    list-style-type: disc;
    list-style-position: inside;
}

.service-feature .feature-title {
    font-family: 'ibm-plex-sans-arabic', sans-serif;
}

.rtl-flip {
    transform: scaleX(-1);
}



@media (max-width: 1130px) {
    .header-content .menu-items {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 100vw;
        height: 100vh;
        background: #051640;
        justify-content: center;
        align-items: center;
        gap: 20px;
        z-index: 1000;
        transition: right 0.3s ease-in-out;
    }

    [dir="ltr"] .header-content .menu-items {
        right: auto;
        left: -100%;
        transition: left 0.3s ease-in-out;
    }

    .header-content .menu-items.active {
        display: flex;
        position: fixed;
        inset: 0;                    /* top/right/bottom/left: 0 */
        width: 100vw;
        height: 100dvh;              /* handles iOS Safari URL bar */
        z-index: 999999;             /* above everything */       /* your navy */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: visible;    
    }

    [dir="ltr"] .header-content .menu-items.active {
        right: auto;
        left: 0;
    }

    .menu-items a {
        font-size: 24px;
    }

    .training-platform-link {
        display: none; 
    }

    .hamburger-menu {
        display: block;
        z-index: 999999;  
    }

    .nav-header {
        top: 20px;
        padding: 10px 20px;
    }

    .hero-section {
        padding: 0 20px 80px 20px;
        height: auto;
        z-index: 2;
        overflow: visible;   
    }
    
    .hero-main-content {
        margin-top: 120px;
    }

    .hero-main-content h1 {
        font-size: 32px;
        line-height: 44px;
    }

    .hero-main-content p {
        font-size: 18px;
        line-height: 26px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .about-text {
        width: 100%;
        margin-left: 0;
        text-align: center;
        align-items: center;
    }
    .about-text h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .card {
        width: 100%;
        flex-direction: row;
        text-align: start;
        padding: 30px;
        gap: 20px;
    }
    .card-icon{
        width: 64px;
        height: 100px;
    }

    .quote-section {
        height: auto;
        padding: 0;
        padding-top: 40px;
    }

    .quote-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }

    .quote-image {
        width: 100%;
        height: auto;
    }
    .quote-text {
        width: 90%;
        margin-bottom: 0;
    }
    .quote-text p {
        font-size: 16px;
        line-height: 26px;
    }
    .quote-pattern{
        top:0;
        bottom: auto;
    }
    .quote-pattern img{
        width: auto;
    }  
    .pattern-image img{
        width: auto;
    }
    .services-section {
        padding: 60px 20px;
    }
    .services-section h2, .partners-section h2, .stats-section h2, .individuals-text h2, .business-text h2, .cta-content h2 {
        font-size: 32px;
        line-height: 40px;
    }
    .services-section .subtitle{
        font-size: 18px;
    }
    .services-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .service-card{
        width: calc(50% - 10px);
    }
    .partners-section{
        padding: 60px 10px;
    }

    .partners-logos {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 50px;
        padding-bottom: 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .partners-logos::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }

    .partners-logos img {
        max-height: 50px;
        flex-shrink: 0;
    }

    .stats-section {
        padding: 60px 20px;
    }

    .stats-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
    .stat-item{
        width: calc(50% - 20px);
    }

    .individuals-content, .business-content {
        flex-direction: column;
        gap: 40px;
        padding: 60px 20px;
        text-align: center;
    }
    /* .individuals-content .read-more-btn{
        margin: 0 auto;
    } */
    .individuals-text, .business-text {
        width: 100%;
        order: 1;
    }
    .individuals-image, .business-image {
        order: 2;
    }
    .individuals-image img {
        width: 100%;
        height: auto;
    }
    .app-store-btn img{
        width: 100%;
        height: auto;
    }
    .business-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .cta-section{
        height: auto;
        padding: 124px 20px;
    }
    .cta-content{
        margin-top: 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .link-column{
        text-align: center;
    }
    .social-icons{
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    .no-scroll {
        overflow: hidden;
    }   
    .modal-header h2 {
        font-size: 24px;
    }
    .service-feature p {
        font-size: 16px;
    }
    .logo img {
        width: 98px;
    }
    .small-screen {
        display: none;
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 100%;
    }
    .stat-item {
        width: 100%;
    }
    .partners-logos img {
        max-height: 40px;
    }
}

