/* CSS Variables - المتغيرات الرئيسية للموقع من ألوان وخطوط وغيرها */
@font-face {
    font-family: 'IBM Plex Sans Arabic Bold';
    src: url('../myFont/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic Regular';
    src: url('../myFont/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

:root {

    --cb-radius: 16px;
    --cb-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    --cb-border: rgba(255, 255, 255, .22);

    --cb-panel: rgba(10, 64, 78, .92);
    --cb-panel2: rgba(8, 52, 64, .92);

    --toggle-bg: #0f1418;

    --wa: #25D366;
    --wa-hover: #128C7E;

    --call: #0b5a6a;
    --call-hover: #084654;

    --bar-w: 74px;
    --btn-h: 62px;
    --toggle-h: 38px;

    --ease: cubic-bezier(.2, .85, .2, 1);
    --dur: 260ms;

    --color-primary: rgb(0, 106, 128);
    --color-secondary: #005561;
    /* --color-accent: rgb(248, 191, 83); */
    --color-accent: #cda450;
    --color-accent-light: #e4c07b;
    --color-accent-dark: #b8953e;
    --color-projects-bg: rgb(0, 106, 128);
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;
    --color-text: #333333;
    --color-text-light: #555555;

    /* أنماط الخطوط */
    --font-primary: 'IBM Plex Sans Arabic Bold', 'Tahoma', Arial, sans-serif;
    --font-secondary: 'IBM Plex Sans Arabic Regular', 'Arial', sans-serif;

    /* المسافات والتباعد */
    --space-unit: 1rem;
    --space-xxs: calc(0.25 * var(--space-unit));
    --space-xs: calc(0.5 * var(--space-unit));
    --space-sm: calc(0.75 * var(--space-unit));
    --space-md: calc(1.25 * var(--space-unit));
    --space-lg: calc(2 * var(--space-unit));
    --space-xl: calc(3.25 * var(--space-unit));
    --space-xxl: calc(5.25 * var(--space-unit));

    /* أنماط الحركة */
    --transition-speed: 0.3s;
    --cubic-bezier: cubic-bezier(0.25, 0.8, 0.25, 1);
    --animation-duration: 0.8s;

    /* أحجام الخطوط */
    --text-xs: clamp(0.65rem, 0.9vw, 0.75rem);
    --text-sm: clamp(0.75rem, 1vw, 0.875rem);
    --text-base: clamp(0.875rem, 1.2vw, 1rem);
    --text-md: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.8vw, 1.25rem);
    --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
    --text-xxl: clamp(1.5rem, 4vw, 2rem);
    --text-xxxl: clamp(2rem, 5vw, 2.5rem);

    /* أنماط الزوايا */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;

    /* الظلال */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* نظام الشبكة الأساسي */
    --baseline: 8px;
    --grid-gap: var(--space-md);

    --page-border-radius: 12px;
    --page-box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    --page-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

}

/* Reset CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* تحسينات الأداء الأساسية */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-white);
    color: var(--color-text);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* نظام الحاويات المتسقة */
.container,
.container-wide,
.container-narrow {

    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container {
    max-width: 1200px;
}


.container-narrow {
    max-width: 900px;
}

.header .container,
.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* نظام الشبكة المرنة */
.grid,
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: var(--grid-gap);
}

.grid {
    grid-template-columns: repeat(12, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* العناصر العامة */
a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.8s ease;
}

img.loaded {
    opacity: 1;
}

section {
    padding-bottom: 40px;
    padding-top: 40px;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title h2 {
    font-size: var(--text-xxxl);
    color: var(--color-primary);
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-sm);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.section-title:hover h2::after {
    width: 120px;
    background: var(--color-secondary);
}

/* -------------------------------- */
/* قسم الهيدر   */
/* -------------------------------- */
.header {
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInDown 1s ease;
    gap: 15px;
    height: 70px;
    font-family: var(--font-primary);
}

.header-logo {
    padding: 5px 0px;
    width: 100px;

}

.header-logo img {
    width: fit-content;
    max-width: 100%;
    animation: scaleUp 1s ease;
    padding: 10px;
    height: 98px;
}

.header-contact {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 16px;
    font-family: var(--font-secondary);
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-contact i {
    color: var(--color-accent);
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

/* -------------------------------- */
/* القائمة الرئيسية  ة */
/* -------------------------------- */
.nav {
    background-color: var(--color-white);
    border-bottom: 3px solid var(--color-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 99999;
    font-family: var(--font-primary);
    margin: 0px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.nav-links a {
    color: var(--color-accent);
    font-size: 18px;
    padding: 8px 5px;
    position: relative;
    transition: var(--transition-speed) ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a:not(:last-child)::after {
    content: "|";
    color: var(--color-accent);
    margin: 0 5px;
    font-weight: bold;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 5%;
    height: 3px;
    width: auto;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-speed) ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: scaleX(1);
}

.nav-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-social a {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 7px;
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-social a:hover {
    background-color: var(--color-accent);
    transform: scale(1.1) rotate(2deg);
}


/* -------------------------------- */
/* القائمة المنسدلة للجوال */
/* -------------------------------- */
.mobile-header {
    display: none;
    width: 100%;
    font-family: var(--font-primary);
    margin: 0px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary);
    padding: 0px 5%;
}

.page-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: bold;
}

.mobile-logo img {
    width: 100px;
    height: auto;
}

.menu-btn {
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

.menu-btn .line {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
    border-radius: 3px;
}

.menu-btn.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.dropdown-menu.active {
    transform: translateX(0);
}

.dropdown-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.dropdown-menu-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.dropdown-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu-item {
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.dropdown-menu-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    position: relative;
    z-index: 1;
}

.dropdown-menu-link:hover {
    color: var(--color-primary);
    background-color: rgba(0, 106, 128, 0.05);
    transform: translateX(-5px);
}

.dropdown-menu-link.active {
    color: var(--color-white);
    background-color: var(--color-primary);
}

.dropdown-menu-icon {
    margin-left: 15px;
    color: var(--color-accent);
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.dropdown-menu-text {
    flex: 1;
}

.dropdown-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid var(--color-accent);
}

.dropdown-menu-social {
    display: flex;
    justify-content: space-evenly;
    gap: 15px;
    margin-top: 15px;
}

.dropdown-menu-social a {
    color: var(--color-primary);
    font-size: 20px;
}

.dropdown-menu-social a:hover {
    color: var(--color-accent);
}

.close-dropdown {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--color-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    background: rgba(0, 0, 0, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-dropdown:hover {
    transform: rotate(90deg);
    color: var(--color-accent);
    background: rgba(0, 106, 128, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-toggle {
    display: none;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    margin: 10px auto;
    width: 90%;
    text-align: center;
    font-family: var(--font-primary);
}

.dropdown-toggle i {
    margin-left: 8px;
}

/* -------------------------------- */
/* سلايدر الصور   */
/* -------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.slider-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: auto;
}

.slider-track {
    display: flex;
    flex-direction: row-reverse;
    height: 100%;
    transition: transform 0.7s var(--cubic-bezier);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 80vh;
    object-fit: cover;
    background-color: #f5f5f5;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: clamp(1rem, 4vw, 2rem);
}

.slide-title {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary);
}

.slide-desc {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-secondary);
}

.slide-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.9s;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-family: var(--font-primary);
}

.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-xs);
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-md);
    font-size: 18px;
}

.slider-btn:hover {
    background: rgba(205, 164, 80, 0.8);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .slide-content {
        padding: 1rem;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* -------------------------------- */
/* قسم الفيديو والوصف   */
/* -------------------------------- */
.video-section {
    position: relative;
    background-color: var(--color-white);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    margin-top: 5%;
    height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all var(--animation-duration) ease;
}

.video-container.animate-in {
    animation: slideInFromRight var(--animation-duration) ease-out forwards;
}

.video-container.animate-out {
    animation: slideOutToLeft var(--animation-duration) ease-in forwards;
}

.video-section.show .video-container {
    opacity: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.desc-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-md) 0px;
    opacity: 0;
    transition: all var(--animation-duration) ease;
}

.desc-container.animate-in {
    animation: slideInFromLeft var(--animation-duration) ease-out forwards;
}

.desc-container.animate-out {
    animation: slideOutToRight var(--animation-duration) ease-in forwards;
}

.video-section.show .desc-container {
    opacity: 1;
}

.desc-title {
    font-size: var(--text-xxl);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-family: var(--font-primary);
}

.desc-subtitle {
    font-size: var(--text-xxxl);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    font-weight: 600;
    font-family: var(--font-primary);
}

.desc-text {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: black;
    margin-bottom: var(--space-md);
    font-family: var(--font-secondary);
}

.desc-btn {
    display: inline-block;
    background-color: rgb(0, 106, 128);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-lg);

    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(205, 164, 80, 0.3);
    align-self: flex-start;
    font-family: var(--font-primary);
}

.desc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(205, 164, 80, 0.4);
    background: linear-gradient(to right, var(--color-accent-dark) 0%, var(--color-accent) 100%);
}

/* -------------------------------- */
/* قسم الإحصائيات   */
/* -------------------------------- */
.stats {
    position: relative;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.stat-box {

    border: 2px solid white;
    padding: var(--space-lg);
    background: #005561;
    border-radius: var(--radius-md);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.stat-box.animated {
    transform: translateY(0);
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: var(--text-xxl);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    transition: all 0.5s ease;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-box h2,
.projects h2,
.footer-col h3,
.contact-info h2,
.contact-form-container h3 {
    color: var(--color-white);
    font-weight: 700;
    font-family: var(--font-primary);
}

.stat-box h2 {
    font-size: var(--text-xxxl);
    margin: var(--space-xs) 0;
    transition: all 0.5s ease;
}

.stat-box:hover h2 {
    color: var(--color-accent);
}

.stat-box p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.5s ease;
    font-family: var(--font-secondary);
}

.stat-box:hover p {
    color: var(--color-white);
}

/* -------------------------------- */
/* قسم كلمة الرئيس */
/* -------------------------------- */
.president {
    width: 100%;
    overflow: visible;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #e0e0e0;
    padding: 60px 50px 50px 400px;
    position: relative;
}

.president-signature {
    text-align: center;
    color: var(--color-accent-light);
    font-family: var(--font-primary);
}

.president::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;

    bottom: -15px;
    right: -40px;
    width: 220px;
    height: 220px;
    background-image: url('../image/m2.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.president-img {
    position: absolute;
    top: -150px;
    left: 50px;
    width: 320px;
    height: 320px;
    animation: floatUp 1s ease forwards;
    animation-delay: 2.5s;
    opacity: 0;
}

.president-img1 {
    padding-top: 70px;
    position: absolute;
    top: -150px;
    left: 50px;
    width: auto;
    height: 130%;
    animation: floatUp 1s ease forwards;
    animation-delay: 2.5s;
    opacity: 0;
    margin: auto;
}

.president-img1 img {
    width: 100%;
    height: 100%;
}

.president-text {
    position: relative;
    z-index: 50;
    animation: fadeIn 1s ease forwards;
    animation-delay: 3s;
    padding-bottom: 10px;
}

.president-text h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 25px;
    border-bottom: 3px dotted var(--color-accent);
    padding-bottom: 8px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary);
}

.president-text p {
    font-size: 19px;
    line-height: 1.85;
    color: #e7e7e7;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    font-family: var(--font-secondary);
}

/* -------------------------------- */
/* قسم كلمة الرئيس */
/* -------------------------------- */
.president1 {
    width: 100%;
    height: 100%;
    margin: 0px auto;
    overflow: visible;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #e0e0e0;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.president1-signature {
    color: var(--color-accent-light);
    font-family: var(--font-primary);
}

.president1::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background-image: url('../images/m1.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.president1-img {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 350px;
    height: 160%;
    animation: floatUp 1s ease forwards;
    animation-delay: 2.5s;
    opacity: 0;
    object-fit: contain;
    object-position: left center;
    /* محاذاة لليسار */
}

.president1-text {
    position: relative;
    z-index: 50;
    animation: fadeIn 1s ease forwards;
    animation-delay: 3s;
    margin-right: 20px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.president1-text h2 {
    font-size: var(--text-xxxl);
    font-weight: 900;
    margin-bottom: 25px;
    border-bottom: 3px dotted var(--color-accent);
    padding-bottom: 8px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary);
    color: var(--color-white);
}

.president1-text p {
    font-size: var(--text-lg);
    line-height: 1.85;
    color: #e7e7e7;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
    font-family: var(--font-secondary);
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 992px) {
    .president1 {
        padding: 40px 20px 40px 320px;
    }

    .president1-img {
        width: 280px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .president1 {
        padding: 0px 15px;
        flex-direction: column;
        min-height: auto;
        text-align: center;
    }

    .president-img1 {
        position: static;
        padding-top: 0;
        margin-top: -90px;
    }

    .president1-img {
        position: relative;
        width: 100%;
        max-width: 300px;
        height: 300px;
        left: auto;
        margin: 0 auto 20px;
        object-position: center;
    }

    .president1-text {
        margin-right: 0;
        padding: 20px;
    }
}


/* -------------------------------- */
/* قسم الخدمات   */
/* -------------------------------- */
.services {
    background-color: var(--color-white);
    position: relative;
    padding-bottom: 150px;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 106, 128, 0.05) 0%, rgba(205, 164, 80, 0.05) 100%);
    z-index: 0;
}

.services-container {
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border: 1px solid rgba(0, 106, 128, 0.1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) var(--cubic-bezier);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.service-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--color-accent);
    transition: all var(--transition-speed) var(--cubic-bezier);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 106, 128, 0.2);
}

.service-card:hover::before {
    height: 100%;
    background: var(--color-primary);
}

.service-icon {
    font-size: var(--text-xxxl);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3,
.page-about-mvp-box h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    font-family: var(--font-primary);
}

.service-card:hover h3 {
    color: var(--color-white);
}

.service-card p,
.page-about-mvp-box p {
    color: var(--color-text-light);
    transition: all var(--transition-speed) ease;
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
    font-family: var(--font-secondary);
}


.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.service-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-primary);
}

.service-card:hover .service-link {
    color: var(--color-white);
}

/* -------------------------------- */
/* قسم مشاريع الفيديو */
/* -------------------------------- */
.projects-video {
    text-align: center;
    position: relative;

}

.projects-video-container {
    position: relative;
    /* max-width: 900px; */
    width: 100%;
    height: 0;
    padding-bottom: 37%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-speed) ease;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.8s ease;
}

.reset-padding {
    padding-bottom: 0px;
}

.projects-video-container.animated {
    transform: scale(1);
    opacity: 1;
}

.projects-video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.projects-video-container video,
.projects-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.projects-video h2 {
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    font-size: var(--text-xxxl);
    font-weight: 600;
    position: relative;
    display: inline-block;
    font-family: var(--font-primary);
}

.projects-video video {
    width: 100%;
    height: 100%;
    display: block;
}

/* تحسينات خاصة للجوال */
@media (max-width: 768px) {
    .projects-video-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 50%;
        /* النسبة المطلوبة 2:1 */
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        transition: transform var(--transition-speed) ease;
        transform: scale(0.95);
        opacity: 0;
        transition: all 0.8s ease;
        margin: 0 auto;
        /* توسيط الحاوية */
    }

    .projects-video-container.animated {
        transform: scale(1);
        opacity: 1;
    }

    .projects-video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: fill;
        /* لملء الحاوية مع الحفاظ على النسبة */
    }

    /* تحسينات إضافية للشاشات الصغيرة جداً */
    @media (max-width: 480px) {
        .projects-video-container {
            padding-bottom: 60%;
            /* نسبة أعلى قليلاً للشاشات الصغيرة */
        }
    }

    /* للوضع الأفقي على الجوال */
    @media (max-width: 768px) and (orientation: landscape) {
        .projects-video-container {
            padding-bottom: 40%;
            /* نسبة أقل للوضع الأفقي */
        }
    }
}



