/* --- المتغيرات الأساسية (Color Palette) --- */
:root {
    --bg-dark: #0f1418;          /* خلفية فحمية داكنة */
    --bg-card: rgba(255, 255, 255, 0.03); /* زجاجي للبطاقات */
    --primary-mint: #4affb0;     /* أخضر نعناعي مضيء */
    --emerald-deep: #008f5a;     /* زمردي عميق */
    --text-main: #ffffff;
    --text-muted: #9ba4b5;
    --border-color: rgba(74, 255, 176, 0.2);
}

/* --- الإعدادات العامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #172c24 0%, var(--bg-dark) 50%);
}

/* --- شريط التنقل (Navbar) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 20, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* --- الأزرار والتوهج (Buttons & Glow) --- */
.btn {
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-glow {
    border: 1px solid var(--primary-mint);
    color: var(--primary-mint);
    box-shadow: 0 0 10px rgba(74, 255, 176, 0.2);
}

.btn-outline-glow:hover {
    background: var(--primary-mint);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(74, 255, 176, 0.6);
}

.btn-primary-glow {
    background: var(--primary-mint);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(74, 255, 176, 0.5);
    border: none;
}

.btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(74, 255, 176, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

/* --- القسم الرئيسي (Hero Section) --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 10%;
    min-height: 70vh;
    position: relative;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-glow {
    color: var(--primary-mint);
    text-shadow: 0 0 20px rgba(74, 255, 176, 0.4);
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* تأثير التوهج الخلفي للصورة */
.hero-image {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
}

.glow-backdrop {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-mint);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
}

/* --- قسم البطاقات (Services Grid) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 10% 80px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 255, 176, 0.1);
    border-color: var(--primary-mint);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-mint);
    text-shadow: 0 0 15px rgba(74, 255, 176, 0.5);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
}
/* =========================================
   أكواد الحركة (Keyframes Animations)
   ========================================= */

/* حركة الدخول من الأسفل للأعلى مع ظهور تدريجي */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حركة الدخول من الأعلى للأسفل (لشريط التنقل) */
@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* حركة الطفو المستمرة (للصورة ثلاثية الأبعاد) */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* حركة النبض للإضاءة الخلفية */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* =========================================
   تطبيق الحركات على العناصر
   ========================================= */

/* شريط التنقل */
.navbar {
    animation: fadeDown 0.8s ease-out forwards;
}

/* النصوص والأزرار في القسم الرئيسي (تأثير متسلسل) */
.hero-content h1 {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

/* الصورة ثلاثية الأبعاد: دخول ثم طفو مستمر */
.hero-image {
    opacity: 0;
    /* ندمج حركتين: دخول لمرة واحدة، وطفو مستمر لا نهائي */
    animation: fadeUp 1s ease-out 0.5s forwards, float 6s ease-in-out 1.5s infinite;
}

/* التوهج الخلفي: نبض مستمر */
.glow-backdrop {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* قسم البطاقات (تأثير متسلسل للبطاقات الأربعة) */
.service-card {
    opacity: 0;
}

/* استخدام nth-child لعمل تأخير زمني لكل بطاقة لتدخل واحدة تلو الأخرى */
.service-card:nth-child(1) {
    animation: fadeUp 0.8s ease-out 0.8s forwards;
}
.service-card:nth-child(2) {
    animation: fadeUp 0.8s ease-out 1.0s forwards;
}
.service-card:nth-child(3) {
    animation: fadeUp 0.8s ease-out 1.2s forwards;
}
.service-card:nth-child(4) {
    animation: fadeUp 0.8s ease-out 1.4s forwards;
}
/* --- قسم البطاقات (تحديث التوزيع الشبكي) --- */
.services-grid {
    display: grid;
    /* هذا السطر يجعل الشبكة متجاوبة: 3 بطاقات في الشاشات الكبيرة، وتقل تلقائياً في الشاشات الأصغر */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 10% 80px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* لإخفاء البطاقة قبل بدء الحركة */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 255, 176, 0.1);
    border-color: var(--primary-mint);
}

.card-icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-mint);
    text-shadow: 0 0 15px rgba(74, 255, 176, 0.5);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-mint); /* تمييز العنوان باللون النعناعي */
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   تطبيق حركات الدخول (Staggered Animation) للبطاقات التسع
   ========================================= */
