:root {
    --bg-light: #f4f4f4;
    --primary: #007c91;
    --primary-dark: #004a5c;
    --primary-light: #5dc9e0;
    --dark: #0a1929;
    --light: #ffffff;
    --gray: #8a9aad;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Squada One', 'Tajawal', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
    padding-top: 0 !important;
}

body.rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Squada One', sans-serif;
}

/* =============== Loading Page =============== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loading-content {
    text-align: left;
    color: white;
    position: relative;
    z-index: 2;
    padding-left: 50px;
}

body.rtl .loading-content {
    text-align: right;
    padding-left: 0;
    padding-right: 50px;
}

.logo-animation {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 40px;
}

.logo-animation i {
    font-size: 80px;
    color: var(--primary-light);
    position: relative;
    z-index: 2;
    animation: rotate 8s linear infinite;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s ease-out infinite;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

.loading-text {
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    text-align: left;
    word-spacing: normal;
}

body.rtl .loading-text {
    text-align: right;
    letter-spacing: 0px;
    word-spacing: 4px;
}

.loading-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.5s ease forwards;
}

body.rtl .loading-text .letter {
    transform: translateX(50px);
}

.loading-bar-container {
    width: 400px;
    margin-bottom: 20px;
    text-align: left;
}

body.rtl .loading-bar-container {
    text-align: right;
}

.loading-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(93, 201, 224, 0.3);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(93, 201, 224, 0.5);
}

.loading-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 400px;
    margin-top: 10px;
}

body.rtl .loading-bottom {
    flex-direction: row-reverse;
}

.loading-percentage {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-light);
    text-shadow: 0 2px 10px rgba(93, 201, 224, 0.7);
}

.lets-talk-btn {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Squada One', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 2s;
}

.lets-talk-btn:hover {
    background: var(--primary-light);
    color: var(--dark);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(93, 201, 224, 0.3);
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite linear;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

/* =============== Main Content =============== */
.main-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.show {
    display: block;
    opacity: 1;
}

.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

/* =============== Header =============== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 33, 55, 0.95); /* خلفية ثابتة */
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(93, 201, 224, 0.2);
    transition: background 0.3s ease; /* إزالة تحريك التمرير */
}

.main-header.scroll-up,
.main-header.scroll-down {
    transform: translateY(0) !important;
}


.header-top {
    background: var(--dark);
    padding: 8px 0;
    border-bottom: 1px solid rgba(93, 201, 224, 0.2);
}

.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-container {
    margin-top: 120px;
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    overflow: hidden;
}

.contact-info-top {
    display: flex;
    gap: 25px;
    align-items: center;
}

body.rtl .contact-info-top {
    flex-direction: row-reverse;
}

.contact-info-top small {
    font-size: 1.1rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.rtl .contact-info-top small {
    flex-direction: row-reverse;
}

.contact-info-top a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-top a:hover {
    color: var(--primary-light);
}

.social-icons-top {
    display: flex;
    gap: 12px;
}

.social-icons-top a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-icons-top a:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
/* تضبط العربي زي الإنجليزي */
body[dir="rtl"] .social-icons-top {
    justify-content: center; /* مركزة الأيقونات أفقيًا */
    direction: ltr;          /* تجبر الأيقونات على نفس ترتيب الإنجليزي */
}

.header-main {
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    border-radius: 5px;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-line {
    width: 24px;
    height: 3px;
    background-color: var(--light);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-toggle:hover {
    background: rgba(93, 201, 224, 0.1);
    color: var(--primary-light);
}

.mobile-menu-toggle:hover .menu-line {
    background-color: var(--primary-light);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 12px 18px;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(93, 201, 224, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

body.rtl .nav-link.active::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.nav-link .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(93, 201, 224, 0.3);
    border-radius: 10px;
    padding: 15px 0;
    min-width: 280px;
    display: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transform-origin: top center;
}

body.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(93, 201, 224, 0.15);
    color: var(--primary-light);
    padding-left: 35px;
}

body.rtl .dropdown-item:hover {
    padding-left: 25px;
    padding-right: 35px;
}

.search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background: rgba(93, 201, 224, 0.2);
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: scale(1.1);
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: rgba(93, 201, 224, 0.1);
    border: 2px solid rgba(93, 201, 224, 0.3);
    color: var(--primary-light);
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    font-family: 'Squada One', sans-serif;
}

.lang-btn:hover {
    background: rgba(93, 201, 224, 0.2);
    border-color: var(--primary-light);
}

.lang-dropdown-menu {
    position: absolute;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(93, 201, 224, 0.3);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 130px;
    display: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    right: 0;
}

body.rtl .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown:hover .lang-dropdown-menu {
    display: block;
}

.lang-option {
    display: block;
    padding: 12px 15px;
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    text-align: center;
}

.lang-option:hover {
    background: rgba(93, 201, 224, 0.15);
    color: var(--primary-light);
}

.contact-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

body.rtl .contact-section {
    padding-right: 0;
    padding-left: 20px;
    border-right: none;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.phone-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulsePhone 2s infinite;
    border: 2px solid rgba(93, 201, 224, 0.5);
}

.phone-icon i {
    font-size: 1.4rem;
    color: var(--light);
}

.contact-details {
    display: flex;
    flex-direction: column;
}



.contact-details span {
    font-size: 1rem;
    color: var(--gray);
}

.contact-details a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s ease;
    direction: ltr;
    text-align: left;
    display: inline-block;
}

body.rtl .contact-details a {
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

.contact-details a:hover {
    color: var(--light);
    text-shadow: 0 0 10px rgba(93, 201, 224, 0.5);
}

.lets-talk-btn-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--dark);
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Squada One', 'Tajawal', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(93, 201, 224, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex-shrink: 0;
}

.lets-talk-btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    transition: width 0.5s ease;
    z-index: -1;
}

.lets-talk-btn-header:hover::before {
    width: 100%;
}

.lets-talk-btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(93, 201, 224, 0.5);
}

/* =============== Carousel =============== */
.carousel-container {
    margin-top: 120px;
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    overflow: hidden;
}

.carousel-item {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.4);
    transition: transform 10s ease;
}

.carousel-item.active img {
    animation: zoomInOut 20s infinite alternate ease-in-out;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
}

.carousel-content {
    padding: 0;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-content h6 {
    color: var(--primary-light);
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideInFromTop 1s ease forwards 0.5s;
}

.carousel-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 35px;
    color: var(--light);
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInFromBottom 1s ease forwards 0.7s;
}

.carousel-content h1 .highlight {
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.carousel-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    animation: lineWidth 1.8s ease forwards 1.5s;
}

body.rtl .carousel-content h1 .highlight::after {
    left: auto;
    right: 0;
}

.word-by-word {
    display: block;
    margin-bottom: 10px;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(90deg);
}

.carousel-item.active .word {
    animation: wordSlideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.carousel-item.active .word:nth-child(1) { animation-delay: 1s; }
.carousel-item.active .word:nth-child(2) { animation-delay: 1.2s; }
.carousel-item.active .word:nth-child(3) { animation-delay: 1.4s; }
.carousel-item.active .word:nth-child(4) { animation-delay: 1.6s; }

.carousel-content-btn1,
.carousel-content-btn2 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-size: 1.3rem;
    padding: 18px 45px;
    border-radius: 30px;
    font-family: 'Squada One', sans-serif;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 10px;
    border: none !important;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.carousel-item.active .carousel-content-btn1 {
    animation: slideInFromBottom 1s ease forwards 1.1s;
}

.carousel-item.active .carousel-content-btn2 {
    animation: slideInFromBottom 1s ease forwards 1.3s;
}

.carousel-content-btn1::before,
.carousel-content-btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transition: width 0.5s ease;
    z-index: -1;
}

.carousel-content-btn1:hover::before,
.carousel-content-btn2:hover::before {
    width: 100%;
}

.carousel-content-btn1:hover,
.carousel-content-btn2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(93, 201, 224, 0.4);
    color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(93, 201, 224, 0.3);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    z-index: 3;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

body.rtl .carousel-control-prev {
    left: auto;
    right: 20px;
}

body.rtl .carousel-control-next {
    right: auto;
    left: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(93, 201, 224, 0.2);
    border-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-size: 100%;
    filter: invert(1) brightness(2);
}

.carousel-indicators {
    bottom: 40px;
    z-index: 3;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    border: none;
    margin: 0 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.carousel-indicators [data-bs-target]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    animation: indicatorShine 2s infinite;
}

.carousel-indicators .active {
    background-color: var(--primary-light);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(93, 201, 224, 0.7);
}


/* =============== Back to Top Button =============== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 151, 178, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

body.rtl .back-to-top {
    right: auto;
    left: 30px;
}

/* Facts Section Styling */
.facts {
    position: relative;
    overflow: hidden;
}

.facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.facts::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-width: 80px;
}