/* -------------------------------- */
/* قسم المشاريع   */
/* -------------------------------- */
.projects {

    background: linear-gradient(rgba(0, 106, 128, 0.9)),
        url('../cover1.jpeg') center/cover;
    background-attachment: fixed;
    background-color: var(--color-projects-bg);
    position: relative;
    overflow: visible;
    padding-bottom: 30px;
}

.projects::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
}

.projects-container {
    position: relative;
    z-index: 1;
}

.projects h2 {
    font-size: var(--text-xxxl);
    text-align: center;
    margin-bottom: var(--space-lg);
}


.projects-grid,
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.projects-grid>*,
.services-grid>* {
    flex: 0 0 340px;
}

@media (min-width: 500px) and (max-width: 899px) {

    .projects-grid>*,
    .services-grid>* {
        flex: 1 1 calc(50% - 20px);
        /* يملأ المساحة مع حد أقصى 50% */
        max-width: calc(50% - 20px);
    }
}

@media (min-width: 900px) {

    .projects-grid>*,
    .services-grid>* {
        flex: 0 0 calc((100% - 65px) / 3);
        max-width: calc((100% - 65px) / 3);
    }
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.5s var(--cubic-bezier);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.8s ease;
}

.project-card.animated {
    transform: scale(1);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image-container {
    overflow: hidden;
    /* height: 250px; */
    position: relative;
    margin-bottom: var(--space-md);
}

.project-image {
    width: fit-content;
    height: 100%;
    object-fit: fill;
    transition: transform 0.8s ease;
}


.project-info {
    padding: 0 var(--space-sm) var(--space-md);
    text-align: center;
}

.project-title {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-family: var(--font-primary);
}

.project-location {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-secondary);
}

