/* =========================================================
   Advance Insight — style.css (Editable + Organized)
   Works with your current index.html + app.js
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700;800&display=swap');

/* =========================================================
   EDIT CONTROL PANEL (SAFE TO EDIT)
   Change these values freely (colors, sizes, spacing, fonts)
   ========================================================= */
html {
  font-size: 70%;
  /* Significantly reduced global scaling */
}

:root {
  /* Brand colors */
  --color-primary: #083248d7;
  --color-primary-2: #0a455a;
  --color-accent: #ffffff;

  /* Backgrounds */
  --bg-main: #ffffffe7;
  --bg-section: #ffffe100;
  /* section-alt */
  --bg-header: #ffffff;
  --bg-footer: #4a4a4a;
  /* Surfaces / cards */
  --surface-1: #898e94b4;
  /* your old --surface */
  --surface-2: #646f7bc3;
  /* your old --surface-2 */
  --card-bg: #6d8196;
  /* insights cards */
  --card-bg-soft: #00060da5;

  /* Text */

  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;


  --text: #2193c4;

  --text-muted: #010f2b;
  --text-soft: rgb(255, 0, 0);
  --text-accent: #ffffff;

  /* Borders & shadows */
  --border: #ffffff96;
  --shadow-soft: 0 10px 28px rgba(245, 245, 245, 0.839);
  --shadow-strong: 0 14px 34px rgba(227, 225, 225, 0.95);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  /* Layout widths */
  --container: 1740px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 22px;
  --space-lg: 40px;
  --space-xl: 64px;

  /* Fonts */
  --font: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --fs-base: 16px;
  --fs-h2: 3rem;

  /* Hero */
  --hero-logo-max: 740px;

  /* How We Work cards */
  --work-card-height: 500px;
  /* Increased from 420px */

  /* Services slider */
  --service-card-width-desktop: 820px;
  --service-card-min-height: 480px;

  /* Insights grid */
  --insights-cols-desktop: 3;

  /* Customer logo slider */
  --logo-slider-height: 420px;
  --logo-card-padding: 38px;
  --logo-img-max-w: 280px;
  --logo-img-max-h: 180px;
  --logo-scroll-seconds: 30s;

  /* Reveal animation */
  --reveal-duration: 650ms;
}


/* =========================================================
   BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 200;
  /* Extra light for body text */
  color: var(--text);
  background: var(--bg-main);
  line-height: 1.55;
}

/* Headlines bold */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* =========================
   Splash / Preloader
   ========================= */
body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}

.preloader-logo {
  width: min(420px, 70vw);
  height: auto;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}

/* when we hide it: logo goes up + fades */
.preloader.hide .preloader-logo {
  animation: preloaderLogoUp 500ms ease forwards;
}

/* overlay fades out slightly after logo starts moving */
.preloader.hide {
  animation: preloaderFadeOut 450ms ease forwards;
  animation-delay: 250ms;
}

@keyframes preloaderLogoUp {
  to {
    transform: translateY(-60px);
    opacity: 0;
  }
}

@keyframes preloaderFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Text highlight (selection) */
::selection {
  background: #32aada;
  /* highlight color */
  color: #111;
  /* selected text color */
}

/* Firefox support */
::-moz-selection {
  background: #32aada;
  /* highlight color */
  color: #111;
}

/* =========================================================
   WHATSAPP FLOATING BUTTON
   ========================================================= */
.wa-float {
  position: fixed;
  left: 38px;
  bottom: 50px;
  z-index: 9999;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  background: #0ce35b;
}

.wa-float img {
  width: 28px;
  height: 28px;
  display: block;
}

/* optional hover */
.wa-float:hover {
  transform: translateY(-2px);
}

/* mobile safe area */
@media (max-width: 480px) {
  .wa-float {
    left: 14px;
    bottom: 14px;
  }
}

/* =========================================================
   HEADER + DROPDOWN MENU
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid rgb(103, 77, 0);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 92px;
  width: auto;
  display: block;
}

/* Menu button */
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgb(212, 165, 11);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.menu-btn:hover {
  background: rgb(161, 119, 3);
}

/* Dropdown */
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;

  position: absolute;
  top: calc(100%+00px);
  right: 16px;
  width: 220px;

  display: none;
  background: #777676;
  color: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  z-index: 1001;
}

