/* Dissolve Regular */
@font-face {
  font-family: 'Dissolve';
  src: url('/fonts/dissolve/Dissolve-Regular.woff2') format('woff2'),
    url('/fonts/dissolve/Dissolve-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Dissolve Light */
@font-face {
  font-family: 'Dissolve';
  src: url('/fonts/dissolve/Dissolve-Light.woff2') format('woff2'),
    url('/fonts/dissolve/Dissolve-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Dune Rise */
@font-face {
  font-family: 'Dune Rise';
  src: url('/fonts/dune_rise/Dune-Rise.woff2') format('woff2'),
    url('/fonts/dune_rise/Dune-Rise.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Nasalization */
@font-face {
  font-family: 'Nasalization';
  src: url('/fonts/nasalization/Nasalization.woff2') format('woff2'),
    url('/fonts/nasalization/Nasalization.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Sphere Fez */
@font-face {
  font-family: 'Sphere Fez';
  src: url('/fonts/sphere_fez/Sphere-Fez.woff2') format('woff2'),
    url('/fonts/sphere_fez/Sphere-Fez.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ✅ Roboto Variable Normal */
/* roboto-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto/roboto-v48-latin-800.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/roboto/roboto-v48-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}




/* ======================= 🎨 Variables ======================= */
:root {
  /* الخلفيات */
  --color-bg: #0c0c0c;
  /* أسود داكن */
  --color-bg2: #ffffff;
  /* أبيض فاتح */
  --color-overlay: rgba(0, 0, 0, 0.6);
  /* النصوص (للخلفيات الداكنة) */
  --color-text: #ffffff;
  /* أبيض */
  --color-text-muted: #cccccc;
  /* رمادي فاتح */
  /* النصوص (للخلفيات الفاتحة) */
  --color-text-dark: #1a1a1a;
  /* أسود ناعم */
  --color-text-dark-muted: #444444;
  /* رمادي غامق أنيق */
  /* اللون الأساسي البنفسجي */
  --color-primary: #7C3AED;
  --color-primary-dark: #6029c4;
  /* الرمادي */
  --color-gray: #ccc;
  --color-gray-dark: #7a7a7a;
  /* Gradient بنفسجي */
  --color-gradient: linear-gradient(to right, #7C3AED, #9d4edd);
}

/* ======================= 🛠️ Reset ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg2);
  color: var(--color-text);
  text-align: center;
  font-family: 'Inter', sans-serif;

}


/* ======= Navbar container ======= */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  transition: background .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 12, .55);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.navbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: min(4vw, 24px);
  padding: .9rem clamp(14px, 4vw, 6%);
  width: 100%;
  min-height: 60px;
}

/* ======= Logo (Left) ======= */
.logo {
  font-family: 'Sphere Fez';
  font-size: clamp(1.2rem, 2.3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--color-text);
  text-decoration: none;
  user-select: none;
}

.logo span {
  background: linear-gradient(90deg, #7C3AED, #00C6FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* ======= Center Nav (Desktop) ======= */
.nav-links {
  justify-self: center;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-family: 'Roboto', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

.nav-links a {
  position: relative;
  padding: .45rem .7rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  transition: color .25s ease;
  font-family: 'Inter', sans-serif;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ======= Language (Right on Laptop) ======= */
.language-switcher {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.lang-btn {
  border: 0;
  cursor: pointer;
  background: transparent;
  outline: none;
  padding: .42rem .9rem;
  border-radius: 10px;
  font: 600 .85rem/1 'Poppins', system-ui, sans-serif;
  letter-spacing: .3px;
  color: #e0e0e0;
  transition: all .2s ease;
}

.lang-btn:hover {
  background: rgba(124, 58, 237, .12);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.lang-btn[aria-checked="true"] {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .28);
}

/* ======= Mobile Toggle ======= */
.menu-toggle {
  justify-self: end;
  display: none;
  /* hidden on laptop by default */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border .2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, .08);
}

.menu-toggle:active {
  transform: scale(.96);
}

/* ======= Backdrop ======= */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .25s ease;
}

.backdrop.active {
  opacity: 1;
}

/* ======= Mobile Drawer ======= */
.mobile-menu {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(84vw, 380px);
  z-index: 1600;
  background: var(--drawer-bg);
  color: var(--drawer-link);
  border-left: 1px solid var(--drawer-border);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
  padding: 68px 18px 18px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu[aria-hidden="true"] {
  pointer-events: none;
}

.close-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 1;
  color: #e9e9e9;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, border .2s ease;
}

.close-btn:hover {
  background: rgba(255, 255, 255, .08);
}

.close-btn:active {
  transform: scale(.96);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__list a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--drawer-link);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2px;
  transition: background .2s ease, color .2s ease, transform .07s ease;
}

.mobile-menu__list a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.mobile-menu__list a.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, .22), rgba(124, 58, 237, .12));
  color: #fff;
  border: 1px solid rgba(124, 58, 237, .35);
}

/* ======= Mobile Language (inside drawer) ======= */
.mobile-language {
  margin-top: auto;
  padding: 12px 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-language__title {
  font: 700 .85rem/1.3 system-ui, sans-serif;
  color: #bfbfbf;
  margin: 6px 2px 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.mobile-language__switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ======= Breakpoints ======= */
/* Laptop & up: no icon, show center nav + language right */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .language-switcher {
    display: inline-flex;
  }
}

/* Small screens: show icon only; put everything inside the drawer */
@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .language-switcher {
    display: none;
  }
}

/* iOS smooth scroll inside drawer */
@supports (-webkit-touch-callout: none) {
  .mobile-menu {
    -webkit-overflow-scrolling: touch;
  }
}


/* تحسينات خاصة بالموبايل */
@media (max-width: 1024px) {

  /* 1) توحيد الخط */
  body,
  .mobile-menu,
  .mobile-menu__list a,
  .mobile-language,
  .mobile-language__title,
  .mobile-language .lang-btn {
    font-family: 'Poppins', system-ui, sans-serif !important;
    -webkit-text-size-adjust: 100%;
    /* يحافظ على الحجم في iOS */
  }

  /* 2) Mobile Drawer أوضح وأقصر */
  .mobile-menu {
    inset-block: 10px;
    /* مسافة صغيرة فوق وتحت */
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, #1a1a1a 0%, #363636 100%);
    padding: 60px 16px 80px;
    /* padding سفلي أكبر لأزرار اللغة */
  }

  /* 3) روابط القائمة */
  .mobile-menu__list a {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    transition: all .2s ease;
  }

  .mobile-menu__list a:hover {
    background: rgba(124, 58, 237, .18);
    border-color: rgba(124, 58, 237, .35);
    color: #fff;
  }

  .mobile-menu__list a.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, .22), rgba(124, 58, 237, .12));
    border: 1px solid rgba(124, 58, 237, .35);
    color: #fff;
  }

  /* 4) أزرار اللغة مثبتة أسفل */
  .mobile-language {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px calc(env(safe-area-inset-bottom) + 12px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .35);
  }

  .mobile-language__switcher {
    display: flex;
    gap: 6px;
  }

  .mobile-language .lang-btn {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    font-size: .9rem;
    color: #fff;
  }

  .mobile-language .lang-btn[aria-checked="true"] {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, .28);
  }
}

/* =========================================================
   HERO — Premium Layout (Left content / Glass cards grid)
   Compatible with your existing HTML (.hero-slide …)
   Tip: To put the cards on the LEFT, add class "cards-left" to .hero-content
   ========================================================= */

/* ---------- Theme Vars (edit to match your palette) ---------- */
:root {
  --color-gray: rgba(255, 255, 255, .25);
  --glass-bg: rgba(255, 255, 255, .08);
  --glass-bg-hover: rgba(255, 255, 255, .14);
  --glass-border: rgba(255, 255, 255, .18);
  --glass-border-hover: rgba(255, 255, 255, .32);
  --radius-lg: 18px;
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .28);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .22);

  --container-max: 1240px;
  --gap-xl: 48px;
  --gap-md: 18px;

  --h1-size: clamp(2.2rem, 3.2vw + 1.4rem, 3.4rem);

  /* header */
  --header-h: 78px;
}


.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--color-text);
}