.project-location i {
    color: var(--color-accent);
}

.project-btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: var(--color-projects-bg);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-top: var(--space-sm);
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--color-projects-bg);
    font-family: var(--font-primary);
}

.project-btn:hover {
    background: var(--color-white);
    color: var(--color-projects-bg);
}


.partners-section {
    overflow: hidden;
    position: relative;
    margin: 0px;
}

.partners-slider {
    display: flex;
    will-change: transform;
    transition: transform 0.5s linear;
    /* يتطابق مع إعدادات JS */
}

.partner-slide {
    flex: 0 0 auto;
    margin: 0 15px;
    transition: transform 0.3s ease;
    /* لتحسين المظهر عند التوقف */
}

.partners-slider-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: 150px;
    background: var(--color-white);
    position: relative;
    font-family: var(--font-primary);
    padding: 0;
}

.partners-fixed-header {
    flex: 0 0 20%;
    max-height: 150px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 var(--space-md);
    box-sizing: border-box;
    border-left: 1px solid var(--color-border);
    text-align: center;
}

.partners-slider-wrapper {
    flex: 0 0 80%;
    overflow: hidden;
    direction: ltr;
}

.partners-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.partner-slide {
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}


.partners-section {
    padding: 0px;
    position: relative;
    width: 100%;
    z-index: 5;
}

.partners-section {
    overflow: hidden;
    position: relative;
}

.partners-slider {
    display: flex;
    will-change: transform;
    transition: transform 0.5s linear;
}

.partner-slide {
    flex: 0 0 auto;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.partners-slider-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: none;
    background: var(--color-white);
    overflow: visible;
    position: relative;
    font-family: var(--font-primary);
}

.container2 {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.partners-fixed-header {
    width: 100% !important;
    max-height: none !important;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xl);
    font-weight: bold;
    display: block;
    padding: 15px 0;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
    border-left: none !important;
}

.partners-title {
    color: var(--color-primary);
    font-size: var(--text-xxl);
    font-weight: bold;
    margin-bottom: 30px;
    font-family: var(--font-primary);
    text-align: center;
}

.partners-slider-wrapper {
    width: 100% !important;
    overflow: hidden;
    direction: ltr;
}