.site-header.open .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
}

.dropdown-link:hover {
  background: rgba(189, 180, 6, 0.25);
}

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 6px 0;
}

/* RTL Dropdown: Move to the left */
html[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 16px;
}

.lang-row {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgb(235, 196, 6);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.lang-btn:hover {
  background: rgb(187, 156, 0);
}

.lang-btn.is-active {
  background: rgb(183, 155, 0);
  color: #fff;
}


/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;

  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
}

.btn-secondary {
  background: rgba(106, 120, 123, 0.959);
  border-color: var(--border);
  color: #ffffff;
}

.btn-secondary:hover {
  box-shadow: var(--shadow-soft);
}

/* WhatsApp look */
.btn.btn-whatsapp {
  background: #019035e5 !important;
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

.btn.btn-whatsapp:hover {
  background: #257446 !important;
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.26);
}

.btn.btn-whatsapp .whatsapp-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO SECTION (video background) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/img1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* HERO SECTION (video background) */
.hero {
  position: relative;
  width: 100%;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  /* fallback */
}

/* Video layer */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(1.5) contrast(1.05) saturate(1.05)
}

/* Keep your overlay to darken the video */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1;
}

/* Ensure text stays above video + overlay */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--space-lg) var(--space-sm);
}

.hero-content h1 {
  font-size: 4.5rem;
  /* Massive hero title */
  margin: 0.2em 0;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content h3 {
  font-size: 1.75rem;
  /* Larger hero subtitle */
  font-weight: 400;
  opacity: 0.9;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  width: var(--hero-logo-max);
  max-width: 100%;
  height: auto;
}


/* =========================================================
   SECTIONS / TITLES
   ========================================================= */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.section-title,
.section h2,
.Services h2 {
  margin: 0 0 6px;
  font-size: 2.6rem;
  /* Reduced from 3rem */
  letter-spacing: -.01em;
  color: #2193c4;
}

/* Custom spacing for Services section */
.Services {
  padding-top: 100px;
  /* More space from Hero */
  padding-bottom: 60px;
}

/* SECTION SUBTITLES (Text under headlines) */
.section-subtitle,
.section-head p,
.Services p {
  margin: 0 0 20px;
  color: #0487bb;
  max-width: 850px;
  font-size: 1.8rem;
  /* Increased size */
  line-height: 1.4;
}

/* =========================================================
   GENERIC GRIDS + CARDS
   ========================================================= */
.grid {
  display: grid;
  gap: var(--space-sm);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: rgb(162, 165, 177);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.3rem;
}

.card-outline {
  background: transparent;
  border-style: dashed;
}

.value-card {
  background: rgb(134, 139, 158);
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  font-size: 1.7em;
  /* Increased size again */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Article card base */
.article-card {
  background: #ffffff;
  /* your gray card */
  padding: 24px;
  border-radius: 16px;
}

/* TITLE color */
.article-title {
  color: #4fc3f7;
  /* light blue */
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* DESCRIPTION / EXCERPT color */
.article-excerpt {
  color: #e0e0e0;
  /* light gray */
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* LINK color */
.article-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.article-link:hover {
  color: #eeeaea;
  text-decoration: underline;
}





/* =========================================================
   HOW WE WORK (4 CARDS)
   ========================================================= */
.work-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  height: var(--work-card-height);
  border-radius: var(--r-md);
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: flex-end;

  /* Animation setup */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.work-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Much lighter gradient */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  transition: background 0.4s ease;
}

.work-card:hover::before {
  /* Almost clear on hover */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.1));
}

.work-content {
  position: relative;
  padding: 24px;
  color: #e1b904;
}

.step {
  display: inline-block;
  background: #646461;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.work-content h3 {
  margin: 10px 0 6px;
  font-size: 1.75rem;
  /* Increased from 1.35rem */
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.work-content p {
  margin: 0;
  font-size: 1.5rem;
  /* Increased from 0.95rem */
  line-height: 1.5;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   SERVICES SLIDER
   ========================================================= */
.services-slider {
  position: relative;
  margin-top: 0;
}

.services-track {
  display: flex;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.service-card {
  flex: 0 0 var(--service-card-width-desktop);
  min-height: var(--service-card-min-height);
  padding: 35px;
  border-radius: var(--r-md);
  position: relative;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background-size: cover;
  background-position: center;
  background-repeat: repeat;

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .22));
  z-index: -1;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 2.25rem;
  /* Increased from 28px */
  line-height: 1.1;
  color: #ffffff;
}

.service-card p {
  margin: 0;
  opacity: .95;
  font-size: 1.5rem;
  /* Increased size */
  line-height: 1.5;
  color: #f0f0f0;
}

/* nav arrows */
.svc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.svc-nav:hover {
  background: rgba(0, 0, 0, 0.55);
}

.svc-nav.prev {
  left: -35px;
}

.svc-nav.next {
  right: -35px;
}

/* dots */
.svc-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.svc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  border: 0;
  cursor: pointer;
}

.svc-dot.is-active {
  width: 22px;
  background: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   INSIGHTS (CARDS GRID)
   ========================================================= */
.insights {
  padding: 40px 20px 80px;
}

.insights .container {
  max-width: var(--container);
  margin: auto;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(var(--insights-cols-desktop), 1fr);
  gap: 22px;
}

.insight-card {
  background: #969494f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--transition-fast, 180ms ease), box-shadow var(--transition-fast, 180ms ease);
}

.insight-title {
  color: #ffffff;
}

.insight-summary {
  color: #faf8f8;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.insight-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgb(130, 171, 187);
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-content {
  padding: 12px;
}

.insight-title {
  margin: 10px 0;
  font-size: 1.5rem;
  /* Increased from 1.35rem */
  line-height: 1.35;
}

.insight-summary {
  margin: 0 0 14px;
  line-height: 1.6;
  opacity: .9;
  font-size: 1.5rem;
  /* Increased from 1.05rem */
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ddc302;
  text-decoration: none;
}

.insight-link .arrow {
  font-size: 18px;
  transition: transform 180ms ease;
}

.insight-link:hover .arrow {
  transform: translateX(4px);
}


/* =========================================================
   CUSTOMER LOGOS — VERTICAL AUTO SLIDER
   ========================================================= */
.logo-slider {
  height: var(--logo-slider-height);
  overflow: hidden;
  position: relative;
}

.logo-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scrollUp var(--logo-scroll-seconds) linear infinite;
}

.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

.logo-card {
  background: #ffffff;
  border-radius: var(--r-md);
  padding: var(--logo-card-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.logo-card img {
  max-width: var(--logo-img-max-w);
  max-height: var(--logo-img-max-h);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity .2s ease, transform .2s ease;
}

.logo-card:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

/* loop animation */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}


/* =========================================================
   CTA BLOCK
   ========================================================= */
.cta-block {
  padding: 30px 0;
  background: linear-gradient(135deg, rgb(97, 104, 110), rgba(48, 57, 59, 0.92));
  color: #f5f5f5;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-block h2 {
  margin: 0 0 6px;
}

.cta-block p {
  margin: 0;
  color: rgba(228, 217, 217, 0.88);
  max-width: 720px;
}


/* =========================================================
   FOOTER (3 COLUMNS DESKTOP, STACK MOBILE)
   ========================================================= */
.footer {
  padding: 14px 0;
  background: var(--bg-footer);
  color: rgb(255, 255, 255);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-mark {
  height: 50px;
  width: auto;
  opacity: 0.95;
  object-fit: contain;
}

.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-center h4 {
  font-size: 16px;
  margin: 0;
  color: rgb(255, 255, 255);
  white-space: nowrap;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  margin: 0;
  font-size: 13px;
  color: rgb(255, 255, 255);
}

/* social icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease;
}

.social-icons a:hover img {
  opacity: 1;
  transform: translateY(-1px);
}


/* =========================================================
   ARTICLE PAGE STYLES (articles/*.html)
   ========================================================= */
.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 18px 90px;
}

.article-hero {
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background: rgba(0, 150, 255, 0.12);
  border: 1px solid rgb(255, 255, 255);
}

.article-kicker {
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  opacity: 0.8;
  margin: 0 0 10px;
}

.article-hero h1 {
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.article-subtitle {
  margin: 0 0 14px;
  opacity: 0.9;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.article-meta .dot {
  opacity: 0.6;
}

.article-body {
  margin-top: 26px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.article-body h3 {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 1.1rem;
  opacity: 0.95;
}

.article-body ul {
  padding-left: 20px;
}

.article-divider {
  border: none;
  height: 1px;
  background: rgb(255, 255, 255);
  margin: 28px 0;
}

.article-takeaway {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(0, 150, 255, 0.12);
  border: 1px solid rgba(0, 150, 255, 0.20);
}

.article-back {
  display: inline-block;
  margin-top: 26px;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  border-bottom: 1px solid rgb(255, 255, 255);
}

.article-back:hover {
  opacity: 1;
}


/* =========================================================
   SCROLL REVEAL (used by app.js)
   ========================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
  will-change: opacity, transform;
  transition-delay: var(--delay, 0ms);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* =========================================================
   RTL SUPPORT (your app.js sets dir="rtl")
   ========================================================= */
html[dir="rtl"] body {
  font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .footer-right {
  text-align: center;
}

html[dir="rtl"] .footer-inner {
  direction: rtl;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .work-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-logo {
    width: 220px;
  }

  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* services slider card width */
  .service-card {
    flex: 0 0 88vw;
  }

  .svc-nav.prev {
    left: 6px;
  }

  .svc-nav.next {
    right: 6px;
  }

  /* stop logo animation on mobile */
  .logo-track {
    animation: none;
  }
}

@media (max-width: 760px) {
  .brand-logo {
    height: 70px;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .work-cards {
    grid-template-columns: 1fr;
  }

  .work-card {
    height: 320px;
  }
}

@media (max-width: 640px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-right {
    text-align: center;
  }
}

/* =========================================
   FORCE Customers Swipe (FINAL OVERRIDE)
   ========================================= */
@media (max-width: 768px) {

  #customers .container {
    max-width: 100%;
    width: 100%;
    padding-right: 0;
  }

  .logo-wall {
    display: flex !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    padding-left: 16px;
    padding-bottom: 12px;
  }

  .logo-tile {
    flex: 0 0 85% !important;
    scroll-snap-align: center;
  }
}

/* PAGE JOIN STYLES */
.page-join {
  background: #f4f6f9;
}

.page-join .page-header h1 {
  font-size: 42px;
  color: #395575;
}

.page-join .page-header p {
  font-size: 18px;
  color: #555;
}

.page-join .join-form {
  background: #5d5f63;
  border-radius: 20px;
  padding: 94px;
  max-width: 920px;
  font-size: 30px;
  margin: auto;
}

.page-join input,
.page-join select {
  border-radius: 10px;
  border: 1px solid #d9ba0b;
}

.page-join .submit-btn {
  background: #284461;
  color: #f7d706;
  font-size: 22px;
}

.page-join .submit-btn:hover {
  background: #5b81b3;
}

/* =========================================================
   JOIN US – PROFESSIONAL FORM REDESIGN
   ========================================================= */

.join-us-section {
  padding: 40px 0 80px;
}

.join-form-professional {
  background: #ffffff;
  padding: 0;
  /* Header handles top, padding on sections */
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  /* Deeper shadow */
  max-width: 1200px;
  /* WIDER FORM */
  margin: 0 auto;
  overflow: hidden;
  /* Clip header corners */
  border: none;
}

/* New Header Bar */
.form-app-header {
  background: linear-gradient(135deg, #2193c4, #1b7da8);
  /* Lighter logo color */
  padding: 30px 40px;
  color: #fff;
}

.form-app-header h2 {
  font-size: 2.2rem;
  /* Increased from 1.8rem */
  margin: 0 0 4px;
  color: #fff;
}

.form-app-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.2rem;
  /* Increased from 0.95rem */
  color: #dae1e7;
}

/* Sections need padding now since container has 0 */
.form-section-title,
.form-grid,
.cv-upload-section,
.form-actions {
  margin-left: 40px;
  margin-right: 40px;
}

.form-section-title {
  margin-top: 40px;
  font-size: 1.25rem;
  color: #395575;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #eef2f7;
  padding-bottom: 10px;
  margin-bottom: 24px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 1.35rem;
  /* Larger labels */
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* Inputs - Filled Style (Not Boxy) */
.form-group input,
.form-group select {
  height: 60px;
  /* Taller for larger font */
  padding: 0 20px;
  border: 2px solid #bbc3d1;
  /* Thicker, darker border */
  border-radius: 8px;
  font-size: 1.5rem;
  /* Matches sub headlines */
  background: #f0f4f9;
  /* Light gray-blue, NOT white */
  transition: all 0.2s ease;
  color: #1a2b3c;
  /* Darker text */
  font-weight: 500;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
  /* Slight depth */
}

.form-group input:focus,
.form-group select:focus {
  border-color: #395575;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(57, 85, 117, 0.1);
  /* Stronger glow */
  outline: none;
}

/* Custom File Upload Styling */
.cv-upload-section {
  margin-top: 30px;
  background: #f9fbfd;
  padding: 24px;
  border-radius: 12px;
  border: 2px dashed #cfd9e6;
  text-align: center;
}

.cv-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: #395575;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-custom-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #eef2f7;
  color: #395575;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid #dce4ed;
  transition: all 0.2s;
}

.file-upload-wrapper:hover .file-custom-btn {
  background: #395575;
  color: #fff;
  border-color: #395575;
}

/* Submit Button */
.form-actions {
  margin-top: 30px;
  margin-bottom: 40px;
  /* Space below button */
  text-align: center;
  /* Centered */
}

.submit-btn-pro {
  background: linear-gradient(135deg, #2193c4, #1b7da8);
  /* Lighter logo color */
  color: #fff;
  padding: 16px 48px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(57, 85, 117, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }

  .join-form-professional {
    padding: 24px;
  }

  .form-actions {
    text-align: center;
  }

  .submit-btn-pro {
    width: 100%;
  }
}

.form-status {
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  font-weight: 600;
  text-align: center;
}

/* =========================================================
   ABOUT – PAGE-SPECIFIC (SAFE)
   ========================================================= */

.page-about .page-title {
  font-size: 44px;
}

.about-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.page-about .about-grid .card h2 {
  font-size: 20px;
  color: #2096c2;
}

.page-actions-section .page-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;

  margin-top: 18px;
  font-size: 18px;
  color: #1245bd;
}

.page-about .about-grid .card p,
.page-about .bullets li {
  font-size: 16px;
  color: #eeeaea;
  line-height: 1.7;
}

/* =========================================================
   CONTACT – PAGE-SPECIFIC (SAFE)
   ========================================================= */

/* Make contact cards a bit bigger (optional) */
.page-contact .contact-grid .card {
  padding: 22px;
}

/* Make contact form fields bigger (like Join Us) */
.page-contact input,
.page-contact select {
  height: 56px;
  font-size: 16px;
  padding: 0 16px;
  border-radius: 18px;
}

.page-contact textarea {
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

/* Make "Send" button larger */
.page-contact .contact-form .btn {
  height: 56px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 12px;
}

.contact-grid {
  display: grid;

  gap: 14px;
}

.contact-link {
  color: var(--accent, #2a9df4);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
  color: #bbbfc5;
}

/* =========================================
   Card hover glow (restore interaction)
   ========================================= */

.card,
.value-card,
.card-outline {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Desktop hover glow */
@media (hover: hover) {

  .card:hover,
  .value-card:hover,
  .card-outline:hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(255, 215, 100, 0.35);
  }
}

/* =========================
   Card Image Grid (News / Any Page)
   ========================= */
.card-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.card-image-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Optional: hover polish */
.card-image-grid img:hover {
  transform: scale(1.02);
  transition: transform 160ms ease;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .card-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the slider mechanics LTR even when the page is RTL */
html[dir="rtl"] .services-track {
  direction: ltr;
}

/* But keep the text inside each card RTL */
html[dir="rtl"] .service-card {
  direction: rtl;
}

/* ===== Cursor Ring (orange circle under pointer) ===== */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 33px;
  height: 33px;
  border-radius: 999px;
  border: 2px solid #2eace2;
  background: #2eace2;
  box-shadow: 0 0 35px #ffffff;
  pointer-events: none;
  /* مهم: لا يمنع الضغط على العناصر */
  z-index: 99999;
  transform: translate(-9999px, -9999px);
  /* مخفي قبل أول حركة */
  opacity: 0;
  transition: opacity 0.22s, transform 0.07s linear;
}

/* إظهار عند تحريك الماوس */
.cursor-ring.is-on {
  opacity: 0.18;
}

/* إخفاء على الشاشات اللمسية */
@media (hover: none) and (pointer: coarse) {
  .cursor-ring {
    display: none;
  }
}

/* احترام إعداد تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .cursor-ring {
    transition: none;
  }
}

/* =========================
   CTA SECTION FIX
========================= */

.ai-cta {
  padding: 50px 0 70px;
  background: #F5F7FA;
}

.ai-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* BASE BUTTON CONTROL */
.ai-cta .btn {
  min-width: 200px;
  height: 50px;
  padding: 0 25px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

/* PRIMARY */
.ai-btn-primary {
  background: #1F5A89;
  color: #fff;
  border: none;
}

.ai-btn-primary:hover {
  background: #17486D;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 90, 137, 0.25);
}

/* SECONDARY */
.ai-btn-secondary {
  background: transparent;
  color: #1FA3B1;
  border: 2px solid #1FA3B1;
}

.ai-btn-secondary:hover {
  background: #1FA3B1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(31, 163, 177, 0.25);
}

/* MOBILE STACK */
@media (max-width: 600px) {
  .ai-cta-wrap {
    flex-direction: column;
  }

  .ai-cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* =========================
   ABOUT SECTION (ISOLATED)
========================= */

.ai-about {
  background: #F5F7FA;
  padding: 80px 0;
}

.ai-about-wrap {
  max-width: 1100px;
}

/* HEADER */
.ai-about-head {
  text-align: center;
  margin-bottom: 50px;
}

.ai-about-title {
  font-size: 42px;
  font-weight: 700;
  color: #1F5A89;
  margin-bottom: 15px;
}

.ai-about-sub {
  font-size: 17px;
  color: #6B7C93;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* GRID */
.ai-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARDS */
.ai-about-card {
  background: #FFFFFF;
  border: 1px solid #E1E8ED;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.ai-about-card h3 {
  color: #1F5A89;
  margin-bottom: 12px;
}

.ai-about-card p {
  color: #2E3A46;
  line-height: 1.6;
  font-size: 15px;
}

/* HOVER EFFECT */
.ai-about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* VALUES GRID */
.ai-values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* VALUE BADGES */
.ai-value {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: 0.3s;
  cursor: default;
}

/* COLORS BASED ON BROCHURE */
.v-clarity { background: #4CC3C7; }
.v-integrity { background: #8CC63F; }
.v-resilience { background: #F4C542; color:#333; }
.v-partnership { background: #8E3A8E; }
.v-results { background: #1F5A89; }

/* HOVER BADGE */
.ai-value:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* =========================
   ANIMATIONS
========================= */

.ai-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ai-about-title {
    font-size: 30px;
  }

  .ai-about-sub {
    font-size: 15px;
  }
}
.page-about .ai-cta .btn { 
  min-width: 200px;
  height: 50px;
}

.page-about .ai-btn-primary {
  background: #1F5A89 !important;
  color: #fff !important;
}

.page-about .ai-btn-secondary {
  border: 2px solid #1FA3B1 !important;
  color: #1FA3B1 !important;
}
.ai-fade-up {
  opacity: 1 !important;
  transform: none !important;
}

.page-about .ai-cta .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 200px !important;
  height: 50px !important;
  padding: 0 25px !important;
  border-radius: 8px !important;
}

/* FORCE CTA FIX - FINAL OVERRIDE */
.page-about .ai-cta-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.page-about .ai-cta .btn {
  display: inline-flex !important;
  width: auto !important;
  min-width: 220px !important;
  height: 52px !important;
  padding: 0 28px !important;

  align-items: center !important;
  justify-content: center !important;

  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* PRIMARY */
.page-about .ai-btn-primary {
  background: #1F5A89 !important;
  color: #fff !important;
  border: none !important;
}

/* SECONDARY */
.page-about .ai-btn-secondary {
  background: transparent !important;
  border: 2px solid #1FA3B1 !important;
  color: #1FA3B1 !important;
}

/* HOVER */
.page-about .ai-btn-primary:hover {
  background: #17486D !important;
}

.page-about .ai-btn-secondary:hover {
  background: #1FA3B1 !important;
  color: #fff !important;
}