/* الأساسيات */
:root {
    --primary-color: #29454A;
    --secondary-color: #D9A679;
    --accent-color: #3D6B73;
    --text-color: #29454A;
    --light-bg: #f9f9f9;
    --gold-color: #D4AF37;
    --section-padding: 40px;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* خلفية متحركة للعمارات مع تدرج لوني */
.building-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: linear-gradient(135deg, rgba(41, 69, 74, 0.2) 0%, rgba(217, 166, 121, 0.1) 100%), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    animation: buildingSlide 80s linear infinite;
}

@keyframes buildingSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* شعار الشركة مع تأثيرات محسنة */
.company-logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px 0;
    position: relative;
}

.company-logo::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.company-logo img {
    max-width: 350px;
    height: auto;
    max-height: 150px;
    transition: all 0.3s ease;
    /* إزالة جميع التأثيرات */
    filter: none;
    box-shadow: none;
    animation: none;
}

.company-logo img:hover {
    /* تأثير التكبير والارتفاع فقط */
    transform: scale(1.05) translateY(-5px);
}

/* تصميم القائمة الرئيسية مع تأثيرات متطورة */
.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.main-btn {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 20px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(41, 69, 74, 0.3);
    min-width: 220px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--secondary-color), #e8b786);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-btn:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(217, 166, 121, 0.4);
}

.main-btn:hover::before {
    opacity: 1;
}

.main-btn i {
    margin-left: 8px;
    font-size: 20px;
}

/* تصميم أقسام نبذة عن الشركة - أزرار مصغرة بتأثيرات */
.about-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.section-btn {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(41, 69, 74, 0.2);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.section-btn:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 166, 121, 0.3);
}

.section-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.single-btn-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.single-btn {
    width: 35%;
    padding: 12px;
    font-size: 20px;
}
.section-btn i {
    margin-left: 8px; /* مسافة بين الأيقونة والنص */
    font-size: 20px; /* حجم مناسب للأيقونات */
}

/* محتوى الأقسام مع تصميم أنيق */
.content-section {
    display: none;
    padding: 25px 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(41, 69, 74, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(41, 69, 74, 0.05);
    position: relative;
    overflow: hidden;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.section-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    position: relative;
    padding-right: 15px;
}

.section-content h2::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--gold-color);
}

.section-content p.arabic {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: right;
    color: #333;
}

.section-content p.english {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    text-align: left;
    direction: ltr;
    border-top: 1px dashed var(--secondary-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* تصميم الأفرع والكوارد مع بطاقات متطورة */
.branch-card, .staff-card, .contact-card {  
    background-color: white;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    border-right: 4px solid var(--secondary-color);
    transition: all 0.4s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.branch-card::before, .staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 69, 74, 0.03) 0%, rgba(217, 166, 121, 0.03) 100%);
    z-index: 0;
}
.branch-card:hover::before {
    background: linear-gradient(135deg, rgba(41, 69, 74, 0.06), rgba(217, 166, 121, 0.06));
}
.branch-card h3, .staff-card h3 {
    font-size: 24px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .branches-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .branch-card {
        padding: 15px;
    }
}

.branch-card:hover, .staff-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-right-color: var(--gold-color);
}

.branch-card h3, .staff-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 22px;
    position: relative;
    display: inline-block;
}

.branch-card h3::after, .staff-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--secondary-color);
}

.branch-card p, .staff-card p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.branch-card i, .staff-card i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}
@media (max-width: 600px) {
    .branches-wrapper {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .branch-card {
        padding: 15px;
        margin: 10px 0;
        border-radius: 6px;
    }

    .branch-card h3 {
        font-size: 18px;
    }

    .branch-card p {
        font-size: 14px;
        gap: 8px;
    }

    .map-container iframe {
        height: 200px; /* تقليل ارتفاع الخريطة */
    }

    .map-container {
        margin-top: 10px;
        border-radius: 6px;
    }

    .back-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* تأكد من وجود هذه الأنماط في ملف CSS */
.branches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.branch-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
    pointer-events: auto; /* تأكد من أن الخريطة قابلة للتفاعل */
}

/* إصلاح مشكلة z-index */
.content-section {
    position: relative;
    z-index: 1;
}

/* معرض الوثائق بتصميم معاصر */
.document-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.document-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 250px;
    cursor: zoom-in;
}