.partners-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.partner-slide {
    box-sizing: border-box;
    text-align: center;
    /* padding: 0 var(--space-sm); */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

/* حسب عدد الصور المراد عرضها: */
/* 4 صور في شاشة كبيرة */
@media (min-width: 1201px) {
    .partner-slide {
        flex: 0 0 25%;
    }
}

/* 3 صور في شاشة متوسطة */
@media (max-width: 1200px) and (min-width: 801px) {
    .partner-slide {
        flex: 0 0 33.33%;
    }
}

/* 2 صور في شاشة صغيرة */
@media (max-width: 800px) and (min-width: 481px) {
    .partner-slide {
        flex: 0 0 50%;
    }
}


/* -------------------------------- */
/* قسم التواصل  */
/* -------------------------------- */
.contact {
    position: relative;
    background: url('../image/background1.jpg') no-repeat center/cover fixed;
    color: var(--color-white);
    z-index: 1;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0, 106, 128, 0.35),
            rgba(0, 85, 97, 0.45));
    z-index: -1;
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

.contact-info {
    animation: fadeInUp 0.8s var(--transition-speed) both;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.contact-info.animated {
    transform: translateX(0);
    opacity: 1;
}

.contact-info h2 {
    font-size: var(--text-xxxl);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 70%;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.6s var(--cubic-bezier);
}

.contact-info:hover h2::after {
    transform: scaleX(1);
}

.contact-info p {
    font-size: var(--text-md);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    font-family: var(--font-secondary);
}

.contact-details {
    margin-top: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    text-align: justify;
    margin-bottom: var(--space-md);
}

.contact-icon {
    /* width: 50px; */
    /* height: 50px; */
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-accent);
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background: var(--color-accent);
    color: var(--color-text);
    transform: rotate(15deg);
}

.contact-text {
    flex: 1;
    font-family: var(--font-secondary);
}

.contact-form-container {
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s calc(var(--transition-speed) * 1.5) both;
    transition: all var(--transition-speed) ease;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.contact-form-container.animated {
    transform: translateX(0);
    opacity: 1;
}

.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form-container h3 {
    font-size: var(--text-xxl);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-xs);
}

.contact-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 4rem;
    height: 0.25rem;
    background-color: var(--color-accent);
    border-radius: 0.25rem;
    transition: width 0.5s var(--cubic-bezier);
}

.contact-form-container:hover h3::after {
    width: 6rem;
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
    font-family: var(--font-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: none;
    font-size: var(--text-base);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-speed) var(--cubic-bezier);
    font-family: var(--font-secondary);
    border: 1px solid transparent;
    text-align: right;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(205, 164, 80, 0.4);
    background-color: var(--color-white);
    transform: translateY(-0.15rem);
    border-color: var(--color-accent);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--color-accent);
    color: var(--color-text);
    border: none;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    font-size: var(--text-md);
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-primary);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--color-accent-light) 0%, var(--color-accent) 100%);
    transition: width 0.5s var(--cubic-bezier);
    z-index: -1;
}

.submit-btn:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:hover::before {
    width: 100%;
    right: auto;
    left: 0;
}

.submit-btn:active {
    transform: translateY(0);
}

/* رأس القائمة */
.dropdown-menu-header {
    padding: 24px;
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu-link.active {
    background: rgba(10, 74, 107, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.dropdown-menu-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    border-radius: 3px 0 0 3px;
}

/* الأيقونات */
.dropdown-menu-icon {
    width: 24px;
    height: 24px;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.25s ease;
}

/* -------------------------------- */
/* الفوتر  */
/* -------------------------------- */
.footer {
    position: relative;
    z-index: 10;
    background-color: var(--color-projects-bg);
    color: var(--color-white);
    padding: 10px 0px 0px var(--space-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-col h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
    transition: color var(--transition-speed) ease;
}

.footer-col:hover h3 {
    color: var(--color-accent);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.footer-col:hover h3::after {
    width: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-logo-text {
    font-weight: 700;
    font-size: var(--text-lg);
    font-family: var(--font-primary);
}

.footer-about {
    font-size: var(--text-base);
    opacity: 0.8;
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-family: var(--font-secondary);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-sm);
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 2px 0;
    position: relative;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-secondary);
}

.footer-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.footer-list a:hover {
    color: var(--color-white);
    padding-right: var(--space-xs);
}

.footer-list a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.footer-social-link {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.footer-margin {
    padding: 0px;

}

.footer-social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px) rotate(5deg);
    color: var(--color-text);
}

/* تنسيقات الحقوق  */
.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-wrapper {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* padding: 0 20px; */
    font-size: 0.8rem;
}

.copyright-bar p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: var(--font-secondary);
    line-height: 1.4;
}

.dev-credit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dev-link:hover {
    color: var(--color-accent);
}

.dev-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.dev-link:hover .dev-logo {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .copyright-wrapper {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 55px;
        text-align: center;
    }

    .dev-credit {
        flex-direction: column;
        gap: 4px;
    }
}

/* زر الرجوع لأعلى */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    font-family: var(--font-primary);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--color-accent-dark);
}

/* تأثيرات الحركة */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* تأثيرات دخول وخروج  */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .president-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .president-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .president-img {
        /* max-width: 250px; */
        margin: 0 auto;
    }

    .president-text h2 {
        font-size: var(--text-xxl);
    }

    .president-text p {
        font-size: var(--text-md);
    }
}

@media (max-width: 768px) {

    .header,
    .nav {
        display: none;
    }

    .projects-grid,
    .services-grid {
        justify-content: center;
        /* يوزع العناصر لملء الطرفين */
    }

    .mobile-header {
        display: block;
    }

    .dropdown-toggle {
        display: block;
    }

    .nav-links,
    .nav-social {
        display: none;
    }

    /* تحسينات قسم الفيديو للشاشات الصغيرة */
    .video-section .grid-2 {
        grid-template-columns: 1fr;
    }

    .video-container {
        order: 2;
        animation: popIn var(--animation-duration) ease-out forwards;
    }

    .desc-container {
        order: 1;
        text-align: center;
        align-items: center;
        animation: popIn var(--animation-duration) ease-out forwards;
    }

    .desc-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .desc-btn {
        align-self: center;
    }

    .president {
        width: 100%;
        padding: 10px 15px;
        animation: none;
        transform: none;
        border-radius: 0;
    }

    .president-img {
        position: relative;
        top: auto;
        left: auto;
        width: 200px;
        height: 100%;
        margin: -80px auto -10px;
        animation: float 6s ease-in-out infinite;
        opacity: 1;
        border: none;

        z-index: 1;
    }

    .president-text {
        background: rgba(0, 0, 0, 0.2);
        padding: 30px;
        border-radius: 20px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        opacity: 1;
        animation: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
        padding-top: 40px;
    }

    .contact-info h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .section-title h2 {
        font-size: var(--text-xxl);
    }

    .dropdown-menu {
        max-width: 100%;
        right: -100%;
    }

    .dropdown-menu.active {
        transform: translateX(-100%);
    }

    /* تعديلات قسم الشركاء للشاشات الصغيرة */
    .partners-slider-container {
        flex-direction: column;
        max-height: none;
    }


    .partners-fixed-header {
        flex: 0 0 auto;
        width: 100%;
        padding: var(--space-md);
        font-size: var(--text-lg);
    }

    .partners-slider-wrapper {
        flex: 0 0 auto;
        width: 100%;
        padding: var(--space-md);
    }
}