.counter h5 {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ================= About Section ================= */
.about {
    background: linear-gradient(to bottom, #eef7fb, #ffffff);
}

/* ===== About Image Slider ===== */
.about-image-slider {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(13,33,55,0.25);
}

.slider-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1.2s ease;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* ===== Indicators ===== */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
/* =========================
   About Image Hover Effects
========================= */

/* Container */
.about-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Image wrapper */
.slider-image {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease, transform 0.6s ease;
}

/* Image itself */
.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Hover Zoom */
.about-image-slider:hover .slider-image.active img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

/* Soft overlay on hover */
.about-image-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top right,
        rgba(13,33,55,0.25),
        rgba(33,157,188,0.15)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-image-slider:hover::after {
    opacity: 1;
}

/* Shadow enhancement on hover */
.about-image-slider:hover {
    box-shadow: 0 35px 70px rgba(13,33,55,0.35);
    transform: translateY(-6px);
}

/* Indicators stay clickable */
.slider-indicators {
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #219dbc;
    transform: scale(1.2);
}

/* ===== About Card ===== */
.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(13,33,55,0.12);
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Accent Line */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #219dbc, #5dc9e0);
}

/* ===== Text ===== */
.about-chip {
    display: inline-block;
    background: rgba(33,157,188,0.15);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    color: #0d2137;
    margin-bottom: 15px;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0d2137;
    margin-bottom: 20px;
}

.about-text {
    color: #0d2137;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ===== Key Points ===== */
.key-points {
    background: rgba(93,201,224,0.08);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #5dc9e0;
}

.point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0d2137;
    margin-bottom: 10px;
}

.point i {
    color: #219dbc;
}

/* ===== Button ===== */
.btn-primary {
    padding: 14px 40px;
    border-radius: 50px;
    background: linear-gradient(90deg, #219dbc, #5dc9e0);
    color: #fff;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 30px rgba(33,157,188,0.35);
}

/* =============== Why Choose Us Section =============== */
.why-choose-section {
    background: var(--dark);
    padding: 80px 0;
}

.section-subtitle {
    color: var(--primary-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    color: var(--light);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--gray);
    font-size: 1.2rem;
}

.feature-box {
    background: rgba(255, 255, 255, 0.85); /* خلفية شفافة */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(93, 201, 224, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* شادو خفيف دائم */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: center;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px); /* تحريك خفيف للأعلى */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25); /* شادو أقوى عند hover */
    border-color: rgba(93, 201, 224, 0.5);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--dark); /* لون الأيقونة */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
    transition: transform 0.5s ease, background 0.4s ease;
}

.feature-box:hover .feature-icon {
    transform: rotateY(360deg); /* دوران الأيقونة عند hover */
    background: var(--primary-light); /* تغيير لون الأيقونة عند hover */
}

.feature-title {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--dark);
}


/* =============== CTA Section =============== */
.cta-section {
    background: linear-gradient(135deg, #007c91 0%, #004a5c 100%); /* تدرج كحلي-أزرق جذاب */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ===== CTA Title ===== */
.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 1s ease forwards;
}

/* ===== CTA Text ===== */
.cta-text {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease forwards;
}

/* ===== CTA Button ===== */
.cta-btn {
    display: inline-block;
    background: #00bcd4; /* لون جذاب للزر */
    color: #ffffff;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

.cta-btn:hover {
    background: #ffffff;
    color: #007c91;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.5);
}


/* =============== Footer =============== */

        .main-footer {
            background: linear-gradient(135deg, var(--primary-dark) 0%, #09192e 100%);
            padding: 100px 0 40px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .main-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 30%, rgba(0, 151, 178, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 93, 110, 0.1) 0%, transparent 50%);
        }

        .footer-section {
            margin-bottom: 50px;
            position: relative;
            z-index: 1;
        }

        .footer-title {
            color: var(--primary-light);
            font-size: 1.6rem;
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 15px;
            font-family: 'Squada One', sans-serif;
            letter-spacing: 0.5px;
        }

        .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-light), var(--accent));
            border-radius: 2px;
        }

        body.rtl .footer-title {
            font-family: 'Tajawal', 'Squada One', sans-serif;
        }

        body.rtl .footer-title::after {
            left: auto;
            right: 0;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            display: block;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 400;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-links a:hover {
            color: var(--primary-light);
            padding-left: 10px;
            transform: translateX(5px);
        }

        body.rtl .footer-links a:hover {
            padding-left: 0;
            padding-right: 10px;
            transform: translateX(-5px);
        }

        .footer-links a i {
            color: var(--primary-light);
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }

        .footer-links a:hover i {
            color: var(--accent);
            transform: rotate(90deg);
        }

        .footer-contact a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            display: flex;
            align-items: flex-start;
            gap: 18px;
            margin-bottom: 25px;
            transition: all 0.3s ease;
            padding: 12px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.03);
        }

        .footer-contact a:hover {
            color: var(--primary-light);
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-3px);
        }

        .footer-contact a i {
            color: var(--primary-light);
            font-size: 1.2rem;
            margin-top: 2px;
            transition: all 0.3s ease;
        }

        .footer-contact a:hover i {
            color: var(--accent);
            transform: scale(1.2);
        }

        .footer-contact a div strong {
            display: block;
            color: var(--primary-light);
            margin-bottom: 5px;
            font-size: 0.95rem;
        }

        .footer-contact a div span {
            font-size: 0.95rem;
            opacity: 0.9;
        }

        .copyright {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            position: relative;
            z-index: 1;
        }

/* =============== Animations =============== */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    70% {
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    70% {
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes wordSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes indicatorShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineWidth {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { 
        transform: scale(0.8); 
        opacity: 0.8; 
    }
    100% { 
        transform: scale(1.5); 
        opacity: 0; 
    }
}

@keyframes slideIn {
    0% { 
        opacity: 0; 
        transform: translateX(-50px) rotate(-10deg); 
    }
    70% { 
        transform: translateX(10px) rotate(5deg); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0) rotate(0deg); 
    }
}

@keyframes floatParticle {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(100px, 100px) rotate(90deg); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(0, 200px) rotate(180deg); 
        opacity: 0.3;
    }
    75% { 
        transform: translate(-100px, 100px) rotate(270deg); 
        opacity: 0.5;
    }
    100% { 
        transform: translate(0, 0) rotate(360deg); 
        opacity: 0.3;
    }
}

@keyframes glowPulse {
    0% { 
        opacity: 0.2; 
        transform: translate(-50%, -50%) scale(1); 
    }
    100% { 
        opacity: 0.4; 
        transform: translate(-50%, -50%) scale(1.2); 
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulsePhone {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 201, 224, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(93, 201, 224, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(93, 201, 224, 0);
    }
}


/* Add these styles to your style.css for the loading animation */

.loading-text {
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    text-align: left;
    word-spacing: normal;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

body.rtl .loading-text {
    text-align: right;
    letter-spacing: 0px;
    word-spacing: 4px;
    justify-content: flex-end;
}

.loading-text .word {
    display: inline-block;
    overflow: hidden;
}

.loading-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
    animation: letterReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Particle animation */
@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) rotate(360deg);
        opacity: 0;
    }
}

.particle {
    --tx: calc((var(--i, 1) - 0.5) * 200px);
    --ty: calc((var(--j, 1) - 0.5) * 200px);
    animation: floatParticle 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

/* Glow effect enhancement */
.glow-effect {
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/* Progress bar animation */
.loading-progress {
    position: relative;
    overflow: hidden;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* =============== Services Section =============== */

.services {
    background: #f4f4f4;
    position: relative;
}
/* ===== Services Section Titles Colors ===== */
.services h5 {
    color: #005d6e !important; /* Our Services */
}

.services h1 {
    color: #0d2137 !important; /* Services Built Specifically For Your Business */
}

.services .services-item {
    background: #ffffff; 
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: 20px 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 
                0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ===== Hover Overlay ===== */
.services-item::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background:#0d2137; 
    transition: top 0.5s ease;
    border-radius: 15px;
    z-index: 1;
}

.services-item:hover::after {
    top: 0;
}

.services-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 
                0 10px 25px rgba(0, 0, 0, 0.2);
}


.services-content {
    position: relative;
    z-index: 2;
    color: #0d2137; 
}

.services-content-icon i {
    transition: 0.5s;
    color: #0d2137 !important; 
    z-index: 3;
    position: relative;
}

.services-item:hover .services-content-icon i {
    color: #ffffff !important; 
}

.services-item:hover .services-content-icon h4,
.services-item:hover .services-content-icon p {
    color: #ffffff !important; 
}

.services-content-icon h4 {
    font-weight: 700;
    margin-bottom: 10px;
    z-index: 3;
    position: relative;
}

.services-content-icon p {
    color: #0d2137; 
    margin-bottom: 20px;
    z-index: 3;
    position: relative;
}

.services-content-icon a.btn {
    background: #0097b2; 
    color: #f4f4f4;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: 0.3s;
    z-index: 3;
    position: relative;
}

.services-content-icon a.btn:hover {
    background: #005d6e; 
    color: #f4f4f4;
}



/* ===== Scroll Animate ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}




/* تغيير لون هذا العنصر المحدد فقط */
.container-fluid.testimonials .text-center h5.text-primary {
    color: #00b4d8 !important;
}



/* =============== Contact Section ================= */
.contact-detail,
.contact-details,
.contact-form-wrapper,
.contact-form {
    font-family: 'Squada One', sans-serif;
}

/* ===== Contact Section Titles ===== */
.contact-info h5,
.contact-info h1,
.contact-info p {
    color: #0d2137 !important;
}

/* ===== Contact Items ===== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }
.contact-item:nth-child(4) { animation-delay: 0.8s; }

.contact-item .contact-icon i {
    color: #ffffff !important; /* الأيقونات باللون الأبيض */
    font-size: 26px;
}

.contact-item .contact-content h4,
.contact-item .contact-content p,
.contact-item .contact-content a {
    color: #0d2137 !important; /* النصوص باللون الأبيض */
}

/* ===== Contact Form ===== */
.contact-form {
    background: #0d2137; /* الخلفية كحلي */
    padding: 40px 30px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s forwards;
}

.contact-form .form-group:nth-child(1) { animation-delay: 0.2s; }
.contact-form .form-group:nth-child(2) { animation-delay: 0.4s; }
.contact-form .form-group:nth-child(3) { animation-delay: 0.6s; }
.contact-form .form-group:nth-child(4) { animation-delay: 0.8s; }
.contact-form .form-group:nth-child(5) { animation-delay: 1s; }

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.1); /* شفاف قليلاً */
    border: none;
    padding: 18px 15px;
    border-radius: 12px;
    color: #ffffff; /* النصوص باللون الأبيض */
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.contact-form button {
    background: #005d6e; /* زر إرسال بلون مميز */
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background: #00bcd4;
    transform: scale(1.05);
}

