@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans+Arabic:wght@100..800&display=swap');

/* ===== إعدادات عامة ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Playpen Sans Arabic", cursive;
}

:root {
  --brown-dark:   #3e2723;
  --brown-mid:    #5d4037;
  --brown-light:  #8b6f4e;
  --gold:         #d7a86e;
  --cream:        #f4f1e8;
  --cream-dark:   #e8ddd4;
  --glass-bg:     rgba(139, 111, 78, 0.12);
  --glass-border: rgba(139, 111, 78, 0.22);
  --shadow-soft:  0 8px 32px rgba(0,0,0,0.10);
  --shadow-mid:   0 15px 40px rgba(0,0,0,0.15);
  --radius-pill:  50px;
  --radius-card:  25px;
  --radius-nav:   35px;
}

body {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--brown-mid);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
}

/* =====================================================
   نافبار
   ===================================================== */
.navbar {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius-nav);
  padding: 16px 28px 28px;
  margin: 22px auto;
  max-width: 92%;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 58px; height: 5px;
  background: rgba(139,111,78,0.28);
  border-radius: 0 0 10px 10px;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(139,111,78,0.06));
  border-radius: 0 0 var(--radius-nav) var(--radius-nav);
  pointer-events: none;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 14px;
}

/* ===== لوقو ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--brown-light);
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logo-img {
  height: 2em;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* ===== روابط التنقل ===== */
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--brown-light);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.nav-links li a:hover {
  background: rgba(139,111,78,0.18);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after { width: 75%; }

/* ===== هامبرغر — مخفي على الكمبيوتر ===== */
.hamburger { display: none; }

/* ===== السايدبار — مخفي على الكمبيوتر ===== */
.sidebar-overlay { display: none; }

.sidebar {
  display: none;
}

/* =====================================================
   هيرو
   ===================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 40px;
  margin: 30px 0;
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-dark) 100%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-mid);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -30%;
  width: 180%; height: 180%;
  background: radial-gradient(circle, rgba(215,168,110,0.12) 0%, transparent 65%);
  animation: slowRotate 22s linear infinite;
  pointer-events: none;
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  flex: 1;
  min-width: 240px;
  position: relative;
  z-index: 2;
}

.main-title {
  font-size: 3.2em;
  font-weight: 800;
  color: var(--cream);
  text-shadow: 2px 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.subtitle-ar,
.subtitle1-ar {
  color: rgba(244,241,232,0.88);
  font-size: 1.05em;
  margin-bottom: 12px;
}

.divider {
  margin-top: 24px;
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.character-wrapper {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.welcome-box {
  background: rgba(244,241,232,0.10);
  border: 1px solid rgba(244,241,232,0.2);
  border-radius: 28px;
  padding: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.35s ease;
}

.welcome-box:hover { transform: translateY(-6px) scale(1.03); }

.character-image {
  width: 220px;
  display: block;
  border-radius: 20px;
}

/* =====================================================
   مشاريع مختارة (index)
   ===================================================== */
.service-preview {
  padding: 40px 0;
  text-align: center;
}

.service-preview h2 {
  font-size: 2em;
  color: var(--brown-dark);
  margin-bottom: 36px;
  position: relative;
  display: inline-block;
}

.service-preview h2::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown-light));
  border-radius: 2px;
}

.cards {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.card {
  width: 270px;
  padding: 32px 22px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(139,111,78,0.1);
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.55s ease both;
}

.card:nth-child(1) { animation-delay: 0.10s; }
.card:nth-child(2) { animation-delay: 0.20s; }
.card:nth-child(3) { animation-delay: 0.30s; }

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(215,168,110,0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 24px 50px rgba(139,111,78,0.25);
}

.cardimg,
.card-img {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  box-shadow: 0 4px 14px rgba(139,111,78,0.25);
}

.card:hover .cardimg,
.card:hover .card-img { transform: rotateY(360deg); }

.cardimg img,
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.card h3 {
  color: var(--brown-dark);
  font-size: 1.15em;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.card p {
  color: var(--brown-light);
  font-size: 0.95em;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

/* زر عرض الكل */
.all-btn {
  text-align: center;
  margin-top: 36px;
}

.all-btn a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-dark) 100%);
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(139,111,78,0.28);
  position: relative;
  overflow: hidden;
}

.all-btn a::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.all-btn a:hover::before { left: 100%; }
.all-btn a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(139,111,78,0.38); }

.all-btn a img {
  width: 20px; height: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.all-btn a:hover img { transform: translateX(-5px); }

/* =====================================================
   معرض المشاريع (Projects.html)
   ===================================================== */
.projects-hub {
  padding: 40px 20px;
  text-align: center;
}

.hub-title {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 42px;
  position: relative;
  display: inline-block;
}

.hub-title::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown-light));
  border-radius: 2px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 320px;
  padding: 0;
  background: rgba(255,255,255,0.93);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(139,111,78,0.12);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.4s ease;
  animation: fadeInUp 0.55s ease both;
  text-decoration: none;
  color: inherit;
}