.service-card:nth-child(1) { animation: fadeUp 0.8s ease-out 0.8s forwards; }
.service-card:nth-child(2) { animation: fadeUp 0.8s ease-out 1.0s forwards; }
.service-card:nth-child(3) { animation: fadeUp 0.8s ease-out 1.2s forwards; }
.service-card:nth-child(4) { animation: fadeUp 0.8s ease-out 1.4s forwards; }
.service-card:nth-child(5) { animation: fadeUp 0.8s ease-out 1.6s forwards; }
.service-card:nth-child(6) { animation: fadeUp 0.8s ease-out 1.8s forwards; }
.service-card:nth-child(7) { animation: fadeUp 0.8s ease-out 2.0s forwards; }
.service-card:nth-child(8) { animation: fadeUp 0.8s ease-out 2.2s forwards; }
.service-card:nth-child(9) { animation: fadeUp 0.8s ease-out 2.4s forwards; }

/* إعداد القسم الرئيسي لاحتواء الفيديو */
.hero-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 10%;
    min-height: 85vh; /* زيادة الارتفاع قليلاً ليعطي مساحة للفيديو */
    overflow: hidden; /* لمنع خروج الفيديو عن الحواف */
}

/* تنسيق فيديو الخلفية ليغطي الشاشة بالكامل */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2; /* وضعه في أقصى الخلف */
    object-fit: cover; /* لضمان عدم تشوه أبعاد الفيديو */
}

/* طبقة التظليل (Gradient Overlay) فوق الفيديو لدمجه مع لون الموقع */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 20, 24, 0.95) 0%, rgba(15, 20, 24, 0.7) 50%, rgba(15, 20, 24, 0.95) 100%);
    z-index: -1;
}

/* ضمان بقاء المحتوى في المقدمة */
.hero-content, .hero-image {
    z-index: 2;
}
/* --- Hero Bio Section --- */
.about-hero {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 100px 10%;
}

.about-image-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-mint);
    box-shadow: 0 0 30px rgba(74, 255, 176, 0.3);
    z-index: 2;
}

/* علامة العمل عن بعد (Remote Badge) */
.remote-badge {
    margin-top: -20px;
    z-index: 3;
    background: var(--bg-dark);
    border: 1px solid var(--primary-mint);
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-mint);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 255, 176, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 255, 176, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 255, 176, 0); }
}

.about-text {
    flex: 1.5;
}