@media (max-width: 576px) {

    /* تحسينات السلايدر للشاشات الصغيرة */
    .slider-container {
        height: 100%;
        border-radius: 0;
    }

    .slide img {
        min-height: 100%;
    }

    .slide-content {
        width: 95%;
        padding: 15%;
    }

    .slide-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-xs);
    }

    .slide-desc {
        font-size: var(--text-sm);
        line-height: 1.4;
        margin-bottom: var(--space-xs);
    }

    .slide-btn {
        padding: var(--space-xxs) var(--space-md);
        font-size: var(--text-xs);
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .dropdown-menu {
        max-width: 280px;
        padding: var(--space-xl) var(--space-md) var(--space-md);
    }

    .dropdown-menu-link {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-base);
    }

    .mobile-logo img {
        width: 70px;
    }

    .page-title {
        font-size: var(--text-md);
    }

    .desc-title {
        font-size: var(--text-xl);
    }

    .desc-subtitle {
        font-size: var(--text-lg);
    }

    .desc-text {
        font-size: var(--text-sm);
    }

    .president-text h2 {
        font-size: var(--text-xl);
    }

    .president-text {
        margin: 0px;
    }

    .president-text p {
        font-size: var(--text-base);
    }

    .projects h2 {
        font-size: var(--text-xxl);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .stat-box {
        flex: 1 1 150px;
        padding: var(--space-md);
    }

    .stat-box h2 {
        font-size: var(--text-xxl);
    }

    .stat-box p {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {

    /* تحسينات إضافية للسلايدر للشاشات الصغيرة جدًا */
    .slider-container {
        height: 100%;
    }

    .slide img {
        min-height: 100%;
    }

    .slide-content {
        padding: 15%;
    }

    .slide-title {
        font-size: var(--text-lg);
    }


    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-box {
        width: 100%;
        margin: 0 auto;
    }

    .dropdown-menu {
        max-width: 100%;
        right: -100%;
    }

    .dropdown-menu.active {
        transform: translateX(-100%);
    }
}

@media (max-width: 375px) {

    /* تحسينات للسلايدر في أجهزة الموبايل الصغيرة */
    .slider-container {
        height: 100%;
    }

    .slide img {
        min-height: 100%;
    }

    .slide-title {
        font-size: var(--text-md);
        margin-bottom: 5px;
    }

    .slide-btn {
        padding: 5px 15px;
        font-size: 12px;
    }
}

.dropdown-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 80px 30px 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.dropdown-menu.active {
    transform: translateX(0);
}

.dropdown-menu-list,
.dropdown-menu-item,
.dropdown-menu-link {
    width: 100%;
    box-sizing: border-box;
}

/* انماط الصفحات الداخلية  */

/* أنماط العناوين الرئيسية */
.page-main-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-main-title h1 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    font-family: var(--font-primary);
}

/* أنماط الحاويات */
.page-container {
    display: flex;
    background-color: var(--color-white);
    border-radius: var(--page-border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--page-transition);
    border: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.page-text-area {
    flex: 1;
    padding: 40px;
    background-color: var(--color-white);
    position: relative;
}

.page-section-title {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    font-weight: 700;
    padding-bottom: 10px;
    font-family: var(--font-primary);
}

.page-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.page-section-title:hover::after {
    width: 100px;
}

.page-text-area p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 30px;
    color: var(--color-text-light);
    font-family: var(--font-secondary);
}

/* أنماط المميزات */
.page-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.page-feature-container {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 18px 25px;
    border-radius: var(--page-border-radius);
    font-size: 1.1rem;
    text-align: right;
    transition: var(--page-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 15px rgba(0, 106, 128, 0.2);
    cursor: pointer;
    border: none;
    font-family: var(--font-secondary);
}

.page-feature-container i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--page-transition);
}

.page-feature-container:hover {
    background-color: var(--color-secondary);
    transform: translateX(-8px);
    box-shadow: 0 8px 25px rgba(0, 85, 97, 0.3);
}

.page-feature-container:hover i {
    transform: scale(1.2);
    color: var(--color-accent-light);
}

.page-feature-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(205, 164, 80, 0.1), rgba(205, 164, 80, 0.05));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.page-feature-container:hover::after {
    transform: translateX(0);
}

/* أنماط منطقة الصور */
.page-images-grid {
    height: fit-content;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    /* padding: 15px; */
    background-color: #f0f0f0;
    position: relative;
}

.page-image-container {
    position: relative;
    border-radius: var(--page-border-radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--page-transition);
    height: fit-content;
}

.page-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-images-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--page-transition);
    cursor: pointer;
}

.page-image-container:hover img {
    transform: scale(1.08);
}

.page-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 85, 97, 0.9), transparent);
    color: var(--color-white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--page-transition);
    backdrop-filter: blur(2px);
}

.page-image-container:hover .page-image-overlay {
    transform: translateY(0);
}

.page-image-overlay h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent-light);
    font-family: var(--font-primary);
}

.page-image-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    font-family: var(--font-secondary);
}


/* أنماط Lightbox */
.page-lightbox {
    display: none;
    position: fixed;
    margin: 0px 0px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;

}

.page-lightbox.active {
    display: flex;
    opacity: 1;
    animation: page-fadeIn 0.3s ease;
}

.page-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 20px; */
}

.page-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: page-fadeIn 0.4s ease forwards;
}

.page-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.page-lightbox-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 30px;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-secondary);
}

.page-lightbox-nav button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.page-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-secondary);
}

.page-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.page-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 8px 8px;
    backdrop-filter: blur(5px);
    font-family: var(--font-secondary);
}

.page-lightbox-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-family: var(--font-secondary);
}

/* مصغرات الصور في Lightbox */
.page-lightbox-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    max-width: 90%;
    overflow-x: auto;
    margin: 20px auto auto auto;
}

.page-lightbox-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.page-lightbox-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.page-lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(205, 164, 80, 0.5);
}

.page-lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes page-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes page-slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes page-slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* أنماط صفحة "من نحن" */
.page-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px 90px 0px;
    height: 100%;

}

/* قسم "من نحن" الرئيسي */
.page-about-section {
    padding: 40px 0;
    background-color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.page-about-section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: var(--font-primary);
}

.page-about-section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: 15px auto 0;
    animation: page-scaleX 0.8s ease-out;
}

