@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

/* ============================================================
   BLUETIME TECH — Design System
   ============================================================ */
:root {
  /* Brand */
  --navy:       #0b1437;
  --navy-2:     #111d4a;
  --navy-3:     #1a2b6b;
  --blue:       #2a4cad;
  --blue-bright:#3b82f6;
  --indigo:     #6366f1;
  --purple:     #7b3fa0;
  --purple-lt:  #a78bfa;
  --cyan:       #22d3ee;
  --accent:     #8b5cf6;

  /* Gradients */
  --gradient:   linear-gradient(135deg, #0b1437 0%, #2a2070 45%, #7b3fa0 100%);
  --gradient-h: linear-gradient(140deg, #060b24 0%, #16124d 50%, #4a1f6b 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #6366f1 45%, #a855f7 100%);
  --gradient-text: linear-gradient(120deg, #a78bfa 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);

  /* Neutrals */
  --white:      #ffffff;
  --light:      #f6f8ff;
  --gray:       #f4f6fc;
  --gray-2:     #eef1f9;
  --text:       #0f172a;
  --muted:      #64748b;
  --muted-2:    #94a3b8;
  --border:     #e6eaf4;
  --border-2:   #eef1f9;

  /* Effects */
  --shadow-sm:  0 2px 8px rgba(15,23,42,0.05);
  --shadow:     0 12px 40px rgba(26,43,107,0.10);
  --shadow-lg:  0 24px 60px rgba(26,43,107,0.16);
  --shadow-glow:0 0 0 1px rgba(124,63,160,0.08), 0 18px 50px rgba(99,102,241,0.16);
  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
[lang="ar"] body, [dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: rgba(124,63,160,0.18); color: var(--navy); }

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 9px 0;
  font-size: 12.5px;
  position: relative;
  z-index: 1001;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar span svg { color: var(--purple-lt); }
.topbar a { color: inherit; transition: color var(--ease-fast); }
.topbar a:hover { color: var(--white); }

.lang-switch {
  cursor: pointer; user-select: none;
  font-weight: 600;
  color: var(--white) !important;
  padding: 3px 14px !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  transition: all var(--ease-fast);
}
.lang-switch:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5) !important; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow var(--ease-fast), background var(--ease-fast);
}
header.scrolled { box-shadow: 0 6px 30px rgba(15,23,42,0.08); background: rgba(255,255,255,0.95); }
header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }

.logo { display: flex; align-items: center; flex-shrink: 0; transition: transform var(--ease-fast); }
.logo:hover { transform: translateY(-1px); }
.logo-img { height: 46px; width: auto; }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: color var(--ease-fast), background var(--ease-fast);
  position: relative;
}
nav a:hover { color: var(--purple); background: rgba(124,63,160,0.06); }
nav a.active { color: var(--navy-3); font-weight: 600; }
nav a.active::after {
  content: ''; position: absolute; bottom: 3px; left: 16px; right: 16px;
  height: 2.5px; background: var(--gradient-accent); border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 14.5px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: none; position: relative; overflow: hidden;
  white-space: nowrap;
}
[dir="rtl"] .btn { font-family: 'Noto Kufi Arabic', sans-serif; }
.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(99,102,241,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(99,102,241,0.42); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: translateX(-120%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-3);
  border: 1.5px solid var(--navy-3);
}
.btn-outline-dark:hover { background: var(--navy-3); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,43,107,0.28); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy-3); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--gradient-h);
  padding: 80px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80') center/cover no-repeat;
  opacity: 0.16; mix-blend-mode: screen;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(99,102,241,0.45), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(168,85,247,0.32), transparent 55%);
}
/* animated grid */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-circles .circle {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.circle-1 { width: 420px; height: 420px; top: -120px; right: 6%; background: radial-gradient(circle, rgba(99,102,241,0.7), transparent 70%); }
.circle-2 { width: 300px; height: 300px; top: 120px; right: 24%; background: radial-gradient(circle, rgba(34,211,238,0.5), transparent 70%); animation-delay: -4s; }
.circle-3 { width: 560px; height: 560px; bottom: -240px; right: -120px; background: radial-gradient(circle, rgba(168,85,247,0.55), transparent 70%); animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-20px, 24px) scale(1.08); }
}

