/* ============================================================
   RAMALLAH DIGITAL — BRAND COLOR SYSTEM
   Primary: Red #C5232D | Dark: #4A5568 | Black: #0A0A0A
   ============================================================ */
:root {
  --brand:       #C5232D;
  --brand-light: #E8404A;
  --brand-dim:   #7A1218;
  --brand-glow:  rgba(197, 35, 45, 0.25);
  --border:      rgba(197, 35, 45, 0.18);

  /* ── Luxury brand-name accent (gold for "Ramallah / رام الله") ── */
  --gold:        #F59E0B;
  --gold-light:  #FCD34D;
  --gold-glow:   rgba(245, 158, 11, 0.22);
}

/* =============================================
   RAMALLAH DIGITAL — HOME CSS
   Cinematic · Editorial · Bold
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700&display=swap");

/* ============ CSS VARIABLES ============ */
:root {
  --black:      #0a0a0a;
  --deep:       #0d1117;
  --charcoal:   #1a1a2e;
  --brand:      #C5232D;
  --brand-light:#E8404A;
  --brand-dim:  #7A1218;
  --brand-glow: rgba(197, 35, 45, 0.25);
  --red-accent: #e63946;
  --white:      #f8f6f0;
  --muted:      #9a9a9a;
  --card-bg:    #131722;
  --border:     rgba(197, 35, 45, 0.18);
  --transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep);
  color: var(--white);
  font-family: "Cairo", "Tajawal", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ LANG TOGGLE BUTTON — GLASSMORPHISM ============ */
#langToggleHome {
  position: fixed;
  top: 1.55rem;
  left: 1rem;
  z-index: 2000;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: "Oxanium", "Cairo", sans-serif;
  background: rgba(10, 10, 12, 0.70);
  border: 1px solid rgba(197, 35, 45, 0.28);
  color: rgba(240, 237, 232, 0.72);
  cursor: pointer;
  transition:
    background 0.38s ease,
    border-color 0.35s ease,
    color 0.25s ease,
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s ease;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(197, 35, 45, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: fixed;
}

/* Pulsing brand dot indicator */
#langToggleHome::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--brand-glow);
  animation: langDotPulse 2.2s ease-in-out infinite;
}

@keyframes langDotPulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

/* Shimmer sweep */
#langToggleHome::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
#langToggleHome:hover::after { left: 145%; }

#langToggleHome:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(197, 35, 45, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
#langToggleHome:active {
  transform: translateY(0) scale(0.97);
}

#langToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
#langToggle:hover {
  background: var(--brand);
  color: var(--black);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.2) 0%,
      rgba(13, 17, 23, 0.7) 70%,
      var(--deep) 100%
    ),
    radial-gradient(
      ellipse at 60% 50%,
      rgba(197, 35, 45, 0.06) 0%,
      transparent 70%
    );
}

/* Cinematic side bars */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, transparent, var(--brand), transparent);
  z-index: 3;
  opacity: 0.4;
}
.hero::before {
  left: 48px;
}
.hero::after {
  right: 48px;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 820px;
  padding: 40px 24px 140px; /* bottom clearance for scroll-hint */
}

/* Film grain top label */
.hero-content::before {
  content: "● RAMALLAH DIGITAL ●";
  display: block;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--brand);
  margin-bottom: 24px;
  opacity: 0.8;
  font-family: "Tajawal", sans-serif;
  font-weight: 300;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero h1 span.super {
  color: var(--brand);                                        /* "Ramallah" / "رام الله" — brand red  */
  text-shadow: 0 0 48px var(--brand-glow), 0 2px 16px rgba(0,0,0,0.5);
}
.hero h1 span.plus {
  color: #ADB5BD;                                             /* "Digital"  / "ديجيتل"  — platinum silver */
  text-shadow: 0 0 40px rgba(173,181,189,0.20), 0 2px 16px rgba(0,0,0,0.5);
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(248, 246, 240, 0.75);
  margin-bottom: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(248, 246, 240, 0.55);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

/* ============ CTA BUTTON — PREMIUM REDESIGN ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 44px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.6px;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s ease,
    background 0.38s ease,
    color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 22px var(--brand-glow),
    0 1px 4px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  user-select: none;
  z-index: 1;
}

/* Shimmer sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.20) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 0;
}
.btn:hover::before {
  left: 145%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 44px rgba(197, 35, 45, 0.48),
    0 4px 14px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: var(--white);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 20px var(--brand-glow);
}

.btn.dark {
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  box-shadow: none;
}
.btn.dark::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(197, 35, 45, 0.14) 50%,
    transparent 100%
  );
}
.btn.dark:hover {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 8px 28px var(--brand-glow);
}

/* Hero secondary links */
.hero-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
}

