/* ============================================================
   Nas InfoPulse — modern AI-themed design system
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #eef4ff;
  --surface: #f6f9ff;
  --surface-border: rgba(30, 64, 175, 0.14);
  --text: #10203a;
  --text-dim: #566683;
  --primary: #2563eb;
  --primary-2: #3b82f6;
  --accent: #0ea5e9;
  --grad: linear-gradient(120deg, #3b82f6, #2563eb 55%, #1e40af);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(30, 64, 175, 0.16);
  --header-h: 74px;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--text-dim); font-size: 0.92rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- glass card ---------------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.07);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-head);
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(59, 130, 246, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--surface-border);
}
.btn-ghost:hover { background: var(--surface); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.12);
}
.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}
.brand-text span { color: #1e3a8a; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.9rem;
  cursor: pointer;
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 10% -8%, rgba(59, 130, 246, 0.20), transparent 60%),
    radial-gradient(820px 480px at 92% 6%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(99, 102, 241, 0.16), transparent 60%),
    linear-gradient(160deg, #e9f1ff 0%, #f6f9ff 50%, #eef4ff 100%);
}
/* subtle animated tech grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 55%, transparent 100%);
}
/* soft moving light streak for a modern digital feel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(59, 130, 246, 0.10), transparent 70%);
  animation: heroSheen 9s ease-in-out infinite alternate;
}
@keyframes heroSheen {
  from { transform: translateX(-8%); opacity: 0.7; }
  to   { transform: translateX(8%);  opacity: 1; }
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
  animation: floatGlow 12s ease-in-out infinite alternate;
}
.hero-glow-1 { width: 480px; height: 480px; background: #3b82f6; top: -120px; left: -120px; }
.hero-glow-2 { width: 420px; height: 420px; background: #60a5fa; bottom: -140px; right: -100px; animation-delay: -6s; }
@keyframes floatGlow { to { transform: translate(40px, 30px) scale(1.1); } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 1.3rem 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
#typed { border-right: 3px solid var(--accent); padding-right: 4px; }

.hero-stats {
  display: flex;
  gap: 2.6rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.hero-stats strong {
  font-family: var(--font-head);
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.hero-stats span { color: var(--text-dim); font-size: 0.88rem; }

/* orbit visual */
.hero-visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.orbit-ring, .orbit-ring-2 {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.orbit-ring-2 { inset: 28%; animation-duration: 20s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-center {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 10px 34px rgba(30, 64, 175, 0.22), 0 0 0 8px rgba(37, 99, 235, 0.06);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 12px 40px rgba(30, 64, 175, 0.28), 0 0 0 14px rgba(37, 99, 235, 0.05); }
}
.orbit-icon {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  /* each icon zooms in then back to normal, one after another */
  animation: orbitZoom 4.8s ease-in-out infinite;
}
.orbit-icon img { width: 64%; height: 64%; object-fit: contain; }
.oi-1 { top: 2%; left: 44%; color: #2563eb; animation-delay: 0s; }
.oi-2 { top: 22%; right: 2%; color: #3b82f6; animation-delay: 0.8s; }
.oi-3 { bottom: 18%; right: 6%; color: #0ea5e9; animation-delay: 1.6s; }
.oi-4 { bottom: 0; left: 42%; color: #1e40af; animation-delay: 2.4s; }
.oi-5 { bottom: 20%; left: 4%; color: #38bdf8; animation-delay: 3.2s; }
.oi-6 { top: 20%; left: 2%; color: #60a5fa; animation-delay: 4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes orbitZoom {
  0%   { transform: scale(1); }
  8%   { transform: scale(1.35); }
  17%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--text-dim);
  animation: bob 2s ease-in-out infinite;
  z-index: 2;
}

/* ---------------- sections ---------------- */
.section { padding: 5.5rem 0; }
.section-alt {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(37, 99, 235, 0.08), transparent),
    var(--bg-alt);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--text-dim); margin-top: 0.7rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* ---------------- cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.service-card {
  padding: 1.8rem;
  background: #ffffff;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #fff;
  background: var(--grad);
  margin-bottom: 1.1rem;
  overflow: hidden;
}
/* When a real logo image is uploaded, show it at a normal logo width
   (wider rectangle) instead of a small square, keeping its aspect ratio. */
.service-icon.has-logo {
  width: auto;
  min-width: 56px;
  max-width: 220px;
  height: 66px;
  background: transparent;
  border: none;
  padding: 0;
  place-items: center start;
}
.service-icon.has-logo img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-card .mini-logo {
  width: auto;
  max-width: 120px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-dim); font-size: 0.93rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.card-link:hover { gap: 0.6rem; }
.card-link i { transition: transform 0.2s; }

/* mini cards (software list) */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.mini-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform 0.25s, border-color 0.25s;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.45); }
.mini-card i { font-size: 1.5rem; color: var(--accent); margin-top: 0.15rem; }
.mini-card strong { display: block; font-size: 0.95rem; }
.mini-card small { color: var(--text-dim); }

/* IT cards */
.it-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}
.it-card { padding: 1.7rem 1.4rem; text-align: center; transition: transform 0.3s, border-color 0.3s; }
.it-card:hover { transform: translateY(-8px); border-color: rgba(37, 99, 235, 0.5); }
.it-card i { font-size: 2.3rem; color: var(--primary); }
.it-card h3 { font-size: 1.02rem; margin: 0.8rem 0 0.4rem; }
.it-card p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------------- recommender ---------------- */
.recommender { padding: 2rem; max-width: 860px; margin: 0 auto; }
.recommender-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.2rem;
}
.recommender-form i { font-size: 1.3rem; color: var(--text-dim); }
.recommender-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}
.recommender-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; justify-content: center; }
.recommender-chips button {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.recommender-chips button:hover { color: var(--primary); border-color: var(--primary); }
.recommender-results { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.rec-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.25);
  animation: fadeUp 0.5s both;
}
.rec-item i { font-size: 1.7rem; color: var(--accent); }
.rec-item strong { display: block; }
.rec-item small { color: var(--text-dim); }
.rec-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  white-space: nowrap;
}
.rec-empty { text-align: center; color: var(--text-dim); padding: 0.8rem; }