.hero-content { position: relative; z-index: 3; max-width: 660px; animation: fadeUp 0.9s var(--transition) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,211,238,0.25); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1; box-shadow: 0 0 0 4px rgba(34,211,238,0.25);} 50%{opacity:0.5; box-shadow: 0 0 0 7px rgba(34,211,238,0);} }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 18.5px);
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 38px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats .container { display: flex; justify-content: center; padding: 22px 24px; flex-wrap: wrap; gap: 20px; }

/* ============================================================
   SECTIONS / HEADINGS
   ============================================================ */
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 26px; height: 2px;
  background: var(--gradient-accent); border-radius: 2px;
}
.text-center .section-label { justify-content: center; }
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.15; margin-bottom: 18px;
}
.section-sub {
  font-size: 17px; color: var(--muted);
  max-width: 600px; line-height: 1.75;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px; margin-top: 56px;
}
.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.service-num {
  position: absolute; top: 22px; right: 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--gray-2);
  line-height: 1; z-index: 1;
  transition: color var(--transition);
  pointer-events: none;
}
[dir="rtl"] .service-num { right: auto; left: 26px; }
.service-card:hover .service-num { color: rgba(99,102,241,0.18); }
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 0% 0%, rgba(99,102,241,0.07), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: rgba(99,102,241,0.25); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
[dir="rtl"] .service-card::after { transform-origin: right; }

.service-icon {
  width: 58px; height: 58px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  position: relative; z-index: 1;
  transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--gradient-accent); border-color: transparent; transform: rotate(-4deg) scale(1.05); box-shadow: 0 10px 24px rgba(99,102,241,0.34); }
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 11px; position: relative; z-index: 1; }
.service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; position: relative; z-index: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  font-size: 13.5px; font-weight: 600;
  color: var(--purple);
  position: relative; z-index: 1;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 11px; }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section { background: var(--gradient-soft); position: relative; overflow: hidden; }
