/* ============================================
   Qunfuth (قنفذ) — Bold Editorial Design
   Creative agency aesthetic: gradients, big type,
   glass cards, phone mockups, asymmetric grids
   ============================================ */

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

:root {
  --bg: #0A0A0F;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-strong: rgba(255, 255, 255, 0.1);
  --cyan: #00D4FF;
  --cyan-light: #5CE5FF;
  --purple: #A855F7;
  --pink: #EC4899;
  --orange: #F97316;
  --gradient-1: linear-gradient(135deg, #00D4FF, #A855F7);
  --gradient-2: linear-gradient(135deg, #A855F7, #EC4899);
  --gradient-3: linear-gradient(135deg, #00D4FF, #EC4899, #F97316);
  --gradient-text: linear-gradient(135deg, #00D4FF 0%, #A855F7 50%, #EC4899 100%);
  --white: #FFFFFF;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #94A3B8;
  --gray-400: #64748B;
  --gray-500: #475569;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.3);
  --radius: 24px;
  --radius-sm: 14px;
  --nav-height: 80px;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); overflow-x: hidden; }

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--gray-200);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ========== GRADIENT MESH BACKGROUND ========== */
.mesh-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.mesh-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
}
.mesh-orb-1 { width: 600px; height: 600px; background: var(--cyan); top: -200px; right: -100px; animation: orbMove1 20s ease-in-out infinite; }
.mesh-orb-2 { width: 500px; height: 500px; background: var(--purple); bottom: 10%; left: -150px; animation: orbMove2 25s ease-in-out infinite; }
.mesh-orb-3 { width: 400px; height: 400px; background: var(--pink); top: 40%; right: 20%; animation: orbMove3 18s ease-in-out infinite; opacity: 0.08; }
@keyframes orbMove1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px, 100px); } }
@keyframes orbMove2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, -80px); } }
@keyframes orbMove3 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(-40px, 60px); } 66% { transform: translate(50px, -30px); } }

/* Floating particles */
.particles { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; background: var(--white); border-radius: 50%; opacity: 0.08; animation: particleUp linear infinite; }
@keyframes particleUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.08; }
  90% { opacity: 0.08; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
.particle-glow {
  position: absolute; border-radius: 50%; opacity: 0.06;
  background: var(--gradient-1); filter: blur(30px);
  animation: particleGlow ease-in-out infinite;
}
@keyframes particleGlow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0; }
  25% { opacity: 0.08; }
  50% { transform: scale(1.5) translate(20px, -30px); opacity: 0.06; }
  75% { opacity: 0.08; }
}
.particle-spike {
  position: absolute; width: 2px; height: 16px; border-radius: 2px;
  background: var(--cyan); opacity: 0.05;
  animation: particleSpike linear infinite;
}
@keyframes particleSpike {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.06; }
  85% { opacity: 0.06; }
  100% { transform: translateY(-80vh) rotate(180deg); opacity: 0; }
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Content layer */
.navbar, .hero, .section, .footer, .page-header { position: relative; z-index: 1; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  height: 72px; width: 72px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  transition: all 0.3s;
}
.nav-logo img:hover { box-shadow: 0 0 30px rgba(0, 212, 255, 0.25); transform: scale(1.05); }
.nav-logo span { font-weight: 700; font-size: 1.2rem; color: var(--white); }

.nav-center {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px;
  backdrop-filter: blur(10px);
}
.nav-center a { padding: 8px 20px; font-size: 0.88rem; font-weight: 500; color: var(--gray-300); border-radius: 100px; transition: all 0.2s; }
.nav-center a:hover { color: var(--white); }
.nav-center a.active { background: var(--bg-glass-strong); color: var(--white); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-1); color: var(--bg) !important;
  padding: 10px 24px; border-radius: 100px;
  font-weight: 600; font-size: 0.88rem; transition: all 0.3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3); }