/* ===== Animation ===== */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* =============== Footer =============== */
.main-footer, .footer {
    background: #0d2137; /* خلفية كحلي داكن */
    padding: 60px 0 30px;
    color: #d0d7dd;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Footer Section ===== */
.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #00bcd4; /* عنوان القسم */
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00bcd4;
}

.footer-section p {
    color: #d0d7dd; /* نصوص الفقرة */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===== Footer Logo ===== */
.footer-section a img {
    height: 65px;
    filter: none; /* اللوجو يظهر بلونه الطبيعي */
}

/* ===== Footer Links - ترتيب عمودي ===== */
.footer-section .footer-links a {
    display: block; /* كل رابط تحت الآخر */
    margin-bottom: 12px; /* مسافة بين الروابط */
    color: #d0d7dd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .footer-links a:hover {
    color: #00bcd4;
    transform: translateX(5px);
}

/* ===== Footer Contact Info ===== */
.footer-contact a {
    display: flex;
    flex-direction: row; /* أيقونة + النص في صف */
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px; /* مسافة بين عناصر الاتصال */
}

.footer-contact a div {
    display: flex;
    flex-direction: column; /* العنوان والبيانات تحت بعض */
}

.footer-contact a i {
    font-size: 1.2rem;
    color: #00bcd4;
    margin-top: 2px;
}

.footer-contact a div strong {
    display: block;
    color: #ffffff;
}

.footer-contact a div span {
    color: #d0d7dd;
}

/* ===== Social Icons ===== */
.social-icons-top a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px; /* مسافة بين الأيقونات */
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icons-top a:hover {
    background: #00bcd4;
    transform: translateY(-3px);
    color: #ffffff;
}

/* ===== Footer Links Icon Color ===== */
.footer-links a i {
    margin-right: 8px;
    color: #00bcd4;
}

/* ===== Copyright ===== */
.footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d0d7dd;
    font-size: 1rem;
    margin-top: 40px;
}



/* =============== Projects Section =============== */
.projects-section {
    background-color: #0d2137 !important;
}

.section-header h5.text-primary {
    color: #0097b2 !important;
}

.section-header h1,
.section-header p.text-muted {
    color: white !important;
}

.projects-filter {
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Squada One', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: #0097b2;
    color: white;
    border-color: #0097b2;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 151, 178, 0.3);
    border-color: rgba(0, 151, 178, 0.5);
}

.project-image {
    position: relative;
    overflow: hidden;
}


.project-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
}




.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 33, 55, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.view-project {
    background: #0097b2;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project:hover {
    background: #00b4d8;
    transform: scale(1.05);
}

.view-image {
    background: white;
    color: #0d2137;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.view-image:hover {
    background: #0097b2;
    color: white;
}

/* معلومات المشروع */
.project-info {
    padding: 20px;
    text-align: center;
}

.project-category {
    color: #0097b2;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.project-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-link {
    color: #0097b2;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.project-link:hover {
    color: white;
    gap: 12px;
}

.project-link i {
    font-size: 0.8rem;
}

/* زر View All Projects */
.btn-primary {
    background: #0097b2;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #00b4d8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 151, 178, 0.3);
}

/* تأثيرات التحريك */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-delay-1 {
    animation-delay: 0.1s;
}

.stagger-delay-2 {
    animation-delay: 0.2s;
}
/* زر View All Projects - تصغير حجم الزرار للعربية */
html[dir="rtl"] .btn-primary.btn-lg {
    padding: 10px 20px !important; /* تقليل الحشوة */
    min-height: 46px; /* تحديد ارتفاع أصغر */
    line-height: 1.2; /* تقليل ارتفاع السطر */
    border-radius: 25px; /* يمكن تقليل الزوايا قليلاً */
    transform: scale(0.9); /* تصغير عام للزر */
    transform-origin: center;
}

/* التأكد من أن التصغير لا يؤثر على الهوفر */
html[dir="rtl"] .btn-primary.btn-lg:hover {
    transform: scale(0.92) translateY(-2px); /* تعديل تأثير الهوفر */
}

/* إذا كنت تريد التحكم في العرض أيضاً */
html[dir="rtl"] .btn-primary {
    min-width: 160px; /* تقليل العرض الأدنى */
    max-width: 200px; /* تحديد أقصى عرض */
}

/* طريقة بديلة باستخدام نسبة مئوية */
html[dir="rtl"] .btn-primary {
    transform: scale(0.85); /* تصغير بنسبة 15% */
    margin: 0 auto; /* توسيط إذا لزم الأمر */
}

/* الحفاظ على التناسق في جميع الأجهزة */
@media (max-width: 768px) {
    html[dir="rtl"] .btn-primary.btn-lg {
        padding: 8px 16px !important;
        font-size: 14px;
        transform: scale(0.8);
    }
}

/* التأكد من أن التصغير لا يؤثر على التخطيط */
html[dir="rtl"] .text-center .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* إذا كنت تستخدم Bootstrap classes */
html[dir="rtl"] .btn-lg {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: 2rem;
}

/* طريقة أكثر دقة: إنشاء class مخصص للعربية */
.btn-primary-ar {
    padding: 10px 20px !important;
    font-size: 14px;
    min-height: 44px;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.btn-primary-ar:hover {
    transform: scale(0.92) translateY(-2px);
}

/* تطبيق الـ class تلقائياً للعربية */
html[dir="rtl"] .btn-primary {
    composes: btn-primary-ar; /* إذا كان يدعم CSS Modules */
    /* أو ببساطة انسخ الخصائص */
    padding: 10px 20px !important;
    min-height: 44px;
    transform: scale(0.9);
}

/* الحل الأمثل: استخدام متغيرات CSS */
:root {
    --btn-primary-padding: 12px 30px;
    --btn-primary-scale: 1;
}

html[dir="rtl"] {
    --btn-primary-padding: 10px 20px;
    --btn-primary-scale: 0.9;
}

.btn-primary {
    padding: var(--btn-primary-padding);
    transform: scale(var(--btn-primary-scale));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(calc(var(--btn-primary-scale) * 1.05)) translateY(-2px);
}

/* ========== PROJECT IMAGE FULLER ON MOBILE ========== */
@media (max-width: 768px) {

    /* الكارت يسمح بالتمدد */
    .project-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* الصورة تاخد مساحة أكبر */
    .project-image {
        flex: 0 0 260px;   /* ارتفاع ثابت للصورة */
        width: 100%;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* محتوى الكارت */
    .project-info {
        flex: 1;
        padding: 22px 20px;
    }
}





/* =============== Testimonials Section =============== */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    color: white;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.author-info h5 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--primary-light);
    font-size: 0.9rem;
}

/* =============== Contact Section =============== */
.contact {
    background: #ffffff; /* خلفية بيضاء */
    position: relative;
    padding: 100px 0;
}

/* ===== Contact Info ===== */
.contact-info h5 {
    color: #007c91;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.contact-info h1 {
    color: #005d6e;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.contact-info p {
    color: #007c91;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

/* ===== Contact Details Boxes ===== */
.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,93,110,0.2); /* ظل كحلي */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    transition: all 0.3s ease;
}

.contact-item:nth-child(1) { animation-delay: 0.2s; }
.contact-item:nth-child(2) { animation-delay: 0.4s; }
.contact-item:nth-child(3) { animation-delay: 0.6s; }
.contact-item:nth-child(4) { animation-delay: 0.8s; }

.contact-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,93,110,0.4);
}

/* ===== Contact Icon ===== */
.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #005d6e, #007c91);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0, 93, 110, 0.3);
}

/* ===== Contact Content ===== */
.contact-content h4 {
    color: #005d6e;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-content p,
.contact-content a {
    color: #007c91;
    text-decoration: none;
    font-size: 1rem;
}

.contact-content a:hover {
    color: #005d6e;
}

/* ===== Contact Form Wrapper ===== */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(0,93,110,0.2);
    box-shadow: 0 8px 20px rgba(0,93,110,0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 1s forwards;
}

/* ===== Form Elements ===== */
.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-control {
    background: #ffffff;
    border: 1px solid #005d6e;
    color: #005d6e;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #007c91;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #007c91;
}

.contact-form select.form-control option {
    background: #ffffff;
    color: #005d6e;
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: #005d6e;
    color: #ffffff;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s ease;
}

.contact-form button[type="submit"]:hover {
    background: #007c91;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 93, 110, 0.4);
}

/* ===== FadeInUp Animation ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =============== Footer Font Override =============== */

.main-footer,
.main-footer * {
    font-family: 'Squada One', sans-serif !important;
}

/* =========================
   FIX Font Awesome Icons
========================= */

/* Solid + Regular */
.fa,
.fas,
.fa-solid,
.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Brands (Facebook, WhatsApp, Instagram) */
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}
/* ================= Team Section ================= */
.team {
    background: #ffffff;
    position: relative;
    padding: 100px 20px 120px;
    text-align: center;
}

