@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Import Droid Arabic Kufi font */
@import url('https://fonts.googleapis.com/earlyaccess/droidarabickufi.css');

/* Variables */
:root{
    --black:#13131a;
    --bg:#010103;
    --border:.1rem solid rgba(255,255,255,.3);
    --purple: #7213BE;
    --white: #F0F0F0;
    --box-shadow: 0 5px 15px rgba(114,19,190,0.1);
    --font-family-latin: 'Quicksand', sans-serif;
    --font-family-arabic: 'Droid Arabic Kufi', sans-serif;
}

/* Default font for LTR */
*{
    font-family: var(--font-family-latin);
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}

/* Fix for section gaps */
section {
    padding: 4rem 0;
    margin: 0;
    position: relative;
}

/* Remove any potential gaps between sections */
section + section {
    margin-top: 0;
}

/* Ensure sections fill width */
section, .container {
    width: 100%;
    overflow: hidden;
}

/* Arabic font styles */
[dir="rtl"] * {
    font-family: var(--font-family-arabic) !important;
}

[dir="rtl"] .header .navbar a,
[dir="rtl"] .header .search input,
[dir="rtl"] #what-we-do p,
[dir="rtl"] #who-we-are p,
[dir="rtl"] #who-are-our-clients p,
[dir="rtl"] .footer .box-container .mainBox p,
[dir="rtl"] .footer .box-container .box a,
[dir="rtl"] .footer .credit {
    font-family: var(--font-family-arabic) !important;
    letter-spacing: 0;
}

/* Adjust font sizes for Arabic text */
[dir="rtl"] .header .navbar a {
    font-size: 1.8rem;
}

[dir="rtl"] #what-we-do p,
[dir="rtl"] #who-we-are p,
[dir="rtl"] #who-are-our-clients p {
    font-size: 2rem;
    line-height: 1.6;
}

[dir="rtl"] .footer .box-container .box a {
    font-size: 1.6rem;
}

html{
    font-size: 62.5%;   
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar{
    width: .8rem;
}
html::-webkit-scrollbar-track{
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background-color: var(--white);
    border-radius: 5rem;
}

/* Header and Menu Styles */
.header {
    top: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    padding: 1.2rem 7%;
    z-index: 999;
    box-shadow: var(--box-shadow);
}

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

.header .logoContent .logo img {
    height: 4rem;
}

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

.header .navbar a {
    font-size: 1.6rem;
    margin-right: 3rem;
    color: var(--black);
    font-weight: 500;
}

.header .navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s ease;
}

.header .navbar a:hover {
    color: var(--purple);
}

.header .navbar a:hover::after {
    width: 100%;
}

.header .icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header .icon i {
    font-size: 2rem;
    color: var(--purple);
    cursor: pointer;
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header .icon i:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-2px);
}

.header .search{
    position: absolute;
    top: 110%;
    right: 7%;
    background-color: #fff;
    width: 50%;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s ease;
}

.header .search.active{
    transform: scaleY(1);
}

.header .search input{
    width: 100%;
    height: 4rem;
    font-size: 1.6rem;
    background-color: #f8f9fa;
    color: var(--black);
    border-radius: 0.5rem;
    padding: 0 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.header .search input:focus {
    border-color: var(--purple);
    background-color: #fff;
    outline: none;
}

#menu-bar {
    display: none;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(images/header.png) no-repeat;
    background-size: cover;
    background-position: center center;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Adjust for medium screens (tablets) */
@media (max-width: 768px) {
    .home {
        min-height: 60vh;
        background-size: cover;
        background-position: center center;
    }
}

/* Adjust for small screens (mobile devices) */
@media (max-width: 480px) {
    .home {
        min-height: 50vh;
        background-size: cover;
        background-position: center center;
    }
}

.home .homeContent{
    width: 50%;
    float: left;
    text-align: center;
    padding: 4rem;
}

.home .homeContent h2{
    font-size: 7rem;
    font-weight: bolder;
    margin-bottom: 2rem;
    line-height: 7rem;
    color: #F0F0F0;
    text-shadow: var(--box-shadow);
}

.home .homeContent .home-btn{
    height: 3rem;
}

.home .homeContent .home-btn button{
    font-size: 1.8rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: .7rem;
    padding: .7rem 2.4rem;
    cursor: pointer;
}

.home .homeContent .home-btn button:hover{
    font-size: 2rem;
}

/* What We Do Section - Remove gap */
#what-we-do {
    padding: 6rem 0;
    margin: 0;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

#what-we-do::after {
    display: none; /* Remove the diagonal shape causing the gap */
}