.nav-cta svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 600; font-family: var(--font-ar);
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, #00D4FF, #7C3AED);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.4), 0 0 30px rgba(124, 58, 237, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.1);
}
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn svg, .nav-cta svg { width: 18px; height: 18px; }
.arrow-icon { display: inline-flex; transition: transform 0.2s; }
.btn:hover .arrow-icon { transform: translateX(-4px); }

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ========== HERO ========== */
.hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-eyebrow {
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--cyan); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 2px;
  background: var(--gradient-1); display: block;
}
.hero h1 {
  font-size: 4rem; font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 24px;
}
.hero p {
  font-size: 1.15rem; color: var(--gray-300);
  line-height: 1.9; margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px; height: 560px;
  background: #1A1A2E; border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  overflow: hidden; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0, 212, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s;
}
.phone-mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
/* Second phone (floating behind) */
.phone-mockup-secondary {
  position: absolute; top: 60px; right: -40px;
  width: 220px; height: 440px;
  background: #1A1A2E; border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.06);
  overflow: hidden; opacity: 0.5;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transform: perspective(1000px) rotateY(-15deg);
  z-index: -1;
}

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-label {
  font-family: var(--font-en); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 4px;
  background: var(--gradient-1); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-title {
  font-size: 2.8rem; font-weight: 700; color: var(--white);
  line-height: 1.25; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-300);
  max-width: 560px; line-height: 1.9; margin-bottom: 60px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ========== GLASS CARDS ========== */
.glass-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.06), inset 0 0 30px rgba(0, 212, 255, 0.05);
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--gradient-1); opacity: 0;
  transition: opacity 0.4s;
}
.glass-card:hover::before { opacity: 1; }

/* Glass card base text styles */
.glass-card h3 { color: var(--white); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.glass-card h4 { color: var(--white); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.glass-card > p { color: var(--gray-300); font-size: 0.9rem; line-height: 1.7; }

/* ========== OVERVIEW & WHY ICONS ========== */
.overview-icon, .why-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(0,212,255,0.15);
}
.overview-icon svg, .why-icon svg {
  width: 22px; height: 22px; color: var(--cyan);
}
.overview-grid .glass-card {
  min-height: 160px; display: flex; flex-direction: column;
  justify-content: flex-start; padding: 28px;
}
.why-grid .glass-card {
  padding: 36px;
}

/* ========== CATEGORY BADGES ========== */
.category-badge {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.category-card { margin-bottom: 0; }

/* ========== IMPACT QUOTES ========== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: all 0.4s ease;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.quote-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.06);
}
.quote-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-1); opacity: 0; transition: opacity 0.4s;
}
.quote-card:hover::before { opacity: 1; }

.quote-card-stat {
  background: linear-gradient(160deg, rgba(0,212,255,0.08), rgba(168,85,247,0.05));
  border-color: rgba(0,212,255,0.15);
  text-align: center; justify-content: center; align-items: center;
}
.quote-card-stat::before { opacity: 0.6; }

.quote-icon {
  font-family: var(--font-en); font-size: 3rem; font-weight: 800;
  line-height: 0.8; margin-bottom: 14px; opacity: 1;
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}

.quote-text {
  font-size: 1.15rem; color: var(--gray-100); line-height: 1.9;
  font-family: var(--font-ar); font-weight: 500;
  margin-bottom: 20px; flex: 1;
}

.quote-author { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.quote-author-name {
  font-family: var(--font-ar); font-size: 0.9rem;
  font-weight: 700; color: var(--white);
}
.quote-author-role {
  font-family: var(--font-ar); font-size: 0.78rem;
  color: var(--gray-400); margin-top: 4px; line-height: 1.6;
}

.quote-stat-big {
  font-family: var(--font-en); font-size: 3.5rem; font-weight: 800;
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 16px;
}
.quote-stat-desc { font-family: var(--font-ar); font-size: 0.95rem; color: var(--gray-200); line-height: 1.7; margin-bottom: 12px; }
.quote-stat-source { font-family: var(--font-en); font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== PORTFOLIO CASE STUDIES ========== */
.portfolio-case {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 24px;
}
.portfolio-case:first-of-type { margin-top: 48px; }
.portfolio-case:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.06);
}
.portfolio-case-img {
  overflow: hidden;
  position: relative;
}
.portfolio-case-wide { max-height: 480px; }
.portfolio-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
  display: block;
}
.portfolio-case:hover .portfolio-case-img img {
  transform: scale(1.03);
}
.portfolio-case-info {
  padding: 28px 32px;
}
.portfolio-case-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.portfolio-case-tag {
  display: inline-block;
  padding: 3px 12px;
  background: color-mix(in srgb, var(--tag-color, var(--cyan)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--cyan)) 25%, transparent);
  border-radius: 100px;
  font-size: 0.65rem;
  color: var(--tag-color, var(--cyan));
  font-weight: 600;
}
.portfolio-case-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.portfolio-case-desc {
  font-size: 0.88rem;
  color: var(--gray-300);
  line-height: 1.7;
}
.portfolio-case-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.portfolio-case-deliverables span {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--gray-400);
}
.portfolio-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.portfolio-case-compact {
  margin-top: 0 !important;
}
.portfolio-case-compact .portfolio-case-img {
  aspect-ratio: 3/4;
}
.portfolio-case-compact .portfolio-case-info {
  padding: 20px 24px;
}
.portfolio-case-compact .portfolio-case-title {
  font-size: 1.05rem;
}
.portfolio-case-compact .portfolio-case-desc {
  font-size: 0.8rem;
}
.portfolio-cta {
  text-align: center;
  margin-top: 40px;
  padding: 36px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
}
.portfolio-cta p {
  color: var(--gray-300);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* ========== SERVICES GRID ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.service-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-1); opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--gray-300); line-height: 1.7; }

