html, body{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
:root {
    --primary-color: #7f7f7f;
    --primary-dark: #0a0e1a;     /* غامق جداً / خلفية أنيقة */
    --accent-color: #7f7f7f;     /* الذهبي الأساسي */
    --secondary-color: #2e2e2e;  /* رمادي فخم للتوازن */    --black: #1A1A1A;
    --white: #FFFFFF;
    --ul-gray: #E5E7EB;
    --text-gray: #6B7280;
    --bg-light: #F8FAFC;
    --gray: #6C757D;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
--gradient-overlay: linear-gradient(
  45deg,
  rgba(127, 127, 127, 0.9) 0%,   /* رمادي غامق نسبياً */
  rgba(200, 200, 200, 0.6) 100%  /* رمادي أفتح بشفافية */
);
}
::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;
}
section{
    scroll-margin-top: 74px;
    overflow-x: hidden;
}

.blurr-img {
    position: fixed;
    z-index: -2;
    top: 10%;
    left: 10%;
}
.blurr {
    background: #ffffffe0 0% 0% no-repeat padding-box;
    opacity: 1;
    backdrop-filter: blur(35px);
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -1;
}


/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    width: fit-content;
}

:dir(rtl) .language-switcher {
    left: 30px;
}

:dir(ltr) .language-switcher {
    right: 30px;
}

.language-switcher-toggle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
}

.language-switcher-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.language-switcher-toggle:active {
    transform: translateY(0) scale(0.95);
}

.language-switcher-toggle .flag-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.language-menu {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: 60px;
}

.language-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transform: scale(1.05);
}

.language-option:active {
    transform: scale(0.95);
}

.language-option .flag-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.language-option:hover .flag-icon {
    border-color: rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 20px;
    }
    
    :dir(rtl) .language-switcher {
        left: 20px;
    }

    :dir(ltr) .language-switcher {
        right: 20px;
    }

    .language-switcher-toggle {
        width: 45px;
        height: 45px;
        padding: 8px;
    }

    .language-switcher-toggle .flag-icon {
        width: 25px;
        height: 25px;
    }

    .language-option .flag-icon {
        width: 28px;
        height: 28px;
    }
}

.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;
    text-decoration: none;
}
:dir(rtl).whatsapp-icon{
    right: 20px;

}
:dir(ltr).whatsapp-icon{
    left: 20px;

}
.whatsapp-icon i{
    font-size: 30px;
}
/* تأثير التحريك */
@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;
}



/* نسخة للأزرار الكبيرة */
.cta-btn.large {
    padding: 20px 40px;
    font-size: 18px;
    min-width: 200px;
}
/* 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 {
     background-color: var(--primary-color); /* ممكن تغيره للون اللي يناسبك */
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-block: 5px;
   transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: var(--primary-color); /* ممكن تغيره للون اللي يناسبك */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.logo img {
    width: 160px;
    height: auto;
    transition: all .3s ease-in-out;
}

.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;
    font-size: 18px;
}
.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;        
        padding-top: 60px;
        width: 60%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        transition: all 0.4s ease;
        z-index: 1000;
    }
    :dir(rtl).main-nav{
        left: -100%;
    }
    :dir(ltr).main-nav{
        right: -100%;
    }
    .main-nav a {
        color: white;
    }
    .main-nav a.active{
        color: black;
    }
    :dir(rtl).main-nav.active {
        left: 0;        
    }
    :dir(ltr).main-nav.active {
        right: 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);
    }

}
.call-btn {
  background-color: white; /* لون واتساب أخضر جذاب */
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 10px 25px;
}

.call-btn:hover {
  transform: translateY(-2px);
}

/* Desktop button يظهر فقط في الشاشات الكبيرة */
.header-call {
  margin-left: 20px;
}
.mobile-call a{
    color: var(--primary-dark);
    padding: 10px 20px;
    font-size: 14px;
}
@media (max-width: 992px) {
  .header-call {
    display: none; 
  }
  .mobile-call {
    display: block; 
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
  }
}

/* start hero section  */
/* start hero section  */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('../assets/bgLg-1.webp');
    background-size: cover;
    background-position: top right;
    animation: background-swipe 15s infinite, zoom-fade 10s infinite; 
    z-index: 1;
}

/* Keyframes for background image swipe */
@keyframes background-swipe {
    0% {
        background-image: url('../assets/bgLg-2.webp');
    }
    25% {
        background-image: url('../assets/bgLg-1.webp');
    }
    50% {
        background-image: url('../assets/bgLg-3.webp');
    }
    75% {
        background-image: url('../assets/bgLg-4.webp');
    }
    100% {
        background-image: url('../assets/bgLg-2.webp'); /* نفس البداية */
    }
}