.project-card:nth-child(1) { animation-delay: 0.08s; }
.project-card:nth-child(2) { animation-delay: 0.18s; }
.project-card:nth-child(3) { animation-delay: 0.28s; }

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 50px rgba(139,111,78,0.26);
}

.project-card-header {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(215,168,110,0.25) 0%, transparent 65%);
}

.project-card-header img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card-header img {
  transform: scale(1.08) rotate(-3deg);
}

.project-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
}

.project-card-body h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.4;
}

.project-card-body p {
  font-size: 0.9em;
  color: var(--brown-light);
  line-height: 1.65;
  flex: 1;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brown-light), var(--brown-dark));
  color: var(--cream);
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-size: 0.88em;
  font-weight: 600;
  align-self: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(139,111,78,0.28);
  position: relative;
  overflow: hidden;
}

.project-card-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.45s ease;
}

.project-card:hover .project-card-link::before { left: 100%; }
.project-card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(139,111,78,0.38); }

.project-card-link .arrow {
  font-size: 1em;
  transition: transform 0.3s ease;
  display: inline-block;
}

.project-card-link:hover .arrow { transform: translateX(-4px); }

.project-card.coming-soon {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.project-card.coming-soon .project-card-header {
  background: linear-gradient(135deg, #b0a090, #7a6a5a);
}

.project-card.coming-soon .project-card-link { display: none; }

/* =====================================================
   فوتر
   ===================================================== */
.footer {
  background: linear-gradient(135deg, var(--brown-mid) 0%, var(--brown-dark) 100%);
  color: var(--cream);
  padding: 40px 24px 30px;
  border-radius: 28px 28px 0 0;
  text-align: center;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown-light), var(--gold));
}

.footer-content p {
  font-size: 0.88em;
  opacity: 0.85;
  margin-bottom: 20px;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgba(244,241,232,0.1);
  border-radius: 50%;
  border: 1px solid rgba(244,241,232,0.2);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  font-size: 0;
}

.social a:hover {
  background: rgba(215,168,110,0.3);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.social img {
  width: 24px; height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  display: block;
}

.social a:hover img { transform: scale(1.2); }

/* =====================================================
   صفحة التواصل
   ===================================================== */
.contact-section {
  padding: 40px 20px;
  text-align: center;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.93);
  border-radius: var(--radius-card);
  border: 1px solid rgba(139,111,78,0.12);
  box-shadow: 0 6px 22px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s ease;
  animation: fadeInUp 0.5s ease both;
}

.contact-card:nth-child(1) { animation-delay: 0.08s; }
.contact-card:nth-child(2) { animation-delay: 0.16s; }
.contact-card:nth-child(3) { animation-delay: 0.24s; }

.contact-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(139,111,78,0.2);
}

.contact-card-icon {
  width: 58px; height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brown-light), var(--brown-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(139,111,78,0.25);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon { transform: rotate(-6deg) scale(1.08); }

.contact-card-icon img {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.contact-card-info {
  flex: 1;
  text-align: right;
}

.contact-card-info h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 3px;
}

.contact-card-info p {
  font-size: 0.85em;
  color: var(--brown-light);
  margin-bottom: 5px;
}

.contact-handle {
  font-size: 0.8em;
  color: var(--gold);
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}

.contact-arrow {
  font-size: 1.2em;
  color: var(--brown-light);
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  transform: translateX(-5px);
  opacity: 1;
  color: var(--gold);
}

/* =====================================================
   زر اقرأ أكثر
   ===================================================== */
.bio-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-family: "Playpen Sans Arabic", cursive;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  padding: 0;
  transition: opacity 0.2s;
}

.bio-toggle:hover { opacity: 0.75; }

/* =====================================================
   الجوال
   ===================================================== */