/* =========================================================
   Slide must fill parent
   ========================================================= */
.hero-slide {
  position: absolute;
  /* ثابت */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  padding: 120px 20px 60px;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* =========================================================
   Indicators
   ========================================================= */
.hero-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-indicators span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #777;
  cursor: pointer;
  transition: background .3s, transform .2s;
}

.hero-indicators span.active {
  background: var(--color-primary);
  transform: scale(1.05);
}

/* =========================================================
   Inner Grid (content ↔ cards)
   ========================================================= */
.hero-content {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 520px;
  /* Left content + Right cards */
  gap: var(--gap-xl);
  align-items: center;
  height: 100vh;
}

/* Modifier: place cards on the LEFT (add .cards-left to .hero-content) */
.hero-content.cards-left {
  grid-template-columns: 700px minmax(320px, 1fr);
}

.hero-content.cards-left .hero-right {
  order: 1;
}

.hero-content.cards-left .hero-left {
  order: 2;
}

/* ===============================
   LEFT SIDE — Ultra-Polished Styling
   (titles, buttons, worked-with, slider)
   =============================== */

/* توهج خفيف خلف النص يزيد الفخامة */
.hero-left::before{
  content:"";
  position:absolute;
  left: -8%;
  top: -10%;
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1/1;
  background:
    radial-gradient(65% 65% at 40% 40%, rgba(124,58,237,.45) 0%, rgba(124,58,237,0) 60%),
    radial-gradient(55% 55% at 70% 70%, rgba(0,198,255,.35) 0%, rgba(0,198,255,0) 60%);
  filter: blur(38px);
  opacity: .28;
  pointer-events: none;
  z-index: 0;
}
.hero-left > *{ position: relative; z-index: 1; }

/* --- Heading --- */
.hero-left h1{
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .2px;
  text-wrap: balance;              /* توازن الأسطر تلقائيًا */
  max-width: 780px;
  margin: 0;
  color: var(--color-text);
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  padding-bottom: 60px;
}

/* لمسة تحت العنوان */
.hero-left h1::after{
  content:"";
  display:block;
  width: clamp(140px, 22vw, 260px);
  height: 4px;
  border-radius: 999px;
  margin-top: clamp(8px, .9vw, 14px);
  background: linear-gradient(90deg, var(--color-primary), rgba(255,255,255,0));
  opacity: .7;
}

.hero-left .text-gradient{
  display:inline-block;
  background: linear-gradient(92deg, #74f1d5, #61a6ff 55%, #e0fffb 110%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.hero-buttons{
  display: inline-flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 16px);
  margin: clamp(8px, 1vw, 14px) 0 clamp(6px, 1.6vw, 20px);
}

.btn-primary{
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), #4fc3f7);
  color: #061013;
  padding: .9rem 1.55rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: none;
  box-shadow: 0 10px 28px rgba(33,212,163,.28);
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-primary::before{
  content:"";
  position:absolute; inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%);
  mix-blend-mode: overlay; pointer-events:none;
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(33,212,163,.38);
  filter: brightness(1.02);
}

.btn-secondary{
  position: relative;
  padding: .9rem 1.55rem;
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn-secondary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

/* ===============================
   Worked With — Standalone Light Section
   (Full-bleed white background + polished slider)
   =============================== */

.worked-with{
  /* ألوان متناسقة */
  --accent: var(--color-primary, #7C3AED);
  --text-dark: #1a1a1a;
  --text-muted: #5a6472;
  --divider: #eef0f3;

  /* Full-bleed white حتى داخل container */
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 32px);
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  text-align: center;
}
.worked-with::before{
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;                 /* فل بليد */
  background: #fff;             /* خلفية بيضاء */
  z-index: -1;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

/* ------- Heading + sub ------- */
.worked-with h2{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.05rem, .9rem + .7vw, 1.35rem);
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-dark);
}
.worked-with h2::before{
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 55%, transparent);
}
.worked-with p{
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(.92rem, .86rem + .2vw, 1rem);
}

/* ------- Slider ------- */
.slider{
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: clamp(20px, 3vw, 44px);
}
.slider::before,
.slider::after{
  content:"";
  position:absolute; top:0; bottom:0; width: 84px;
  pointer-events:none; z-index:1;
  /* تدرّج من الأبيض للشفاف ليتماشى مع الخلفية */
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.slider::after{ right:0; transform: scaleX(-1); }
.slider::before{ left:0; }

.slides{
  display:flex; width:max-content; align-items:center;
  animation: partners-scroll 22s linear infinite;
  will-change: transform;
}
.slider:hover .slides{ animation-play-state: paused; }

/* روابط الشعار كبطاقة خفيفة */
.slides a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 22px);
  margin: 0 clamp(14px, 2.2vw, 28px);
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e9edf2;
  box-shadow: 0 6px 18px rgba(16,24,40,.04);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.slides a:hover{
  transform: translateY(-4px);
  border-color: #dfe5ec;
  box-shadow: 0 10px 26px rgba(16,24,40,.08);
}