#what-we-do .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#what-we-do h2 {
    font-size: 4em;
    margin-bottom: 0.3em;
    color: var(--black);
}

#what-we-do .highlight {
    color: var(--purple);
}

#what-we-do p {
    margin: 0.5em auto;
    font-size: 1.8em;
    max-width: 800px;
    line-height: 1.4;
}

#what-we-do .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    padding: 0 1rem;
}

#what-we-do .row img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/*end what we do section*/


.blogs{
    background: url(images/backGround.png) no-repeat;
    background-size: cover;
    background-position: center center;
}

/* Instagram Grid Layout */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: var(--purple);
    position: relative;
    margin: 4rem 0;
}

.instagram-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(114,19,190,0.9), rgba(114,19,190,0.6));
    z-index: 1;
}

.instagram-post {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
}

.instagram-header img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.instagram-header .username {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.instagram-footer {
    padding: 10px;
    background: white;
}

.instagram-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.instagram-icons i {
    font-size: 20px;
    color: #262626;
    cursor: pointer;
}

.instagram-icons i:hover {
    color: var(--purple);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 4rem;
    color: var(--purple);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--purple);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
}

.blogs  .blogs-row .box {
    display: flex;
    align-items: center;
    background-color: var(--white);
    flex-wrap: wrap;
}
.blogs .blogs-row .box .img{
    flex: 1 1 45rem;
}
.blogs .blogs-row .box .img img{
    width: 100%;
    padding: 5rem;
}
.blogs .blogs-row .box .content{
    flex: 1 1 45rem;
    padding: 2rem;
}
.blogs .blogs-row .box .content h3{
    font-size: 3.5rem;
    color: var(--black);
    text-shadow: var(--box-shadow);

}
.blogs .blogs-row .box .content p{
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem 0;
    line-height: 1.8;
    
}
.blogs .blogs-row .box .content a{
    font-size: 2rem;
    cursor: pointer;
}
.blogs .blogs-row .box .content a:hover{
    color: var(--black);
    text-shadow: var(--box-shadow);
}
 
/* Newsletter section fix */
.newsletter {
    padding: 0;
    margin: 0;
    background: url(images/homepage.png) no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: 500px;
    position: relative;
}
.newsletter form{
    max-width: 45rem;
    text-align: center;
    padding: 5rem 0;
}
.newsletter form h3{
    font-size: 3rem;
    color: var(--white);
    padding-bottom: .7rem;
}
.newsletter form .box{
    width: 100%;
    margin: .7rem 0;
    padding: 1rem 1.2rem;
    color: var(--black);
    border-radius: .5rem;
}
.newsletter form .box2{
    width: 30%;
    font-size: 1.5rem;
    margin-top: 1rem;
    padding: .5rem .5rem;
    color: var(--black);
    background: var(--white);
    border-radius: 3rem;
    cursor:pointer;
}
.newsletter form .box2:hover{
    color: var(--white);
    background-color: var(--black);
    outline: .1rem solid var(--white);
}



.footer {
    margin: 0;
    padding: 6rem 0 2rem;
    background-color: #f8f9fa;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7213BE, transparent);
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    padding: 0 7%;
    margin-bottom: 4rem;
}

.footer .box-container .mainBox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer .box-container .mainBox .content {
    margin-bottom: 2rem;
}

.footer .box-container .mainBox .content img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer .box-container .mainBox .content img:hover {
    transform: scale(1.1);
}

.footer .box-container .mainBox p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #666;
    margin-top: 1rem;
}

.footer .box-container .box h3 {
    font-size: 2rem;
    color: #7213BE;
    padding-bottom: 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.footer .box-container .box h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #7213BE;
}