@media (max-width: 768px) {

  body {
    background: var(--cream);
    overflow-x: hidden;
  }

  .bio-toggle { display: inline-block; }

  /* ── النافبار ── */
  .navbar {
    all: unset;
    display: block;
    width: 100%;
  }

  .navbar::before,
  .navbar::after { display: none; }

  .navbar-content {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    background: rgba(244,241,232,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  }

  .logo {
    font-size: 1.05em;
    color: var(--brown-mid);
  }

  .logo-img { height: 30px; }

  .nav-links { display: none !important; }

  /* ── هامبرغر ── */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: var(--brown-dark);
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }

  .hamburger:hover { background: var(--brown-mid); }

  .hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── أوفرلاي ── */
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(30,18,14,0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ── السايدبار ── */
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 72vw;
    max-width: 280px;
    height: 100dvh;
    z-index: 1002;
    background: linear-gradient(160deg, var(--brown-dark) 0%, #2a1a15 100%);
    border-left: 1px solid rgba(215,168,110,0.18);
    box-shadow: -8px 0 40px rgba(0,0,0,0.35);
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(215,168,110,0.15);
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cream);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
  }

  .sidebar-logo img {
    height: 26px; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
  }

  .sidebar-close {
    background: rgba(244,241,232,0.1);
    border: none;
    color: var(--cream);
    font-size: 1.2em;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .sidebar-close:hover { background: rgba(215,168,110,0.2); }

  .sidebar-links {
    list-style: none;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(244,241,232,0.75);
    font-size: 1em;
    font-weight: 600;
    font-family: "Playpen Sans Arabic", cursive;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .sidebar-links li a:hover {
    background: rgba(215,168,110,0.15);
    color: var(--cream);
    transform: translateX(-4px);
  }

  .sidebar-links li a.active {
    background: rgba(215,168,110,0.2);
    color: var(--gold);
  }

  .sidebar-links li a .link-icon {
    font-size: 1.1em;
    opacity: 0.8;
  }

  .sidebar-divider {
    height: 1px;
    background: rgba(215,168,110,0.12);
    margin: 8px 14px;
  }

  .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(215,168,110,0.12);
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .sidebar-footer a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(244,241,232,0.08);
    border: 1px solid rgba(244,241,232,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 0;
  }

  .sidebar-footer a:hover { background: rgba(215,168,110,0.2); }

  .sidebar-footer img {
    width: 18px; height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
  }

  /* ── هيرو ── */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 18px 32px;
    margin: 62px 14px 0;
    border-radius: 28px;
    gap: 0;
  }

  .character-wrapper { order: -1; margin-bottom: 22px; }
  .welcome-box { padding: 8px; border-radius: 22px; }
  .character-image { width: 130px; border-radius: 16px; }
  .hero-content { min-width: unset; width: 100%; }
  .main-title { font-size: 2.8em; margin-bottom: 10px; letter-spacing: 3px; }
  .subtitle-ar { font-size: 0.95em; opacity: 0.9; margin-bottom: 8px; }

  .subtitle1-ar {
    font-size: 0.85em;
    opacity: 0.75;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .subtitle1-ar.expanded {
    display: block;
    -webkit-line-clamp: unset;
  }

  .divider { margin: 18px auto 0; width: 60px; }

  /* ── مشاريع مختارة ── */
  .service-preview { padding: 32px 14px; text-align: right; }
  .service-preview h2 { font-size: 1.4em; margin-bottom: 20px; }
  .service-preview h2::after { left: unset; right: 0; transform: none; }
  .cards { flex-direction: column; gap: 14px; margin-bottom: 24px; }

  .card {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 20px;
    text-align: right;
  }

  .card::before { display: none; }

  .cardimg, .card-img {
    width: 54px; height: 54px;
    min-width: 54px;
    margin: 0;
    border-radius: 14px;
    flex-shrink: 0;
  }

  .card:hover .cardimg,
  .card:hover .card-img { transform: none; }

  .card h3 { font-size: 0.95em; margin-bottom: 4px; }

  .card p {
    font-size: 0.82em;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .all-btn a {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95em;
    border-radius: 18px;
  }

  /* ── معرض المشاريع ── */
  .projects-hub { padding: 28px 14px; text-align: right; }
  .hub-title { font-size: 1.4em; margin-bottom: 28px; display: block; text-align: right; }
  .hub-title::after { left: unset; right: 0; transform: none; }
  .projects-grid { flex-direction: column; gap: 16px; }

  .project-card {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    border-radius: 20px;
  }

  .project-card-header {
    width: 90px; min-width: 90px;
    height: auto;
    border-radius: 20px 0 0 20px;
  }

  .project-card-header img { width: 52px; height: 52px; }
  .project-card-body { padding: 16px 16px 14px; gap: 6px; }
  .project-card-body h3 { font-size: 0.95em; }

  .project-card-body p {
    font-size: 0.82em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-card-link { margin-top: 10px; padding: 7px 14px; font-size: 0.78em; }

  /* ── التواصل ── */
  .contact-section { padding: 28px 14px; text-align: right; }
  .contact-grid { max-width: 100%; }
  .contact-card { padding: 16px; gap: 14px; border-radius: 18px; }
  .contact-card-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 13px; }
  .contact-card-icon img { width: 24px; height: 24px; }
  .contact-card-info h3 { font-size: 0.95em; }
  .contact-card-info p { font-size: 0.8em; }

  /* ── فوتر ── */
  .footer { border-radius: 24px 24px 0 0; padding: 28px 18px 40px; margin-top: 32px; }
  .footer-content p { font-size: 0.8em; }
  .social { gap: 14px; margin-top: 14px; }
  .social a { width: 44px; height: 44px; }
  .social img { width: 20px; height: 20px; }
}