/* Website design, writing and programming : Moaaz Shaaban Insta: https://www.instagram.com/moaaz_shaaban49?igsh=MTA0NmpwcTV2bmh2bA== */

/* General Styles */
:root {
    /* Main Color Palette: Purple & White */
    --primary-color: #6a0dad; /* Deep Purple - Based on the logo */
    --secondary-color: #e0b0ff; /* Light Lavender - for accents */
    --text-dark: #333; /* Default dark text, can be adjusted to dark purple */
    --text-light: #ffffffd3; /* White text */
    --background-light: #ffffff; /* White backgrounds */
    --background-dark: #f8f8f8; /* Very light grey for contrasting sections, instead of dark blue-gray */
    --header-background: #e0e0e0; /* Header */
    --border-color: #eee;
    --hover-effect: 0.3s ease;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

html, body {
    scroll-padding-top: 90px; /* يجب أن تكون بنفس ارتفاع شريط التنقل */
    margin: 0;
    padding: 0;
    width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    direction: rtl; /* Ensure right-to-left direction for Arabic */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Unified & Corrected Button Styles - هذا هو التعريف الوحيد والنهائي لـ .btn */
.btn {
    display: inline-flex; /* مهم جداً لجعل الأيقونة والنص متجاورين */
    align-items: center; /* توسيط عمودي للأيقونة والنص */
    justify-content: center; /* توسيط أفقي للمحتوى داخل الزر */
    padding: 15px 30px; /* ضبط الحجم والتباعد الداخلي للزر */
    border-radius: 10px; /* حواف دائرية أكثر كما في الصورة */
    font-weight: bold;
    font-size: 18px; /* حجم خط الزر */
    text-decoration: none;
    cursor: pointer;
    border: none; /* الأزرار ليس لها حدود افتراضية */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* ظل افتراضي للأزرار */
}

/* Specific styles for Primary Button (General use, but overridden by specific hero buttons) */
.btn-primary {
    background-color: var(--primary-color); /* Default primary button color (purple) */
    color: var(--text-light);
    border: 2px solid var(--primary-color); /* Added for consistency, though hero buttons have no border */
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}


.section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
}

.intro-text {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 0px;
    line-height: 1.8;
    color: #555;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.4); /* أبيض شفاف بنسبة 50% */
    box-shadow: 0 2px 10px var(--shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px; /* Adjust logo size */
    width: auto;
}

.navbar .nav-links {
    display: flex;
}

.navbar .nav-links li {
    margin-left: 12px;
}

.navbar .nav-links a {
    color: var(--primary-color);
    font-weight: bold;
    padding:  0;
    position: relative;
    transition: color var(--hover-effect);
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--hover-effect);
}

.navbar .nav-links a:hover {
    color: var(--secondary-color);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
    display: flex;
    width: 100%;
}

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
}

.header-mobile-contact-btn {
    display: none;
    margin-right: 15px;
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Dropdown under "من نحن" - cloud style */
.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.dropdown-caret { font-size: 0.9em; transition: transform 0.3s ease; }

/* Desktop: show on hover as floating "cloud" */
.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0; /* RTL: menu aligns to the right of parent */
  background: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 12px;
  min-width: 220px;
  z-index: 1200;
  
}
.dropdown .dropdown-menu li { margin: 6px 0; }
.dropdown .dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dark);
  font-weight: 600;
}
.dropdown .dropdown-menu a:hover {
  background: var(--secondary-color);
  color: #fff;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown:hover .dropdown-caret { transform: rotate(180deg); }

/* Mobile behavior: inline menu inside the nav (opened by JS toggle) */
@media (max-width: 992px) {
  .dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: auto;
    display: none; /* will be shown by .open class */
  }
  .dropdown .dropdown-menu li a {
    background: var(--background-light);
    margin: 6px 20px;
    padding: 12px;
    border-radius: 8px;
  }
  .dropdown .dropdown-menu.open {
    display: block;
  }
  /* caret rotate when open on mobile */
  .dropdown .dropdown-toggle.open .dropdown-caret {
    transform: rotate(180deg);
  }
}