.hero-link-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  border: 1px solid rgba(197, 35, 45, 0.4);
  color: rgba(248, 246, 240, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.04);
}
.hero-link-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(197, 35, 45, 0.08);
  transform: translateY(-2px);
}

/* ============ SCROLL HINT — CINEMATIC REDESIGN ============ */
.hero-scroll-hint {
  position: absolute;
  margin-top: 20px;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation:
    scrollReveal 1s 1.8s ease forwards,
    scrollPulse  3s 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scrollReveal {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0);   }
  50%       { opacity: 0.85; transform: translateX(-50%) translateY(-4px); }
}

/* Glassmorphism pill label */
.hero-scroll-hint span {
  font-size: 0.60rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.60);
  font-family: "Oxanium", "Cairo", sans-serif;
  font-weight: 400;
  padding: 5px 14px;
  border: 1px solid rgba(197, 35, 45, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 12, 0.50);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

/* Animated drop-light line */
.hero-scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(
    to bottom,
    transparent       0%,
    rgba(197, 35, 45, 0.85) 40%,
    rgba(197, 35, 45, 0.30) 75%,
    transparent       100%
  );
  background-size: 100% 200%;
  background-position: 0 -100%;
  animation: scrollLineDrop 2s 2.8s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes scrollLineDrop {
  0%   { background-position: 0 -100%; opacity: 0.4; }
  50%  { background-position: 0  60%;  opacity: 1;   }
  100% { background-position: 0 200%;  opacity: 0.4; }
}

/* ============ SECTION BASE ============ */
section {
  padding: 110px 80px;
  text-align: center;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--white);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--brand);
  margin: 0 auto 56px;
  position: relative;
}
.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.section-divider::before {
  left: -12px;
}
.section-divider::after {
  right: -12px;
}

/* ============ ABOUT — PPTX EXACT DESIGN ============ */
.about {
  background: #0c0c0c;
  position: relative;
  overflow: hidden;
}

/* Damask texture from PPTX */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Section title — dark box with RED BORDER (matching PPTX screenshot) */
.about .section-title {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: #0B0B0B;
  color: #F0EDE8;
  padding: 14px 60px;
  border: 1.5px solid rgba(229, 57, 53, 0.7);
  border-radius: 4px;
  letter-spacing: 4px;
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.12);
}

.about .section-divider {
  position: relative;
  z-index: 1;
  background: rgba(229, 57, 53, 0.55);
}
.about .section-divider::before,
.about .section-divider::after {
  background: rgba(229, 57, 53, 0.55);
}

/* Grid — top padding to clear the diamond badge above each card */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 110px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 110px;
  position: relative;
  z-index: 1;
}

/* Card — dark bg + red border (matching PPTX screenshot exactly) */
.about-card {
  position: relative;
  background: #151920;
  border: 1.5px solid rgba(229, 57, 53, 0.35);
  border-radius: 20px;
  padding: 48px 24px 32px;
  text-align: right;
  overflow: visible;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

/* Diamond rotated square decoration (PPTX roundRect rotated 45°) */
.about-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 106px;
  height: 106px;
  background: #1C2128;
  border: 1.5px solid rgba(229, 57, 53, 0.22);
  border-radius: 14px;
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.about-card:hover::before {
  background: #20262F;
  border-color: rgba(229, 57, 53, 0.5);
}

/* Small circle dot at arc-to-card junction (PPTX small circle decoration) */
.about-card::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.3);
  border: 1px solid rgba(229, 57, 53, 0.5);
  z-index: 3;
  pointer-events: none;
}

/* Subtle inner glow */
.about-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(229, 57, 53, 0.10) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
  opacity: 0.5;
}
.about-card:hover .about-card-glow {
  opacity: 1;
}