/* Titles */
.team h5 {
    color: #005d6e !important;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.team h1 {
    color: #0d2137 !important;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
}

/* ===== Team Container (Flex) ===== */
.team-carousel {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 60px; 
    flex-wrap: nowrap; 
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: 0.2s;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Team Card ===== */
.team-item {
    background: linear-gradient(135deg, #0d2137, #005d6e);
    border-radius: 20px;
    padding-top: 110px;    
    padding-bottom: 40px;  
    text-align: center;
    position: relative;
    overflow: visible;    
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 280px;
}

/* Hover Effect */
.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.4);
}

/* ===== Triangle on top ===== */
.team-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-top: 55px solid #0097b2;
}

/* ===== Team Image ===== */
.team-img {
    width: 230px;  
    height: 230px;
    border-radius: 50%;
    background: #ffffff;
    padding: 10px;
    position: absolute;
    top: 15px;            
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.team-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0097b2;
    transition: transform 0.4s ease;
}

/* Hover Image Scale */
.team-item:hover .team-img img {
    transform: scale(1.1);
}

/* ===== Team Name & Text ===== */
.team-name {
    margin-top: 140px;  
    padding-top: 50px;

}

.team-name h4 {
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 8px;  
    font-size: 24px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.team-name p {
    color: #d0f0ff;
    font-size: 16px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0;           
}
/* Text color */
.lang-btn,
.lang-dropdown-menu a {
    color: #219dbc; /* رمادي فاتح */
}

/* Hover */
.lang-dropdown-menu a:hover {
    color: #8bbcef;
}
.lang-btn i {
    color: inherit;
}
/* ===== Outer Language Container ===== */
.lang-dropdown {
    border-radius: 999px; /* الشكل البيضاوي الخارجي */
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px; /* مسافة حوالين الزر */
    transition: all 0.3s ease;
}

/* الزر جواه يبقى شفاف */
.lang-dropdown .lang-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
}

/* Hover على الشكل كله */
.lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.12);
}
/* ضبط اتجاه الرقم داخل رابط الاتصال فقط */
a.fade-in-up.stagger-delay-2 div span {
    direction: ltr;
    unicode-bidi: bidi-override;
}
@media (max-width: 991px) {
    .lang-dropdown {
        border-radius: 999px;
        background: transparent;
        border: none;
        padding: 0;
    }
}