/* Hero Section - هذا هو التعريف الموحد والنهائي لقسم الـ Hero */
.hero {
    /* الصورة الخلفية مع Overlay شفاف لضمان وضوح النص */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Import.jpg') no-repeat center center/cover;
    /* تأكد من أن 'Import.jpg' هو المسار الصحيح لصورة الخلفية */

    color: var(--text-light); /* لون النص أبيض */
    padding: 100px 0; /* مسافة داخلية علوية وسفلية */
    text-align: center; /* توسيط المحتوى النصي */
    position: relative;
    z-index: 10; /* لضمان أن المحتوى يظهر فوق الخلفية */
    height: 100vh; /* اجعل القسم يملأ ارتفاع الشاشة */
    display: flex; /* لتمكين توسيط المحتوى عمودياً */
    align-items: center; /* توسيط المحتوى عمودياً */
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط أفقي للمحتوى داخل الكونتينر */
    justify-content: center; /* توسيط عمودي للمحتوى داخل الكونتينر */
    gap: 40px; /* مسافة بين العناصر (مثل h1 والفيديو) */
    width: 100%; /* تأكد من أن الكونتينر يأخذ العرض الكامل المتاح */
}

.hero-content {
    max-width: 800px; /* تحديد أقصى عرض لمحتوى النص */
    width: 100%; /* ليأخذ العرض المتاح ضمن الـ max-width */
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-light); /* لون أبيض لعنوان H1 */
    font-weight: bold; /* تأكد من أنه bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* ظل لزيادة الوضوح */
}