/* ---------------- why us / lists ---------------- */
.why-grid, .about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.check-list { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.check-list i { color: var(--accent); margin-right: 0.5rem; }
.testimonials { display: grid; gap: 1.2rem; }
.testimonial { padding: 1.5rem; }
.testimonial .stars { color: #ffd166; margin-bottom: 0.5rem; }
.testimonial p { color: var(--text); font-size: 0.95rem; }
.testimonial footer { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.7rem; }
.about-panel { padding: 2rem; display: grid; gap: 0.7rem; }
.about-panel h3 { font-size: 1.05rem; display: flex; gap: 0.5rem; align-items: center; color: var(--primary); margin-top: 0.6rem; }
.about-panel p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------------- contact ---------------- */
.section-cta {
  background:
    radial-gradient(700px 350px at 15% 20%, rgba(37, 99, 235, 0.10), transparent),
    var(--bg-alt);
}
.contact-cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card:hover { transform: translateX(6px); border-color: rgba(37, 99, 235, 0.5); }
.contact-card i { font-size: 1.8rem; color: var(--accent); }
.contact-card small { display: block; color: var(--text-dim); font-size: 0.78rem; }
.contact-card strong { font-size: 0.95rem; }

.enquiry-form { padding: 2rem; display: grid; gap: 0.9rem; }
.enquiry-form h3 { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
select.form-input option { background: var(--bg-alt); color: var(--text); }
textarea.form-input { resize: vertical; }
.form-feedback { font-size: 0.9rem; text-align: center; min-height: 1.2rem; }
.form-feedback.ok { color: var(--accent); }
.form-feedback.err { color: #dc2626; }
.field-error { color: #dc2626; font-size: 0.8rem; margin-top: -0.5rem; }

/* flash messages */
.flash-wrap { padding-top: calc(var(--header-h) + 1rem); }
.flash {
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #0369a1;
}
.flash-error { background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.35); color: #dc2626; }

/* ---------------- page hero (inner pages) ---------------- */
.page-hero {
  padding: calc(var(--header-h) + 4.5rem) 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(37, 99, 235, 0.14), transparent),
    var(--bg-alt);
}
.page-hero p { color: var(--text-dim); margin-top: 0.6rem; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--surface-border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-grid h4 { margin-bottom: 1rem; font-size: 1rem; }
.footer-grid a, .footer-grid span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--primary); }
.footer-brand { margin-bottom: 0.8rem; }
.footer-brand .brand-text {
  display: inline;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
}
.footer-brand .brand-text span { display: inline; color: #1e3a8a; margin: 0; }
.footer-desc { color: var(--text-dim); font-size: 0.9rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding: 1.1rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-admin-link:hover { color: var(--primary); }

/* ---------------- WhatsApp float ---------------- */
.whatsapp-float {
  position: fixed;
  bottom: 96px;
  right: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------------- chatbot ---------------- */
.chatbot { position: fixed; bottom: 22px; right: 22px; z-index: 95; }
.chatbot-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 34px rgba(37, 99, 235, 0.5);
  transition: transform 0.25s;
}
.chatbot-fab:hover { transform: scale(1.08); }
.fab-bot { width: 82%; height: 82%; object-fit: contain; pointer-events: none; }
.chatbot-avatar img { width: 82%; height: 82%; object-fit: contain; }
.orbit-center img { width: 64%; height: 64%; object-fit: contain; }
.chatbot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.6);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple { to { transform: scale(1.55); opacity: 0; } }

.chatbot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: min(370px, calc(100vw - 32px));
  height: 520px;
  max-height: calc(100vh - 130px);
  display: none;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: fadeUp 0.3s both;
}
.chatbot-panel.open { display: flex; }
.chatbot-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--grad);
  color: #fff;
}
.chatbot-head small { display: flex; align-items: center; gap: 0.35rem; opacity: 0.9; font-size: 0.75rem; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.9rem;
  white-space: pre-line;
  animation: fadeUp 0.25s both;
}
.chat-msg.bot {
  background: #eef4ff;
  border: 1px solid var(--surface-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-typing { display: inline-flex; gap: 4px; padding: 0.9rem 1rem; }
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: blink 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 0.25; transform: translateY(-3px); } }

.chatbot-quick { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0 1rem 0.6rem; }
.chatbot-quick button {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.chatbot-quick button:hover { color: var(--primary); border-color: var(--primary); }
.chatbot-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  border-top: 1px solid var(--surface-border);
}
.chatbot-input input {
  flex: 1;
  background: #f1f5fb;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
}
.chatbot-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------------- service details modal ---------------- */
.service-card[data-modal-title], .mini-card[data-modal-title] { cursor: pointer; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1rem; flex-wrap: wrap;
}
.card-details {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--text-dim); font-weight: 600; font-size: 0.85rem;
  transition: color 0.2s;
}
.card-details i { color: var(--primary); font-size: 1.1rem; }
.service-card:hover .card-details { color: var(--primary); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 1.2rem;
  background: rgba(16, 32, 58, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeUp 0.2s both; }
.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto;
  padding: 1.6rem;
  background: #fff;
}
.modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--surface); color: var(--text);
  font-size: 1.3rem; display: grid; place-items: center;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--primary); }