@keyframes zoom-fade {
    0% {
        transform: scale(1) opacity(0);
    }
    50% {
        transform: scale(1.2) opacity(1);
    }
    100% {
        transform: scale(1) opacity(0);
    }
}
/* الفيديو كخلفية */
/* .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2;
} */

/* الطبقة الشفافة */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: -1;
}
.hero #typed {
  color: var(--primary-color);
  font-weight: bold;
}
/* المحتوى */
.hero .content-box .hero-title {
    font-size: 42px;
    line-height: 1.5;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}
.hero .content-box .hero-description {
    font-size: 20px;
    line-height: 1.5;
    color: white;
    margin-bottom: 30px;
}
.cta-btn {
    color: white;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 24px;
    padding: 10px 35px;
    animation: pulse 1.5s ease-in-out infinite;

}
.cta-btn:hover {
    color: white;
    border: 2px solid var(--primary-color);
}

@media(max-width:767px){
    .hero .content-box .hero-title { font-size: 24px; }
    .hero .content-box .hero-description { font-size: 18px; }
    .cta-btn { font-size: 18px; }

    .hero{
        background-image: url('../assets/bgSm-1.webp');

    }
    @keyframes background-swipe {
    0% {
        background-image: url('../assets/bgSm-2.webp');
    }
    25% {
        background-image: url('../assets/bgSm-1.webp');
    }
    50% {
        background-image: url('../assets/bgSm-3.webp');
    }
    75% {
        background-image: url('../assets/bgSm-4.webp');
    }
    100% {
        background-image: url('../assets/bgSm-2.webp'); /* نفس البداية لضمان سلاسة اللوب */
    }
}

}


/* ======= About Us Section ======= */
.about{
    padding-block: 40px;
    background-color: #f7f6f7;
}
.about .box .title{
    color: white;
    background-color: var(--primary-color);
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 15px;
    font-weight: 700;
}

.about .box h1{
    /* color: white; */
    color: black;
    font-size: 30px;
    font-weight: bold;
    margin-top: 15px;
}
.about p{
    /* color: white; */
    color: #555;
    font-size: 18px;
    text-align: justify;
    line-height: 1.5;
}
:dir(rtl) .about p{
    border-right: 2px solid var(--primary-color);
    padding-right: 11px;

}
:dir(ltr) .about p{
    border-left: 2px solid var(--primary-color);
    padding-left: 11px;


}
.about ul li{
    margin-bottom: 10px;
    transition: .3s;
    font-size: 18px;
    /* color: white; */
    color: black;
    cursor: pointer;
    font-weight: bold;

}
.about ul li:hover i{
    color: var(--primary-color);
    background-color: white;
}
.about ul li i{
    font-size: 16px;
    color: white;
    background-color: var(--primary-color);
    padding: 8px;
    transition: .4s;
    width: 25px;
    height: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;

}
.about .about-img{
    position: relative;
}
.about .about-img::before{
    position: absolute;
    content: "";
    background-image: url('../imgs/about_before.png');
    width: 138px;
    height: 135px;
    background-size: contain;
    background-repeat: no-repeat;
    left: -50px;
    top: -20px;
    animation: moveRightToLeft 5s linear infinite; 
    z-index: -1;

}
.about .about-img::after{
    position: absolute;
    content: "";
    background-image: url('../imgs/about_after.png');
    width: 234px;
    height: 235px;
    background-size: contain;
    background-repeat: no-repeat;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;

}
@media(max-width:767px){
    .about .box h1{
        font-size: 20px;
    }
    .about p{
        font-size: 14px;
    }
    .about ul li{
        font-size: 14px;
    }
    .about .about-img::before{
        width: 90px;
        left: 50px;
    }
    .about .about-img::after{
        width: 150px;
        left: -30px;
    }
}

/* ======= services Section ======= */
.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #0a0e1a;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  overflow: hidden;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-color); /* اللون الأساسي لموقعك */
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #555;
  /* max-width: 500px; */
  margin: 15px auto 50px;
  line-height: 1.6;
}


.services{
    padding-top: 60px;
    overflow: hidden;
}
.service-box{
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
}
.service-box .img-box{
    max-height: 240px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    transition: all .3s ease-in-out;
}
.service-box .img-box::after{
    position: absolute;
    content: "";
    height: 0;
    width: 100%;
    transition: all 0.4s;
    background: var(--accent-color);
    opacity: 0.5;
    left: 0;
    top: 0;
}
.service-box:hover .img-box::after{
    height: 100%;
    transform: scale(1.5);
}
.service-box:hover .img-box{
    transform: scale(1.1);
}