.document-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.document-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.document-item:hover .document-img {
    transform: scale(1.05);
}

.document-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(41, 69, 74, 0.9);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-icon {
    color: white;
    font-size: 14px;
    margin-left: 8px;
    transition: all 0.3s;
}

.download-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* كوادر الشركة بتصميم عصري */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    justify-content: center;
}


.staff-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin: 0 auto 15px;
    display: block;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-card {
    width: 180px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 15px;
    background-color: white;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--gold-color);
}

.staff-card h3 {
    color: var(--primary-color);
    margin: 0 auto 10px;
    font-size: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.staff-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%; /* يغطي عرض الاسم بالكامل */
    height: 2px;
    background: var(--secondary-color);
}

.staff-card p {
    display: block;
    text-align: center;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
}

.staff-card {
    width: 180px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 15px;
    background-color: white;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--gold-color);
}

/* وسائل التواصل بتصميم جذاب */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(41, 69, 74, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--secondary-color), #e8b786);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(217, 166, 121, 0.4);
}

.social-icon:hover::before {
    opacity: 1;
}

/* نموذج الاتصال بتصميم متكامل */
.contact-form {
    margin-top: 35px;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 166, 121, 0.2);
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(41, 69, 74, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--secondary-color), #e8b786);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form button:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 166, 121, 0.4);
}

.contact-form button:hover::before {
    opacity: 1;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 17px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 25px;
    text-align: center;
    font-size: 20px;
}

/* أنماط قسم اتصل بنا */
.contact-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-branch {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-branch h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
}

.contact-info p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-numbers {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 20px 30px;
}

.phone-numbers li {
    margin-bottom: 8px;
    position: relative;
}

.phone-numbers li:before {
    content: "•";
    color: var(--secondary-color);
    font-size: 20px;
    position: absolute;
    left: -20px;
}

.social-contacts {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 5px;
}

.social-contact:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
}

.social-contact i {
    font-size: 20px;
}

.fa-whatsapp {
    color: #25D366;
}

.fa-telegram {
    color: #0088cc;
}

/* أضف هذا الكود في قسم media queries للهواتف */
@media (max-width: 768px) {
    .contact-info p {
      flex-direction: column; /* يعرض العناصر بشكل عمودي */
      align-items: flex-start; /* محاذاة لليمين */
      gap: 5px; /* تقليل المسافة بين العناصر */
    }
  
    .contact-info p strong {
      display: block; /* يجعل العنوان في سطر منفصل */
      margin-bottom: 5px;
    }
  
    /* خاص بالبريد الإلكتروني */
    .contact-info p:has(i.fa-envelope) {
      word-break: break-all; /* يكسر النص الطويل */
      overflow-wrap: anywhere; /* يسمح بكسر الكلمات عند الحاجة */
      font-size: 14px; /* تصغير حجم الخط قليلاً */
      line-height: 1.5; /* زيادة تباعد الأسطر */
    }
  
    .phone-numbers {
      margin-right: 15px; /* تعديل المسافة للقوائم */
    }
  }

@media (max-width: 768px) {
    .contact-branches {
        flex-direction: column;
    }
    
    .contact-branch {
        min-width: 100%;
    }
}