/* صور الشعارات */
.slides img{
  width: clamp(120px, 9vw, 160px);
  height: clamp(70px, 6vw, 100px);
  object-fit: contain;
  transition: transform .3s ease, filter .3s ease;
}
.slides a:hover img{
  transform: translateY(-2px);
  filter: none; /* أظهر الألوان عند الهوفر */
}

/* حركة السلايدر */
@keyframes partners-scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}



/* =========================================================
   Right Column — Glass Cards (2×2)
   ========================================================= */
.hero-right {
  display: grid;
  place-items: center;
}

.glass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
  width: 100%;
  max-width: 520px;
}

.glass-card {
  position: relative;
  padding: 22px 20px;
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;

  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}

/* subtle gradient rim */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 212, 163, .38), rgba(255, 255, 255, 0) 42%, rgba(97, 166, 255, .38));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.glass-card:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
}

/* icon + text */
.glass-card i {
  font-size: 28px;
  color: var(--color-primary);
  filter: drop-shadow(0 4px 10px rgba(33, 212, 163, .35));
}

.glass-card h4 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: .2px;
}

.glass-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}


@keyframes riseIn {
  from {
    transform: translateY(18px);
    opacity: .0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================================
   Responsive Pack — Tablets & Mobiles
   ضع هذا الملف بعد CSS الرئيسي ليعمل كـ overrides
   ========================================================= */

/* تحسينات عامة للموبايل */
@media (max-width: 1280px){
  /* اجعل الحشو الداخلي للهيرو أضيق قليلاً على الشاشات المتوسطة */
  .hero-slide { padding: clamp(70px, 8vh, 120px) 0 clamp(36px, 6vh, 70px); }
  .hero-slide > .hero-content { padding-inline: clamp(16px, 4vw, 36px); }
}

/* ================ Tablet (≤ 1024px) ================ */
@media (max-width: 1024px){

  /* الهيرو يملأ الشاشة الفعلية على الموبايل/الآيباد */
  .hero-carousel{ height: 100svh; }
  .hero-carousel.has-fixed-header{ height: calc(100svh - var(--header-h,78px)); }

  /* السلايد: عمود واحد، المحتوى أولاً والكروت ثانيًا */
  .hero-slide{
    align-items: stretch;
    padding: clamp(72px, 8vh, 120px) 0 clamp(40px, 6vh, 72px);
  }
  .hero-slide > .hero-content{
    max-width: min(var(--container-max, 1240px), 95vw);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;   /* عمود واحد */
    gap: 34px;
    padding-inline: clamp(18px, 4vw, 36px);
  }
  .hero-left{ order: 1; }
  .hero-right{ order: 2; }

  /* قلّل وهج الخلفية خلف العنوان للأداء */
  .hero-left::before{ opacity: .18; filter: blur(28px); left: -6%; top: -8%; width: clamp(220px, 40vw, 420px); }

  /* العنوان والأزرار */
  .hero-left h1{
    font-size: clamp(2rem, 1.1rem + 3.4vw, 3rem);
    line-height: 1.15;
    padding-bottom: 40px;
  }
  .hero-left h1::after{
    height: 3px;
    width: clamp(120px, 30vw, 220px);
  }

  .hero-buttons{
    gap: 12px;
  }
  .btn-primary, .btn-secondary{
    padding: .9rem 1.3rem;
    border-radius: 12px;
  }

  /* الكروت الزجاجية: شبكتان */
  .glass-grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 640px;  /* تعريض بسيط على التابلت */
  }
  .glass-card{
    min-height: 140px;
    padding: 18px 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    backdrop-filter: blur(12px);
  }
  .glass-card h4{ font-size: 17px; }
  .glass-card p{ font-size: 14px; }

  /* مؤشرات السلايد */
  .hero-indicators{ bottom: 20px; }

  /* قسم Worked With (مستقل بعد الهيرو) */
  .worked-with{
    padding: clamp(40px, 7vw, 72px) clamp(16px, 5vw, 32px);
    max-width: min(1100px, 94vw);
  }
  .worked-with h2{ font-size: clamp(1rem, .8rem + .7vw, 1.25rem); }
  .worked-with p{ font-size: clamp(.92rem, .85rem + .25vw, 1rem); }

  .slider{ margin-top: clamp(18px, 3vw, 36px); }
  .slider::before, .slider::after{ width: 56px; } /* تقليل عرض التدرج بالحواف */

  .slides a{
    margin: 0 clamp(10px, 2vw, 20px);
    padding: clamp(8px, 1vw, 12px) clamp(12px, 1.5vw, 18px);
    border-radius: 12px;
  }
  .slides img{
    width: clamp(110px, 22vw, 150px);
    height: clamp(64px, 14vw, 92px);
  }
}

/* =========================================================
   Mobile & Tablet Polishing — Hero + Glass Cards + Worked With
   ضع هذا الكود بعد CSS الأساسي ليعمل كـ overrides للشاشات الصغيرة
   ========================================================= */

/* ================ Large Phone / Small Tablet (≤ 820px) ================ */
@media (max-width: 820px){

  /* مساحة آمنة للعنوان مع الهيدر الثابت */
  .hero-left h1{
    font-size: clamp(1.9rem, 1rem + 3.8vw, 2.6rem);
    line-height: 1.18;
    padding-bottom: 15px;
    padding-top: clamp(64px, 7vh, 96px);
  }
  .hero-carousel.has-fixed-header .hero-left h1{
    /* زوّد المسافة قليلًا لو عندك هيدر ثابت */
    padding-top: calc(clamp(64px, 7vh, 96px) + 0.25 * var(--header-h,78px));
  }

  /* إلغاء الوهج للأداء */
  .hero-left::before{ display: none; }

  /* الأزرار: راحة لمس أفضل */
  .btn-primary, .btn-secondary{
    padding: 1rem 1.2rem;
    border-radius: 12px;
    touch-action: manipulation;
  }

  /* الكروت الزجاجية — شبكة عمودين متناسقة */
  .glass-grid{
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    max-width: 640px;
    margin-inline: auto;
  }

  /* إعادة تركيب داخل الكرت: أيقونة يسار + نص يمين (مظهر أرقى على الشاشات الصغيرة) */
  .glass-card{
    min-height: 118px;
    padding: 14px 14px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto 1fr;
    grid-column-gap: 12px;
    grid-row-gap: 6px;
    grid-template-areas:
      "icon title"
      "icon desc";
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
  }
  .glass-card i{
    grid-area: icon;
    font-size: clamp(22px, 2.8vw, 26px);
    align-self: start;
  }
  .glass-card h4{
    grid-area: title;
    font-size: 15.5px;
    margin-top: 2px;
  }
  .glass-card p{
    grid-area: desc;
    font-size: 13.5px;
  }

  /* تأثيرات أنعم */
  .glass-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.26);
  }

  /* السلايدر */
  .slider::before, .slider::after{ width: 44px; }
  .slides img{
    width: clamp(100px, 24vw, 140px);
    height: clamp(56px, 15vw, 84px);
  }
}

