/* ============================================
   LIME GLITCH MARKETING — Design Tokens
   Color: #0A0A0A bg / #C9FF3D lime accent / #F5F5F0 text / #6B6B6B muted / #151515 surface
   Type: Space Grotesk (display) + Tajawal (arabic display) + Inter/Tajawal (body) + IBM Plex Mono (data)
   ============================================ */

:root {
  --bg: #0B1220;
  --surface: #111A2E;
  --surface-2: #13203A;
  --lime: #5EA8FF;
  --lime-dim: #3D7FD9;
  --text: #EDEFF5;
  --text-muted: #7C8AA3;
  --border: #23314F;

  --font-display: 'Space Grotesk', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--lime); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.noise-overlay { display: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--lime); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--lime);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--lime-dim) !important; }
.nav-cta.is-active { background: var(--lime-dim) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,255,61,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,255,61,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 75% 35%, rgba(0,0,0,0.9) 0%, transparent 65%);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.glitch-word {
  color: var(--lime);
  position: relative;
  display: inline-block;
  cursor: default;
}
.glitch-word::before,
.glitch-word::after {
  content: attr(data-text);
  position: absolute;
  top: 0; right: 0;
  opacity: 0;
}
.glitch-word:hover { animation: glitch-shake 0.4s steps(2,end) infinite; }
.glitch-word:hover::before {
  opacity: 0.5;
  color: #9DC4FF;
  clip-path: inset(0 0 60% 0);
  transform: translate(2px, -2px);
  animation: glitch-clip 0.6s steps(3,end) infinite;
}
.glitch-word:hover::after {
  opacity: 0.5;
  color: #2E5FA8;
  clip-path: inset(60% 0 0 0);
  transform: translate(-2px, 2px);
  animation: glitch-clip 0.5s steps(3,end) infinite reverse;
}
@keyframes glitch-shake {
  0% { transform: translate(0); }
  50% { transform: translate(-1px, 1px); }
  100% { transform: translate(1px, -1px); }
}
@keyframes glitch-clip {
  0%, 100% { clip-path: inset(0 0 60% 0); }
  50% { clip-path: inset(40% 0 20% 0); }
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--lime);
  color: var(--bg);
}
.btn-primary:hover { background: var(--lime-dim); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.btn-block { width: 100%; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background: var(--lime);
  animation: scroll-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(40px); }
}

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}
.stats-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  color: var(--lime);
  display: inline;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  color: var(--lime);
}
.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 200px;
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: 140px 24px;
  text-align: center;
}
.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
}
.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}
.manifesto-accent {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 24px;
}

/* ============ SECTION HEAD (shared) ============ */
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 14px 0 18px;
  max-width: 700px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============ SERVICES ============ */
.services { padding: 100px 0; }
.services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--surface); }
.service-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============ APPROACH ============ */
.approach {
  padding: 100px 0;
  background: var(--surface);
}
.approach-steps {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.approach-step {
  border-right: 2px solid var(--border);
  padding-right: 24px;
  transition: border-color 0.3s ease;
}
.approach-step:hover { border-color: var(--lime); }
.step-num {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 14px;
  display: block;
  margin-bottom: 16px;
}
.approach-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.approach-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============ WORK ============ */
.work { padding: 100px 0; }
.work-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--lime);
  padding: 4px 10px;
  border-radius: var(--radius);
}
.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 20px 0 12px;
}
.work-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.work-note {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.work-note a { color: var(--lime); border-bottom: 1px solid var(--lime); }

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 100px 0;
  background: var(--surface);
}
.testimonials-track {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface-2);
  padding: 32px 28px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--lime);
}

/* ============ CONTACT / FORM ============ */
.contact { padding: 120px 0; }
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}
.contact-left { padding-top: 8px; }
.contact-direct { margin-top: 32px; }
.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-direct-link:hover {
  background: var(--lime);
  color: var(--bg);
}
.contact-direct-icon { font-size: 16px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--lime);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 160px 24px 90px;
  border-bottom: 1px solid var(--border);
}
.page-hero-short { padding: 160px 24px 70px; }
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.2;
  margin: 16px 0 24px;
  max-width: 760px;
}
.page-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 560px;
}

/* ============ STORY (About page) ============ */
.story { padding: 100px 0; }
.story-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
}
.story-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1rem; }
.story-text .section-title { margin-top: 14px; }
.story-quote {
  background: var(--surface);
  border-right: 3px solid var(--lime);
  padding: 32px 28px;
  border-radius: var(--radius);
  align-self: start;
}
.story-quote p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
.story-quote-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--lime);
}

/* ============ VALUES (About page) ============ */
.values {
  padding: 100px 0;
  background: var(--surface);
}
.values-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: var(--surface-2);
  padding: 36px 28px;
  border-radius: var(--radius);
}
.value-num {
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 14px;
  display: block;
  margin-bottom: 18px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ============ SERVICES DETAILED (Services page) ============ */
.services-detailed {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px;
}
.service-detail-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail-row:first-child { padding-top: 0; }
.service-detail-row:last-child { border-bottom: none; }
.service-detail-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--lime);
}
.service-detail-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.service-detail-content p {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 20px;
}
.service-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.service-detail-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius);
}

/* ============ WORK DETAILED (Work page) ============ */
.work-detailed {
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px 40px;
  display: grid;
  gap: 28px;
}
.work-detail-card {
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}
.work-detail-card:hover { border-color: var(--lime); }
.work-detail-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 18px 0 14px;
}
.work-detail-card p {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 22px;
}
.work-detail-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.work-detail-points span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lime);
  border: 1px solid var(--lime);
  padding: 6px 12px;
  border-radius: var(--radius);
}
.work-cta-note {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.work-cta-note p {
  color: var(--text-muted);
  font-size: 0.98rem;
  text-align: center;
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 24px;
}
.cta-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  max-width: 500px;
}

/* ============ CONTACT PAGE EXTRAS ============ */
.contact-page { padding-top: 80px; }
.contact-info-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 280px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ FLOATING WHATSAPP ============ */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .story-inner { grid-template-columns: 1fr; gap: 36px; }
  .values-grid { grid-template-columns: 1fr; }
  .service-detail-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-cta { margin-top: 12px; }

  .stats-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .manifesto { padding: 90px 24px; }
}

@media (max-width: 480px) {
  .approach-steps { grid-template-columns: 1fr; }
  .hero { padding: 120px 20px 60px; }
  .contact-form { padding: 28px; }
}
