/* ============================
   RESET + GLOBAL STYLE
============================ */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
}

/* ============================
   HEADER
============================ */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000; /* أقل من القائمة */
}

/* ============================
   HERO SECTION
============================ */
.hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(13, 148, 136, 0.8)),
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=2070&q=80')
                no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* لتعويض الهيدر */
}

/* ============================
   CARDS
============================ */
.service-card,
.project-card,
.team-member {
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover,
.project-card:hover,
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ============================
   IMAGES
============================ */
.member-photo img,
.project-image img {
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* ============================
   PROJECT OVERLAY
============================ */
.project-overlay {
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ============================
   COLORS AND TYPOGRAPHY
============================ */
.text-primary {
    color: #1E40AF !important;
}

.bg-primary {
    background-color: #2563EB !important;
}

.rounded {
    border-radius: 16px !important;
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
    background: linear-gradient(135deg, #2563EB, #0D9488);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* ============================
   MODERN FULL-SCREEN MOBILE MENU
============================ */
/* ============================
   MODERN FULL-SCREEN MOBILE MENU
============================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 1); /* خلفية داكنة */
    backdrop-filter: blur(12px);
    z-index: 20000 !important; /* فوق كل شيء */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    padding: 100px 20px 40px;
}

/* عند التفعيل */
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* زر الإغلاق */
.mobile-menu .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 21000;
}

/* قائمة الروابط */
.mobile-menu .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* كل رابط */
.mobile-menu .menu-link {
    display: block;
    font-size: 1.8rem;
    margin: 15px 0;
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background-color: rgba(0,0,0,0.25); /* خلفية شبه صلبة لكل رابط */
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* عند المرور على الرابط */
.mobile-menu .menu-link:hover {
    background-color: rgba(13, 148, 136, 0.85);
    color: #fff;
}

/* تحسين ظهور النصوص داخل القائمة */
.mobile-menu .menu-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}


.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Close Button */
.mobile-menu .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* Links */
.mobile-menu .menu-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: center;
}

.mobile-menu .menu-link {
    display: block;
    font-size: 1.6rem;
    margin: 18px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.mobile-menu .menu-link:hover {
    color: #0D9488;
}

/* ============================
   MOBILE IMPROVEMENTS
============================ */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: 0.3s;
}

.navbar-toggler:hover {
    background-color: rgba(0,0,0,0.1);
}

/* ============================
   RTL SUPPORT FOR MOBILE MENU
============================ */
[dir="rtl"] .mobile-menu {
    text-align: center;
}


/* تحديث خلفية القائمة */
.mobile-menu {
    background: rgba(15, 23, 42, 0.95); /* خلفية داكنة */
    backdrop-filter: blur(12px);
}

/* زيادة وضوح الرابط */
.mobile-menu .menu-link {
    background-color: rgba(0, 0, 0, 0.8); /* خلفية شبه صلبة */
}

/* تحسين التمرير */
.mobile-menu .menu-link:hover {
    background-color: rgba(13, 148, 136, 1); /* خلفية مميزة */
    color: #fff;
}

/* إزالة تأثير الضبابية عند فتح القائمة */
.mobile-menu.active + header {
    backdrop-filter: none;
}