/* ================ Phone (≤ 680px) ================ */
@media (max-width: 680px){

  /* تعويض الهيدر الثابت داخل بادينج السلايد */
  .hero-carousel.has-fixed-header .hero-slide{
    padding-top: calc(clamp(56px, 7.6vh, 90px) + var(--header-h,78px));
  }

  /* ترتيب مريح للمحتوى */
  .hero-slide > .hero-content{
    gap: 28px;
    padding-inline: 16px;
  }

  /* العنوان مع مسافة علوية واضحة */
  .hero-left h1{
    font-size: clamp(1.72rem, 1.02rem + 3.9vw, 2.35rem);
    line-height: 1.18;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    padding-top: clamp(46px, 6.5vh, 78px);
    padding-bottom: 14px;
  }
  .hero-carousel.has-fixed-header .hero-left h1{
    padding-top: calc(clamp(46px, 6.5vh, 78px) + 0.35 * var(--header-h,78px));
  }
  .hero-left h1::after{ width: 42%; height: 3px; opacity: .6; }

  /* الأزرار: ممتدة بعرض الحاوية لسهولة اللمس */
  .hero-buttons{ gap: 10px; }
  .btn-primary, .btn-secondary{
    width: 100%;
    justify-content: center;
    padding: 1rem 1.1rem;
    border-radius: 12px;
  }

  /* الكروت: عمود واحد أنيق */
  .glass-grid{
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
    gap: 14px;
  }
  .glass-card{
    min-height: 120px;
    padding: 14px 16px;
    grid-template-columns: 42px 1fr;
    grid-column-gap: 14px;
    grid-row-gap: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
  }
  .glass-card i{ font-size: 26px; }
  .glass-card h4{ font-size: 16px; }
  .glass-card p{ font-size: 13.5px; }

  /* مؤشرات السلايد */
  .hero-indicators{ bottom: 16px; }
  .hero-indicators span{ width: 12px; height: 12px; }

  /* Worked With */
  .worked-with{
    padding: clamp(32px, 8vw, 56px) 16px;
    max-width: 100%;
  }
  .slider{ margin-top: clamp(14px, 4vw, 22px); }
  .slider::before, .slider::after{ width: 28px; }
  .slides a{
    margin: 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
  }
  .slides img{
    width: clamp(94px, 32vw, 120px);
    height: clamp(52px, 18vw, 74px);
  }
}

/* ================ Small Phone (≤ 420px) ================ */
@media (max-width: 420px){

  /* عنوان مع مسافة من أعلى الشاشة (مراعاة الهيدر الثابت) */
  .hero-left h1{
    font-size: clamp(1.6rem, 1.05rem + 3.6vw, 2.05rem);
    padding-top: clamp(36px, 7vh, 56px);
    padding-bottom: 18px;
  }
  .hero-carousel.has-fixed-header .hero-left h1{
    padding-top: calc(clamp(36px, 7vh, 56px) + 0.45 * var(--header-h,78px));
  }

  /* تقليل الفراغات بإحكام دون كسر التصميم */
  .hero-slide > .hero-content{ gap: 22px; }

  /* الكروت: مدمجة وأنيقة */
  .glass-card{
    min-height: 112px;
    padding: 12px 14px;
    grid-template-columns: 40px 1fr;
    grid-column-gap: 12px;
    grid-row-gap: 6px;
    border-radius: 15px;
  }
  .glass-card i{ font-size: 24px; }
  .glass-card h4{ font-size: 15.2px; }
  .glass-card p{ font-size: 13px; }

  /* السلايدر */
  .slides img{
    width: clamp(88px, 34vw, 110px);
    height: clamp(48px, 20vw, 68px);
  }
}

/* ================ Motion & Performance ================ */
@media (prefers-reduced-motion: reduce){
  .slides{ animation: none !important; }
  .glass-card,
  .btn-primary, .btn-secondary{ transition: none !important; }
}




/* =======================
   🔹 Slide 2 (Alaca Truck)
======================= */
.hero-slide.bg-alaca {
  /* دمج أكثر من تدرج */
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #7a2415 0%, #b63a0e 35%, #d35400 65%, #e67e22 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-text);
  position: relative;
  overflow: hidden;
}

/* طبقة شفافية خفيفة (لزيادة وضوح النصوص) */
.hero-slide.bg-alaca::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

.hero-slide.bg-alaca>* {
  position: relative;
  z-index: 1;
}

/* Container for left + right */
.slide2-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0 40px;
}

/* Left side content */
.slide2-content {
  flex: 1;
  text-align: left;
}

.slide2-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.slide2-title span {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide2-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text);
}

.slide2-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 500px;
}

.slide2-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--color-text);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slide2-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Right side images */
.slide2-images {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.slide2-laptop {
  max-width: 500px;
  height: auto;
}

.slide2-phone {
  max-width: 150px;
  height: auto;
  align-self: flex-end;
}


/* =======================
   🔹 Slide 3 (Innovative Solutions)
======================= */
.hero-slide.bg-slide3 {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #1a237e 0%, #283593 35%, #3949ab 65%, #512da8 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-text);
}

.hero-slide.bg-slide3>* {
  position: relative;
  /* 🔹 مهم */
  z-index: 1;
  /* يخلي النص فوق الـ ::after */
}

.hero-slide.bg-slide3::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
  pointer-events: none;
  /* 🚀 يمنعها من اعتراض الكليك */
}

.hero-slide>* {
  position: relative;
  z-index: 1;
}




/* Layout */
.slide3-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0 40px;
}

/* Left content */
.slide3-content {
  flex: 1;
  text-align: left;
}

.slide3-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.slide3-title span {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide3-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text);
}

.slide3-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 500px;
}