.why-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,63,160,0.07), transparent 70%);
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
.why-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: whyFloat 7s ease-in-out infinite;
}
.why-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(167,139,250,0.4), transparent 60%);
}
.why-visual-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=800&q=80') center/cover no-repeat;
  opacity: 0.28; mix-blend-mode: overlay;
  animation: whyPan 14s ease-in-out infinite alternate;
}
.why-visual-inner { text-align: center; color: var(--white); padding: 44px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.why-visual-inner .big-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5.5rem; font-weight: 700; display: block; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.why-visual-arabic { font-size: 22px; font-weight: 700; line-height: 1.6; opacity: 0.95; direction: rtl; font-family: 'Noto Kufi Arabic', sans-serif; }
.why-visual-english { font-size: 17px; font-weight: 500; line-height: 1.6; opacity: 0.9; letter-spacing: 0.3px; font-family: 'Space Grotesk', sans-serif; }
@keyframes whyFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes whyPan { 0%{ transform: scale(1) translateX(0); } 100%{ transform: scale(1.08) translateX(-6px); } }

.why-items { display: flex; flex-direction: column; gap: 8px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  transition: all var(--transition);
}
.why-item:hover { background: var(--white); box-shadow: var(--shadow); transform: translateX(4px); }
[dir="rtl"] .why-item:hover { transform: translateX(-4px); }
.why-item-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.why-item:hover .why-item-icon { background: var(--gradient-accent); border-color: transparent; box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.why-item:hover .why-item-icon svg { color: var(--white) !important; }
.why-item h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.why-item p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   PROCESS / HOW WE WORK
   ============================================================ */
.process-section { background: var(--white); position: relative; overflow: hidden; }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 60px; position: relative;
}
/* connecting line behind steps */
.process-grid::before {
  content: ''; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
  z-index: 0;
}
.process-step {
  position: relative; z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  text-align: center;
  transition: all var(--transition);
}
.process-step:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: rgba(99,102,241,0.25); }
.process-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gradient-accent); color: var(--white);
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(99,102,241,0.35);
}
.process-icon {
  width: 62px; height: 62px; margin: 12px auto 20px;
  border-radius: 16px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.process-step:hover .process-icon { background: var(--gradient-accent); border-color: transparent; transform: scale(1.06); box-shadow: 0 10px 24px rgba(99,102,241,0.3); }
.process-icon svg { width: 28px; height: 28px; color: var(--indigo); stroke-width: 2px; transition: color var(--transition); }
.process-step:hover .process-icon svg { color: var(--white); }
.process-step h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band { background: var(--navy); padding: 70px 0; position: relative; overflow: hidden; }
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(99,102,241,0.25), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.stat-box { text-align: center; }
.stat-box .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; display: block; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-box .lbl { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 10px; font-weight: 500; }

/* ============================================================
   SOLUTIONS (dark)
   ============================================================ */
.solutions-section { background: var(--navy); position: relative; overflow: hidden; }
.solutions-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 20% 0%, rgba(124,63,160,0.25), transparent 60%); }
.solutions-section .container { position: relative; z-index: 1; }
.solutions-section .section-title { color: var(--white); }
.solutions-section .section-label { color: var(--purple-lt); }
.solutions-section .section-sub { color: rgba(255,255,255,0.6); }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 52px; }
.solution-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 30px 26px;
  transition: all var(--transition); cursor: default;
}
.solution-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(167,139,250,0.45); transform: translateY(-6px); }
.solution-card .icon { font-size: 2rem; margin-bottom: 16px; }
.solution-card h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.solution-card p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 28px; margin-top: 56px; }
.project-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  position: relative;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-color: rgba(99,102,241,0.2); }