.modal-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; margin-bottom: 1.3rem;
  background: #000;
}
.modal-video video, .modal-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  object-fit: cover;
}
.modal-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; padding-right: 2.2rem; }
.modal-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  background: var(--grad);
}
.modal h3 { font-size: 1.25rem; }
.modal-desc { color: var(--text-dim); margin-bottom: 1.4rem; white-space: pre-line; }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: calc(var(--d, 0) * 60ms); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 2.5rem) 0 3.5rem; }
  .hero-inner, .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-visual { order: -1; }
  .orbit-card { width: min(300px, 72vw); }
  .section-head { margin-bottom: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    width: min(300px, 80vw);
    height: calc(100vh - var(--header-h));
    padding: 2rem 1.6rem;
    gap: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-left: 1px solid var(--surface-border);
    box-shadow: -12px 0 40px rgba(30, 64, 175, 0.12);
  }
  .main-nav.open { transform: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  /* plain white hero on mobile (no digital gradient / grid / glow) */
  .hero { background: #ffffff; }
  .hero::before, .hero::after { display: none; }
  .hero-glow { display: none; }
  .section { padding: 3.25rem 0; }
  .card-grid, .chip-grid, .it-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem 1.8rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .recommender-form { flex-wrap: wrap; }
  .recommender-form .btn { width: 100%; justify-content: center; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.7rem; bottom: 84px; right: 16px; }
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot-fab { width: 54px; height: 54px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text { font-size: 1.1rem; }
  .hero-stats { justify-content: space-between; width: 100%; gap: 1rem; }
  .hero-stats strong { font-size: 1.6rem; }
  .section-head p { font-size: 0.95rem; }
  .glass-card, .recommender, .enquiry-form, .about-panel { padding: 1.4rem; }
}

/* ---------------- language switcher ---------------- */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  margin-inline-start: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}
.lang-switch button.active { background: var(--grad); color: #fff; }
.lang-switch button:hover:not(.active) { color: var(--primary); }

/* ---------------- RTL (Arabic) ---------------- */
[dir="rtl"] body {
  font-family: 'Segoe UI', 'Tahoma', 'Tajawal', 'Cairo', 'Noto Sans Arabic', var(--font-body);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Segoe UI', 'Tahoma', 'Tajawal', 'Cairo', 'Noto Sans Arabic', var(--font-head);
}
[dir="rtl"] .whatsapp-float,
[dir="rtl"] .chatbot { right: auto; left: 22px; }
[dir="rtl"] .chatbot-panel { right: auto; left: 0; }
/* mobile drawer mirroring — ONLY when the nav is the fixed slide-in menu */
@media (max-width: 900px) {
  [dir="rtl"] .main-nav {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--surface-border);
    transform: translateX(-100%);
  }
  [dir="rtl"] .main-nav.open { transform: none; }
}
[dir="rtl"] .card-link i.bx-right-arrow-alt,
[dir="rtl"] .btn i.bx-right-arrow-alt { transform: scaleX(-1); }
[dir="rtl"] .contact-card:hover { transform: translateX(-6px); }