.slide3-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--color-text);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slide3-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Right images */
.slide3-images {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.slide3-laptop {
  max-width: 500px;
  height: auto;
}

.slide3-phone {
  max-width: 150px;
  height: auto;
  align-self: flex-end;
}



/* =======================
   🔹 Slide 4 (Future Vision)
======================= */
.hero-slide.bg-slide4 {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #0f2027 0%, #2c5364 50%, #00c6ff 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-text);
}

/* Overlay */
.hero-slide.bg-slide4::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.hero-slide.bg-slide4>* {
  position: relative;
  z-index: 1;
}

/* Layout */
.slide4-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  padding: 0 40px;
}

/* Left content */
.slide4-content {
  flex: 1;
  text-align: left;
}

.slide4-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.slide4-title span {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide4-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-text);
}

.slide4-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 500px;
}

.slide4-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--color-text);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slide4-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Right images */
.slide4-images {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.slide4-laptop {
  max-width: 500px;
  height: auto;
}

.slide4-phone {
  max-width: 200px;
  height: auto;
  align-self: flex-end;
}


/* =======================
   📱 Responsive Hero & Slides
======================= */
@media (max-width: 992px) {
  .hero-slide h1 {
    font-size: 2.2rem;
    max-width: 600px;
  }

  .slide2-container,
  .slide3-container,
  .slide4-container {
    gap: 24px;
    padding: 0 20px;
  }

  .slide2-title,
  .slide3-title,
  .slide4-title {
    font-size: 2.2rem;
  }

  .slide2-subtitle,
  .slide3-subtitle,
  .slide4-subtitle {
    font-size: 1rem;
  }

  .slide2-description,
  .slide3-description,
  .slide4-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .slide2-laptop,
  .slide3-laptop,
  .slide4-laptop {
    max-width: 350px;
  }

  .slide2-phone,
  .slide3-phone,
  .slide4-phone {
    max-width: 120px;
  }
}

@media (max-width: 768px) {

  .slide2-container,
  .slide3-container,
  .slide4-container {
    flex-direction: column;
    /* النص فوق الصور */
    text-align: center;
    gap: 20px;
    padding: 0 16px;
  }

  .slide2-content,
  .slide3-content,
  .slide4-content {
    text-align: center;
  }

  .slide2-title,
  .slide3-title,
  .slide4-title {
    font-size: 1.8rem;
  }

  .slide2-subtitle,
  .slide3-subtitle,
  .slide4-subtitle {
    font-size: 0.95rem;
  }

  .slide2-description,
  .slide3-description,
  .slide4-description {
    font-size: 0.9rem;
  }

  .slide2-images,
  .slide3-images,
  .slide4-images {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .slide2-laptop,
  .slide3-laptop,
  .slide4-laptop {
    max-width: 250px;
  }

  .slide2-phone,
  .slide3-phone,
  .slide4-phone {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .hero-slide h1 {
    font-size: 1.6rem;
  }

  .slide2-title,
  .slide3-title,
  .slide4-title {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary,
  .slide2-btn,
  .slide3-btn,
  .slide4-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .slide2-laptop,
  .slide3-laptop,
  .slide4-laptop {
    max-width: 200px;
  }

  .slide2-phone,
  .slide3-phone,
  .slide4-phone {
    max-width: 80px;
  }
}

/* =======================
   🔹 Services Section
======================= */

/* الحالة الافتراضية (مخفية) */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* الحالة عند التفعيل */
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.services-section {
  min-height: 100vh;
  /* يغطي الشاشة لو المحتوى قصير */
  height: auto;
  /* يتمدد مع المحتوى */
  display: flex;
  flex-direction: column;
  background: var(--color-bg2);
  color: var(--color-text);
  text-align: center;
}


/* 🔹 الهيدر بخلفية متدرجة */
.services-header {
  padding: 80px 20px 60px;
  background: var(--color-gradient);
  /* ✅ استبدال بـ المتغير */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.services-title {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-text);
  /* أبيض من المتغير */
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

}

.services-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  /* أبيض خفيف */
  max-width: 800px;
  margin: 0 auto;
}

/* 🔹 الكروت */
.services-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 25px auto 40px;
  padding: 0 20px;
}

.services-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 360px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

/* 🔹 أيقونة */
.services-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  /* اللون الأساسي */
}

/* 🔹 نصوص الكرت */
.services-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-bg);
  /* أسود داكن */
}

.services-card-text {
  font-size: 0.95rem;
  color: var(--color-gray-dark);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* 🔹 قائمة */
.services-list {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
  text-align: left;
}

.services-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--color-gray-dark);
}

.services-list li::before {
  content: "•";
  color: var(--color-primary);
  position: absolute;
  left: 0;
}

/* 🔹 زر */
.services-btn {
  display: inline-block;
  background: var(--color-gradient);
  /* ✅ تدرج رسمي */
  color: var(--color-text);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.services-btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* =======================
   📱 Responsive Services
======================= */

/* لابتوب متوسط */
@media (max-width: 1200px) {
  .services-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* تابلت */
@media (max-width: 992px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-card {
    padding: 30px 20px;
    min-height: 320px;
  }

  .services-card-title {
    font-size: 1.2rem;
  }
}

/* موبايل */
@media (max-width: 576px) {
  .services-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-header {
    padding: 60px 15px 40px;
  }

  .services-title {
    font-size: 2rem;
  }

  .services-subtitle {
    font-size: 1rem;
    max-width: 90%;
  }

  .services-card {
    padding: 25px 18px;
    min-height: auto;
  }

  .services-icon {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .services-card-text,
  .services-list li {
    font-size: 0.9rem;
  }

  .services-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}



/* =======================
   🔹 Portfolio Section
======================= */
.portfolio-section {
  padding: 0;
  /* نخلي الهيدر يغطي فوق */
  background: var(--color-bg2);
  /* خلفية فاتحة */
  color: var(--color-text);
  text-align: center;
  height: 100vh;
  /* يغطي الشاشة بالكامل */
  height: auto;
  /* يتمدد مع المحتوى */
}

/* Header */
.portfolio-header {
  padding: 80px 20px 60px;
  background: var(--color-gradient);
  /* ✅ تدرج رسمي */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 50px;
}

.portfolio-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.portfolio-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  /* نص أبيض شفاف */
}

/* Tabs */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.portfolio-tab {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--color-bg2);
  /* خلفية فاتحة */
  border: 1px solid var(--color-gray);
  color: var(--color-bg);
  /* نص داكن */
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-tab:hover {
  background: rgba(124, 58, 237, 0.1);
  /* بنفسجي شفاف عند الـ hover */
  border-color: var(--color-primary);
  color: var(--color-primary);
  /* يغير النص للبنفسجي */
}

.portfolio-tab.active {
  background: var(--color-gradient);
  /* التدرج الأساسي */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

/* ===========================
   🎯 Portfolio Section Styles
   =========================== */

/* Grid Layout for Cards */
/* الحاوية: صف مرن متمركز + سحب أفقي */
.portfolio-cards {
  display: none;
  /* تبقى مخفية حتى تُفعّل بـ .active */
  gap: 24px;
  justify-content: center;
  /* تمركز الكروت في منتصف الشاشة */
  align-items: stretch;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  /* شريط سحب جانبي عند الزيادة */
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  /* سناپ جميل عند السحب (اختياري) */
  -webkit-overflow-scrolling: touch;
}

.portfolio-cards.active {
  display: flex;
  /* بدل grid → flex */
  flex-wrap: nowrap;
  /* صف واحد أفقي */
}



/* (اختياري) تحسين شكل الشريط على ويندوز/كروم */
.portfolio-cards {
  scrollbar-width: thin;
}

.portfolio-cards::-webkit-scrollbar {
  height: 10px;
}

.portfolio-cards::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--color-gray);
}

.portfolio-cards::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}