.page-about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.page-about-text {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.page-about-images {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.page-about-img-1,
.page-about-img-2 {
    width: 350px;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.page-about-img-1 img,
.page-about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}





.page-about-img-1:hover img,
.page-about-img-2:hover img {
    transform: scale(1.05);
}

.page-about-img-1 {
    width: fit-content;
}

.page-about-img-2 {
    margin-right: 40%;
    width: fit-content;
    margin-top: -200px;
    border: 5px solid rgb(255, 255, 255);

}

/* للشاشات المتوسطة والصغيرة */
@media (max-width: 992px) {
    .page-about-content {
        flex-direction: column;
    }

    .page-about-text {
        text-align: center;
    }

    .page-about-images {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-about-img-1,
    .page-about-img-2 {
        width: 300px;
        height: 300px;
        /* إلغاء الهوامش والحدود في الشاشات المتوسطة والصغيرة */
        margin-right: 0 !important;
        margin-top: 0 !important;
        border: none !important;
    }
}

/* للشاشات الصغيرة جدًا */
@media (max-width: 576px) {

    .page-about-img-1,
    .page-about-img-2 {
        width: 100%;
        height: 350px;
        margin-right: 0;
        margin-top: 0;
        border: none;
    }
}

/* للشاشات الصغيرة جدًا */
@media (max-width: 576px) {

    .page-about-img-1,
    .page-about-img-2 {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }
}

/* قسم الرؤية والرسالة والأهداف */
.page-about-mvp-section {
    padding: 80px 0px;
    background-color: #f8f9fa;
    margin: 0px;
}

.page-about-mvp-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.page-about-mvp-box {
    background: white;
    padding: 50px 25px 30px;
    border: 3px solid var(--color-accent);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.page-about-mvp-box::before {
    content: '';
    position: absolute;
    top: -25px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    z-index: 1;

}

.page-about-mvp-icon {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-about-mvp-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.page-about-mvp-box:hover .page-about-mvp-icon {
    transform: translateX(50%) rotateY(180deg) scale(1.1);
    background: var(--color-primary);
}


/* قسم فريق العمل */
.page-about-team-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.page-about-team-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 106, 128, 0.05) 0%, rgba(205, 164, 80, 0.05) 100%);
    z-index: 0;
}

.page-about-team-section .page-about-section-title h2 {
    font-size: 2.5rem;
}

.page-about-team-section .page-about-section-title p {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-weight: 500;
    font-family: var(--font-secondary);
}

.page-about-team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.page-about-team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-about-team-image {
    height: 300px;
    position: relative;
    flex: 1;
    overflow: hidden;
}

.page-about-team-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-about-team-info {
    padding: 25px;
    text-align: center;
    background: white;
    position: relative;
    z-index: 2;
}

.page-about-team-info h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    font-family: var(--font-primary);
}

.page-about-team-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    transition: all 0.3s ease;
}

.page-about-team-info p {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.page-about-team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 106, 128, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    padding: 30px;
    text-align: center;
    color: white;
}

.page-about-team-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    transform: translateY(30px);
    transition: all 0.4s ease 0.1s;
    font-family: var(--font-primary);
}

.page-about-team-overlay p {
    color: var(--color-accent-light);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.2rem;
    transform: translateY(30px);
    transition: all 0.4s ease 0.2s;
    font-family: var(--font-secondary);
}

.page-about-team-social {
    display: flex;
    gap: 15px;
    transform: translateY(30px);
    transition: all 0.4s ease 0.3s;
}

.page-about-team-social a {
    color: white;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    background: rgba(205, 164, 80, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-about-team-social a:hover {
    background: var(--color-white);
    color: var(--color-accent-dark);
    transform: translateY(-5px) scale(1.1);
}

.page-about-team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.page-about-team-member:hover .page-about-team-overlay {
    opacity: 1;
}

.page-about-team-member:hover .page-about-team-overlay h3,
.page-about-team-member:hover .page-about-team-overlay p,
.page-about-team-member:hover .page-about-team-social {
    transform: translateY(0);
}

.page-about-team-member:hover .page-about-team-image img {
    transform: scale(1.1) rotate(2deg);
}

.page-about-team-member:hover .page-about-team-info h3::after {
    width: 100%;
    background: var(--color-primary);
}

/* قسم آراء العملاء */
.page-about-testimonial-section {
    padding: 10px 0;
    background-color: var(--color-secondary);
    color: white;
    position: relative;
}

.page-about-testimonial-slider {
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    /* margin-bottom: 60px; */
}

.page-about-testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* padding: 20px; */
    box-sizing: border-box;
    opacity: 0;
    transition: all 0.5s ease;
}

.page-about-testimonial-slide.active {
    opacity: 1;
}

.page-about-testimonial-content {
    max-width: 600px;
    margin: 0 auto;
}

.page-about-testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;

    overflow: hidden;
    border: 4px solid var(--color-accent);
}

.page-about-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-about-testimonial-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-family: var(--font-primary);
}

.page-about-testimonial-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #eee;
    line-height: 1.8;
    font-family: var(--font-secondary);
}

.page-about-testimonial-position {
    font-size: 1.1rem;
    color: var(--color-accent-light);
    font-weight: 600;
    font-family: var(--font-secondary);
}

.page-custom-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.page-custom-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.page-custom-dots .active {
    background: var(--color-accent);
}

.page-contact-section {
    display: flex;
    flex-wrap: wrap;

    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 20px;
    gap: 20px;
    justify-content: center;
    contain: content;
}



.page-contact-form-box {
    flex: 1 0;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.page-contact-form-box h4 {
    color: var(--color-accent);
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
    font-family: var(--font-primary);
}

.page-contact-form-box h2 {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 28px;
    font-family: var(--font-primary);
}

.page-contact-form-box label {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    color: #444;
    font-family: var(--font-secondary);
}

.page-contact-form-box input,
.page-contact-form-box textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: none;
    background-color: #eaeaea;
    font-size: 15px;
    font-family: var(--font-secondary);
}

.page-contact-form-box input::placeholder,
.page-contact-form-box textarea::placeholder {
    text-align: right;
    color: #777;
}

.page-contact-send-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    width: 140px;
    height: 44px;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.3s ease;
    font-family: var(--font-secondary);
}

.page-contact-send-btn i {
    font-size: 14px;
}

.page-contact-send-btn:hover {
    background-color: var(--color-accent-dark);
}

.page-contact-info-box {
    flex: 1;
    background-color: var(--color-primary);
    color: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-contact-info-box h2 {
    font-size: 32px;
    color: var(--color-accent-light);
    margin-bottom: 5px;
    font-family: var(--font-primary);
}

.page-contact-info-box h4 {
    font-size: 20px;
    color: #eaeaea;
    margin-bottom: 25px;
    font-family: var(--font-secondary);
}

.page-contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-family: var(--font-secondary);
}

.page-contact-info-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-contact-icon {
    font-size: 22px;
}

.page-contact-text {
    font-weight: 500;
    word-break: break-word;
}