/* Title pill — centered at diamond center (PPTX flowChartTerminator overlay) */
.about-card-title {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  background: #1C2128;
  border: 1px solid rgba(229, 57, 53, 0.30);
  color: #F0EDE8;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 8px 50px;
  border-radius: 50px;
  white-space: nowrap;
  z-index: 4;
  text-transform: none;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover .about-card-title {
  background: #232A34;
  border-color: rgba(229, 57, 53, 0.6);
  box-shadow: 0 4px 18px rgba(229, 57, 53, 0.18);
}

/* Icon circle — inside card body (centered, in-flow) */
.about-card-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #252525;
  border: 1.5px solid rgba(180, 180, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.about-card-icon i,
.about-card-icon svg {
  font-size: 1.45rem;
  color: #999;
  stroke: #999;
  width: auto;
  height: auto;
}
.about-card:hover .about-card-icon {
  border-color: rgba(192, 0, 0, 0.5);
  transform: scale(1.08);
}
.about-card:hover .about-card-icon i,
.about-card:hover .about-card-icon svg {
  color: #c00000;
  stroke: #c00000;
}

/* Number watermark at bottom-left */
.about-card-number {
  position: absolute;
  bottom: 10px;
  left: 16px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  font-family: "Playfair Display", serif;
  transition: color 0.4s ease;
  user-select: none;
  z-index: 0;
}
.about-card:hover .about-card-number {
  color: rgba(192, 0, 0, 0.08);
}

/* Divider line */
.about-card-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(to left, rgba(229, 57, 53, 0.8), rgba(229, 57, 53, 0.2));
  border-radius: 2px;
  margin-bottom: 18px;
  margin-right: 0;
  margin-left: auto;
  transform-origin: right;
  position: relative;
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-card:hover .about-card-line {
  width: 68px;
}

/* Text */
.about-card-text {
  margin-top: 30px;
  color: rgba(240, 237, 232, 0.65);
  font-size: 0.9rem;
  line-height: 2;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
.about-card:hover .about-card-text {
  color: rgba(240, 237, 232, 0.88);
}

/* Hover lift */
.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 57, 53, 0.65);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(229, 57, 53, 0.08),
    0 0 40px rgba(229, 57, 53, 0.10);
}

/* Stagger */
.about-card[data-index="0"] { transition-delay: 0.05s; }
.about-card[data-index="1"] { transition-delay: 0.15s; }
.about-card[data-index="2"] { transition-delay: 0.25s; }
.about-card[data-index="3"] { transition-delay: 0.35s; }

/* ============ TEAM CAROUSEL ============ */
.team-section {
  overflow: hidden;
}

.team-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.team-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Slide */
.team-slide {
  flex: 0 0 calc(25% - 15px);
  min-width: 220px;
  perspective: 1200px;
}

/* 3D card flip */
.team-card-inner {
  position: relative;
  height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 12px;
  /* ← يمنع الرجة أثناء الـ 3D transform */
  will-change: transform;
  -webkit-transform-style: preserve-3d;
}

.team-card-inner.flipped {
  transform: rotateY(180deg);
}

/* ← تعطيل hover effects على الصورة أثناء القلب لمنع الرجة */
.team-card-inner:not(.flipped):hover .team-card-img-wrap img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

.team-card-inner.flipped .team-card-img-wrap img {
  transform: none;
}

.team-card-front,
.team-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Front */
.team-card-front {
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.team-card-img-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.team-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
  filter: brightness(0.85) saturate(0.8);
}
/* hover على الصورة معرّف بـ :not(.flipped) أعلاه لمنع الرجة أثناء القلب */
.team-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.85) 0%,
    transparent 55%
  );
}

.team-card-info {
  padding: 16px 18px 14px;
  text-align: right;
  background: var(--card-bg);
}

.team-card-back {
  padding: 15px;
  background: #0d1117;
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  overflow-y: auto;

  font-weight: 400;
}

/* Flip hint icon — يظهر دائماً بشكل خفيف */
.team-flip-hint {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(197, 35, 45, 0.15);
  border: 1px solid rgba(197, 35, 45, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55; /* ← يظهر دائماً بدلاً من 0 */
  transition:
    opacity 0.3s ease,
    background 0.3s ease;
  cursor: pointer;
  z-index: 5;
}
.team-flip-hint svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  stroke: var(--brand);
  pointer-events: none;
}
.team-flip-hint:hover {
  opacity: 1;
  background: rgba(197, 35, 45, 0.28);
  /* ← لا scale هنا لمنع الرجة */
}
/* إخفاء الـ hint عند ظهور الظهر */
.team-card-inner.flipped .team-flip-hint {
  opacity: 0;
  pointer-events: none;
}