/* ===========================
   📦 Card Base
   =========================== */
.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  min-height: 360px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  flex: 0 0 300px;
  /* نفس min-width التي تريدها للكرت */
  scroll-snap-align: start;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* ===========================
   🖼️ Card Image Area
   =========================== */
.portfolio-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 18px;
  background: #f9fafb;
  /* default neutral bg */
  transition: background 0.3s ease;
}

.portfolio-card-image img {
  max-width: 70%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-card-image img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
}

/* ===========================
   ✍️ Card Body (Content)
   =========================== */
.portfolio-card-body {
  flex-grow: 1;
  padding: 10px 10px;
  text-align: center;
}

.portfolio-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
  /* dark gray */
  letter-spacing: 0.3px;
}

.portfolio-card-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

/* ===========================
   🔖 Card Footer (Category)
   =========================== */
.portfolio-card-footer {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: #fdfdfd;
}

.portfolio-card-footer .portfolio-tag {
  display: inline-block;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card-footer .portfolio-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* ===========================
   🎨 Section-Specific Styles
   =========================== */

/* Mobile Apps */
#portfolio-mobile .portfolio-card-image {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
}

#portfolio-mobile .portfolio-card-image img {
  max-width: 180px;
  border-radius: 22px;
}

/* Websites */
#portfolio-websites .portfolio-card-image {
  background: linear-gradient(135deg, #c0392b, #d35400);
}

#portfolio-websites .portfolio-card-image img {
  max-width: 230px;
}

/* Software */
/* Mobile Apps */
#portfolio-mobile .portfolio-card-image {
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
  border-radius: 20px;
  min-height: 260px;
  /* توحيد الطول */
}

/* صور الموبايل */
#portfolio-mobile .portfolio-card-image img {
  max-width: 150px;
  /* أصغر من السابق */
  max-height: 220px;
  /* نفس الارتفاع للجميع */
  border-radius: 18px;
  object-fit: contain;
  /* يحافظ على شكل الصورة بدون قص */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  /* يضيف ظل خفيف وأنيق */
  transition: transform 0.3s ease;
}

/* تأثير جميل عند المرور */
#portfolio-mobile .portfolio-card-image img:hover {
  transform: scale(1.05);
}

#portfolio-software .portfolio-card-image img {
  max-width: 190px;
}

/* E-commerce */
#portfolio-ecommerce .portfolio-card-image {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

#portfolio-ecommerce .portfolio-card-image img {
  max-width: 200px;
}

/* =======================
   📱 Phones / Small Screens (≤600px)
   ======================= */
/* =========================================================
   📱 Phones (≤600px)
   ========================================================= */