/* Wide service card */
.service-card-wide {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: 1fr 1.5fr; gap: 40px;
  align-items: center; padding: 48px;
}

.service-tag {
  display: inline-block; padding: 4px 14px;
  background: var(--bg-glass-strong); border-radius: 100px;
  font-size: 0.78rem; color: var(--gray-300);
  margin-left: 6px; margin-bottom: 6px;
}

/* ========== STEPS GRID ========== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.step-card {
  text-align: center; padding: 40px 24px;
  position: relative;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 8px;
  transition: all 0.4s ease;
}
.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.06);
}
.step-number {
  font-family: var(--font-en); font-size: 2.4rem; font-weight: 800;
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 20px; line-height: 1;
}
.step-card h3 {
  color: var(--white); font-size: 1rem; font-weight: 600;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--gray-400); font-size: 0.85rem; line-height: 1.7;
}
.step-connector {
  display: none; /* Hidden on mobile, could add connecting line on desktop later */
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 48px 0;
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: var(--border);
}
.stat-number {
  font-family: var(--font-en); font-size: 3.5rem; font-weight: 800;
  background: var(--gradient-text); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 10px;
}
.stat-text { font-size: 0.85rem; color: var(--gray-400); max-width: 200px; margin: 0 auto; line-height: 1.6; }

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  backdrop-filter: blur(20px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--gray-200); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: var(--font-ar); font-size: 0.92rem;
  transition: border-color 0.3s; direction: rtl;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 212, 255, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: #1A1A2E; }