.service-box .img-box img{
    width: 100%;
    height: auto;
    object-position: bottom;
}
.service-box .content-area{
    position: relative;
    height: 280px;
    transition: all .7s;
    padding: 15px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background-color: #F8FAFC;
    z-index: 1;
}
.service-box .content-area .service-title{
    color: var(--accent-color);
    text-align: center;
    transition: all .7s;
    font-weight: 700;

}
.service-box .content-area::after
{
    position: absolute;
    content: "";
    height: 0;
    width: 100%;
    left: 0;
    bottom: -20px;
    transition: all 0.4s;
    background: var(--accent-color);
    z-index: -1;
    border-radius: 0 0 4px 4px;
}
.service-box:hover .content-area::after,
.portfolio-card:hover .portfolio-content::after{
    height: calc(100% + 20px);
}
.portfolio-content::after{
    position: absolute;
    content: "";
    height: 0;
    width: 100%;
    left: 0;
    bottom: -70px;
    transition: all 0.4s;
    background: var(--accent-color);
    z-index: -1;
    border-radius: 0 0 4px 4px;
}
.portfolio-card:hover .portfolio-content::after{
    height: calc(100% + 70px);
}
.service-box:hover,
.service-box:hover .service-title,
.portfolio-card:hover .portfolio-description,
.portfolio-card:hover .portfolio-title{
    color: white;
}
.service-box .number{
    font-size: 24px;
    color: white;
    font-weight: 700;
    height: 80px;
    width: 80px;
    text-align: center;
    line-height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.4s;
    margin: 0 auto;
    margin-top: -55px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;

}
.service-box:hover .number{
    transform: scale(1.1) rotateY(360deg);
}

.service-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-box:hover .feature-tag {
    background: white;
    color: var(--accent-color);
    transform: translateY(-2px);
}




.portfolio-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 20px;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-overlay);
    border-radius: 2px;
}

.section-title {
    color: var(--text-dark);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-overlay);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-block: 10px;

}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    /* max-width: 600px; */
    margin: 0 auto;
    line-height: 1.6;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 10px;
    padding-bottom: 20px;
    height: 540px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    height: 0;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-12px) ;
    box-shadow: var(--shadow-hover);
}

.portfolio-card:hover::before {
    height: 100%;
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    opacity: 0;
}

.portfolio-card:hover .image-overlay {
    height: 100%;
    opacity: 1;
}

.view-button {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 15px 25px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-card:hover .view-button {
    transform: translateY(0);
    background: white;
    border-color: var(--primary-color);
}

.view-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-overlay);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.portfolio-content {
    padding: 30px;
    position: relative;
    z-index: 2;
    height: 200px;
}

.portfolio-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.portfolio-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 51px;
}
@media(max-width:767px){
    .portfolio-title{
        font-size: 16px;
    }
    .portfolio-description{
        font-size: 14px;
    }
}
.portfolio-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    margin-top: 20px;
}

.portfolio-client {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-client i {
    color: var(--primary-color);
    font-size: 16px;
}

.portfolio-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.portfolio-slider {
    padding: 0 60px 60px;
    overflow: hidden;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    background: var(--gradient-overlay);
    border-radius: 50%;
    width: 55px !important;
    height: 55px !important;
    margin-top: -27px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: none;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(27, 35, 100, 0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
    color: white;
}

.swiper-button-next {
    right: 15px;
}

.swiper-button-prev {
    left: 15px;
}

.swiper-pagination {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    background: #cbd5e1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(27, 35, 100, 0.4);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    animation: slideIn 0.4s ease forwards;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 30px;
    background: var(--gradient-overlay);
    color: white;
    text-align: center;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .portfolio-details {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .portfolio-slider {
        padding: 0 0px 60px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}



.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-brand .icon img{
    width: 120px;
    margin-bottom: 35px;
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.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;
    }
}.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #7f7f7f 0%, #575656 50%, #7f7f7f 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(27, 35, 100, 0.3);
    min-width: 250px;
    z-index: 1;
    opacity: 1 !important;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7f7f7f 0%, rgb(73, 72, 71) 50%, #7f7f7f 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(27, 35, 100, 0.4);
    letter-spacing: 2px;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover::after {
    opacity: 1;
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(27, 35, 100, 0.6);
    transition: all 0.1s ease;
}

.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 35, 100, 0.3), 0 8px 25px rgba(27, 35, 100, 0.3);
}

/* تأثير للآيكون إذا كان موجود */
.cta-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

/* نسخة بديلة بلون مختلف */
.cta-btn.secondary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #e74c3c 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.cta-btn.secondary::after {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 50%, #c0392b 100%);
}

