:root {
  --teal: #1E6FD9;
  --teal-dark: #123E7A;
  --teal-tint: #EAF2FE;
  --blue: #1E6FD9;
  --blue-tint: #EAF2FE;
  --coral: #0EA5E9;
  --coral-tint: #E4F6FD;
  --coral-dark: #0876AA;
  --purple: #4A6FA5;
  --purple-tint: #EDF1F7;
  --ink: #1C1C1E;
  --ink-soft: #55565C;
  --ink-mute: #8B8D94;
  --cream: #FFFFFF;
  --white: #FFFFFF;
  --line: rgba(28,28,30,0.10);
  --shadow: 0 30px 70px -28px rgba(44,44,42,0.28);
  --primary: #2563EB;
  --accent: #60A5FA;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #0F172A;
  --muted: #64748B;
  --success: #22C55E;
  --shadow-soft: 0 28px 80px -48px rgba(15,23,42,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: 'Cairo', sans-serif; font-weight: 800; line-height: 1.28; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow-soft {
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(216,90,48,0.5);
}
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-ghost {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,239,232,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.logo {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 21px;
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
}
.logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 14px; }

.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 20px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 17.5px; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--ink-mute); }
.hero-note strong { color: var(--ink-soft); font-weight: 600; }

.task-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.task-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.task-card-head span { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.task-card-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--teal); font-weight: 700; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,110,86,.5); } 70% { box-shadow: 0 0 0 8px rgba(15,110,86,0); } 100% { box-shadow: 0 0 0 0 rgba(15,110,86,0); } }
.task-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: none; }
.check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--teal); }
.check svg { width: 13px; height: 13px; }
.task-text { flex: 1; font-size: 14.5px; color: var(--ink-soft); text-decoration-color: var(--line); }
.task-tag { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark); }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.section-head p { font-size: 16.5px; color: var(--ink-soft); }
.section-border { border-top: 1px solid var(--line); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(44,44,42,0.3); }
.service-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }

.folio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.folio-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.folio-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(44,44,42,0.3); }
.folio-top { height: 108px; display: flex; align-items: center; justify-content: center; position: relative; }
.folio-top .num { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 34px; color: rgba(255,255,255,0.5); }
.folio-body { padding: 22px 24px 24px; }
.folio-tag { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; display: inline-block; margin-bottom: 10px; }
.folio-body h3 { font-size: 17px; margin-bottom: 8px; }
.folio-body p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.folio-link { font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-num { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 14px; color: var(--coral); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-num::before { content: ''; width: 30px; height: 1.5px; background: var(--coral); }
.step h3 { font-size: 17.5px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

.why { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 60px 48px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.why h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.why > div:first-child p { color: rgba(241,239,232,0.72); font-size: 15.5px; }
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-item { display: flex; gap: 15px; }
.why-item .mark { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--teal); font-weight: 800; font-family: 'Cairo', sans-serif; font-size: 13px; }
.why-item h4 { font-size: 15px; margin-bottom: 3px; font-family: 'Cairo', sans-serif; }
.why-item p { font-size: 13.5px; color: rgba(241,239,232,0.65); }

.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.about-grid p { font-size: 16px; color: var(--ink-soft); margin-bottom: 16px; }
.cred-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.cred-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred-row:last-child { border-bottom: none; }
.cred-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cred-row .t { font-size: 14.5px; font-weight: 700; }
.cred-row .s { font-size: 12.5px; color: var(--ink-soft); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark); }

.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 16px; font-weight: 700; font-family: 'Cairo', sans-serif; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; transition: transform .2s ease; }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); }
.faq-item[open] .plus svg path { stroke:  #fff; }
.faq-item p.a { padding: 0 4px 22px; font-size: 14.5px; color: var(--ink-soft); max-width: 600px; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.contact-info h3 { font-size: 20px; margin-bottom: 14px; }
.contact-info p { font-size: 15px; color: var(--ink-soft); margin-bottom: 28px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .l { font-size: 12px; color: var(--ink-mute); }
.contact-row .v { font-size: 14.5px; font-weight: 600; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 14.5px; background: var(--cream); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 16px; }

footer { padding: 54px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.footer-tagline { font-size: 14px; color: var(--ink-soft); max-width: 280px; margin-top: 8px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 9px; }
.footer-col a:hover { color: var(--ink); }
.copyright { font-size: 13px; color: var(--ink-mute); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .why { grid-template-columns: 1fr; padding: 38px 26px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .services-grid, .folio-grid, .steps { grid-template-columns: 1fr; gap: 32px; }
}
/* ---------- CASE STUDY PAGE SHARED STYLES ---------- */
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 100px 0; }
.section.headless { padding-top: 70px; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.heading-line { width: 72px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin-bottom: 18px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(96,165,250,0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
h1, h2, h3, .display { font-family: 'Cairo', sans-serif; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(40px, 4vw, 64px); margin-bottom: 22px; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 16px; }
h3 { font-size: 18.5px; margin-bottom: 12px; }
p { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 18px 40px -24px rgba(37,99,235,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -30px rgba(37,99,235,0.35); }
.btn-secondary { background: rgba(37,99,235,0.08); color: var(--primary); }
.btn-secondary:hover { background: rgba(96,165,250,0.16); }
.btn-ghost { background: transparent; border-color: rgba(15,23,42,0.1); color: var(--text); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 20px; align-items: center; }
.flex-between { justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-soft); }
.card-sm { padding: 28px; }
.card-lg { padding: 38px; }
.glass { background: rgba(255,255,255,0.86); backdrop-filter: blur(20px); border-color: rgba(37,99,235,0.14); }
.text-muted { color: var(--muted); }
.label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(96,165,250,0.14); color: var(--primary); }
.label span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.nav { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,0.95); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(15,23,42,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.logo { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; color: #334155; font-size: 15px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--primary); }
.hero { padding: 100px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.hero-note { color: var(--muted); max-width: 560px; margin-top: 16px; }
.hero-note strong { color: var(--text); }
.hero-frame { position: relative; min-height: 520px; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, rgba(96,165,250,0.16), rgba(37,99,235,0.04)); border: 1px solid rgba(37,99,235,0.12); }
.hero-phone { position: absolute; inset: 22px; border-radius: 36px; background: #F8FAFC; border: 1px solid rgba(15,23,42,0.08); display: flex; align-items: center; justify-content: center; }
.hero-phone::before, .hero-phone::after { content: ''; position: absolute; width: 72px; height: 8px; background: rgba(15,23,42,0.08); border-radius: 999px; left: 50%; transform: translateX(-50%); }
.hero-phone::before { top: 22px; }
.hero-phone::after { bottom: 22px; }
.hero-screen { width: calc(100% - 60px); height: calc(100% - 100px); border-radius: 32px; background: linear-gradient(180deg, rgba(96,165,250,0.12), rgba(37,99,235,0.03)); border: 1px solid rgba(15,23,42,0.06); padding: 28px; display: grid; gap: 20px; }
.hero-screen .screen-header { display: flex; justify-content: space-between; gap: 16px; }
.hero-screen .screen-header span { flex: 1; height: 12px; background: rgba(15,23,42,0.08); border-radius: 999px; }
.hero-screen .screen-body { display: flex; flex-direction: column; gap: 16px; }
.hero-screen .screen-body .badge { width: 160px; height: 14px; border-radius: 999px; background: rgba(37,99,235,0.12); }
.hero-screen .screen-body .panel { height: 88px; border-radius: 26px; background: rgba(255,255,255,0.88); border: 1px solid rgba(15,23,42,0.04); }
.hero-screen-footer { display: flex; justify-content: space-between; gap: 12px; }
.screen-dot { width: 12px; height: 12px; border-radius: 999px; background: rgba(37,99,235,0.45); }
.overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-card { overflow: hidden; }
.overview-card.card-sm { min-height: 160px; padding: 28px; display: grid; gap: 16px; }
.overview-card h3 { font-size: 16px; color: var(--text); }
.overview-card p { color: var(--muted); }
.challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.challenge-card { padding: 32px; }
.challenge-card strong { color: var(--primary); }
.challenge-card p { color: var(--muted); }
.solution-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 36px; }
.solution-hero h2 { margin-bottom: 10px; }
.solution-hero p { color: var(--muted); }
.image-placeholder { min-height: 420px; border-radius: 28px; border: 1px dashed rgba(37,99,235,0.28); background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(37,99,235,0.05)); display: grid; place-items: center; color: var(--primary); font-weight: 700; text-align: center; padding: 32px; }
.solution-image { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.image-frame {
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37,99,235,0.16), rgba(96,165,250,0.06));
  border: 1px solid rgba(37,99,235,0.18);
  box-shadow: 0 18px 40px -24px rgba(15,23,42,0.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}
.timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline-step { padding: 30px; }
.timeline-step span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 16px; background: rgba(37,99,235,0.12); color: var(--primary); font-weight: 800; margin-bottom: 18px; }
.timeline-step h3 { color: var(--text); }
.timeline-step p { color: var(--muted); }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 32px; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(15,23,42,0.12); }
.icon-box { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(96,165,250,0.14); color: var(--primary); font-weight: 800; margin-bottom: 18px; }

.diagram { border-radius: 32px; padding: 42px; min-height: 320px; display: grid; place-items: center; border: 1px solid rgba(37,99,235,0.16); background: linear-gradient(135deg, rgba(96,165,250,0.1), rgba(37,99,235,0.03)); }
.stack-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.stack-pill { padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(37,99,235,0.16); background: rgba(96,165,250,0.09); color: var(--primary); font-weight: 700; }
.impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-card { padding: 32px; background: linear-gradient(180deg, rgba(96,165,250,0.12), rgba(255,255,255,0.95)); }
.impact-number { display: block; font-size: clamp(34px, 4vw, 48px); color: var(--primary); margin-bottom: 16px; }
.testimonial { grid-template-columns: 1fr 0.95fr; }
.testimonial-card { padding: 36px; }
.testimonial-quote { font-size: 20px; line-height: 1.65; color: var(--text); margin-bottom: 28px; }
.testimonial-meta { display: flex; align-items: center; gap: 20px; }
.avatar { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: rgba(96,165,250,0.14); color: var(--primary); font-weight: 800; font-size: 22px; }
.author-name { font-weight: 800; }
.author-role { color: var(--muted); font-size: 14.5px; }
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card.card-sm { min-height: 240px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.project-card h3 { color: var(--text); }
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.faq-item[open] .icon { transform: rotate(45deg); border-color: var(--primary); background: rgba(37,99,235,0.1); }
.faq-item p { padding: 0 26px 24px; color: var(--muted); }
.cta-banner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 60px 56px; border-radius: 32px; background: linear-gradient(135deg, rgba(96,165,250,0.14), rgba(255,255,255,0.96)); border: 1px solid rgba(37,99,235,0.14); }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--muted); }
.footer { padding: 64px 0 40px; background: #F8FAFC; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-logo { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.footer-logo span { color: var(--primary); }
.footer-nav h5 { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.footer-nav a { display: block; margin-bottom: 12px; color: var(--muted); }
.footer-nav a:hover { color: var(--primary); }
.social-links { display: flex; gap: 14px; margin-top: 14px; }
.social-links a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1px solid var(--border); color: var(--primary); }
.footer-bottom { margin-top: 42px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  background-color: rgb(0, 0, 0);
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}



@media (max-width: 1040px) {
  .overview-grid, .challenge-grid, .solution-grid, .timeline, .features-grid, .impact-grid, .testimonial, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .flex-between { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-links { justify-content: center; gap: 16px; }
  .hero { padding-top: 70px; }
  .hero-frame { min-height: 420px; }
  .gallery-controls { flex-direction: column; align-items: stretch; }
  .gallery-nav { justify-content: center; }
  .gallery-slide img { max-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- TOAST NOTIFICATION ---------- */
#toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);

    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;

    transition: all .35s ease;
    z-index: 99999;
}

#toast.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#toast.success{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}

#toast.error{
    background:linear-gradient(135deg,#dc2626,#ef4444);
}

#toast.info{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
}
