
        @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

        :root {
            --primary-color: #6e111c;
            --secondary-color: #c0a369;
            --accent-color: #D4B57E;
            --light-color: #f8f1e5;
            --dark-color: #2f2519;
            --text-color: #ffffff;
            --border-radius: 25px;
            --box-shadow: 0 18px 200px -60px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Cairo', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url('image/background.jpg');
            background-size: cover;
            background-position: center;
            margin: 0;
            direction: rtl;
            padding: 20px;
            backdrop-filter: blur(5px);
        }

        .english-font {
            font-family: 'Times New Roman', serif;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Header Styles */
        header {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
        }

        .lang-switcher {
            display: flex;
            gap: 0.3em;
            background: rgba(110, 17, 28, 0.9);
            padding: 5px;
            border-radius: 50px;
        }

        .lang-switcher button {
            background-color: transparent;
            font-family: 'Cairo', sans-serif;
            color: white;
            border: none;
            outline: none;
            padding: 0.5em 1em;
            text-align: center;
            text-decoration: none;
            font-size: 1em;
            cursor: pointer;
            border-radius: 50px;
            font-weight: 700;
            transition: var(--transition);
        }

        .lang-switcher button:hover {
            background-color: var(--secondary-color);
            transform: scale(1.1);
        }

        /* Main Content Styles */
        .main-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Profile Section */
        .profile-cart {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 900px;
            backdrop-filter: blur(3px);
            border-radius: 50px;
            padding: 30px;
            border: 2px solid #ffffff40;
            box-shadow: var(--box-shadow);
            background: rgba(110, 17, 28, 0.15);
            margin-bottom: 30px;
        }

        .image {
            position: relative;
            display: flex;
            justify-content: center;
        }

        .image .profile-img {
            height: 25%;
            width: 25%;
            object-fit: cover;
            border-radius: 50%;
        }

        .profile-cart .text-data {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--text-color);
            margin-top: 15px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .text-data .name {
            font-size: 28px;
            font-weight: 700;
        }

        .text-data .job {
            padding-top: 5px;
            font-size: 18px;
            font-weight: 400;
        }

        /* Branches Section */
        .branches-section {
            width: 100%;
            margin-top: 30px;
        }

        .section-title {
            text-align: center;
            font-size: 24px;
            margin-bottom: 25px;
            color: var(--text-color);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            position: relative;
            padding-bottom: 15px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 80px;
            height: 3px;
            background: var(--secondary-color);
        }

        .branches-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

.branch-card {
  background: rgba(110, 17, 28, 0.9);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);

  /* مهم للهوفر */
  transform: translateY(0) scale(1);
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.branch-card:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}


        .branch-header {
            padding: 15px;
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
        }

        .branch-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-color);
            margin: 0;
        }

        .branch-content {
            padding: 15px;
        }

        .branch-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .branch-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            border-radius: 20px;
            background: rgba(192, 163, 105, 0.2);
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            font-size: 14px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .branch-btn:hover {
            background: var(--secondary-color);
            color: var(--primary-color);
        }

        /* اجعل الزر الأخير إذا كان وحده في الصف يأخذ العرض كاملاً */
.branch-buttons .branch-btn:only-child {
  grid-column: 1 / -1;
}

/* وإذا كان عدد الأزرار كلياً فردي (آخر زر لوحده في السطر الأخير) فليتمدّد أيضاً */
.branch-buttons .branch-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

        /* Social Media Styles */
        .social-section {
            margin-top: 30px;
            text-align: center;
            width: 100%;
        }

        .social-title {
            font-size: 20px;
            margin-bottom: 20px;
            color: var(--text-color);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .social-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-color);
            color: var(--text-color);
            font-size: 20px;
            transition: var(--transition);
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .social-btn:hover {
            transform: translateY(-3px);
            background: var(--secondary-color);
            color: var(--primary-color);
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .branches-container {
                grid-template-columns: 1fr;
            }
            
            .profile-cart {
                padding: 20px;
                border-radius: 30px;
            }
            
            .text-data .name {
                font-size: 24px;
            }
            
            .text-data .job {
                font-size: 16px;
            }
            
        
            
            .image .profile-img {
                width: 60%;
            }
        }

        /* Animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* حركة صعود مع تلاشي */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* العناصر المستهدفة تبدأ مخفية */
/* العناصر تبدأ مخفية وتُحرك مرة واحدة فقط */
.fade-in {
  opacity: 0;
  transform: translateY(20px) scale(.98);
  will-change: opacity, transform;
  animation-fill-mode: both; /* يمنع الرجوع للحالة المخفية بين الإطارات */
}




/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .branch-card { 
    animation: none !important; 
    transition: none !important; 
    transform: none !important; 
    opacity: 1 !important; 
  }
}