/* Back */
.team-card-back {
  background: linear-gradient(145deg, #161c2e 0%, #0f1420 100%);
  border: 1px solid rgba(197, 35, 45, 0.3);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center; /* ← center بدلاً من flex-end لضمان ظهور الـ divider */
  justify-content: center;
  padding: 28px 22px;
  text-align: right;
}

.team-card-back .team-card-name {
  font-size: 1.05rem;
  margin-bottom: 6px;
  width: 100%;
}
.team-card-back .team-card-job {
  margin-bottom: 0;
  width: 100%;
}

.team-card-divider {
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  margin: 14px 0;
  width: 100%; /* ← عرض كامل دائماً */
  flex-shrink: 0; /* ← لا يتقلص */
}

.team-card-desc {
  font-size: 0.88rem;
  color: rgba(248, 246, 240, 0.72);
  line-height: 1.8;
  width: 100%;
}

/* Carousel buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 35, 45, 0.08);
  border: 1.5px solid rgba(197, 35, 45, 0.3);
  color: var(--brand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  z-index: 5;
}
.carousel-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand);
}
.carousel-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.1);
}
.carousel-btn:hover svg {
  stroke: var(--black);
}
.carousel-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* Dots */
.team-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 35, 45, 0.25);
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
  padding: 0;
}
.team-dot.active {
  background: var(--brand);
  transform: scale(1.35);
  width: 22px;
  border-radius: 4px;
}

/* ==== TEAM FLIP FIX ==== */
.team-card-inner {
  position: relative;
  height: 340px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 12px;
}
.team-card-inner.flipped {
  transform: rotateY(180deg);
}
.team-card-front,
.team-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.team-card-back {
  transform: rotateY(180deg);
}
/* ============ VALUES ============ */
.values {
  background: linear-gradient(135deg, #0d1117 0%, #131722 50%, #0d1117 100%);
  position: relative;
}

.values::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(197, 35, 45, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.values-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.value-box {
  background: transparent;
  border: 1px solid var(--border);
  padding: 28px 44px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.value-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(197, 35, 45, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-box:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(197, 35, 45, 0.15);
}
.value-box:hover::after {
  opacity: 1;
}

/* ============ SERVICES / TEAM — GLASSMORPHISM REDESIGN ============ */
.Team {
  background: var(--deep);     /* same base as map-section */
  padding: 110px 80px;
  position: relative;
  overflow: hidden;
}

/* Separator beam — mirrors map-section::before */
.Team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.25;
  pointer-events: none;
}

/* Radial ambient — like map's cinematic mood */
.Team::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(197, 35, 45, 0.045) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.Team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Glass card — mirrors map-overlay-card DNA */
.Team-card {
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(197, 35, 45, 0.16);
  border-radius: var(--radius-lg);
  padding: 34px 20px 26px;
  text-align: center;
  transition:
    transform    0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   0.42s ease,
    border-color 0.35s ease,
    background   0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Top accent beam — like map-section separator on each card */
.Team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.38s ease;
}
.Team-card:hover::before { opacity: 1; }

/* Bottom sweep line */
.Team-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform 0.45s ease;
}
.Team-card:hover::after { transform: scaleX(1); }

.Team-card:hover {
  border-color: rgba(197, 35, 45, 0.32);
  transform: translateY(-9px);
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(197, 35, 45, 0.09) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 30, 0.88);
}

.Team-card img {
  width: 82px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0.78) grayscale(0.35);
  transition: filter 0.42s ease, transform 0.42s ease;
}
.Team-card:hover img {
  filter: brightness(1.05) grayscale(0) drop-shadow(0 3px 12px var(--brand-glow));
  transform: scale(1.07);
}

.Team-card .lang-switch {
  font-size: 0.88rem;
  color: rgba(240, 237, 232, 0.65);
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.30s ease;
}
.Team-card:hover .lang-switch {
  color: rgba(240, 237, 232, 0.92);
}

/* ============ PARTNERS — GLASSMORPHISM REDESIGN ============ */
.partners {
  background: var(--charcoal);     /* alternates from Team (deep) for rhythm */
  padding: 110px 80px;
  position: relative;
  overflow: hidden;
}

/* Radial ambient glow — like map section mood */
.partners::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(197, 35, 45, 0.042) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Separator beam at top */
.partners::after {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 35, 45, 0.32), transparent);
  pointer-events: none;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Glass card — mirrors map-overlay-card DNA */