/* ====== Team Section Mobile Fix ====== */
@media (max-width: 768px) {
    .team-carousel {
        flex-wrap: nowrap; /* خليهم صف واحد زي الكبير */
        gap: 60px; /* نفس الفراغ */
        justify-content: center;
    }

    .team-item {
        width: 280px !important;  /* نفس حجم الشاشات الكبيرة */
        padding-top: 110px !important;
        padding-bottom: 40px !important;
        border-radius: 20px !important;
    }

    .team-item::before {
        border-left: 90px solid transparent !important;
        border-right: 90px solid transparent !important;
        border-top: 55px solid #0097b2 !important;
    }

    .team-img {
        width: 230px !important;
        height: 230px !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 10px !important;
    }

    .team-name {
        margin-top: 140px !important;
        padding-top: 50px !important;
    }

    .team-name h4 {
        font-size: 24px !important;
    }

    .team-name p {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .team-item {
        width: 280px !important; /* نفس حجم الكبير */
        padding-top: 110px !important;
        padding-bottom: 40px !important;
    }

    .team-img {
        width: 230px !important;
        height: 230px !important;
        top: 15px !important;
    }

    .team-name {
        margin-top: 140px !important;
        padding-top: 50px !important;
    }

    .team-name h4 {
        font-size: 24px !important;
    }

    .team-name p {
        font-size: 16px !important;
    }
}

@media (max-width: 375px) {
    .team-item {
        width: 280px !important;
        padding-top: 110px !important;
        padding-bottom: 40px !important;
    }

    .team-img {
        width: 230px !important;
        height: 230px !important;
        top: 15px !important;
    }

    .team-name {
        margin-top: 140px !important;
        padding-top: 50px !important;
    }

    .team-name h4 {
        font-size: 24px !important;
    }

    .team-name p {
        font-size: 16px !important;
    }
}

/* =============== FINAL MOBILE BACKGROUND FIX =============== */

@media (max-width: 768px) {
    /* Fix carousel background */
    .carousel-container {
        height: 50vh !important;
        min-height: 300px !important;
        margin-top: 60px !important;
    }
    
    .carousel-item img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        filter: brightness(0.6) !important;
    }
    
    /* Fix all section backgrounds */
    .section {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    /* Remove large background images on mobile */
    .why-choose-section,
    .testimonials,
    .cta-section {
        background-image: none !important;
        background: linear-gradient(to bottom, var(--primary-dark), var(--dark)) !important;
    }
    
    /* Reduce padding */
    .section {
        padding: 40px 15px !important;
    }
    
    /* Fix overflow */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    .container, .container-fluid {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 40vh !important;
        min-height: 250px !important;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem !important;
    }
}
/* ====== رفع المحتوى وتكبير العناوين على الموبايل ====== */
@media (max-width: 768px) {
    .carousel-inner .carousel-caption {
        top: 10% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        text-align: center !important;
        padding: 10px !important;
    }

    .carousel-content h1 {
        font-size: 2rem !important; /* تكبير العنوان */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .carousel-content h6 {
        font-size: 1rem !important; /* تكبير النص الصغير */
        margin-bottom: 20px !important;
        letter-spacing: 1.5px !important;
    }
}

@media (max-width: 480px) {
    .carousel-inner .carousel-caption {
        top: 8% !important;
        transform: translateX(-50%) !important;
    }

    .carousel-content h1 {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .carousel-content h6 {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 375px) {
    .carousel-inner .carousel-caption {
        top: 5% !important;
        transform: translateX(-50%) !important;
    }

    .carousel-content h1 {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .carousel-content h6 {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }
}


/* =============== تنسيق الهيدر في اللغة العربية =============== */

/* نقل اللوجو إلى اليمين */
body.rtl .header-container {
    flex-direction: row-reverse;
}

body.rtl .logo {
    order: 3; /* نقل اللوجو إلى النهاية (اليمين) */
}

/* نقل قائمة التنقل إلى الوسط */
body.rtl .main-nav {
    order: 2;
    margin-right: 0;
    margin-left: auto;
}

/* نقل زر LETS TALK إلى اليسار */
body.rtl .lets-talk-btn-header {
    order: 1;
    margin-right: auto;
    margin-left: 0;
}

/* إعادة ترتيب عناصر القائمة */
body.rtl .nav-list {
    flex-direction: row;
}

/* وضع "من نحن" و "اتصل بنا" بجانب بعض */
body.rtl .nav-item:nth-last-child(2), /* من نحن */
body.rtl .nav-item:nth-last-child(1) { /* اتصل بنا */
    margin-left: 0;
    margin-right: 15px;
}

/* نقل زر اللغة إلى اليسار */
body.rtl .lang-dropdown {
    order: 0;
    margin-right: 0;
    margin-left: 20px;
}

/* =============== تنسيق الموبايل =============== */

@media (max-width: 991px) {
    /* تعديل الهيدر على الموبايل */
    body.rtl .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    body.rtl .logo {
        order: 1;
    }
    
    body.rtl .mobile-menu-toggle {
        order: 3;
    }
    
    body.rtl .lang-dropdown {
        order: 2;
        margin-left: 15px;
    }
    
    /* القائمة المنسدلة على الموبايل */
    body.rtl .main-nav {
        position: fixed;
        right: -100%;
        left: auto;
        transition: right 0.3s ease;
    }
    
    body.rtl .main-nav.active {
        right: 0;
        left: auto;
    }
    
    /* ترتيب عناصر القائمة على الموبايل */
    body.rtl .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    body.rtl .nav-item {
        width: 100%;
    }
    
    /* وضع "من نحن" و "اتصل بنا" في أسفل القائمة */
    body.rtl .nav-item:nth-last-child(2),
    body.rtl .nav-item:nth-last-child(1) {
        margin-top: 10px;
    }
}
/* =============== منع كسر الكلمات في الأزرار العربية =============== */

/* للأزرار في القائمة الرئيسية */
body.rtl .nav-link .nav-text {
    white-space: nowrap !important; /* منع كسر السطر */
    word-break: keep-all !important; /* الحفاظ على الكلمات */
    display: inline-block !important;
}

/* خاص لعنصري "من نحن" و "اتصل بنا" */
body.rtl .nav-item:nth-child(2) .nav-text, /* من نحن */
body.rtl .nav-item:nth-child(6) .nav-text { /* اتصل بنا */
    white-space: nowrap !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

/* زيادة عرض العناصر إذا لزم الأمر */
body.rtl .nav-item:nth-child(2),
body.rtl .nav-item:nth-child(6) {
    min-width: 110px; /* عرض كافي للعرض في سطر واحد */
    text-align: center;
}

/* =============== تحسين التباعد =============== */
body.rtl .nav-link {
    padding: 12px 15px !important; /* تباعد مناسب */
}

/* =============== إصلاح خاص لعنصر "من نحن" =============== */
body.rtl .nav-item:nth-child(2) a.nav-link {
    direction: rtl;
    unicode-bidi: bidi-override;
}

/* إصلاح خاص لعنصر "اتصل بنا" */
body.rtl .nav-item:nth-child(6) a.nav-link {
    direction: rtl;
    unicode-bidi: bidi-override;
}


/* =============== إصلاح أزرار قسم الخدمات =============== */

.services-content-icon {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-content-icon p {
    flex-grow: 1; /* يجعل النص يأخذ المساحة المتاحة */
    margin-bottom: 20px !important;
}

.services-content-icon .btn {
    align-self: center; /* توسيط الزر */
    margin-top: auto; /* دفعه للأسفل */
    min-height: 50px; /* ارتفاع ثابت */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============== تحسين الكروت =============== */

.services-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* =============== للموبايل =============== */
@media (max-width: 768px) {
    .services-content-icon .btn {
        min-height: 45px;
        padding: 10px 25px !important;
    }
}
/* =============== محاذاة أفقية لآراء العملاء =============== */

.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    flex-grow: 1; /* يجعل النص يأخذ المساحة المتاحة */
    min-height: 120px; /* ارتفاع أدنى للنص */
    margin-bottom: 20px;
}

.testimonial-author {
    margin-top: auto; /* يدفع معلومات المؤلف للأسفل */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    width: 100%;
}

.author-info h5 {
    min-height: 24px; /* ارتفاع ثابت للأسماء */
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.author-info span {
    min-height: 20px; /* ارتفاع ثابت للمناصب */
    display: flex;
    align-items: center;
}

/* =============== تحسين للعربية =============== */
body.rtl .testimonial-author {
    text-align: right;
}

body.rtl .author-info h5,
body.rtl .author-info span {
    justify-content: flex-end;
}
/* =============== محاذاة أفقية للعربية =============== */

/* جعل جميع الكروت بنفس الارتفاع */
body.rtl .testimonial-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* محاذاة النص */
body.rtl .testimonial-text {
    flex-grow: 1;
    text-align: right;
    line-height: 1.7;
    padding: 0 10px;
}

/* محاذاة معلومات المؤلف */
body.rtl .testimonial-author {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
}

/* حاوية المعلومات */
body.rtl .author-info {
    flex: 1;
    text-align: right;
}

/* الأسماء - محاذاة أفقية */
body.rtl .author-info h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    font-size: 1.1rem;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* المناصب - محاذاة أفقية */
body.rtl .author-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* الصور */
body.rtl .testimonial-author img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #00bcd4;
}
/* =============== الصورة يميناً والكلام يساراً في العربية =============== */

/* الحاوية الرئيسية */
body.rtl .testimonial-author {
    display: flex !important;
    flex-direction: row-reverse !important; /* عكس الاتجاه */
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    direction: rtl !important;
}

/* الصورة على اليمين */
body.rtl .testimonial-author img {
    order: 2 !important; /* الصورة ثانياً (على اليمين) */
    margin-left: 15px !important; /* مسافة على اليسار من الصورة */
    margin-right: 0 !important;
    align-self: flex-start !important;
}

/* الكلام على اليسار */
body.rtl .author-info {
    order: 1 !important; /* الكلام أولاً (على اليسار) */
    text-align: right !important; /* النص العربي يبدأ من اليمين */
    flex: 1 !important;
    direction: rtl !important;
    display: flex !important;
    flex-direction: column !important; /* عمودي: اسم فوق عمل تحت */
    align-items: flex-start !important; /* محاذاة إلى اليسار */
}

/* الاسم فوق - محاذاة إلى اليمين داخل الحاوية */
body.rtl .author-info h5 {
    text-align: right !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* العمل تحت الاسم - محاذاة إلى اليمين */
body.rtl .author-info span {
    text-align: right !important;
    display: block !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

/* =============== تحسين التباعد =============== */
body.rtl .testimonial-author {
    gap: 15px !important;
    padding: 15px 0 !important;
}

/* =============== للموبايل =============== */
@media (max-width: 768px) {
    body.rtl .testimonial-author {
        gap: 10px !important;
    }
    
    body.rtl .testimonial-author img {
        margin-left: 10px !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    body.rtl .author-info {
        text-align: right !important;
    }
}
/* =============== إصلاح أيقونات الفوتر للغة العربية =============== */

/* إعداد عام لجميع عناصر الاتصال في الفوتر */
body.rtl .footer-contact a {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    text-decoration: none !important;
    direction: rtl !important;
}

/* جميع الأيقونات تظهر في اليمين */
body.rtl .footer-contact a i {
    order: 2 !important; /* الأيقونة ثانية (اليمين) */
    margin-left: 15px !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    font-size: 16px !important;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* تأكد من ظهور الأيقونات الثلاث */
body.rtl .footer-contact a i.fa-map-marker-alt,
body.rtl .footer-contact a i.fa-phone-alt,
body.rtl .footer-contact a i.fa-envelope {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* النص يأتي على اليسار */
body.rtl .footer-contact a div {
    order: 1 !important; /* النص أولاً (اليسار) */
    text-align: right !important;
    direction: rtl !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
}

/* محاذاة النص داخل الـ div */
body.rtl .footer-contact a div strong {
    display: block !important;
    margin-bottom: 2px !important;
}

body.rtl .footer-contact a div span {
    display: block !important;
    word-break: break-word !important;
}

/* حل خاص إذا كانت أيقونة الهاتف مخفية */
body.rtl .footer-contact a[href^="tel:"] i {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* إصلاح للـ hover والتأثيرات */
body.rtl .footer-contact a:hover i {
    transform: none !important;
    color: inherit !important;
}
/* تحقق من أن الكلاس الصحيح مضاف */
body.rtl,
html[dir="rtl"],
[dir="rtl"] body {
    direction: rtl;
}

/* كود قوي ومباشر لأيقونة الهاتف */
.rtl .footer-contact a[href^="tel:"] {
    display: flex !important;
    flex-direction: row-reverse !important;
    direction: rtl !important;
}

.rtl .footer-contact a[href^="tel:"] i.fa-phone-alt {
    order: 2 !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: right !important;
    position: static !important;
}

.rtl .footer-contact a[href^="tel:"] > div {
    order: 1 !important;
    text-align: right !important;
}
/* ============ محاذاة عناصر الاتصال للغة العربية ============ */

/* عندما تكون الصفحة عربية */
body.rtl .contact-item,
html[dir="rtl"] .contact-item {
    display: flex !important;
    flex-direction: row-reverse !important;
    direction: rtl !important;
    text-align: right !important;
}

/* الأيقونة في اليمين */
body.rtl .contact-icon,
html[dir="rtl"] .contact-icon {
    order: 2 !important;
    margin-left: 15px !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* المحتوى في اليسار */
body.rtl .contact-content,
html[dir="rtl"] .contact-content {
    order: 1 !important;
    text-align: right !important;
    flex: 1 !important;
}

/* محاذاة النصوص */
body.rtl .contact-content h4,
body.rtl .contact-content p,
body.rtl .contact-content a,
html[dir="rtl"] .contact-content h4,
html[dir="rtl"] .contact-content p,
html[dir="rtl"] .contact-content a {
    text-align: right !important;
    direction: rtl !important;
}

/* مسافة خاصة بين الأيقونة والمحتوى */
body.rtl .contact-item .contact-icon {
    margin-left: 15px !important;
    margin-right: 0 !important;
}

/* تأكد من ظهور جميع الأيقونات */
body.rtl .contact-icon i,
html[dir="rtl"] .contact-icon i {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 20px !important;
}
/* ============ أيقونات كما هي بدون أي تنسيقات إضافية ============ */

body.rtl .social-icons-top {
    display: flex !important;
    direction: ltr !important;
    text-align: left !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body.rtl .social-icons-top a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* إزالة أي تأثيرات إضافية */
body.rtl .social-icons-top a i {
    font-size: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* ============ تمركز أيقونات الاتصال في اللغة العربية ============ */

body.rtl .contact-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.rtl .contact-icon i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    text-align: center !important;
}
/* تكبير أكبر */
.contact-icon {
    width: 70px !important;
    height: 70px !important;
}

.contact-icon i {
    font-size: 28px !important;
}
/* تكبير أيقونات الاتصال للعربي بنفس حجم الإنجليزي */
body.rtl .contact-icon {
    width: 70px !important;
    height: 70px !important;
}

body.rtl .contact-icon i {
    font-size: 28px !important;
}

.counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* عرض ثابت للرقم */
.counter h1 {
    width: 90px;          /* كافي لـ 120 */
    text-align: center;
    margin: 0 !important;
    flex-shrink: 0;       /* يمنع الضغط */
}

.counter h5 {
    margin: 0;
    line-height: 1.4;
}
/* ================= RTL HEADER CENTERED ================= */

html[dir="rtl"] {
    direction: rtl;
}

/* الهيدر كله في النص */
html[dir="rtl"] .header-container {
    display: flex;
    align-items: center;
    justify-content: center;   /* توسيط المحتوى */
    gap: 32px;
}

/* منع العناصر من التمدد */
html[dir="rtl"] .header-container > * {
    flex: 0 0 auto;
}

/* قائمة التنقل */
html[dir="rtl"] .nav-list {
    display: flex;
    align-items: center;
    gap: 26px;
}

/* اللينك نفسه */
html[dir="rtl"] .nav-link {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* الأيقونة في اليمين */
    gap: 6px;
    white-space: nowrap;
}

/* سهم الـ dropdown */
html[dir="rtl"] .dropdown-arrow {
    margin: 0;
    transform: rotate(180deg);
}

/* dropdown menu */
html[dir="rtl"] .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

/* عناصر dropdown */
html[dir="rtl"] .dropdown-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* الأيقونة يمين */
    gap: 10px;
}

/* أيقونات dropdown */
html[dir="rtl"] .dropdown-item i {
    margin: 0;
}

/* زر اللغة */
html[dir="rtl"] .lang-btn {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* الأيقونة يمين */
    gap: 8px;
}

/* زر Free Consultation */
html[dir="rtl"] .lets-talk-btn-header {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
}

/* ================= MOBILE ================= */

@media (max-width: 991px) {

    html[dir="rtl"] .header-container {
        justify-content: space-between;
    }

    html[dir="rtl"] .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    html[dir="rtl"] .nav-link,
    html[dir="rtl"] .dropdown-item {
        justify-content: flex-start;
    }
}
/* =============== Mobile Sidebar Menu =============== */

/* شريط جانبي للغة العربية */
body.rtl .sidebar-menu {
    right: -400px !important;
    left: auto !important;
    transform: none !important;
}

body.rtl .sidebar-menu.active {
    right: 0 !important;
}

body.rtl .sidebar-overlay {
    right: 0 !important;
    left: auto !important;
}

body.rtl .mobile-menu-toggle {
    order: 3 !important;
    margin-right: auto !important;
    margin-left: 15px !important;
}

body.rtl .lang-dropdown.mobile {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* حاوية الشريط الجانبي */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #0a1929 0%, #004a5c 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(93, 201, 224, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    left: 0;
}

/* الطبقة الشفافة الخلفية */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* رأس الشريط الجانبي */
.sidebar-header {
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(93, 201, 224, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo img {
    height: 70px;
    width: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.sidebar-logo:hover img {
    transform: scale(1.05);
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(93, 201, 224, 0.3);
    color: var(--primary-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.close-sidebar:hover {
    background: rgba(93, 201, 224, 0.2);
    border-color: var(--primary-light);
    transform: rotate(90deg);
}

/* محتوى الشريط الجانبي */
.sidebar-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* قائمة التنقل في الشريط الجانبي */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.sidebar-nav-item {
    margin-bottom: 15px;
    position: relative;
}

.sidebar-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: rgba(93, 201, 224, 0.2);
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateX(10px);
}

body.rtl .sidebar-nav-link:hover,
body.rtl .sidebar-nav-link.active {
    transform: translateX(-10px);
}

.sidebar-nav-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
    color: var(--primary-light);
}

.sidebar-nav-text {
    flex: 1;
}

/* قائمة فرعية في الشريط الجانبي */
.sidebar-dropdown {
    margin-top: 5px;
    margin-left: 50px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

body.rtl .sidebar-dropdown {
    margin-left: 0;
    margin-right: 50px;
}

.sidebar-dropdown.active {
    max-height: 500px;
}

.sidebar-dropdown-item {
    padding: 12px 20px;
}

.sidebar-dropdown-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-dropdown-link:hover {
    color: var(--primary-light);
    background: rgba(93, 201, 224, 0.15);
    padding-left: 25px;
}

body.rtl .sidebar-dropdown-link:hover {
    padding-left: 15px;
    padding-right: 25px;
}

.sidebar-dropdown-link i {
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* زر السهم للقوائم الفرعية */
.sidebar-nav-link.has-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--primary-light);
}

.sidebar-nav-link.has-dropdown.active::after {
    transform: rotate(180deg);
}

/* قسم الاتصال في الشريط الجانبي */
.sidebar-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-contact-title {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-left: 20px;
}

.sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-contact-item:hover {
    background: rgba(93, 201, 224, 0.15);
    transform: translateX(5px);
}

body.rtl .sidebar-contact-item:hover {
    transform: translateX(-5px);
}

.sidebar-contact-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
    width: 25px;
}

.sidebar-contact-item a {
    color: white;
    text-decoration: none;
    flex: 1;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.sidebar-contact-item a:hover {
    color: var(--primary-light);
}

/* أزرار وسائل التواصل الاجتماعي */
.sidebar-social {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sidebar-social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.sidebar-social-icon:hover {
    background: var(--primary-light);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 201, 224, 0.3);
}

/* زر Free Consultation في الشريط الجانبي */
.sidebar-cta {
    margin-top: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(93, 201, 224, 0.2), rgba(0, 151, 178, 0.2));
    border-radius: 15px;
    border: 1px solid rgba(93, 201, 224, 0.3);
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--dark);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
}

.sidebar-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(93, 201, 224, 0.3);
}

/* زر اللغة في الشريط الجانبي */
.sidebar-lang {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(93, 201, 224, 0.3);
    color: var(--primary-light);
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-lang-btn:hover {
    background: rgba(93, 201, 224, 0.1);
    border-color: var(--primary-light);
}

/* Scrollbar customization for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* =============== Responsive Adjustments =============== */

@media (max-width: 480px) {
    .sidebar-menu {
        width: 320px;
    }
    
    .sidebar-header {
        padding: 20px 25px;
    }
    
    .sidebar-logo img {
        height: 60px;
    }
    
    .sidebar-content {
        padding: 25px;
    }
    
    .sidebar-nav-link {
        font-size: 1.2rem;
        padding: 14px 18px;
    }
    
    .sidebar-cta {
        padding: 25px 15px;
    }
}

@media (max-width: 360px) {
    .sidebar-menu {
        width: 300px;
    }
    
    .sidebar-header {
        padding: 15px 20px;
    }
    
    .sidebar-content {
        padding: 20px;
    }
}

/* تحسينات للغة العربية */
body.rtl .sidebar-nav-link {
    text-align: right;
    direction: rtl;
}

body.rtl .sidebar-nav-link.has-dropdown::after {
    margin-left: 0;
    margin-right: auto;
    transform: rotate(180deg);
}

body.rtl .sidebar-nav-link.has-dropdown.active::after {
    transform: rotate(0deg);
}

body.rtl .sidebar-dropdown-link {
    text-align: right;
    direction: rtl;
}

body.rtl .sidebar-contact-item {
    direction: rtl;
    text-align: right;
}

body.rtl .sidebar-contact-item i {
    order: 2;
}

body.rtl .sidebar-contact-item a {
    order: 1;
    text-align: right;
}
/* تحسين زر القائمة للشريط الجانبي */
.mobile-menu-toggle {
    display: none; /* مخفي على الشاشات الكبيرة */
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    border-radius: 5px;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    order: 3;
    margin-left: 15px;
}

.mobile-menu-toggle .menu-line {
    width: 24px;
    height: 3px;
    background-color: var(--light);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-toggle:hover {
    background: rgba(93, 201, 224, 0.1);
    color: var(--primary-light);
}

.mobile-menu-toggle:hover .menu-line {
    background-color: var(--primary-light);
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* إخفاء القائمة الأصلية على الموبايل */
    .main-nav {
        display: none !important;
    }
    
    /* إظهار زر اللغة على الموبايل في الشريط الجانبي فقط */
    .lang-dropdown.d-none.d-lg-block {
        display: none !important;
    }
}
/* ================= SERVICES CARDS ALIGNMENT ================= */

/* الكارت نفسه */
.services-item {
    height: 100%;
}

/* محتوى الكارت */
.services-content {
    height: 100%;
    display: flex;
}

/* ترتيب العناصر داخل الكارت */
.services-content-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* تثبيت مكان العنوان */
.services-content-icon h4 {
    min-height: 52px;   /* نفس مكان العناوين */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* تثبيت مكان الوصف */
.services-content-icon p {
    min-height: 90px;   /* نفس مكان الوصف */
    text-align: center;
}

/* تثبيت زر Read More تحت */
.services-content-icon a {
    margin-top: auto;  /* ينزل الزر لتحت */
}

[dir="rtl"] a.btn {
    display: flex;
    justify-content: center;
    align-items: center;
}
html[dir="rtl"] .feature-icon i {
    margin: 0 auto !important;
    display: inline-block;
}



/* =============== WhatsApp Floating Buttons =============== */

/* فئة موحدة للزر الأساسي */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =============== الزر الجديد بحجم كبير =============== */
.whatsapp-float-large {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 80px; /* حجم أكبر */
    height: 80px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    animation: whatsappPulseLarge 2s infinite;
}

.whatsapp-float-large:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

@keyframes whatsappPulseLarge {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* تأثير طفو إضافي للزر الكبير */
.whatsapp-float-large {
    animation: whatsappPulseLarge 2s infinite, floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* زر الواتساب مع النص (للشاشات الكبيرة) */
.whatsapp-float-with-text {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float-with-text:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* دعم الـ RTL لكافة الأزرار */
body.rtl .whatsapp-float,
body.rtl .whatsapp-float-large,
body.rtl .whatsapp-float-with-text {
    right: auto;
    left: 30px;
}

/* تحسينات خاصة للزر الكبير في RTL */
body.rtl .whatsapp-float-large {
    left: 40px;
}

/* تحسين للأجهزة المحمولة */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-float-large {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
        bottom: 30px;
        right: 30px;
    }
    
    body.rtl .whatsapp-float {
        right: auto;
        left: 25px;
    }
    
    body.rtl .whatsapp-float-large {
        left: 30px;
    }
    
    .whatsapp-float-with-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float-large {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        bottom: 25px;
        right: 25px;
    }
    
    body.rtl .whatsapp-float {
        left: 20px;
    }
    
    body.rtl .whatsapp-float-large {
        left: 25px;
    }
}

/* التأكد من ظهور الأزرار بعد التحميل */
.loading-screen ~ .whatsapp-float,
.loading-screen ~ .whatsapp-float-large,
.loading-screen ~ .whatsapp-float-with-text {
    display: none;
}

.main-content.show ~ .whatsapp-float,
.main-content.show ~ .whatsapp-float-large,
.main-content.show ~ .whatsapp-float-with-text {
    display: flex;
    animation: fadeInUp 0.5s ease 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تعديل لـ Header Top ليكون أكثر اتساعاً */
.header-top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.contact-info-top {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.social-whatsapp-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.social-icons-top {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.social-icons-top a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    flex-shrink: 0;
}
/* حل مبسط باستخدام order فقط */
.header-container {
    display: flex;
    align-items: center;
    gap: 25px;
}



/* العربية (العكس) */
body.rtl .logo { order: 6; }
body.rtl .mobile-menu-toggle { order: 5; }
body.rtl .main-nav { order: 4; }
body.rtl .lang-dropdown { order: 3; }
body.rtl .lets-talk-btn-header { order: 2; }
body.rtl .whatsapp-header-main { order: 1; }

/* إخفاء العناصر غير المرغوبة على الموبايل */
@media (max-width: 991px) {
    .main-nav,
    .lang-dropdown.d-none.d-lg-block,
    .lets-talk-btn-header,
    .whatsapp-header-main {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        order: 3 !important;
    }
    
    body.rtl .mobile-menu-toggle {
        order: 2 !important;
    }
}


/* ================= FORCE Responsive Services ================= */

@media (max-width: 768px) {

    .services .services-content-icon h4 {
        font-size: 26px !important;
        line-height: 1.4 !important;
    }

    .services .services-content-icon p {
        font-size: 18px !important;
        line-height: 1.8 !important;
    }

    .services .services-content-icon a.btn {
        font-size: 16px !important;
        padding: 14px 36px !important;
    }

    .services .services-content-icon i {
        font-size: 70px !important;
    }
}
/* =========================
   إصلاح ارتفاع الكروت ليتناسب مع المحتوى
========================= */

/* إزالة أي ارتفاعات ثابتة قديمة */
.testimonial-card {
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
}

/* نحدد ارتفاع مناسب يظهر كل المحتوى */
@media (max-width: 1200px) {
    .testimonial-card {
        min-height: 300px !important; /* ارتفاع مناسب للمحتوى */
        height: auto !important;
    }
}

@media (max-width: 992px) {
    .testimonial-card {
        min-height: 280px !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-height: 260px !important;
        height: auto !important;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        min-height: 240px !important;
        height: auto !important;
    }
}

/* إصلاح عرض الكروت */
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 300px !important;
        width: 300px !important;
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
}
/* ====== زر اللغة Mobile فقط ====== */
@media (max-width: 991px) {
    /* Container */
    .lang-dropdown.d-lg-none {
        width: 100%;
        max-width: 140px; /* حجم صغير مناسب */
        margin: 0 auto 10px auto;
    }

    /* الزر */
    .lang-dropdown.d-lg-none .lang-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 6px 10px; /* تصغير البادينج */
        background-color: #0a1929;
        color: #ffffff;
        font-weight: 500;
        font-size: 0.85rem; /* حجم أصغر */
        border: 1px solid #5dc9e0;
        border-radius: 6px; /* استدارة بسيطة */
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

    .lang-dropdown.d-lg-none .lang-btn:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    .lang-dropdown.d-lg-none .lang-btn i {
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

    /* عند فتح القائمة */
    .lang-dropdown.d-lg-none.active .lang-btn i {
        transform: rotate(180deg);
    }

    /* قائمة الخيارات */
    .lang-dropdown.d-lg-none .lang-dropdown-menu {
        position: absolute;
        top: 110%;
        right: 0;
        width: 100%;
        background-color: #0a1929;
        border: 1px solid #5dc9e0;
        border-radius: 6px;
        overflow: hidden;
        display: none;
        z-index: 100;
    }

    /* خيارات اللغة */
    .lang-dropdown.d-lg-none .lang-dropdown-menu a {
        display: block;
        padding: 6px 10px;
        font-size: 0.85rem;
        color: #ffffff;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.3s, color 0.3s;
    }

    .lang-dropdown.d-lg-none .lang-dropdown-menu a:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    /* RTL support */
    body.rtl .lang-dropdown.d-lg-none .lang-btn {
        flex-direction: row-reverse; /* السهم على اليسار */
    }

    body.rtl .lang-dropdown.d-lg-none .lang-dropdown-menu {
        right: auto;
        left: 0;
    }
}
@media (max-width: 991px) {

    /* الهيدر عربي */
    body.rtl .header-main.d-flex {
        flex-direction: row;       /* يبقى اللوجو والـ3 شرط في صف واحد */
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px;
    }

    /* Mobile menu toggle (3 شرط) على الشمال */
    body.rtl .header-main .mobile-menu-toggle {
        order: 0;
        margin-right: 10px;
    }

    /* Language button بعد التوجل */
    body.rtl .header-main .lang-dropdown {
        order: 1;
        margin-right: 10px;
    }

    /* Logo على اليمين */
    body.rtl .header-main .logo {
        order: 2;
    }

    /* تصغير اللوجو لو احتاج */
    body.rtl .header-main .logo img {
        height: 45px;
    }

    /* زر اللغة صغير وأنيق */
    body.rtl .header-main .lang-dropdown .lang-btn {
        font-size: 0.85rem;
        padding: 5px 8px;
        border-radius: 6px;
        border: 1px solid #5dc9e0;
        background-color: #0a1929;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body.rtl .header-main .lang-dropdown .lang-btn:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    /* Dropdown Language */
    body.rtl .header-main .lang-dropdown .lang-dropdown-menu {
        top: 110%;
        left: 0; /* لأنه RTL */
        right: auto;
        display: none;
        position: absolute;
        background-color: #0a1929;
        border: 1px solid #5dc9e0;
        border-radius: 6px;
        z-index: 100;
        overflow: hidden;
    }

    body.rtl .header-main .lang-dropdown .lang-dropdown-menu a {
        padding: 6px 10px;
        font-size: 0.85rem;
        color: #fff;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    body.rtl .header-main .lang-dropdown .lang-dropdown-menu a:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

}
/* ====== زر اللغة Mobile فقط ====== */
@media (max-width: 991px) {

    /* Container */
    .lang-dropdown.d-lg-none {
        width: 100%;
        max-width: 140px; /* حجم صغير مناسب */
        margin: 0 10px; /* المسافة بسيطة من الأطراف */
    }

    /* الزر */
    .lang-dropdown.d-lg-none .lang-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 6px 10px; /* تصغير البادينج */
        background-color: #0a1929;
        color: #ffffff;
        font-weight: 500;
        font-size: 0.85rem; /* حجم أصغر */
        border: 1px solid #5dc9e0;
        border-radius: 6px; /* استدارة بسيطة */
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

    .lang-dropdown.d-lg-none .lang-btn:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    .lang-dropdown.d-lg-none .lang-btn i {
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

    /* عند فتح القائمة */
    .lang-dropdown.d-lg-none.active .lang-btn i {
        transform: rotate(180deg);
    }

    /* قائمة الخيارات */
    .lang-dropdown.d-lg-none .lang-dropdown-menu {
        position: absolute;
        top: 110%;
        width: 100%;
        background-color: #0a1929;
        border: 1px solid #5dc9e0;
        border-radius: 6px;
        overflow: hidden;
        display: none;
        z-index: 100;
    }

    /* خيارات اللغة */
    .lang-dropdown.d-lg-none .lang-dropdown-menu a {
        display: block;
        padding: 6px 10px;
        font-size: 0.85rem;
        color: #ffffff;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.3s, color 0.3s;
    }

    .lang-dropdown.d-lg-none .lang-dropdown-menu a:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    /* ====== تغيير موقع الزر حسب اللغة ====== */
    /* LTR = English */
    body:not(.rtl) .lang-dropdown.d-lg-none {
        order: 0; /* على الشمال */
        margin-left: 0;
        margin-right: auto;
    }

    /* RTL = Arabic */
    body.rtl .lang-dropdown.d-lg-none {
        order: 2; /* على اليمين */
        margin-left: auto;
        margin-right: 0;
    }

    /* Dropdown موقع القائمة حسب اللغة */
    body:not(.rtl) .lang-dropdown.d-lg-none .lang-dropdown-menu {
        left: 0;
        right: auto;
    }

    body.rtl .lang-dropdown.d-lg-none .lang-dropdown-menu {
        left: auto;
        right: 0;
    }

}
@media (max-width: 991px) {

    /* الهيدر عربي */
    body.rtl .header-main.d-flex {
        flex-direction: row;       
        justify-content: space-between;
        align-items: center;
        padding: 8px 15px; /* padding مناسب */
    }

    /* Mobile menu toggle (3 شرط) على الشمال */
    body.rtl .header-main .mobile-menu-toggle {
        order: 0;
        margin-right: 10px;
    }

    /* Language button بعد التوجل */
    body.rtl .header-main .lang-dropdown {
        order: 1;
        margin-right: 10px;
    }

    /* Logo على اليمين */
    body.rtl .header-main .logo {
        order: 2;
    }

    /* تكبير اللوجو زي الانجليزي */
    body.rtl .header-main .logo img {
        height: 50px; /* نفس حجم اللوجو الانجليزي */
        max-width: 100%;
    }

    /* زر اللغة صغير وأنيق */
    body.rtl .header-main .lang-dropdown .lang-btn {
        font-size: 0.85rem;
        padding: 5px 8px;
        border-radius: 6px;
        border: 1px solid #5dc9e0;
        background-color: #0a1929;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body.rtl .header-main .lang-dropdown .lang-btn:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

    /* Dropdown Language */
    body.rtl .header-main .lang-dropdown .lang-dropdown-menu {
        top: 110%;
        left: 0; 
        right: auto;
        display: none;
        position: absolute;
        background-color: #0a1929;
        border: 1px solid #5dc9e0;
        border-radius: 6px;
        z-index: 100;
        overflow: hidden;
    }

    body.rtl .header-main .lang-dropdown .lang-dropdown-menu a {
        padding: 6px 10px;
        font-size: 0.85rem;
        color: #fff;
        display: block;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    body.rtl .header-main .lang-dropdown .lang-dropdown-menu a:hover {
        background-color: #5dc9e0;
        color: #0a1929;
    }

}
/* =========================
   Sidebar Styles
========================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #0a1929;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    background: #0097b2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 20px;
    flex-grow: 1;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 8px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-link:hover {
    background: rgba(93, 201, 224, 0.15);
    color: #5dc9e0;
    transform: translateX(5px);
}

.sidebar-nav-link.active {
    background: #0097b2;
    color: white;
}

.sidebar-nav-icon {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.sidebar-nav-text {
    font-size: 1rem;
    font-weight: 500;
    flex-grow: 1;
}

.sidebar-dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(13, 33, 55, 0.5);
    border-radius: 8px;
    margin: 5px 0 5px 15px;
    transition: max-height 0.4s ease;
}

.sidebar-dropdown-menu.active {
    max-height: 500px;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 45px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-dropdown-item:hover {
    background: rgba(93, 201, 224, 0.1);
    color: #5dc9e0;
    padding-left: 50px;
}

.sidebar-contact {
    padding: 20px;
    background: rgba(13, 33, 55, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-contact-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sidebar-contact-item:hover {
    color: #5dc9e0;
}

.sidebar-contact-icon {
    width: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.sidebar-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-social-icon:hover {
    background: #0097b2;
    transform: translateY(-3px);
}

.sidebar-cta-btn {
    display: block;
    background: linear-gradient(135deg, #5dc9e0 0%, #0097b2 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.sidebar-cta-btn:hover {
    background: linear-gradient(135deg, #0097b2 0%, #007c91 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 151, 178, 0.3);
    color: white;
}
/* =========================
   Sidebar RTL Styles
========================= */

/* Sidebar positioning for RTL */
[dir="rtl"] .sidebar {
    right: auto;
    left: -100%;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

[dir="rtl"] .sidebar.active {
    right: auto;
    left: 0;
}

/* RTL adjustments for sidebar content */
[dir="rtl"] .sidebar-nav-icon {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .sidebar-dropdown-item {
    padding: 10px 45px 10px 15px;
}

[dir="rtl"] .sidebar-dropdown-item:hover {
    padding-left: 15px;
    padding-right: 50px;
}

[dir="rtl"] .sidebar-dropdown-menu {
    margin: 5px 15px 5px 0;
}

[dir="rtl"] .sidebar-nav-link:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .sidebar-contact-icon {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .sidebar-cta-btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Text alignment for Arabic */
[dir="rtl"] .sidebar-nav-text,
[dir="rtl"] .sidebar-dropdown-item span,
[dir="rtl"] .sidebar-contact-item span,
[dir="rtl"] .sidebar-cta-btn span,
[dir="rtl"] .sidebar-contact-title {
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

/* Font adjustments for Arabic */
[dir="rtl"] .sidebar {
    font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .sidebar-nav-text {
    font-weight: 500;
}

[dir="rtl"] .sidebar-dropdown-item {
    font-size: 0.95rem;
}

/* Social icons spacing in RTL */
[dir="rtl"] .sidebar-social-icon i {
    margin: 0;
}

/* Close button positioning */
[dir="rtl"] .sidebar-header {
    flex-direction: row-reverse;
}

/* Logo margin in RTL */
[dir="rtl"] .sidebar-logo {
    margin-left: 0;
}
/* للغة العربية - ترتيب العناصر */
[lang="ar"] .sidebar-contact-item {
    display: flex;
    flex-direction: row-reverse; /* عكس الترتيب */
    justify-content: flex-end; /* المحاذاة للبداية (اليمين) */
    direction: rtl;
    text-align: right;
}

/* الأيقونة في العربية تكون على اليمين */
[lang="ar"] .sidebar-contact-icon {
    order: 2; /* الأيقونة تأتي بعد النص */
    margin-left: 10px;
    margin-right: 0;
}

/* النص والرقم في العربية يكون على اليسار من الأيقونة */
[lang="ar"] .sidebar-contact-item span {
    order: 1; /* النص يأتي قبل الأيقونة */
    direction: ltr; /* الأرقام من الشمال لليمين */
    unicode-bidi: embed;
    text-align: right; /* محاذاة النص لليمين */
}

/* للغة الإنجليزية - الترتيب الطبيعي */
[lang="en"] .sidebar-contact-item {
    display: flex;
    flex-direction: row; /* الترتيب الطبيعي */
    justify-content: flex-start;
    direction: ltr;
    text-align: left;
}

[lang="en"] .sidebar-contact-icon {
    order: 1;
    margin-right: 10px;
    margin-left: 0;
}

[lang="en"] .sidebar-contact-item span {
    order: 2;
    direction: ltr;
    text-align: left;
}

/* للتأكد من أن الرقم يبدأ من اليمين في العربية */
[lang="ar"] .sidebar-contact-item[href*="tel:"] span,
[lang="ar"] .sidebar-contact-item[href*="mailto:"] span {
    unicode-bidi: plaintext;
    direction: ltr;
    text-align: right; /* الرقم يبدأ من اليمين */
}

/* حل أبسط باستخدام flexbox */
[lang="ar"] .sidebar-contact-item {
    display: flex;
    justify-content: flex-end; /* المحتوى يبدأ من اليمين */
    text-align: right;
}

[lang="ar"] .sidebar-contact-item span {
    margin-left: auto; /* يدفع الرقم لليمين */
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}
/* =============== تكبير حجم اللوجو =============== */

/* حجم اللوجو الأساسي لجميع الأجهزة */
.logo img {
    max-height: 55px; /* تكبير من 40px إلى 55px */
    width: auto;
    transition: max-height 0.3s ease;
}

/* للأجهزة المحمولة والصغيرة (أقل من 992px) */
@media (max-width: 991.98px) {
    .logo img {
        max-height: 50px; /* تكبير من 35px إلى 50px */
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
    
    /* تعديل الهيدر لاستيعاب اللوجو الأكبر */
    .header-main {
        padding: 12px 0; /* تقليل البادنج قليلاً */
        min-height: 70px; /* زيادة الارتفاع */
    }
    
    .mobile-menu-toggle {
        margin-left: 8px;
    }
    
    .lang-btn {
        margin-right: 8px;
    }
}

/* للأجهزة الصغيرة جدًا (أقل من 576px) */
@media (max-width: 575.98px) {
    .logo img {
        max-height: 45px; /* تكبير من 35px إلى 45px */
    }
    
    .header-main {
        min-height: 65px;
        padding: 10px 0;
    }
}

/* للأجهزة المتوسطة (بين 768px و 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .logo img {
        max-height: 55px; /* حجم أكبر للأجهزة اللوحية */
    }
    
    .header-main {
        min-height: 75px;
    }
}

/* للأجهزة الكبيرة (992px فأكثر) */
@media (min-width: 992px) {
    .logo img {
        max-height: 65px; /* تكبير اللوجو في الأجهزة الكبيرة أيضاً */
    }
    
    .header-main {
        padding: 18px 0;
        min-height: 85px;
    }
}

/* للأجهزة الكبيرة جداً (1200px فأكثر) */
@media (min-width: 1200px) {
    .logo img {
        max-height: 70px; /* أكبر حجم للشاشات الكبيرة */
    }
}

/* تأثير عند التمرير (إذا كان لديك تأثير scroll) */
.header-main.scrolled .logo img {
    max-height: 45px; /* تصغير اللوجو عند التمرير */
    transition: max-height 0.3s ease;
}

/* تحسين الوضوح والجودة للوجو */
.logo a {
    display: inline-block;
    line-height: 0; /* إزالة المسافات حول الصورة */
}

/* تأكد من عدم ضغط الصورة */
.logo img {
    object-fit: contain; /* الحفاظ على نسبة العرض إلى الارتفاع */
}
/* خيار 1: حجم متوسط (55px) */
.sidebar-logo {
    height: 55px;
    max-height: 60px;
}

/* خيار 2: حجم كبير (65px) */
.sidebar-logo.large-version {
    height: 65px;
    max-height: 70px;
}

/* خيار 3: حجم كبير جداً (75px) */
.sidebar-logo.xlarge-version {
    height: 75px;
    max-height: 80px;
}

/* خيار 4: استخدام min-height بدلاً من height */
.sidebar-logo {
    min-height: 50px;
    height: auto;
    max-height: 70px;
}