.project-tag {
  position: absolute; top: 16px; left: 16px; z-index: 12;
  background: rgba(11,20,55,0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  padding: 5px 13px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
}
[dir="rtl"] .project-tag { left: auto; right: 16px; }
.project-body { padding: 26px; background: var(--white); }
.project-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.project-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.project-meta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.project-meta span { font-size: 12px; color: var(--purple); font-weight: 600; background: rgba(124,63,160,0.08); padding: 4px 12px; border-radius: 100px; }

/* device showcase */
.project-showcase {
  position: relative;
  background: radial-gradient(120% 120% at 50% 0%, #eef2ff 0%, #dbe2f5 100%);
  height: 250px; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.browser-mockup {
  width: 74%; height: 70%;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 14px 34px rgba(15,23,42,0.12);
  display: flex; flex-direction: column; overflow: hidden;
  position: absolute; top: 12%; left: 8%;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}
.browser-topbar { height: 22px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; padding: 0 9px; gap: 5px; flex-shrink: 0; }
.browser-dot { width: 7px; height: 7px; border-radius: 50%; }
.browser-dot.red { background: #ef4444; } .browser-dot.yellow { background: #f59e0b; } .browser-dot.green { background: #10b981; }
.browser-screen { flex: 1; overflow: hidden; position: relative; background: #f8fafc; }
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease-in-out; }
.mobile-mockup {
  width: 22%; height: 64%;
  background: #0f172a; border: 4px solid #0f172a;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(15,23,42,0.28);
  position: absolute; bottom: 10%; right: 10%;
  overflow: hidden; display: flex; flex-direction: column; z-index: 10;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}
[dir="rtl"] .mobile-mockup { right: auto; left: 10%; }
[dir="rtl"] .browser-mockup { left: auto; right: 8%; }
.mobile-mockup::before { content: ''; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 38%; height: 5px; background: #0f172a; border-radius: 10px; z-index: 20; }
.mobile-screen { flex: 1; border-radius: 12px; overflow: hidden; position: relative; background: #f8fafc; }
.mobile-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease-in-out; }
.project-card:hover .browser-screen img, .project-card-full:hover .browser-screen img,
.project-card:hover .mobile-screen img, .project-card-full:hover .mobile-screen img { object-position: bottom; }
.project-card:hover .browser-mockup, .project-card-full:hover .browser-mockup { transform: translateY(-6px) scale(1.02); box-shadow: 0 22px 44px rgba(15,23,42,0.16); }
.project-card:hover .mobile-mockup, .project-card-full:hover .mobile-mockup { transform: translateY(-10px) scale(1.05); box-shadow: 0 26px 50px rgba(15,23,42,0.3); }
.project-card, .project-card-full { position: relative; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--gradient);
  text-align: center;
  padding: 100px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(34,211,238,0.22), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(168,85,247,0.3), transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.82); font-size: 18px; margin-bottom: 38px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; margin-top: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--radius); transition: all var(--transition); }
.contact-item:hover { background: var(--gray); }
.contact-item-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--gradient-accent);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(99,102,241,0.28);
}
.contact-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contact-item p { font-size: 14.5px; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px; font-family: 'Inter', sans-serif;
  color: var(--text); background: var(--light);
  outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
}
[dir="rtl"] .form-group input, [dir="rtl"] .form-group select, [dir="rtl"] .form-group textarea { font-family: 'Noto Kufi Arabic', sans-serif; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--indigo); background: var(--white);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 72px 0 0; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; position: relative; z-index: 1; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand .footer-logo-img { height: 42px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { font-size: 14.5px; line-height: 1.75; max-width: 280px; }
.footer-col h5 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--ease-fast), padding var(--ease-fast); position: relative; }
.footer-col ul li a:hover { color: var(--white); padding-left: 6px; }
[dir="rtl"] .footer-col ul li a:hover { padding-left: 0; padding-right: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); transition: all var(--ease-fast);
}
.footer-social a:hover { background: var(--gradient-accent); border-color: transparent; color: var(--white); transform: translateY(-3px); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0; margin-top: 52px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.45);
  position: relative; z-index: 1;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--gradient-h);
  padding: 90px 0;
  position: relative; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1600&q=80') center/cover; opacity: 0.12; mix-blend-mode: screen; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(800px 500px at 80% -20%, rgba(99,102,241,0.4), transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 580px; line-height: 1.75; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--ease-fast); } .breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ============================================================
   ABOUT / TEAM
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 5rem; box-shadow: var(--shadow-lg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 52px; }
.team-card { text-align: center; padding: 34px 22px; border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--gradient-accent); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--white); margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(99,102,241,0.3); }
.team-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-card p { font-size: 13px; color: var(--purple); font-weight: 600; }

/* ============================================================
   SERVICE QUICK NAV (chips)
   ============================================================ */
.service-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 44px;
}
.service-nav-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.service-nav-chip svg { width: 18px; height: 18px; color: var(--indigo); transition: color var(--transition); }
.service-nav-chip:hover {
  background: var(--gradient-accent); color: var(--white);
  border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(99,102,241,0.32);
}
.service-nav-chip:hover svg { color: var(--white); }

/* offset anchored sections below the sticky header */
[id="development"], [id="marketing"], [id="design"],
[id="infrastructure"], [id="cloud"], [id="network"],
[id="automation"], [id="software"] { scroll-margin-top: 90px; }

/* category header */
.cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.cat-badge {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 16px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(99,102,241,0.32);
}
.cat-badge svg { width: 28px; height: 28px; color: var(--white); stroke-width: 2px; }
.cat-head .section-label { margin-bottom: 6px; }
.cat-head .section-title { margin-bottom: 0; }
.why-section .cat-head .cat-badge { box-shadow: 0 10px 26px rgba(99,102,241,0.22); }
[dir="rtl"] .cat-head { flex-direction: row-reverse; text-align: right; }