/* زر العودة بتصميم مميز */
.back-btn {
    background: linear-gradient(145deg, var(--secondary-color), #e8b786);
    color: var(--primary-color);
    border: none;
    padding: 15px 35px;
    border-radius: 6px;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    font-size: 18px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(217, 166, 121, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(41, 69, 74, 0.4);
}

.back-btn:hover::before {
    opacity: 1;
}

/* تصميم الجداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: rgba(217, 166, 121, 0.1);
}

/* تأثيرات للعناوين */
.title-highlight {
    color: var(--secondary-color);
    font-weight: 800;
}

/* تأثيرات Lightbox */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-height: 80vh;
    max-width: 90%;
    border: 3px solid var(--secondary-color);
    border-radius: 5px;
    object-fit: contain;
}

.lightbox-content p {
    color: white;
    font-size: 18px;
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Multi-document styles */
.multi-doc {
    height: auto;
}

.doc-images {
    position: relative;
    height: 180px;
}

.doc-images img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.doc-images img.active-doc {
    display: block;
}

.doc-pagination {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.doc-prev, .doc-next {
    background: rgba(41, 69, 74, 0.7);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.doc-counter {
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 14px;
}
.branch-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
  }
  
  .branch-map {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
  }
  
  .branch-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .branch-map h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .slider-container {
    max-width: 1000px;
    margin: 40px auto;
    position: relative;
}

.auto-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.slide-caption h3 {
    margin: 0;
    font-size: 1.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* أنماط معرض الصور */
.gallery-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 28px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0; /* تغيير من 50% إلى 0 لتبدأ من أقصى اليمين */
    width: 100%; /* عرض كامل بدلاً من 80px */
    height: 3px;
    background: var(--secondary-color);
    transform: none; /* إزالة التحويل السابق */
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.gallery-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.view-more {
    text-align: center;
    margin-top: 30px;
}

/* Lightbox أنماط */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#lightboxImage {
    max-height: 80vh;
    max-width: 90%;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.lightbox-caption {
    margin-top: 15px;
    color: white;
    font-size: 20px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.lightbox-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* أنماط الأقسام الرئيسية */
.categories-gallery {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    height: 100%;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: center;
}

.category-overlay h3 {
    margin: 0;
    font-size: clamp(16px, 2vw, 22px);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* تحسين النص في الأقسام الطويلة */
.category-overlay h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* تحسين التباين */
.category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .category-overlay {
        padding: 15px;
    }
    
    .category-overlay h3 {
        font-size: 18px;
    }
}

/* أنماط المعرض الداخلي */
.internal-gallery {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 28px;
    text-align: center;
    flex-grow: 1;
}

.internal-gallery .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.internal-gallery .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.internal-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* أنماط للجوّال */
@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .category-overlay h3 {
        font-size: 18px;
        padding: 15px;
    }
    
    .internal-gallery .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .gallery-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: 1fr;
    }
    
    .internal-gallery .gallery-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* تحسينات للجوّال */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-caption {
        padding: 15px;
        transform: translateY(0);
        background: rgba(0,0,0,0.7);
    }
    
    .gallery-caption h3 {
        font-size: 18px;
    }
    
    .gallery-caption p {
        font-size: 14px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* تصميم متجاوب للجوال */
@media (max-width: 992px) {
    .main-container {
        padding: 15px;
        margin: 20px 15px;
    }
    
    .company-logo img {
        max-width: 280px;
    }
    
    .main-btn {
        min-width: 180px;
        padding: 18px 15px;
        font-size: 16px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .document-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .projects-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .project-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-menu {
        gap: 15px;
    }
    
    .main-btn {
        min-width: 160px;
        padding: 15px 10px;
        font-size: 15px;
    }
    
    .about-sections {
        grid-template-columns: 1fr;
    }
    
    .single-btn {
        width: 80%;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .document-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .company-logo img {
        max-width: 220px;
    }
    
    .main-btn {
        min-width: 100%;
    }
    
    .section-btn {
        font-size: 16px;
        min-height: 60px;
    }
    
    .single-btn {
        width: 100%;
    }
    
    .section-content p.arabic {
        font-size: 16px;
    }
    
    .section-content h2 {
        font-size: 24px;
    }
    
    .document-gallery {
        grid-template-columns: 1fr;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .projects-title {
        font-size: 28px;
    }
    
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    
    .project-name {
        font-size: 20px;
    }
}
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 60px auto 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.fade {
    animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
    from { opacity: 0.4 }
    to { opacity: 1 }
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.slide {
    display: none;
    position: relative;
}
.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.document-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(41, 69, 74, 0.85);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 16px;
}
.fade {
    animation: fadeEffect 1s ease-in-out;
}
@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

.multi-image-doc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto; /* لا تجبرها على 300px */
}

.multi-image-doc img.document-img {
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    max-height: 300px;
}

/* حركة الظهور */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* حركة الاختفاء */
.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

/* تعريف الحركات */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* تأثيرات إضافية */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
/* أنيميشن للمعرض الداخلي */
.internal-gallery {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-gallery {
    transition: opacity 0.3s ease;
}

/* أنيميشن للعناصر الداخلية */
.gallery-item {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item.show {
    transform: scale(1);
    opacity: 1;
}

/* === تحسين التجاوب للأجهزة الصغيرة === */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }

    h1, h2, h3 {
        font-size: 20px;
        text-align: center;
    }

    p {
        font-size: 16px;
        text-align: center;
    }

    .main-btn {
        width: 100%;
        font-size: 16px;
        margin: 10px 0;
        padding: 12px;
    }

    .company-logo img {
        width: 80%;
        max-width: 200px;
        display: block;
        margin: 0 auto 20px auto;
    }

    .main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: 20px 10px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
/* أنماط فقرة المشاركة المحدثة */
.share-section {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--secondary-color);
    background: var(--primary-color);
}

.share-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="50" height="50" x="25" y="25" fill="rgba(217,166,121,0.05)" /></svg>');
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 0;
}

.share-container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.share-section h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.share-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--secondary-color);
    left: 50%;
    transform: translateX(-50%);
}

.share-section h3 i {
    margin-left: 15px;
    color: var(--secondary-color);
}

.share-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    min-height: 80px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.share-btn:hover::before {
    opacity: 1;
}

.share-btn i {
    font-size: 24px;
    margin-left: 10px;
    transition: all 0.3s ease;
    color: var(--gold-color);
}

.share-btn:hover i {
    transform: scale(1.2);
    color: white;
}

.share-btn span {
    flex-grow: 1;
}

/* ألوان الأزرار حسب المنصة مع تدرجات لونية */
.facebook { background: linear-gradient(135deg, #1877f2, #0d5fd3); }
.twitter { background: linear-gradient(135deg, #1da1f2, #0d8ecf); }
.linkedin { background: linear-gradient(135deg, #0077b5, #006097); }
.whatsapp { background: linear-gradient(135deg, #25d366, #1da851); }
.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.copy-link { background: linear-gradient(135deg, var(--secondary-color), #c58d5a); }

/* إشعار نسخ الرابط */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-notification.show {
    opacity: 1;
}

.copy-notification i {
    color: var(--secondary-color);
}
/* تصميم متجاوب */
@media (max-width: 992px) {
    .share-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .share-section {
        padding: 50px 15px;
    }

    .share-section h3 {
        font-size: 28px;
    }

    .share-section p {
        font-size: 16px;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .share-btn {
        padding: 15px;
        font-size: 15px;
    }

    .share-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px; /* مسافة بين الأزرار */
    }

    .share-btn {
        width: 90%;              /* جعل عرض الأزرار بنسبة 90% من المساحة */
        max-width: 350px;        /* تعيين أقصى عرض للزر */
        padding: 10px 12px;      /* تقليل الحشوة الداخلية */
        font-size: 14px;         /* تصغير حجم النص */
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;                /* مسافة بين الأيقونة والنص */
        margin: 0 auto;          /* توسيط الأزرار */
        border-radius: 5px;      /* إضافة حواف دائرية خفيفة */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* إضافة ظل خفيف */
    }

    .share-btn i {
        font-size: 20px;         /* إبقاء الأيقونات بحجمها الجميل */
    }

    .share-section h3 {
        font-size: 22px;
    }
}



#copyNotification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
    font-family: sans-serif;
}
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}