/* Styles for the new text elements (متحدون لنصنع الفرق و United to make a Difference) */
.hero-content .sub-title {
    font-size: 30px; /* حجم كبير للعنوان العربي */
    color: rgba(255, 255, 255, 0.782);
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .english-slogan {
    font-size: 24px; /* حجم مناسب للعبارة الإنجليزية */
    color: rgba(255, 255, 255, 0.8); /* لون أفتح قليلاً */
    margin-top: 0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Styles for the buttons container */
.hero-actions {
    display: flex; /* لعرض الأزرار بجانب بعضها */
    justify-content: center; /* لمحاذاة الأزرار في المنتصف أفقياً */
    gap: 20px; /* مسافة بين الأزرار */
    margin-top: 40px; /* مسافة من العبارات السابقة */
}

/* Styles for "شاهد الفيديو" button (Play Icon) */
.btn-primary.watch-video-button {
    background-color: var(--primary-color); /* اللون الأزرق السماوي من الصورة */
    color: white;
    /* الخصائص الأخرى (display, align-items, justify-content, padding, etc.) موروثة من .btn العام */
}

.btn-primary.watch-video-button:hover {
    background-color: #5a0ca0; /* أزرق أغمق عند التمرير */
    transform: translateY(-3px); /* تأثير رفع بسيط */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.watch-video-button .play-icon { /* Style for the play icon inside the button */
    font-size: 22px; /* حجم الأيقونة */
    margin-right: 10px; /* مسافة بين الأيقونة والنص (لأن الأيقونة على اليمين والنص على اليسار في RTL) */
    /* إذا كانت الصفحة LTR وتريد الأيقونة على اليمين، فاستخدم margin-left */
}

/* Styles for "لنبدأ" button */
.btn-secondary.start-button {
    background-color: var(--primary-color); /* استخدام لون --primary-color (البنفسجي) */
    color: var(--text-light); /* نص أبيض */
    /* هذا يلغي الـ hover القديم لـ .btn-primary */
    border: none; /* تأكد أنه لا يوجد border من .btn-primary العام */
}

.btn-secondary.start-button:hover {
    background-color: #5a0ca0; /* بنفسجي أغمق عند التمرير */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Hero Video Placeholder (إذا كان لديك فيديو في قسم الهيرو نفسه) */
.hero-video-placeholder {
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.3); /* خلفية شبه شفافة للمتطلب */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    /* إذا كنت تريد إظهار الفيديو في هذا المكان بالخلفية، تأكد من وضع عنصر <video> هنا في الـ HTML */
}
.hero-video-placeholder video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* لتوافق مع الحاوية */
}


/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: var(--background-light); /* White */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.about-text {
    flex: 2;
    min-width: 300px;
    line-height: 1.8;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05em;
}

.about-text .quote {
    font-style: italic;
    font-weight: bold;
    color: var(--secondary-color);
    border-right: 5px solid var(--primary-color);
    padding-right: 15px;
    margin-top: 30px;
    font-size: 1.1em;
}

.values-grid, .vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.value-item, .vision, .mission {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    transition: transform var(--hover-effect), box-shadow var(--hover-effect);
}

.value-item:hover, .vision:hover, .mission:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.value-item i, .vision i, .mission i {
    font-size: 3em;
    color: var(--primary-color); /* Primary color for icons */
    margin-bottom: 15px;
}

.value-item h4, .vision h4, .mission h4 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.value-item p, .vision p, .mission p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.7;
}

.values-grid-image {
    max-width: 70%;
    height: auto;
    margin: 50px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Counts Section */
.counts-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    text-align: center;
}

.counts-section .section-title {
    color: var(--primary-color);
}

.counts-section .section-title::after {
    background-color: var(--secondary-color);
}

.counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.count-item {
    background-color: var(--background-light);
    padding: 35px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.count-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.count-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.count-item .count-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.count-item .count-label {
    font-size: 1.2em;
    color: #555;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-dark);
}

.services .section-title {
    color: var(--primary-color);
}

.services .section-title::after {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform var(--hover-effect), background-color var(--hover-effect);
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-10px);
    background-color: #f9f9f9;
}

.service-item i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-item p {
    color: #555;
    line-height: 1.7;
}

/* Why Eleva Section */
.why-eleva {
    padding: 80px 0;
    background-color: var(--background-light);
}

.why-eleva-content {
    max-width: 900px;
    margin: 0 auto;
}

.reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.reason-item {
    background-color: #f0e6fa;
    padding: 25px;
    border-right: 5px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: transform var(--hover-effect), box-shadow var(--hover-effect);
}

.reason-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.reason-item i {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-left: 20px;
}

.reason-item p {
    font-size: 1.1em;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* قسم SMA */
.sma-section {
    padding: 200px 0;
    background-image: url('SMABackground.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* طبقة داكنة شفافة (overlay) فوق الصورة الخلفية */
.sma-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.sma-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.sma-logo-quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sma-logo {
    width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 4px solid #6a0dad;
    background-color: white;
    padding: 5px;
    margin-bottom: 0px;
}

/* تنسيق كلمة SMA تحت اللوجو */
.sma-tagline {
    font-size: 1.5em;
    font-weight: bold;
    color:#2641a0;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.quote-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

/* تنسيق علامات الاقتباس */
.quote-icon {
    position: absolute;
    font-size: 4em;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.top-quote {
    top: -30px;
    left: 0;
    transform: rotate(180deg);
    text-align: right;
    left: auto;
    right: 0;
}

.bottom-quote {
    bottom: -30px;
    right: 0;
    text-align: left;
    right: auto;
    left: 0;
}

/* تعديل موقع علامات الاقتباس ليتناسب مع RTL */
body[dir="rtl"] .top-quote {
    left: auto;
    right: 0;
    transform: rotate(0deg);
}

body[dir="rtl"] .bottom-quote {
    right: auto;
    left: 0;
    transform: rotate(0deg);
}

.quote-text {
    position: relative;
}

.stars {
    font-size: 1.5em;
    color: #FFD700;
    margin-top: 10px;
    display: flex;
    gap: 5px;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.team-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.team-main-photo {
    text-align: center;
    max-width: 900px;
}

.team-group-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    margin-bottom: 25px;
}

.team-main-photo p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

.member-card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    padding: 30px;
    transition: transform var(--hover-effect), box-shadow var(--hover-effect);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.member-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-card p {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* Achievements Section */
.achievements {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.achievements .section-title {
    color: var(--text-light);
}

.achievements .section-title::after {
    background-color: var(--secondary-color);
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color var(--hover-effect), transform var(--hover-effect);
}

.achievement-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.achievement-item p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-light);
}

/* CEO Message Section */
.ceo-message {
    padding: 80px 0;
    background-color: var(--background-light);
}

.ceo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ceo-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #6a0dad;
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.ceo-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.ceo-signature {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.2em;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact .section-title {
    color: var(--text-light);
}

.contact .section-title::after {
    background-color: var(--secondary-color);
}

.contact .intro-text {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-bottom: 60px;
}

.contact-info, .contact-form-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form-container h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.contact-info p i {
    margin-left: 15px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

.contact-info p a {
    color: var(--text-light);
    transition: color var(--hover-effect);
}

.contact-info p a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color var(--hover-effect), transform var(--hover-effect);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: var(--text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1em;
    transition: border-color var(--hover-effect), background-color var(--hover-effect);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1em;
}

.map-placeholder {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    text-align: center;
    padding: 20px;
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.map-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.map-placeholder p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: right;
}

.footer-col h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: color var(--hover-effect);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.footer-col .social-icons {
    margin-top: 20px;
}

.footer-col .social-icons a {
    color: var(--text-light);
    font-size: 1.5em;
    margin-left: 15px;
    transition: color var(--hover-effect), transform var(--hover-effect);
}

.footer-col .social-icons a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* New Styles for Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.products-section .section-subtitle {
    margin-top: 80px; /* Adjust spacing for sub-titles */
    margin-bottom: 40px;
}

.product-category-description {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: #555;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-item {
    background-color: var(--background-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.product-item img {
    width: 100%;
    /* Removed fixed height to allow natural scaling */
    max-height: 250px; /* Set a max-height to prevent images from becoming too large */
    object-fit: contain; /* Ensures the entire image is visible, scaling down if necessary */
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 10px; /* Add some padding around the image inside its container */
}

.product-item h4 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-item ul {
    text-align: right; /* Align list items to the right for RTL */
    padding-right: 0; /* Remove default padding */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow list to take available space */
}

.product-item ul li {
    display: flex;
    align-items: flex-start; /* Align icon and text at the start */
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

.product-item ul li i {
    color: var(--primary-color);
    margin-left: 10px; /* Space between icon and text for RTL */
    font-size: 1.1em;
    margin-top: 3px; /* Adjust vertical alignment for icon */
}


/* Responsive Design */
@media (max-width: 992px) {
    .header .container {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 0;
    }

    .navbar {
      position: relative;
    }

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: var(--header-background);
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        box-shadow: 0 8px 15px var(--shadow-light);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }

    .navbar .nav-links.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .navbar .nav-links li {
        margin: 10px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .navbar .nav-links li:last-child {
        border-bottom: none;
    }

    .navbar .nav-links a::after {
        display: none;
    }

    .hamburger-menu {
        display: block;
        margin-right: 20px;
    }
    .header-mobile-contact-btn {
        display: block;
        margin-right: 0;
        font-size: 0.85em;
        width: auto;
        max-width: 120px;
        white-space: nowrap;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        height: 70px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: 0;
    }

    .about-text {
        min-width: unset;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .member-card {
        padding: 20px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info, .contact-form-container {
        min-width: unset;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-col .social-icons a {
        margin: 0 10px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 50px;
    }

    .hero {
        padding: 80px 0;
        height: auto; /* Allow height to adjust on smaller screens */
        min-height: 400px; /* Ensure a minimum height */
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content h2 { /* .sub-title */
        font-size: 1.6em;
    }

    .hero-content p { /* .english-slogan */
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .about-us, .services, .why-eleva, .team, .achievements, .ceo-message, .contact, .products-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8em;
    }

    .value-item, .vision, .mission, .service-item, .achievement-item, .reason-item {
        padding: 25px;
    }

    .value-item i, .vision i, .mission i, .service-item i, .achievement-item i {
        font-size: 2.5em;
    }

    .values-grid-image {
        max-width: 90%;
    }

    .contact-info p {
        font-size: 1em;
    }

    .contact-info p i {
        font-size: 1em;
    }

   

    .hero-actions {
        gap: 10px;
    }

    .btn {
        width: 70%; /* Make buttons wider on small screens */
        margin: 0 auto; /* Center buttons horizontally when stacked */
        padding: 12px 25px;
        font-size: 16px;
    }



    .product-item img {
        height: auto; /* Allow natural height */
        max-height: 180px; /* Adjust max-height for smaller screens */
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .logo img {
        height: 55px;
    }

    .hamburger-menu {
        font-size: 1.5em;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content h2 { /* .sub-title */
        font-size: 1.4em;
    }

    .hero-content p { /* .english-slogan */
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-subtitle {
        font-size: 1.5em;
    }

    .intro-text {
        font-size: 0.9em;
    }

    .about-text h3 {
        font-size: 1.5em;
    }

    .about-text p {
        font-size: 0.9em;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .contact-form label,
    .contact-form input,
    .contact-form textarea,
    .contact-form .btn-primary {
        font-size: 0.95em;
    }

    .product-item img {
        height: auto; /* Allow natural height */
        max-height: 150px; /* Further adjust max-height for very small screens */
    }
}



/* Global Expansion Section */
.global-expansion {
    background-color: var(--background-dark);
    padding-top: 80px;
    padding-bottom: 80px;
}

.branch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-light);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
}

.branch-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.branch-details {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-details h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.branch-details p {
    font-size: 1.1em;
    margin-bottom: 15px;
    max-width: 600px;
}

.branch-details i {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-left: 10px;
}

/*float*/
/* زر واتساب */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* زر إنستغرام */
.instagram-float {
    position: fixed;
    bottom: 100px; /* فوق الواتساب */
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8em;
    background-color: #d62976;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.instagram-float:hover {
    transform: scale(1.1);
    background-color: #b31e5c;
}

.instagram-float i {
    font-size: 28px;
}

/* زر تيك توك */
.tiktok-float {
    position: fixed;
    bottom: 170px; /* فوق الإنستغرام */
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8em;
    background-color: #000000;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tiktok-float:hover {
    transform: scale(1.1);
    background-color: #ff0050; /* لون عند المرور */
}

.tiktok-float i {
    font-size: 28px;
}
/* زر فيسبوك */
.facebook-float {
    position: fixed;
    bottom: 240px; /* فوق تيك توك */
    left: 20px;
    background-color: #1877f2; /* اللون الرسمي لفيسبوك */
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.facebook-float:hover {
    transform: scale(1.1);
    background-color: #145dbf; /* أزرق غامق عند المرور */
}

.facebook-float i {
    font-size: 26px;
}

.nav-links .dropdown-menu {
    
    /* التعديلات هنا */
    padding-top: 10px; /* هذا السطر الجديد */
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in, transform 0.3s ease-in, padding-top 0.3s ease-in; /* هذا السطر المعدّل */
}
.nav-links .dropdown {
    padding-bottom: 15px; /* إضافة مساحة سفلية لمنطقة الهوفر */
}

.nav-links .dropdown-menu {
    margin-top: -20px; /* سحب القائمة للأعلى لتغطية المساحة المضافة */
}
/* قائمة الموبايل */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px; /* تحت الهيدر */
    right: 0;
    width: 100%;
    background: var(--background-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex; /* تظهر القائمة لما يصير عندها active */
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .hamburger-menu {
    display: block; /* تظهر أيقونة الهامبرغر على الموبايل */
  }
}
/* 📱 تعديل قائمة الموبايل */
.navbar {
  position: relative; /* ضروري حتى تثبت القائمة تحت الهيدر */
}

@media (max-width: 992px) {
  .navbar .nav-links {
    flex-direction: column;
    background: var(--background-light);
    position: absolute;
    top: 80px; /* تحت الهيدر */
    right: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    z-index: 999;
  }

  /* تظهر القائمة لما ياخد الكلاس active من الجافاسكربت */
  .navbar .nav-links.active {
    display: flex;
  }

  .navbar .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .hamburger-menu {
    display: block; /* تظهر أيقونة الهامبرغر على الموبايل */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
  }
}

/* 📱 ترتيب عناصر الهيدر في الموبايل */
@media (max-width: 992px) {
  .header .container {
    display: flex;
    justify-content: space-between; /* توزيع العناصر يمين ويسار */
    align-items: center;
  }

  /* نخلي اللوجو والهمبرغر على خط واحد */
  .logo {
    flex: 1;
  }

  .logo img {
    height: 50px; /* تصغير شوي ليكون أنسب للموبايل */
    width: auto;
  }

  .hamburger-menu {
    margin-left: 200px; /* مسافة صغيرة عن حافة الشاشة */
  }

  /* نخفي زر تواصل الآن على الموبايل (اختياري) */
  .header-mobile-contact-btn {
    display: none !important;
  }
}
/* 📱 خلفية شفافة للقائمة على الموبايل */
@media (max-width: 992px) {
  .navbar .nav-links {
    background: rgba(255, 255, 255, 0.9); /* أبيض شبه شفاف */
    backdrop-filter: blur(6px); /* ضبابية خفيفة تعطي شكل حديث */
  }
}


/* إضافة المساحة القابلة للنقر وتأثير hover */
.nav-links a {
  display: block;
  padding: 10px 20px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  transform: scale(1.05);
  background: rgba(0,0,0,0.05);
}

.lang-float {
    position: fixed;
    bottom: 20px;        /* ثابت تحت */
    width: 55px;
    height: 55px;
  background-color: #003366;
  color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.lang-float:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}
.lang-float {
    right: 20px;
    left: auto;
}

@keyframes fadeInLeftFixed {
  from {
    opacity: 0;
    transform: translateX(-50px); /* يبدأ من اليسار */
  }
  to {
    opacity: 1;
    transform: translateX(0); /* يرجع لمكانه الطبيعي */
  }
}

.whatsapp-float {
  animation: fadeInLeftFixed 0.8s ease-out; /* شغل الأنيميشن مرة عند اللود */
}

.facebook-float {
  animation: fadeInLeftFixed 0.8s ease-out; /* شغل الأنيميشن مرة عند اللود */
}

.tiktok-float {
  animation: fadeInLeftFixed 0.8s ease-out; /* شغل الأنيميشن مرة عند اللود */
}

.instagram-float {
  animation: fadeInLeftFixed 0.8s ease-out; /* شغل الأنيميشن مرة عند اللود */
}

@keyframes langFromRight {
  0% {
    opacity: 0;
    transform: translateX(80px) scale(0.5);
  }
  70% {
    opacity: 1;
    transform: translateX(-10px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pulseLang {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.lang-float {
  animation: langFromRight 1s ease-out, pulseLang 3s infinite ease-in-out;
  animation-delay: 0s, 1s; /* دخول أول → بعدها يبدأ النبض */
}