.partner-card {
  background: rgba(11, 11, 13, 0.74);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  border: 1px solid rgba(197, 35, 45, 0.16);
  border-radius: var(--radius-lg);
  padding: 30px 22px 24px;
  width: 168px;
  text-align: center;
  transition:
    transform    0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   0.42s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Top accent beam */
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.38s ease;
}
.partner-card:hover::before { opacity: 1; }

/* Bottom sweep line */
.partner-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform 0.45s ease;
}
.partner-card:hover::after { transform: scaleX(1); }

.partner-card:hover {
  border-color: rgba(197, 35, 45, 0.30);
  transform: translateY(-8px);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(197, 35, 45, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.partner-card img {
  max-width: 80%;
  max-height: 58px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: grayscale(0.45) brightness(0.80);
  transition: filter 0.42s ease, transform 0.42s ease;
}
.partner-card:hover img {
  filter: grayscale(0) brightness(1.08) drop-shadow(0 2px 12px rgba(255,255,255,0.18));
  transform: scale(1.08);
}

.partner-card .lang-switch {
  font-size: 0.82rem;
  color: rgba(240, 237, 232, 0.50);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.30s ease;
}
.partner-card:hover .lang-switch {
  color: rgba(240, 237, 232, 0.88);
}

/* ============ CTA ============ */
.cta {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 120px 80px 0;
}

/* Diagonal gold line decoration */
.cta::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.4;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(197, 35, 45, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta .section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta .btn {
  position: relative;
  z-index: 1;
  margin-bottom: 80px;
}

/* CTA Social Icons */
.cta-social {
  position: absolute;
  top: 28px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.cta-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.15rem;
  color: rgba(248, 246, 240, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  text-decoration: none;
}
.cta-social a:hover {
  background: var(--brand);
  color: var(--black);
  border-color: var(--brand);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 24px rgba(197, 35, 45, 0.35);
}

/* ============ FOOTER COMMUNICATIONS ============ */
.footer-communications {
  border-top: 1px solid rgba(197, 35, 45, 0.15);
  padding: 64px 0 0;
  font-family: "Cairo", "Tajawal", sans-serif;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.footer-col {
  min-width: 220px;
  flex: 1 1 260px;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-dot {
  color: var(--brand);
  font-size: 2rem;
}

.footer-address {
  font-size: 0.95rem;
  color: rgba(248, 246, 240, 0.45);
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
  margin-top: 20px;
  font-weight: 400;
}

.footer-phones span,
.footer-emails span {
  display: block;
  font-size: 0.95rem;
  color: rgba(248, 246, 240, 0.65);
  margin-bottom: 4px;
}

.footer-section-title {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
  font-weight: 400;
}

/* ==== Enhanced Footer Services List ==== */
.footer-col.services {
  padding-top: 10px;
}

.footer-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 18px;
  letter-spacing: 2px;
  text-align: right;
}

/* ============ FOOTER SERVICES LIST — LUXURY REDESIGN ============ */
.footer-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-services-list li {
  font-size: 0.92rem;
  color: rgba(248, 246, 240, 0.55);
  position: relative;
  line-height: 1;
  font-weight: 500;
  padding-right: 0;
}

/* Remove old bullet dot */
.footer-services-list li::before {
  display: none;
}

.footer-services-list a {
  display: inline-block;
  color: rgba(240, 237, 232, 0.62);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  padding: 6px 0 7px;
  transition:
    color 0.30s ease,
    letter-spacing 0.30s ease;
}

/* Luxury underline — thin line grows from right (RTL natural start) */
.footer-services-list a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-services-list a:hover {
  color: var(--white);
  letter-spacing: 0.45px;
  text-decoration: none;
}
.footer-services-list a:hover::after {
  transform: scaleX(1);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--black);
  color: rgba(248, 246, 240, 0.35);
  padding: 24px 40px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(197, 35, 45, 0.1);
}

/* ============ ANIMATION ============ */
.animate {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.about-grid .card:nth-child(1) {
  transition-delay: 0.05s;
}
.about-grid .card:nth-child(2) {
  transition-delay: 0.15s;
}
.about-grid .card:nth-child(3) {
  transition-delay: 0.25s;
}
.about-grid .card:nth-child(4) {
  transition-delay: 0.35s;
}

.values-grid .value-box:nth-child(1) {
  transition-delay: 0.1s;
}
.values-grid .value-box:nth-child(2) {
  transition-delay: 0.2s;
}
.values-grid .value-box:nth-child(3) {
  transition-delay: 0.3s;
}

/* ============ DARK MODE COMPAT ============ */
body.dark-mode {
  background: var(--black) !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  section {
    padding: 90px 50px;
  }
  .Team {
    padding: 90px 50px;
  }
  .partners {
    padding: 90px 50px;
  }
  .cta {
    padding: 100px 50px 0;
  }
  .team-slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 28px;
  }
  .Team {
    padding: 80px 28px;
  }
  .partners {
    padding: 80px 28px;
  }
  .cta {
    padding: 90px 28px 0;
  }

  .hero-content {
    padding-bottom: 160px; /* more clearance when links stack vertically */
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-links {
    flex-direction: column;
    gap: 10px;
  }
  .hero-link-btn {
    padding: 12px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 126px;
    padding-top: 110px;
  }

  /* ── Carousel: أزرار overlay فوق البطاقات ── */
  .team-carousel-wrapper {
    position: relative;
    gap: 0;
  }
  .team-carousel-viewport {
    flex: none;
    width: 100%;
  }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .carousel-btn:hover {
    transform: translateY(-50%) scale(1.08);
  }
  /* يتبع اتجاه الكتابة (LTR/RTL) */
  #teamPrev { inset-inline-start: 8px; }
  #teamNext { inset-inline-end: 8px; }

  .team-slide {
    flex: 0 0 calc(50% - 10px);
  }
  .team-card-inner {
    height: 320px;
  }

  .footer-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px 40px;
  }

  .cta-social {
    top: 16px;
    right: 16px;
  }
  .cta-social a {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .btn {
    padding: 13px 32px;
    font-size: 0.95rem;
  }
  .hero-link-btn {
    font-size: 0.9rem;
    padding: 11px 20px;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .partner-card {
    width: calc(50% - 10px);
  }
  /* بطاقة واحدة كاملة العرض */
  .team-slide {
    flex: 0 0 100%;
  }
  .team-card-inner {
    height: 400px;
  }
  /* ظهر البطاقة على الموبايل */
  .team-card-back {
    padding: 20px 16px;
    justify-content: flex-start;
    gap: 6px;
  }
  .team-card-desc {
    font-size: 0.84rem;
    line-height: 1.75;
  }
  /* الأزرار أصغر قليلاً */
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
}

html[lang="ar"] .about .about-card-title {
  direction: rtl !important;
  text-align: center !important;
  font-family: "Cairo", "Tajawal", "Almarai", Arial, sans-serif !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

html[lang="en"] .about .about-card-title {
  direction: ltr !important;
  text-align: center !important;
  font-family: "Inter", "Montserrat", "Poppins", Arial, sans-serif !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
html[lang="en"] .about .about-card-line {
  direction: ltr !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ============================================================
   MAP SECTION — PREMIUM INTERACTIVE LOCATION
   ============================================================ */
.map-section {
  background: var(--deep);
  padding: 110px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle top separator beam */
.map-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.3;
}

/* Map container with rounded card */
.map-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(197, 35, 45, 0.12);
  border: 1px solid rgba(197, 35, 45, 0.18);
  transition: box-shadow 0.4s ease;
}
.map-wrapper:hover {
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(197, 35, 45, 0.22);
}

/* Wraps iframe + pin bubble so bubble always references the map, not the card */
.map-iframe-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Google Maps iframe */
#rdp-map {
  width: 100%;
  height: 500px;
  display: block;
  z-index: 1;
  background: var(--deep);
  border: 0;
}

/* Glassmorphism overlay info card */
.map-overlay-card {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(197, 35, 45, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 24px 22px;
  min-width: 210px;
  max-width: 270px;
  text-align: center;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(197, 35, 45, 0.08);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s ease;
}
.map-overlay-card:hover {
  transform: translateY(calc(-50% - 5px));
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.70),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(197, 35, 45, 0.18) inset;
}

/* Brand monogram circle */
/* Brand monogram circle with pulse ring */
@keyframes rdp-logo-pulse {
  0%   { box-shadow: 0 4px 18px rgba(197,35,45,0.40), 0 0 0 3px rgba(197,35,45,0.12); }
  50%  { box-shadow: 0 6px 28px rgba(197,35,45,0.60), 0 0 0 6px rgba(197,35,45,0.08); }
  100% { box-shadow: 0 4px 18px rgba(197,35,45,0.40), 0 0 0 3px rgba(197,35,45,0.12); }
}
.map-card-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: "Oxanium", "Cairo", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  animation: rdp-logo-pulse 3s ease-in-out infinite;
  direction: ltr; /* lock order: always R → DP regardless of RTL page dir */
}
.map-logo-r {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}
.map-logo-dp {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Company name — gradient text */
.map-card-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  line-height: 1.25;
  background: linear-gradient(120deg, #ffffff 30%, var(--brand-light, #e8404a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.map-name-en {
  font-weight: 700;
}
.map-name-highlight {
  font-weight: 900;
}

/* Arabic tagline under name */
.map-card-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(197, 35, 45, 0.75);
  margin-bottom: 14px;
  font-family: "Oxanium", "Cairo", sans-serif;
}

/* Thin decorative separator */
.map-card-sep {
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  margin: 0 auto 14px;
  border-radius: 2px;
}

.map-card-address {
  font-size: 0.78rem;
  color: rgba(248, 246, 240, 0.50);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Directions CTA button inside card */
.map-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dim) 100%);
  color: var(--white);
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition:
    transform 0.30s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.30s ease,
    background 0.30s ease;
  box-shadow: 0 4px 16px rgba(197, 35, 45, 0.32);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.map-directions-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.50s ease;
  pointer-events: none;
}
.map-directions-btn:hover::before {
  left: 145%;
}
.map-directions-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(197, 35, 45, 0.48);
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: var(--white);
}

/* ── Leaflet overrides for dark theme ── */
.leaflet-container {
  background: var(--deep) !important;
  font-family: "Cairo", "Tajawal", sans-serif !important;
}
.leaflet-control-zoom a {
  background: rgba(13, 17, 23, 0.90) !important;
  color: var(--white) !important;
  border-color: rgba(197, 35, 45, 0.25) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 1rem !important;
  transition: background 0.25s ease, color 0.25s ease !important;
}
.leaflet-control-zoom a:hover {
  background: var(--brand) !important;
  color: var(--white) !important;
  border-color: var(--brand) !important;
}
.leaflet-control-attribution {
  background: rgba(10, 10, 12, 0.78) !important;
  color: rgba(248, 246, 240, 0.38) !important;
  font-size: 0.67rem !important;
  backdrop-filter: blur(6px) !important;
}

/* ── Pin label bubble — hovers above the Google Maps red marker ── */
.map-pin-bubble {
  position: absolute;
  /* pin sits at 50% x / 50% y of the iframe */
  left: 50%;
  top: 50%;
  /* move up: 100% of own height + 44px for the pin drop itself */
  transform: translate(-50%, calc(-100% - 44px));
  z-index: 6;
  pointer-events: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;

  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(197, 35, 45, 0.45);
  border-radius: 10px;
  padding: 7px 14px 6px;
  white-space: nowrap;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(197, 35, 45, 0.10) inset;
}

/* Downward triangle pointer aligned to the pin */
.map-pin-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: 8px solid rgba(197, 35, 45, 0.45);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.map-pin-bubble::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top: 7px solid rgba(10, 10, 12, 0.90);
  z-index: 1;
}

.map-pin-bubble-en {
  font-family: "Oxanium", "Cairo", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(120deg, #ffffff 20%, var(--brand-light, #e8404a) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.map-pin-bubble-ar {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(197, 35, 45, 0.80);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* ── Map responsive ── */
@media (max-width: 1024px) {
  .map-section {
    padding: 90px 50px;
  }
}
@media (max-width: 768px) {
  .map-section {
    padding: 80px 20px;
  }
  .map-overlay-card {
    position: static;
    transform: none;
    max-width: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 1px solid rgba(197, 35, 45, 0.20);
    border-left: none;
    border-right: none;
  }
  .map-overlay-card:hover {
    transform: none;
  }
  .map-wrapper {
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .map-iframe-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
  }
  #rdp-map {
    height: 320px;
  }
  .map-pin-bubble {
    padding: 5px 10px 4px;
  }
  .map-pin-bubble-en { font-size: 0.72rem; }
  .map-pin-bubble-ar { font-size: 0.60rem; }
}

/* ═══════════════════════════════════════════════════════════
   27-INCH  ≥ 1920px
   يشمل: 1080p 27" بـ 100%، و 1440p 27" بـ 150% أو 125% scaling
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1920px) {

  /* ── مساحة التنفس العامة للأقسام ── */
  section,
  .Team,
  .partners,
  .map-section { padding: 130px 80px; }
  .cta          { padding: 140px 80px 0; }

  /* ── توسيع جميع الحاويات ── */
  .about-grid,
  .team-carousel-wrapper,
  .partners-grid,
  .values-grid,
  .footer-container,
  .map-wrapper   { max-width: 1520px; }

  /* ── Hero ── */
  .hero-content  { max-width: 1020px; }
  .hero h1       { font-size: 5.8rem; }
  .tagline       { font-size: 1.65rem; }
  .hero-desc     { font-size: 1.18rem; max-width: 760px; }
  .hero::before  { left: 80px; }
  .hero::after   { right: 80px; }

  /* ── CTA button ── */
  .btn           { padding: 17px 52px; font-size: 1.08rem; }

  /* ── عناوين الأقسام ── */
  .section-title { font-size: 2.85rem; }
  .section-label { font-size: 0.75rem; letter-spacing: 5px; }

  /* ── فريق العمل: 3 بطاقات بدل 2 في صف ── */
  .team-slide    { flex: 0 0 calc(33.333% - 14px); }

  /* ── الخريطة ── */
  #rdp-map       { height: 620px; }

  /* ── شريط بطاقات القيم ── */
  .values-grid   { gap: 32px; }
  .value-box     { padding: 32px 52px; }
}

/* ═══════════════════════════════════════════════════════════
   2K أصلي  ≥ 2200px
   يشمل: 1440p 27" بـ 100–115% scaling
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 2200px) {

  section,
  .Team,
  .partners,
  .map-section   { padding: 150px 80px; }
  .cta            { padding: 160px 80px 0; }

  .about-grid,
  .team-carousel-wrapper,
  .partners-grid,
  .values-grid,
  .footer-container,
  .map-wrapper   { max-width: 1820px; }

  .hero-content  { max-width: 1180px; }
  .hero h1       { font-size: 6.6rem; }
  .tagline       { font-size: 1.85rem; }
  .hero-desc     { font-size: 1.28rem; max-width: 880px; }
  .hero::before  { left: 100px; }
  .hero::after   { right: 100px; }

  .btn           { padding: 19px 60px; font-size: 1.12rem; }

  .section-title { font-size: 3.4rem; }
  .section-label { letter-spacing: 6px; }

  #rdp-map       { height: 720px; }

  .value-box     { padding: 36px 60px; }
}

/* ================================================================
   SERVICES-NEW — خدماتنا (4-column cinematic grid)
   ================================================================ */
.services-new-section {
  background: var(--black, #0a0a0a);
  padding: 80px 40px;
  
  text-align: center;
}

.services-new-section .section-title {
  display: block;
  width: 100%;
  text-align: center;
}

.services-new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1440px;
  margin: 50px auto 0;
  direction: rtl;
}

/* ── Column ── */
.sn-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sn-col-number {
  font-family: 'Oxanium', 'Cairo', monospace;
  font-size: 3.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 4px;
  user-select: none;
}

/* ── Card ── */
.sn-card {
  border: 1.5px solid var(--brand, #C5232D);
  border-radius: 8px;
  padding: 18px 16px 16px;
  background: rgba(197, 35, 45, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  flex: 1 0 auto;
}

.sn-card:hover {
  background: rgba(197, 35, 45, 0.09);
  box-shadow: 0 0 24px rgba(197, 35, 45, 0.18);
  transform: translateY(-3px);
}

/* ── Card heading ── */
.sn-card-title {
  color: var(--brand, #C5232D);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(197, 35, 45, 0.22);
  line-height: 1.5;
}

/* ── List ── */
.sn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sn-list li {
  color: rgba(255, 255, 255, 0.80);
  font-family: 'Cairo', sans-serif;
  font-size: 0.80rem;
  line-height: 1.65;
  padding-right: 18px;
  position: relative;
  text-align: right;
}

.sn-list li::before {
  content: '✓';
  color: var(--brand, #C5232D);
  position: absolute;
  right: 0;
  font-weight: 700;
  font-size: 0.82rem;
  top: 2px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sn-col-number { font-size: 2.8rem; }
}

@media (max-width: 600px) {
  .services-new-section { padding: 60px 20px; }
  .services-new-grid { grid-template-columns: 1fr; gap: 16px; }
  .sn-col-number { font-size: 2.2rem; }
  .sn-card { padding: 14px 13px 13px; }
  .sn-card-title { font-size: 0.88rem; }
  .sn-list li { font-size: 0.76rem; }
}