.footer .box-container .box a {
    display: block;
    font-size: 1.5rem;
    color: #666;
    padding: 0.7rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer .box-container .box a i {
    color: #7213BE;
    margin-right: 1rem;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.footer .box-container .box a:hover {
    color: #7213BE;
    transform: translateX(5px);
}

.footer .box-container .box a:hover i {
    transform: translateX(5px);
}

.footer .share {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin: 0 7%;
}

.footer .share a {
    height: 4.5rem;
    width: 4.5rem;
    line-height: 4.5rem;
    font-size: 2rem;
    color: #7213BE;
    background: #fff;
    margin: 0 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.footer .share a:hover {
    background: #7213BE;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114,19,190,0.3);
}

.footer .credit {
    font-size: 1.6rem;
    color: #666;
    text-align: center;
    padding: 2rem 7%;
    border-top: 1px solid #eee;
}

.footer .credit span {
    color: #7213BE;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer .box-container {
        gap: 2rem;
        padding: 0 5%;
    }
    
    .footer .share {
        margin: 0 5%;
    }
    
    .footer .credit {
        padding: 2rem 5%;
    }
}

/* thanks for watching my video  */







.swiper-pagination-bullet{
    background-color: var(--black);
}
.swiper-button-next{
    color: var(--black);
}
.swiper-button-prev{
    color: var(--black);
}


/* media queries for web responsive */

@media (max-width:991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 1.3rem 5%;
    }
    .home .homeContent{
        margin-left: 0;
        width: 80%;
    }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    #menu-bar {
        display: block;
    }

    .header {
        padding: 1rem 5%;
    }

    .header .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 25rem;
        background-color: #fff;
        height: auto;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        transition: 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        align-items: flex-start;
    }

    .header .navbar.active {
        right: 5%;
        opacity: 1;
        visibility: visible;
    }

    [dir="rtl"] .header .navbar {
        right: auto;
        left: -100%;
    }

    [dir="rtl"] .header .navbar.active {
        right: auto;
        left: 5%;
    }

    .header .navbar a {
        display: block;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        width: 100%;
        border-radius: 0.3rem;
        font-size: 1.6rem;
        color: var(--black);
        transition: all 0.3s ease;
    }

    .header .navbar a:hover {
        background-color: var(--purple);
        color: #fff;
        padding-left: 1.5rem;
    }

    [dir="rtl"] .header .navbar a:hover {
        padding-left: 1rem;
        padding-right: 1.5rem;
    }

    .header .icon i {
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
    }

    .header .icon i:hover {
        background-color: var(--purple);
        color: #fff;
    }

    .fa-times {
        transform: rotate(180deg);
    }

    .lang-selector {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
        padding: 1rem;
        justify-content: center;
        border-top: 1px solid #eee;
    }

    .lang-btn {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width:600px){
    html{
        font-size: 50%;
    }
}

/*our team */

.image-container {
    text-align: center; /* Center the image container */
    padding: 20px;
}

img {
    max-width: 100%; /* Make sure the image is responsive */
    height: auto; /* Maintain aspect ratio */
}


/*our clients*/
.portfolio-section {
    padding: 4rem 0;
    margin: 0;
    background-color: #fff;
    position: relative;
}

/* Clients Grid Layout */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logos-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    padding: 0.5rem;
}

/* Maintain 4 columns on all screen sizes */
@media (max-width: 1024px) {
    .logos-grid {
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--purple);
    color: var(--purple);
    padding: 0.3rem 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--purple);
    color: white;
}

.lang-btn:hover {
    background: var(--purple);
    color: white;
}

/* RTL Support */
[dir="rtl"] .lang-selector {
    margin-right: 0;
    margin-left: 2rem;
}

[dir="rtl"] .header .navbar a i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .header .icon {
    padding-left: 0;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .lang-selector {
        margin: 1rem 0;
        justify-content: center;
    }

    .lang-btn {
        padding: 0.4rem 1rem;
        font-size: 1.6rem;
    }
}

/* Clients Section Styles */
#clients {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #fff;
}

#clients .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#clients h2 {
    font-size: 4em;
    margin-bottom: 0.3em;
    color: var(--black);
}

#clients p {
    margin: 0.5em auto;
    font-size: 1.8em;
    max-width: 800px;
    line-height: 1.4;
}

/* RTL Support for Clients Section */
[dir="rtl"] #clients p {
    text-align: right;
}

@media (max-width: 768px) {
    #clients {
        padding: 4rem 0 2rem;
    }

    #clients h2 {
        font-size: 3rem;
    }

    #clients p {
        font-size: 1.4rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    #clients h2 {
        font-size: 2.5rem;
    }

    #clients p {
        font-size: 1.3rem;
    }
}

/* Who We Are Section */
#who-we-are {
    padding: 6rem 0;
    margin: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 1;
}

#who-we-are::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/team.png) no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: -1;
}

#who-we-are .container {
    position: relative;
    z-index: 1;
}

#who-we-are .image-container {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#who-we-are .image-container:hover {
    transform: translateY(-10px);
}

#who-we-are .image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

#who-we-are .image-container:hover img {
    transform: scale(1.02);
}