.subtitle {
    color: var(--primary-mint);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* --- Three Worlds Section --- */
.three-worlds-section {
    padding: 60px 10%;
    background: rgba(255,255,255,0.01);
}

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

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.world-icon { font-size: 3rem; margin-bottom: 15px; }
.worlds-footer { text-align: center; font-size: 1.1rem; color: var(--text-muted); font-style: italic; }

/* --- IAEA Certifications --- */
.iaea-certifications {
    padding: 80px 10%;
    background: linear-gradient(135deg, #071c2c 0%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(74, 255, 176, 0.2);
    border-bottom: 1px solid rgba(74, 255, 176, 0.2);
}

.iaea-header { text-align: center; margin-bottom: 50px; }
.trophy-icon { font-size: 4rem; margin-bottom: 10px; }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
}

.cert-box h4 { color: var(--primary-mint); margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.cert-box ul { list-style: none; padding: 0; }
.cert-box li { color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; }

.highlight-box {
    background: rgba(74, 255, 176, 0.05);
    border-color: var(--primary-mint);
}
.location { color: var(--text-main); margin-top: 10px; }

/* --- Testimonials --- */
.testimonials-section { padding: 80px 10%; text-align: center; }
.testimoinals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    text-align: left;
}
.quote-mark {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(74, 255, 176, 0.1);
    font-family: Georgia, serif;
}
.testimonial-card p { position: relative; z-index: 1; color: var(--text-main); font-style: italic; line-height: 1.6; margin-bottom: 20px; }
/* --- Portfolio Hero Section --- */
.portfolio-hero {
    text-align: center;
    padding: 120px 10% 60px;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.portfolio-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.confidentiality-note {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.confidentiality-note .icon { color: var(--primary-mint); margin-right: 5px; }

/* --- Projects Layout --- */
.projects-container {
    padding: 0 10% 80px;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

/* عكس الاتجاه للمشاريع الزوجية */
.project-row.reverse {
    flex-direction: row-reverse;
}

.project-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* المربع الوهمي للصور (حتى تضعي صور أعمالك الحقيقية) */
.mockup-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 2;
    transition: transform 0.5s ease;
}

.project-row:hover .mockup-placeholder {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-mint);
}

.project-content {
    flex: 1;
}

.project-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.3;
}

.case-study-section {
    margin-bottom: 20px;
}

.case-study-section h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.highlight {
    color: var(--primary-mint);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.case-study-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.features-list {
    list-style: none;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 2px solid rgba(74, 255, 176, 0.3);
}

.features-list li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
}
.features-list li::before {
    content: "•";
    color: var(--primary-mint);
    position: absolute;
    left: -15px;
    font-size: 1.2rem;
}

/* تصميم صندوق النتائج (Glassmorphism) */
.results-box {
    background: linear-gradient(135deg, rgba(74, 255, 176, 0.08), rgba(0,0,0,0.2));
    border: 1px solid rgba(74, 255, 176, 0.3);
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
    backdrop-filter: blur(5px);
}

.results-box h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.results-box ul {
    list-style: none;
    padding: 0;
}

.results-box li {
    color: #fff;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* استجابة الشاشات الصغيرة (Responsive) */
@media (max-width: 900px) {
    .project-row, .project-row.reverse {
        flex-direction: column;
        gap: 30px;
    }
}
.testimonial-card h5 { color: var(--primary-mint); }
/* --- Contact Container & Header --- */
.contact-container {
    padding: 100px 10% 60px;
    min-height: 80vh;
    animation: fadeUp 0.8s ease-out forwards;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Contact Wrapper (Grid Layout) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

/* --- Contact Info Panel --- */
.contact-info-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-info-panel h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.reply-note {
    color: var(--primary-mint);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(74, 255, 176, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(74, 255, 176, 0.2);
}

.info-item h4 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary-mint);
    color: var(--bg-dark);
    border-color: var(--primary-mint);
    box-shadow: 0 0 15px rgba(74, 255, 176, 0.4);
}

/* --- Contact Form Panel (Glassmorphism) --- */
.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.glass-form input,
.glass-form select,
.glass-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.glass-form select {
    appearance: none;
    cursor: pointer;
}

.glass-form select option {
    background: var(--bg-dark);
    color: #fff;
}

.glass-form input:focus,
.glass-form select:focus,
.glass-form textarea:focus {
    border-color: var(--primary-mint);
    background: rgba(74, 255, 176, 0.05);
    box-shadow: 0 0 15px rgba(74, 255, 176, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    margin-top: 10px;
}

.submit-btn span {
    transition: transform 0.3s;
}

.submit-btn:hover span {
    transform: translateX(5px);
}

/* =========================================
   تذييل الموقع (Footer)
   ========================================= */
.site-footer {
    background: rgba(10, 14, 17, 0.95); /* لون داكن جداً لختام الصفحة */
    border-top: 1px solid rgba(74, 255, 176, 0.1);
    padding: 70px 10% 20px;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

/* تأثير التوهج الخفي في خلفية الفوتر */
.site-footer::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 150px;
    background: var(--primary-mint);
    filter: blur(120px);
    opacity: 0.08;
    z-index: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* توزيع مساحات الأعمدة */
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* تنسيق العلامة التجارية */
.footer-brand .logo {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-brand p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* أيقونات السوشيال ميديا */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.social-icon:hover {
    background: var(--primary-mint);
    color: var(--bg-dark);
    border-color: var(--primary-mint);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 255, 176, 0.3);
}

/* تنسيق القوائم والروابط */
.footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* خط صغير مزخرف تحت العناوين */
.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* right لأننا في وضع RTL */
    width: 40px;
    height: 2px;
    background: var(--primary-mint);
    border-radius: 2px;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-mint);
    transform: translateX(-5px); /* حركة خفيفة لليسار عند التمرير */
}

/* معلومات التواصل */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-icon {
    font-size: 1.1rem;
}

/* حقوق النشر والجزء السفلي */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #fff;
}

.footer-bottom strong {
    color: var(--primary-mint);
}

.footer-bottom .title-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom .copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

/* استجابة الفوتر للشاشات الصغيرة */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-brand .logo, 
    .footer-links h4::after, 
    .footer-contact h4::after {
        right: auto;
        left: auto;
    }
}