.page-contact-map-container {
    width: 100%;
    height: 400px;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.page-contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* أنماط صفحة "روابط تهمك" */
.page-links-section {
    width: 100%;
    overflow: hidden;
    padding: 0px;
}


.page-links-content {
    background-color: #fff;
    text-align: center;
    padding: 80px 0px;
}

.page-links-content h4 {
    font-size: 18px;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.page-links-content h2 {
    font-size: 34px;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-weight: 700;
    font-family: var(--font-primary);
}


.page-links-banks-wrapper {
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}



.page-links-bank-box {
    background-color: #fff;
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    margin: 5px;

}

.page-links-bank-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-dark);
}

.page-links-bank-box a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
}

.page-links-bank-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.page-links-bank-box:hover img {
    transform: scale(1.05);
}

/* أنيميشن */
@keyframes page-fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes page-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes page-fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes page-scaleX {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes page-slideInFromRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes page-slideInFromLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* التصميم المتجاوب */
@media (max-width: 500px) {
    .page-container {
        flex-direction: column;
    }

    .page-main-title h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {

    .page-main-title h1 {
        font-size: 2rem;
    }

    .page-section-title {
        font-size: 1.5rem;
    }

    .page-text-area {
        padding: 30px;
    }

    .page-feature-container {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .page-images-grid {
        grid-template-columns: auto;
    }

    /* تعديلات Lightbox للجوال */
    .page-lightbox-nav button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin: 0 15px;
    }

    .page-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 20px;
        right: 20px;
    }

    .page-lightbox-counter {
        top: 20px;
        left: 20px;
    }

    .page-lightbox-content {
        max-height: 60vh;
    }

    .page-lightbox-content img {
        max-height: 60vh;
    }

    .page-lightbox-thumbnail {
        width: 60px;
        height: 45px;
    }

    /* تعديلات صفحة تواصل معنا */
    .page-contact-section {
        flex-direction: column;
        width: auto;
    }

    .page-contact-form-box,
    .page-contact-info-box {
        padding: 25px;
    }

    .page-contact-info-box h2 {
        font-size: 26px;
    }

    .page-contact-info-item {
        font-size: 16px;
    }

    .page-contact-send-btn {
        width: 100%;
        justify-content: center;
    }

    /* .page-contact-header {
        padding: 60px 20px;
    } */

    .page-links-content h2 {
        font-size: 28px;
    }

    .page-links-banks-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    /* تعديلات السلايدر */
    .page-about-testimonial-slider {
        height: 450px;
        margin-top: -50px;
    }

    .page-about-testimonial-slide {
        padding: 15px;
    }

    .page-about-testimonial-image {
        width: 90px;
        height: 90px;
    }

    .page-about-testimonial-content h4 {
        font-size: 1.3rem;
    }

    .page-about-testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-links-hero-banner h2 {
        font-size: 28px;
    }

    .page-links-content {
        padding: 60px 0px;
    }

    .page-links-content h2 {
        font-size: 22px;
    }

    .page-links-banks-wrapper {
        grid-template-columns: 1fr;
    }

    /* تعديلات السلايدر */
    .page-about-testimonial-slider {
        height: 500px;
        margin-top: -50px;
    }

    .page-about-testimonial-content {
        padding: 0 10px;
    }
}

/* الاضافات الاخيرة */

.layout-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: var(--text-xl);
    animation: layou-bounce 2s infinite;
    cursor: pointer;
}

@keyframes layou-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* أنماط الاستجابة */
@media (max-width: 992px) {


    .layout-hero h1 {
        font-size: var(--text-xxl);
    }

    .layout-hero p {
        font-size: var(--text-md);
    }
}

@media (max-width: 768px) {


    .layout-hero h1 {
        font-size: var(--text-xl);
    }

}

@media (max-width: 576px) {


    .layout-hero h1 {
        font-size: var(--text-lg);
    }

    .layout-hero p {
        font-size: var(--text-base);
    }
}

.layout-hero {
    padding-bottom: 7px;
    padding-top: 0px;
    position: relative;
}

.layout-hero img {
    height: 30vw;
    width: 100%;
}

.page-main-container {
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.page-section {
    padding: var(--space-xl) 0px;
}

.page-section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
}

.page-section-subtitle {
    display: inline-block;
    color: var(--color-accent);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: visible;
}

.page-section-title {
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.page-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* تصميم الحاوية المربعة */
.page-service-box {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    aspect-ratio: 1/1;
    max-width: 30%;
    margin: 20px 0px;
}

/* الصورة المربعة مع هوامش */
.page-service-img-container {
    /* height: 70%; */
    overflow: hidden;
    margin: var(--space-xs);
    border-radius: var(--radius-sm);
    margin: 0px;
}

.page-service-box img {
    width: fit-content;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-service-box:hover img {
    transform: scale(1.05);
}

/* هوامش للنصوص */
.page-service-content {
    padding: var(--space-sm);
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px var(--space-xs);
}

.page-service-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    text-align: center;
    padding: 0 var(--space-xs);
}

.page-service-description {
    color: var(--color-text-light);
    font-size: var(--text-base);
    text-align: center;
    line-height: 1.4;
    margin: 0 var(--space-xs);
    padding: 0 var(--space-xs);
}

.page-service-box,
.page-stat-number {
    border-color: var(--color-accent);
}

/* تأثيرات التحويم */
.page-service-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

/* قسم الإحصائيات */
.page-stats-section {
    background-color: var(--color-stats-bg);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.page-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);

    margin: 0 auto;
}

.page-stat-box {
    border: 2px solid white;
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    text-align: center;
    transition: all 0.3s ease;
    color: white;
}

.page-stat-number {
    font-size: var(--text-xxl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    position: relative;
    display: inline-block;
}

.page-stat-number span {
    font-size: var(--text-xl);
    color: var(--color-accent);
    margin-left: 5px;
}

.page-stat-title {
    font-size: var(--text-md);
    color: var(--color-white);
    font-weight: 600;
}

@media (max-width: 992px) {

    .page-services-grid,
    .page-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 0px;
    }

    .page-service-box {
        max-width: 240px;
    }

    .page-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .page-services-grid,
    .page-stats-grid {
        gap: var(--space-sm);
    }

    .page-stats-grid {
        grid-template-columns: 1fr;
    }

    .page-service-box {
        max-width: 100%;
        aspect-ratio: 1/1.2;
    }

    .page-service-img-container {
        height: 55%;
    }

    .page-service-content {
        height: 45%;
    }

    .page-section-title,
    .page-section-subtitle {
        white-space: normal;
    }
}


/* قسم التواصل مع تأثيرات الشفافية */
.projects2,
.stats {

    background: linear-gradient(rgba(0, 106, 128, 0.7), rgba(0, 85, 97, 0.95)),
        url('../cover2.jpeg') center/cover;
    background-attachment: fixed;

}

/* تأثير الهوفر - تكبير الصورة مع تأثيرات إضافية */
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-image {
    transform: scale(1.1);
    filter: brightness(1);
}

/* تأثير طبقة شفافة فوق الصورة */
.project-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover .project-image-container::before {
    opacity: 1;
}