.contact-info-card { display: flex; flex-direction: column; gap: 12px; }
.info-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.3s; backdrop-filter: blur(20px);
}
.info-card:hover { border-color: var(--border-hover); }
.info-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: var(--bg-glass-strong); border: 1px solid var(--border);
}
.info-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.info-card p { font-size: 0.85rem; color: var(--gray-400); direction: ltr; text-align: right; }
.social-row {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  display: flex; align-items: center; gap: 12px;
}
.social-row span { font-size: 0.9rem; color: var(--gray-400); margin-left: auto; }
.social-link {
  width: 44px; height: 44px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 1.1rem; transition: all 0.3s;
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 212, 255, 0.08); }

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 40px;
  position: relative;
}
.page-header::before {
  content: ''; position: absolute; top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none; filter: blur(40px);
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: 3rem; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.page-header p { font-size: 1.1rem; color: var(--gray-300); max-width: 520px; line-height: 1.8; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,212,255,0.02));
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 60px; width: 60px; border-radius: 50%; border: 2px solid var(--border); }
.footer-brand span { font-weight: 600; color: var(--white); font-size: 1rem; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy {
  width: 100%; text-align: center; padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.8rem; color: var(--gray-500);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .services-overview-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .nav-center.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-height);
    right: 0; left: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(24px); border-radius: 0;
    padding: 24px; gap: 8px; z-index: 999;
  }
  .nav-center.open a { padding: 14px 20px; font-size: 1rem; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-logo img { height: 56px; width: 56px; }

  .hero { padding-top: calc(var(--nav-height) + 30px); min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .phone-mockup { width: 220px; height: 440px; }
  .phone-mockup-secondary { display: none; }

  .services-grid, .pricing-grid, .quotes-grid { grid-template-columns: 1fr; }
  .portfolio-cases-grid { grid-template-columns: 1fr; }
  .portfolio-case-info { padding: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .quote-stat-big { font-size: 2.5rem; }
  .service-card-wide { grid-template-columns: 1fr !important; gap: 24px !important; padding: 28px !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 50px 0; }
  .section-title { font-size: 1.8rem; }
  .page-header h1 { font-size: 2.2rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .hero-visual { overflow: hidden; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2.2rem; }
  .price-amount { font-size: 2.4rem; }
  .phone-mockup { width: 200px; height: 400px; }
  .pkg-grid-responsive { grid-template-columns: 1fr !important; }
  .pkg-grid-responsive-3 { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
  .section-desc { font-size: 0.88rem; }
  .quote-text { font-size: 0.92rem; }
  .quote-card { padding: 24px; }
}

@media (max-width: 768px) and (min-width: 481px) {
  .pkg-grid-responsive { grid-template-columns: 1fr !important; }
  .pkg-grid-responsive-3 { grid-template-columns: 1fr !important; }
}

/* Services overview 2-col grid (inside "What We Build" section) */
.services-overview-grid .services-grid {
  grid-template-columns: 1fr 1fr;
}


/* ========== SVG ICON SYSTEM ========== */
.q-grad-1 { color: var(--cyan); }
.q-grad-3 { color: var(--pink); }

/* Small icon in mockup items */
.q-icon-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-bottom: 4px;
}

.q-icon-sm svg {
  width: 100%;
  height: 100%;
}

.q-icon-sm.q-grad-1 svg { color: var(--cyan); }
.q-icon-sm.q-grad-3 svg { color: var(--pink); }

/* Info icon override for SVGs */
.info-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.info-icon.q-grad-1 { color: var(--cyan); }
.info-icon.q-grad-2 { color: var(--purple); }
.info-icon.q-grad-3 { color: var(--pink); }

/* ========== INDUSTRY TAGS ========== */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 0;
}
.industry-tag {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 212, 255, 0.15);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,212,255,0.02));
  color: var(--gray-300);
  font-size: 0.82rem;
  font-family: var(--font-ar);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}
.industry-tag:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--white);
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(168,85,247,0.04));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

/* ========== CARD ILLUSTRATIONS (large category + mascot only) ========== */

.card-illust {
  position: relative;
  overflow: hidden;
}
.card-illust > * {
  position: relative;
  z-index: 3;
}
.card-illust::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-illust:hover::after {
  opacity: 0.85;
}
.card-illust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,15,0.1)  0%,
    rgba(10,10,15,0.4)  40%,
    rgba(10,10,15,0.92) 75%
  );
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}
.card-illust h3 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.card-illust p {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Large category cards */
.card-illust-lg {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  margin-bottom: 20px;
}
.card-illust-lg h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.card-illust-label {
  color: var(--cyan) !important;
  font-family: var(--font-en) !important;
  font-size: 0.7rem !important;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: none !important;
  text-transform: uppercase;
}

/* Overview grid cards (clean glass, no illustrations) */
.services-overview-grid .services-grid .glass-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.services-overview-grid .services-grid .glass-card h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.services-overview-grid .services-grid .glass-card p {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* Illustration image paths (category + mascot only) */
.card-illust[data-illust="storefront"]::after { background-image: url('images/illustrations/storefront.svg'); }
.card-illust[data-illust="digital-mobile"]::after { background-image: url('images/illustrations/digital-mobile.svg'); }
.card-illust[data-illust="corporate"]::after { background-image: url('images/illustrations/corporate.svg'); }