/* ============================================================
   SERVICE DETAIL CARDS
   ============================================================ */
.service-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; margin-top: 52px; }
.service-detail-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: all var(--transition);
}
.service-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: rgba(99,102,241,0.2); }
.service-detail-head {
  background: var(--gradient);
  padding: 30px 26px;
  display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.service-detail-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 150px at 100% 0%, rgba(34,211,238,0.3), transparent 60%); }
.service-detail-head .icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.service-detail-head h3 { font-size: 18px; font-weight: 700; color: var(--white); position: relative; z-index: 1; }
.service-detail-body { padding: 26px; background: var(--white); }
.service-detail-body ul { display: flex; flex-direction: column; gap: 12px; }
.service-detail-body ul li { font-size: 14.5px; color: var(--text); padding-left: 26px; position: relative; line-height: 1.6; }
.service-detail-body ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(124,63,160,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237b3fa0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
[dir="rtl"] .service-detail-body ul li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .service-detail-body ul li::before { left: auto; right: 0; }

/* ============================================================
   ICONS (lucide / svg)
   ============================================================ */
.service-icon svg, .why-item-icon svg { width: 26px; height: 26px; stroke-width: 2px; color: var(--indigo); transition: color var(--transition), transform var(--transition); }
.service-card:hover .service-icon svg { color: var(--white); transform: scale(1.08); }
.service-detail-head .icon svg { color: var(--white); width: 26px; height: 26px; stroke-width: 2px; }
.contact-item-icon svg { color: var(--white); width: 22px; height: 22px; }
.solution-card:hover svg { transform: scale(1.1) rotate(5deg); }

/* ============================================================
   MAP / FAQ / FORM SUCCESS  (contact)
   ============================================================ */
.map-placeholder {
  width: 100%; height: 360px;
  border-radius: var(--radius-lg); overflow: hidden;
  margin-top: 56px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; }
.success-msg {
  display: none;
  background: #ecfdf5; border: 1px solid #86efac; color: #15803d;
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 14px; font-weight: 600; margin-top: 16px;
  align-items: center; gap: 10px;
}
.faq-section { background: var(--gradient-soft); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
  transition: all var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(99,102,241,0.2); }
.faq-item h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; display: flex; gap: 8px; }
.faq-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"] .topbar-left, [dir="rtl"] .topbar-right { flex-direction: row-reverse; }
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .why-item { flex-direction: row-reverse; }
[dir="rtl"] .contact-item { flex-direction: row-reverse; }
[dir="rtl"] .footer-brand { text-align: right; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero h1, [dir="rtl"] .hero p { max-width: 100%; }
[dir="rtl"] .hero-btns { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .form-row { direction: rtl; }
[dir="rtl"] .faq-item { text-align: right; }
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .service-link { flex-direction: row-reverse; }
[dir="rtl"] .project-body { text-align: right; }
[dir="rtl"] .project-meta { justify-content: flex-end; }
[dir="rtl"] .cta-btns { flex-direction: row-reverse; }
[dir="rtl"] .section-label::before { display: none; }
[dir="rtl"] .section-label::after { content: ''; width: 26px; height: 2px; background: var(--gradient-accent); border-radius: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .why-visual { aspect-ratio: 16/8; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .process-grid::before { display: none; }
  section { padding: 80px 0; }
}
@media (max-width: 768px) {
  nav {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px; border-top: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1); gap: 4px;
  }
  nav.open { display: flex; animation: fadeUp 0.3s ease; }
  nav a { padding: 12px 16px; width: 100%; }
  nav a.active::after { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; padding: 60px 0 100px; }
  .hero-stats .container { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #get-quote-btn { display: none; }
}
@media (max-width: 480px) {
  .topbar .container { justify-content: center; }
  .topbar-right { display: none; }
  .services-grid, .solutions-grid, .projects-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .faq-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