/* تأثير ضوء يمر فوق الصورة */
.project-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-image-container::after {
    left: 100%;
}

/* تحسين ظهور معلومات المشروع */
.project-info {
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(-5px);
}

/* أنيميشن تكبير الصور عند الهوفر */
.page-links-bank-box {
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.4s ease-in-out;
    position: relative;
    width: 24%;

}


.page-links-bank-box a {
    display: block;
    overflow: hidden;
}

.page-links-bank-box img {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: auto;
    filter: grayscale(0.2);
}

.page-links-bank-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-links-bank-box:hover img {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* تأثير إضافي جماعي عند الهوفر */
.page-links-banks-wrapper:hover .page-links-bank-box:not(:hover) {
    opacity: 0.7;
    transform: scale(0.95);
}

/* تأثير ضوء خفيف عند الهوفر */
.page-links-bank-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease-in-out;
    z-index: 1;
}

/* تنسيق عام لأيقونات السوشال */
.nav-social a i,
.dropdown-menu-social a i {
    font-size: 20px;
    transition: all 0.4s ease;
}

/* تأثير عند المرور */
.nav-social a:hover i,
.dropdown-menu-social a:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--color-primary);
}


.projects-video .container .section-title {
    margin-top: 0px;
}

/* تحسينات قسم الشركاء */
.partners-section {
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.partners-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-header {
    text-align: center;
    margin-bottom: 40px;
}

.partners-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
}

.partners-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.partners-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
    font-family: var(--font-secondary);
    padding: 0 var(--space-md)
}

.partners-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    gap: 30px;
    animation: scrollPartners 30s linear infinite;
    padding: 20px 0;
}

.partner-slide {
    flex: 0 0 auto;
    width: 250px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 106, 128, 0.1);
}

.partner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.partner-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.partner-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 8 - 30px * 7));
    }
}

/* إخفاء سهم التمرير في الشاشات الصغيرة */
@media (max-width: 768px) {
    .layout-scroll-down {
        display: none !important;

    }

    .layout-hero img {
        height: 40vw;
        width: 100%;
    }
}



/* جديد جديد  */


@media (max-width: 768px) {
    .page-content {
        flex-direction: column;
    }

    .page-images-grid {
        order: 1;
        /* تظهر أولًا */
    }

    .page-text-area {
        order: 2;
        /* بعدها النص */
    }
}










/* ==========================================================
           Contact Bar (WhatsApp + Call) - Elegant/Official
           Desktop: Right side bar + toggle arrow
           Mobile : Bottom bar full width (clean, not broken)
           RTL-friendly + safe-area + reduced motion support
        =========================================================== */


/* =========================
           Contact Bar (Desktop)
        ========================= */
.contact-bar {
    position: fixed;
    z-index: 9999;

    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);

    width: var(--bar-w);
    border-radius: var(--cb-radius);
    overflow: hidden;

    background: linear-gradient(180deg, var(--cb-panel), var(--cb-panel2));
    border: 1px solid var(--cb-border);
    box-shadow: var(--cb-shadow);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;

    opacity: 0;
    transform: translateY(-50%) translateX(18px);
    animation: cbEnter 700ms var(--ease) 350ms forwards;
}

@keyframes cbEnter {
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.contact-bar__toggle {
    width: 100%;
    height: var(--toggle-h);
    border: 0;
    cursor: pointer;

    background: rgba(15, 20, 24, .95);
    color: #fff;

    display: grid;
    place-items: center;

    transition: background var(--dur) var(--ease);
}

.contact-bar__toggle:hover {
    background: rgba(0, 0, 0, .92);
}

.contact-bar__toggle i {
    font-size: 14px;
    transition: transform var(--dur) var(--ease);
}

.contact-bar__actions {
    display: flex;
    flex-direction: column;
}

.contact-btn {
    width: 100%;
    height: var(--btn-h);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #fff;
    text-decoration: none;

    border-top: 1px solid rgba(255, 255, 255, .16);

    position: relative;
    isolation: isolate;

    transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), background var(--dur) var(--ease);
}

.contact-btn i {
    font-size: 22px;
    transition: transform var(--dur) var(--ease);
}

.contact-btn span {
    display: none;
}

.contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(140px 60px at 50% 25%, rgba(255, 255, 255, .18), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    z-index: -1;
}

.contact-btn:hover::after {
    opacity: 1;
}

.contact-btn:hover i {
    transform: scale(1.08);
}

.contact-btn:active {
    transform: scale(.98);
}

.contact-btn--wa {
    background: var(--wa);
}

.contact-btn--wa:hover {
    background: var(--wa-hover);
    filter: drop-shadow(0 14px 22px rgba(37, 211, 102, .22));
}

.contact-btn--call {
    background: var(--call);
}

.contact-btn--call:hover {
    background: var(--call-hover);
    filter: drop-shadow(0 14px 22px rgba(11, 90, 106, .22));
}

/* إغلاق: يظهر السهم فقط */
.contact-bar[data-state="closed"] .contact-bar__actions {
    max-height: 0;
    overflow: hidden;
}

.contact-bar[data-state="closed"] .contact-bar__toggle i {
    transform: rotate(180deg);
}

.contact-bar__toggle:focus-visible,
.contact-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .35);
    outline-offset: -3px;
}

/* =========================
           Mobile Bottom Bar
        ========================= */
@media (max-width: 768px) {
    .contact-bar {
        top: auto;
        bottom: 0;

        inset-inline-start: 0;
        inset-inline-end: 0;

        width: 100%;
        border-radius: 0;
        border-left: 0;
        border-right: 0;

        flex-direction: row;

        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);

        opacity: 0;
        transform: translateY(14px);
        animation: cbEnterMobile 650ms var(--ease) 250ms forwards;
    }

    @keyframes cbEnterMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .contact-bar__toggle {
        display: none;
    }

    .contact-bar__actions {
        flex-direction: row;
        width: 100%;
        height: 64px;
    }

    .contact-btn {
        width: 50%;
        height: 64px;
        border-top: 0;

        justify-content: center;
        gap: 10px;
    }

    .contact-btn--call {
        border-left: 1px solid rgba(255, 255, 255, .18);
    }

    .contact-btn i {
        font-size: 20px;
    }

    .contact-btn span {
        display: inline;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .contact-bar,
    .contact-bar * {
        animation: none !important;
        transition: none !important;
    }

    .contact-bar {
        opacity: 1 !important;
        transform: translateY(-50%) !important;
    }

    @media (max-width: 768px) {
        .contact-bar {
            transform: none !important;
        }
    }
}

/* =========================
           Back To Top - fixed & not overlapping
        ========================= */
#backToTop {
    position: fixed;
    z-index: 9998;

    inset-inline-end: 16px;
    bottom: 26px;

    width: 46px;
    height: 46px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .16);

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;

    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

#backToTop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 14px);
    }
}