@media (max-width: 600px){

  /* متغيرات مريحة للتعديل */
  .portfolio-section{
    --pad-x: clamp(14px, 4vw, 22px);
    --card-w: 86vw;                 /* عرض الكرت في السلايدر */
  }

  .portfolio-cards .portfolio-card:first-child {
    margin-left: var(--pad-x); /* نفس المتغير المستخدم للبُعد */
  }
  .portfolio-cards .portfolio-card:last-child {
    margin-right: var(--pad-x); /* عشان آخر كرت برضه ما يلزق */
  }

  .portfolio-cards {
    padding-left: 16px;
    padding-right: 16px;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .portfolio-cards .portfolio-card:first-child {
    margin-left: 0 !important; /* خليه صفر */
  }

  /* ===== Header ===== */
  .portfolio-header{
    padding: 56px var(--pad-x) 28px;
    margin-bottom: 24px;
  }
  .portfolio-title{
    font-size: clamp(1.35rem, 5.5vw, 1.9rem);
    letter-spacing: .6px;
  }
  .portfolio-subtitle{ font-size: .95rem; }

  /* ===== Tabs: شبكة 2×2 بدون اقتطاع ===== */
  .portfolio-tabs{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    margin: 0 auto;
    overflow: visible;               /* منع السحب الأفقي */
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
  }
  .portfolio-tabs::-webkit-scrollbar{ display: none; }
  .portfolio-tab{
    width: 100%;
    text-align: center;
    white-space: normal;             /* يسمح بسطرين */
    overflow-wrap: anywhere;
    border-radius: 9999px;
    padding: 10px 12px;
    line-height: 1.2;
    font-size: .95rem;
  }

  /* ===== Cards: أول كرت يظهر كاملاً، مع سحب أفقي أنيق ===== */

  /* إلغاء الفواصل الوهمية (إن وُجدت) حتى لا يظهر نصف الكرت الأول */
  .portfolio-cards::before,
  .portfolio-cards::after{
    content: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
  }

  .portfolio-card{
    flex: 0 0 var(--card-w);
    min-height: 320px;
    border-radius: 16px;
    scroll-snap-align: start;        /* يظهر الأول كاملاً عند الدخول */
    scroll-snap-stop: always;
    touch-action: pan-x;
  }

  .portfolio-card-image{
    min-height: 200px;
    padding: 18px 12px;
  }
  .portfolio-card-image img{
    max-width: 76%;
    border-radius: 12px;
  }

  .portfolio-card-body{ padding: 10px 12px; }
  .portfolio-card-title{ font-size: 1.1rem; margin-bottom: 8px; }
  .portfolio-card-text{
    font-size: .95rem;
    line-height: 1.45;
    max-width: 92%;
    margin-inline: auto;
  }
  .portfolio-card-footer{ padding: 8px; }
  .portfolio-card-footer .portfolio-tag{ font-size: .85rem; padding: 6px 12px; }

  /* ضبط حسب القسم */
  #portfolio-mobile .portfolio-card-image{ min-height: 210px; padding: 18px; border-radius: 16px; }
  #portfolio-mobile .portfolio-card-image img{ max-width: 58%; max-height: 200px; }
  #portfolio-websites .portfolio-card-image img{ max-width: 72%; }
  #portfolio-software  .portfolio-card-image img{ max-width: 68%; }
  #portfolio-ecommerce .portfolio-card-image img{ max-width: 70%; }

}

/* =========================================================
   📱 Extra-Small (≤380px) — ضبط أدق للموبايلات الضيقة
   ========================================================= */
@media (max-width: 380px){
  .portfolio-section{ --pad-x: clamp(12px, 4.5vw, 18px); --card-w: 88vw; }
  .portfolio-header{ padding: 48px var(--pad-x) 24px; }
  .portfolio-title{ font-size: clamp(1.2rem, 6.2vw, 1.65rem); }

  .portfolio-card{ min-height: 300px; border-radius: 14px; }
  .portfolio-card-image{ min-height: 184px; padding: 14px 10px; }
  .portfolio-card-image img{ max-width: 74%; }

  #portfolio-mobile .portfolio-card-image{ min-height: 192px; }
  #portfolio-mobile .portfolio-card-image img{ max-width: 60%; max-height: 184px; }

    .portfolio-cards{
    gap: 14px;
    padding-left: 0 !important; /* احذف البادينغ */
    padding-right: var(--pad-x) !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .portfolio-cards .portfolio-card:first-child {
    margin-left: calc((100vw - var(--card-w)) / 2);
  }
}

/* =========================================================
   📱 Tablets (601px–1024px)
   ========================================================= */
@media (min-width: 601px) and (max-width: 1024px){

  .portfolio-section{
    --pad-x: clamp(18px, 4vw, 32px);
  }

  .portfolio-cards {
    padding-left: 16px;
    padding-right: 16px;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .portfolio-cards .portfolio-card:first-child {
    margin-left: 0 !important; /* خليه صفر */
  }

    .portfolio-cards{
    gap: 14px;
    padding-left: 0 !important; /* احذف البادينغ */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .portfolio-cards .portfolio-card:first-child {
    margin-left: var(--pad-x); /* نفس المتغير المستخدم للبُعد */
  }
  .portfolio-cards .portfolio-card:last-child {
    margin-right: var(--pad-x); /* عشان آخر كرت برضه ما يلزق */
  }

  .portfolio-cards .portfolio-card:first-child {
    margin-left: calc((100vw - var(--card-w)) / 2) !important;
  }

  /* Header أكبر قليلاً */
  .portfolio-header{
    padding: 64px var(--pad-x) 36px;
    margin-bottom: 28px;
  }
  .portfolio-title{ font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
  .portfolio-subtitle{ font-size: 1.05rem; }

  /* Tabs: 3 أعمدة */
  .portfolio-tabs{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    overflow: visible;
  }
  .portfolio-tab{
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 9999px;
  }

  /* Cards: شبكة 2 عمود بدل السحب — أنظف على التابلت */
  .portfolio-card{
    width: 100%;
    min-height: 340px;
    border-radius: 18px;

    flex: 0 0 86vw;       /* عرض الكرت بالنسبة للشاشة */
    scroll-snap-align: start;
  }
  .portfolio-card-image{
    min-height: 220px;
    padding: 22px 16px;
  }
  .portfolio-card-image img{ max-width: 78%; }

}






/* =======================
   🔹 About Section
======================= */
.about-section {
  position: relative;
  padding: 0 0 100px;
  /* مسافة سفلية تمنع التداخل */
  background: var(--color-bg2);
  /* خلفية فاتحة */
  color: var(--color-text-dark);
  text-align: center;
  overflow: hidden;
  /* يمنع خروج العناصر */
  z-index: 1;
}

/* Header */
.about-header {
  width: 100%;
  /* ✅ يمتد على كامل العرض */
  padding: 80px 20px 60px;
  background: var(--color-gradient);
  /* ✅ تدرج رسمي */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 50px;
  /* مسافة بعد الهيدر */
}

.about-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  /* أبيض */
  margin-bottom: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.about-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  /* نص أبيض شفاف */
  max-width: 800px;
  margin: 0 auto;
}

/* Tabs */
.about-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0 50px;
}

.about-tab {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--color-bg2);
  border: 1px solid var(--color-gray);
  color: var(--color-text-dark);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.about-tab:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-tab.active {
  background: var(--color-gradient);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  border: none;
}

/* =======================
   🔹 About Cards
======================= */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* أوسع وأجمل */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 90px;
  /* مسافة تحت الكروت */
  padding: 0 20px;
}

.about-card {
  background: var(--color-bg2);
  border-radius: 16px;
  padding: 40px 25px;
  /* رجعت أكبر ومريحة */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* أيقونة */
.about-icon {
  font-size: 2.5rem;
  margin: 0 auto 20px;
  /* ✅ يوسّطها أفقياً */
  color: var(--color-primary);
  display: flex;
  /* ✅ يوسّط داخل الديف */
  justify-content: center;
  align-items: center;
  width: 60px;
  /* اختيارياً حجم ثابت */
  height: 60px;
  border-radius: 50%;
  /* يخليها داخل دائرة لو حبيت */
}

/* العنوان */
.about-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  text-align: center;
}

/* النص */
.about-card-text {
  font-size: 1rem;
  color: var(--color-text-dark-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* النصوص المميزة */
.about-highlight {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* CTA Section */
.about-cta {
  margin-top: 80px;
  text-align: center;
}

.about-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-cta-btn {
  display: inline-block;
  background: var(--color-gradient);
  color: var(--color-text);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.about-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.5);
}

/* Hide/Show content */
.about-content {
  display: none;
}

.about-content.active {
  display: block;
}

/* Lists & Values */
.about-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-value span {
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* =======================
   🔹 About Grid Cards
======================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* يوزع الكروت بالتساوي */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.about-card {
  background: var(--color-bg2);
  border-radius: 16px;
  padding: 30px 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* العنوان */
.about-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

/* النص */
.about-card-text {
  font-size: 1rem;
  color: var(--color-text-dark-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* القوائم */
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-dark-muted);
  position: relative;
  padding-left: 22px;
}

.about-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* قيمنا (Our Values) */
.about-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.about-value span {
  font-size: 1.6rem;
  color: var(--color-primary);
}

.about-value strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

.about-value p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-dark-muted);
}

/* =======================
   📱 Responsive (Mobile & Tablet)
======================= */

/* للشاشات أقل من 992px (تابلت) */
@media (max-width: 992px) {
  .about-title {
    font-size: 2.3rem;
  }

  .about-subtitle {
    font-size: 1rem;
    max-width: 600px;
  }

  .about-cards,
  .about-grid {
    gap: 20px;
  }

  .about-card {
    padding: 25px 20px;
  }
}

/* للشاشات أقل من 768px (موبايل كبير) */
@media (max-width: 768px) {
  .about-header {
    padding: 60px 15px 40px;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .about-cards,
  .about-grid {
    grid-template-columns: 1fr;
    /* 👈 صف واحد */
    gap: 18px;
    margin-bottom: 60px;
  }

  .about-card {
    min-height: auto;
    padding: 20px 18px;
    text-align: center;
  }

  .about-card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .about-card-text {
    font-size: 0.9rem;
  }

  .about-cta-title {
    font-size: 1.8rem;
  }

  .about-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* للشاشات أقل من 480px (موبايل صغير جدًا) */
@media (max-width: 480px) {
  .about-title {
    font-size: 1.6rem;
  }

  .about-subtitle {
    font-size: 0.85rem;
  }

  .about-card {
    padding: 16px 14px;
  }

  .about-card-title {
    font-size: 1.05rem;
  }

  .about-card-text {
    font-size: 0.85rem;
  }

  .about-cta-title {
    font-size: 1.4rem;
  }
}





/* ===================== */
/* 🔹 Contact / Footer */
/* ===================== */
.contact-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 60px 10%;
  background: var(--color-gradient);
  /* ✅ التدرج الرسمي */
  color: var(--color-text);
}

/* Left */
.contact-left {
  flex: 1;
  min-width: 400px;
  margin-bottom: 40px;
  text-align: left;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
}

.contact-title span {
  color: var(--color-bg2);
  text-decoration: underline;
}

.contact-text {
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  /* ✅ نص أبيض شفاف */
}

/* Socials */
.contact-socials {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* 🎨 ألوان رسمية لكل أيقونة */
.contact-socials a.facebook:hover {
  background: #1877F2;
  color: #fff;
}

.contact-socials a.twitter:hover {
  background: #1DA1F2;
  color: #fff;
}

.contact-socials a.linkedin:hover {
  background: #0A66C2;
  color: #fff;
}

.contact-socials a.instagram:hover {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}

.contact-socials a.whatsapp:hover {
  background: #25D366;
  /* أخضر واتساب */
  color: #fff;
}

/* Buttons */
.contact-buttons {
  display: flex;
  gap: 15px;
}

.contact-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.contact-btn.primary {
  background: var(--color-text);
  color: var(--color-primary);
}

.contact-btn.primary:hover {
  background: var(--color-gray);
}

.contact-btn.secondary {
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

.contact-btn.secondary:hover {
  background: var(--color-text);
  color: var(--color-primary);
}

/* Right */
.contact-right {
  flex: 1;
  min-width: 250px;
  display: flex;
  gap: 50px;
  justify-content: flex-end;
  flex-wrap: wrap;
  text-align: left;
}

.contact-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-text);
}

.contact-column ul {
  list-style: none;
  padding: 0;
}

.contact-column ul li {
  margin-bottom: 10px;
}

.contact-column ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-column ul li a:hover {
  color: var(--color-text);
}


/* ===================== */
/* 📱 Responsive Contact */
/* ===================== */

/* تابلت (أقل من 992px) */
@media (max-width: 992px) {
  .contact-footer {
    flex-direction: column;
    padding: 50px 8%;
    text-align: center;
    gap: 40px;
  }

  .contact-left,
  .contact-right {
    min-width: auto;
    margin-bottom: 20px;
    text-align: center;
  }

  .contact-socials {
    justify-content: center;
  }

  .contact-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-right {
    justify-content: center;
    gap: 30px;
  }

  .contact-column h3 {
    font-size: 1.1rem;
  }
}

/* موبايل كبير (أقل من 768px) */
@media (max-width: 768px) {
  .contact-title {
    font-size: 1.6rem;
  }

  .contact-text {
    font-size: 0.95rem;
    margin: 0 auto 20px;
  }

  .contact-socials a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }

  .contact-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-column ul li {
    margin-bottom: 8px;
  }
}

/* موبايل صغير (أقل من 480px) */
@media (max-width: 480px) {
  .contact-footer {
    padding: 40px 6%;
  }

  .contact-title {
    font-size: 1.4rem;
  }

  .contact-column h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .contact-column ul li a {
    font-size: 0.9rem;
  }
}





/* 🔹 Chatbot Floating Button */
/* 🔹 Chatbot Floating Button */
/* 🔹 Chatbot + WhatsApp Floating Buttons */
/* الحاوية */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;

  display: flex;
  flex-direction: column;
  /* فوق بعض */
  align-items: flex-end;
  /* يلزقهم باليمين */
  gap: 12px;
  /* مسافة متساوية بين الأزرار */
}

/* زر الواتساب */
#whatsapp-button {
  width: 55px;
  height: 55px;
  background: #25D366;
  /* لون واتساب */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

#whatsapp-button:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* زر الروبوت */
#chatbot-button {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #6d28d9, #0284c7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

#chatbot-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* نافذة الشات */
#chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 460px;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* الهيدر */
#chatbot-header {
  background: linear-gradient(135deg, #6d28d9, #0284c7);
  color: white;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* منطقة الرسائل */
#chatbot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f1f5f9;
}

/* رسالة عامة */
.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* رسائل اليوزر */
.message.user {
  align-self: flex-end;
  background: #6d28d9;
  color: white;
  border-bottom-right-radius: 4px;
}

/* رسائل البوت */
.message.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* إدخال النص */
#chatbot-input-container {
  display: flex;
  border-top: 1px solid #ddd;
  background: white;
}

#chatbot-input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

#chatbot-send {
  background: #6d28d9;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

#chatbot-send:hover {
  background: #0284c7;
}

/* 📱 للشاشات الصغيرة */
@media (max-width: 600px) {
  #chatbot-container {
    bottom: 15px;
    right: 15px;
    flex-direction: column;
    /* فوق بعض */
    align-items: flex-end;
    /* ملزوقين يمين */
    gap: 10px;
  }

  /* زر الروبوت */
  #chatbot-button {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  /* زر الواتساب */
  #whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* نافذة الشات */
  #chatbot-window {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 90%;
    max-width: 360px;
    height: 75vh;
    border-radius: 14px;
  }
}