.cta-btn.secondary:hover {
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
}

/* نسخة للأزرار الصغيرة */
.cta-btn.small {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 120px;
}





.contact-section {
    border-radius: 20px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
}

/* معلومات التواصل */
.contact-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2850 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 145, 75, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.contact-info h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(-5px);
}

.contact-info .content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 77, 224, 0.3);
}

.contact-info li:hover .icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 77, 224, 0.3);
}

.contact-info .text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.contact-info .text a,
.contact-info .text span {
    color: var(--white);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.5;
}

.contact-info .text a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* نموذج التواصل */
.contact-form {
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heading-area {
    text-align: right;
    margin-bottom: 30px;
}
:dir(ltr) .heading-area,
:dir(ltr) input::placeholder,
:dir(ltr) textarea::placeholder{
    text-align: left;
}

.sub-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.sec-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
}

.sec-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-color);
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 145, 75, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #999;
    text-align: right;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 145, 75, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button[type="submit"]:hover::before {
    left: 100%;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {

    .name-fields {
        grid-template-columns: 1fr;
    }

    .contact-info, .contact-form {
        padding: 30px 20px;
    }

    .contact-info h2, .sec-title {
        font-size: 24px;
    }

}

/* تحسينات إضافية */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيق إضافي لحقل الهاتف مع intl-tel-input */
.iti {
    width: -webkit-fill-available;
    direction: ltr;
}

.iti__country-list {
    z-index: 9999;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    direction: ltr;
    text-align: left;
}

.iti__country {
    padding: 8px 12px;
    font-size: 14px;
}

.iti__country:hover {
    background-color: var(--light-bg);
}

.iti__country.iti__highlight {
    background-color: var(--primary-color);
    color: white;
}

.iti__selected-country {
    border-radius: 12px 0 0 12px;
    border-left: 1px solid var(--border-color);
    padding: 15px 12px;
    background: var(--white);
}

.iti__selected-country:hover {
    background-color: var(--light-bg);
}

.iti__flag-container {
    margin-right: 8px;
}

.iti__arrow {
    margin-left: 6px;
    border-top-color: var(--text-color);
}

.iti input[type=tel] {
    border-radius: 0 12px 12px 0 !important;
    padding-left: 15px !important;
    direction: ltr;
    text-align: right;
}

.iti input[type=tel]:focus {
    border-left: 2px solid var(--primary-color) !important;
}

/* إصلاحات للعربية */
.iti__country-name {
    color: var(--text-color);
}

.iti__dial-code {
    color: var(--primary-color);
    font-weight: 600;
}

/* النوافذ المنبثقة */
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 28, 77, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: popupAppear 0.3s ease-out forwards;
}

@keyframes popupAppear {
    to {
        transform: scale(1);
    }
}

.popup-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.popup-content p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.ok-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ok-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}




.clients-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02) 0%, rgba(220, 53, 69, 0.02) 100%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #0d6efd, #dc3545);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    /* max-width: 600px; */
    margin: 0 auto;
}

/* تنسيق الحاوي */
.logos-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.logos-container::before,
.logos-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.logos-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

/* شريط الشعارات */
.logos-slider {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    gap: 40px;
}

.logos-slider:hover {
    animation-play-state: paused;
}

/* عنصر الشعار */
.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6c778162;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.logo-item:hover::before {
    left: 100%;
}

.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* الصور */
.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-item:hover .logo-img {
    transform: scale(1.05);
}

/* الحركة */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .logos-slider {
        animation-duration: 25s;
        gap: 30px;
    }
    
    .logo-item {
        width: 160px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .logos-slider {
        animation-duration: 20s;
        gap: 25px;
    }
    
    .logo-item {
        width: 140px;
        height: 80px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .logos-slider {
        animation-duration: 18s;
        gap: 20px;
    }
    
    .logo-item {
        width: 120px;
        height: 70px;
        padding: 10px;
    }
    
    .logos-container::before,
    .logos-container::after {
        width: 50px;
    }
}

@media (max-width: 576px) {
    .logos-slider {
        animation-duration: 15s;
        gap: 15px;
    }
    
    .logo-item {
        width: 100px;
        height: 60px;
        padding: 8px;
    }
    
    .logos-container::before,
    .logos-container::after {
        width: 30px;
    }
}

/* تأثير الدخول */
.clients-section {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

