/* =========================================================
   STYLE.CSS (rewritten + cleaned for your exact index.html)
   - Uses html[data-theme="dark"] like your app
   - Supports RTL (dir="rtl") + Arabic font
   - Keeps your look, but removes duplicate rules at bottom
   ========================================================= */

/* =========================
   TOKENS
   ========================= */
:root {
  --bg0: #f0f9ff;
  --bg1: #e0f2fe;

  --glass: rgba(255, 255, 255, 0.78);
  --glass2: rgba(255, 255, 255, 0.62);
  --stroke: rgba(14, 165, 233, 0.16);

  --text: #0f172a;
  --muted: #475569;
  --heading: #0b1220;

  --brand1: #0ea5e9;
  --brand2: #6366f1;

  --shadow1: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow2: 0 22px 60px rgba(14, 165, 233, 0.14);

  --radius: 20px;
  --radius2: 26px;

  --headerH: 0px;
  --sectionPad: 44px;
}

/* =========================
   DARK THEME
   ========================= */
html[data-theme="dark"] {
  --bg0: #070b14;
  --bg1: #0b1220;

  --glass: rgba(15, 23, 42, 0.72);
  --glass2: rgba(15, 23, 42, 0.58);
  --stroke: rgba(56, 189, 248, 0.16);

  --text: rgba(226, 232, 240, 0.86);
  --muted: rgba(148, 163, 184, 0.74);
  --heading: rgba(226, 232, 240, 0.72);

  --brand1: #38bdf8;
  --brand2: #a78bfa;

  --shadow1: 0 18px 55px rgba(0, 0, 0, 0.35);
  --shadow2: 0 28px 70px rgba(56, 189, 248, 0.14);
}

/* =========================
   RESET / BASE
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(14, 165, 233, 0.08), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(99, 102, 241, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 680px at 12% 10%, rgba(56, 189, 248, 0.12), transparent 62%),
    radial-gradient(980px 560px at 88% 18%, rgba(167, 139, 250, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

html[lang="ar"] body {
  font-family: Tajawal, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Bootstrap muted fix */
body .text-muted { color: var(--muted) !important; }

/* Comfortable headings */
h1, h2, h3, h4, h5, h6 { color: var(--heading); }

/* =========================
   ACCESSIBILITY
   ========================= */
.skip-link {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: var(--brand1);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  z-index: 9999;
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   CURSOR GLOW
   ========================= */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(420px 420px at var(--mx, 50%) var(--my, 30%), rgba(14, 165, 233, 0.14), transparent 66%),
    radial-gradient(360px 360px at calc(var(--mx, 50%) + 8%) calc(var(--my, 30%) + 6%), rgba(99, 102, 241, 0.10), transparent 72%);
  opacity: 0.95;
  transition: opacity 240ms ease;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .cursor-glow {
  background:
    radial-gradient(420px 420px at var(--mx, 50%) var(--my, 30%), rgba(56, 189, 248, 0.15), transparent 66%),
    radial-gradient(360px 360px at calc(var(--mx, 50%) + 8%) calc(var(--my, 30%) + 6%), rgba(167, 139, 250, 0.12), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.60;
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* =========================
   TOPBAR
   ========================= */
.topbar {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
}
html[data-theme="dark"] .topbar { background: rgba(15, 23, 42, 0.62); }

.topbar-item {
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar .btn {
  border-color: var(--stroke);
  color: var(--brand1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar .btn:hover {
  background: var(--brand1);
  color: #fff;
}

/* =========================
   NAVBAR
   ========================= */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 4px 20px rgba(148, 163, 184, 0.06);
}
html[data-theme="dark"] .app-nav {
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Brand (LOGO image) */
.navbar-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.12);
}
html[data-theme="dark"] .navbar-brand .brand-mark {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(56, 189, 248, 0.14);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.40);
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-title { font-weight: 950; letter-spacing: 0.2px; color: var(--heading); }
.brand-subtitle { font-size: 12px; color: var(--muted); }

/* Nav pills */
.nav-pills-soft .nav-link {
  color: var(--muted) !important;
  font-weight: 650;
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-pills-soft .nav-link .nav-ico { font-size: 1.05rem; opacity: 0.9; }

.nav-pills-soft .nav-link:hover {
  background: rgba(14, 165, 233, 0.08);
  color: var(--brand1) !important;
  transform: translateY(-1px);
}
html[data-theme="dark"] .nav-pills-soft .nav-link:hover {
  background: rgba(56, 189, 248, 0.10);
}

.nav-pills-soft .nav-link.active {
  background: linear-gradient(135deg, rgba(14,165,233,.14), rgba(99,102,241,.10));
  color: var(--heading) !important;
  border: 1px solid rgba(14, 165, 233, 0.22);
}
html[data-theme="dark"] .nav-pills-soft .nav-link.active {
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(167,139,250,.10));
  border-color: rgba(56,189,248,.18);
  color: var(--heading) !important;
}

/* RTL helpers */
html[dir="rtl"] .nav-pills-soft .nav-link { justify-content: flex-start; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Navbar toggler (fix dark mismatch) */
.navbar-toggler {
  border-radius: 14px;
  border: 1px solid rgba(14,165,233,.22) !important;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="dark"] .navbar-toggler {
  border: 1px solid rgba(56,189,248,.18) !important;
  background: rgba(15,23,42,.62);
}
.navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(14,165,233,.18) !important; }
html[data-theme="dark"] .navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(56,189,248,.18) !important; }
html[data-theme="dark"] .navbar-toggler-icon { filter: invert(1) opacity(.70); }

/* =========================
   BUTTONS
   ========================= */
.btn-glow {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border: 0;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.24);
  transition: filter 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-glow:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }

html:not([data-theme="dark"]) .btn-glow {
  box-shadow: 0 12px 26px rgba(2,132,199,0.22);
  filter: saturate(1.02);
}

.btn-soft-outline {
  border-color: rgba(14,165,233,.25) !important;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
html[data-theme="dark"] .btn-soft-outline {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(56, 189, 248, 0.22) !important;
}
.btn-soft-outline:hover {
  background: rgba(14,165,233,.08);
  border-color: rgba(14,165,233,.35) !important;
}
html[data-theme="dark"] .btn-soft-outline:hover {
  background: rgba(56,189,248,.10);
  border-color: rgba(56,189,248,.35) !important;
}

/* =========================
   MAIN / SPA PAGES
   ========================= */
.app-main { position: relative; z-index: 1; }

.page { display: none; opacity: 0; transform: translateY(10px); }
.page.is-active { display: block; }
.page.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 340ms ease, transform 340ms ease;
}

/* Sections */
.section-pad { padding: var(--sectionPad) 0; }
@media (max-width: 767px) { :root { --sectionPad: 34px; } }

/* Gap fix after page hero */
.page-hero + .section-pad { padding-top: 18px; }
@media (max-width: 767px) { .page-hero + .section-pad { padding-top: 14px; } }

/* =========================
   PAGE HERO (centered version used in HTML)
   ========================= */
.page-hero {
  position: relative;
  padding: 14px 0 8px;
  margin-top: 0;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 320px at 15% 30%, rgba(14,165,233,.14), transparent 60%),
    radial-gradient(780px 300px at 85% 20%, rgba(99,102,241,.10), transparent 58%);
  pointer-events: none;
}
html[data-theme="dark"] .page-hero::before {
  background:
    radial-gradient(900px 340px at 15% 30%, rgba(56,189,248,.18), transparent 62%),
    radial-gradient(820px 320px at 85% 20%, rgba(167,139,250,.14), transparent 60%);
}

.page-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow1);
  overflow: hidden;
}
html[data-theme="dark"] .page-hero-inner {
  border: 1px solid rgba(56,189,248,.10);
}

.page-hero-inner::before {
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(closest-side at 35% 35%, rgba(14,165,233,.14), transparent 65%),
    radial-gradient(closest-side at 70% 55%, rgba(99,102,241,.10), transparent 70%);
  filter: blur(18px);
  opacity:.65;
  pointer-events:none;
  transform: rotate(6deg);
}
html[data-theme="dark"] .page-hero-inner::before {
  background:
    radial-gradient(closest-side at 35% 35%, rgba(56,189,248,.16), transparent 65%),
    radial-gradient(closest-side at 70% 55%, rgba(167,139,250,.12), transparent 70%);
  opacity:.75;
}

.page-hero-animate { transform-origin: center; animation: heroPop 520ms ease both; }
@keyframes heroPop {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,.10);
  border: 1px solid rgba(14,165,233,.16);
  color: var(--brand1);
  font-weight: 650;
  font-size: .85rem;
}
html[data-theme="dark"] .page-hero-badge {
  background: rgba(56,189,248,.10);
  border-color: rgba(56,189,248,.16);
}

.page-hero-title {
  margin: 8px 0 4px;
  font-weight: 950;
  letter-spacing: -0.6px;
}
.page-hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 72ch;
}

/* Centering helper (your HTML uses it) */
.page-hero-center { justify-content: center !important; text-align: center !important; }
.page-hero-center .page-hero-text { text-align: center !important; }
.page-hero-center .page-hero-badge { justify-content: center; }

/* =========================
   HOME HERO
   ========================= */
.hero {
  position: relative;
  padding: 46px 0 26px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,165,233,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,165,233,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .35;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}
html[data-theme="dark"] .hero-grid { opacity: .22; }

.hero-bg-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.42;
  animation: floaty 10s ease-in-out infinite;
}
.hero-orb-1 { background: #bae6fd; left: -180px; top: -160px; }
.hero-orb-2 { background: #c7d2fe; right: -200px; top: 40px; animation-delay: -2.5s; }
html[data-theme="dark"] .hero-orb-1 { background: rgba(56,189,248,.24); }
html[data-theme="dark"] .hero-orb-2 { background: rgba(167,139,250,.22); }

@keyframes floaty {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(16px) translateX(10px) scale(1.03); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 950;
  line-height: 1.12;
}
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

.hero-badge {
  background: rgba(224, 242, 254, 0.75) !important;
  border: 1px solid rgba(186, 230, 253, 0.9);
  color: #0284c7 !important;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[data-theme="dark"] .hero-badge {
  background: rgba(56,189,248,.12) !important;
  border-color: rgba(56,189,248,.20) !important;
  color: var(--heading) !important;
}

.hero-trust { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}
html[data-theme="dark"] .trust-item {
  background: rgba(15,23,42,.62);
  border-color: rgba(56,189,248,.14);
}
.trust-item i { color: var(--brand1); }

/* =========================
   CARDS + LIFT
   ========================= */
.app-card, .feature-card, .stat-card, .service-card, .project-card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
html[data-theme="dark"] .app-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card {
  background: rgba(15,23,42,.66);
  border-color: rgba(56,189,248,.14);
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
}

.app-card .card-body { padding: 22px; color: var(--text); }

.app-card-accent {
  background: linear-gradient(135deg, rgba(240,249,255,.86), rgba(245,243,255,.75));
  border: 1px solid rgba(224,242,254,.9);
}
html[data-theme="dark"] .app-card-accent {
  background: linear-gradient(135deg, rgba(15,23,42,.76), rgba(17,24,39,.70));
  border-color: rgba(56,189,248,.12);
}

.lift {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              border-color .22s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 28px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(14,165,233,.35);
}
html[data-theme="dark"] .lift:hover {
  box-shadow: 0 28px 40px rgba(0,0,0,.45);
  border-color: rgba(56,189,248,.28);
}

.lift-soft { transition: transform 0.22s ease, box-shadow 0.22s ease, border-color .22s ease; }
.lift-soft:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 18px -10px rgba(0, 0, 0, 0.10);
  border-color: rgba(14,165,233,.35);
}

/* =========================
   HOME SLIDER (your Swiper)
   ========================= */
.hero-media-stack { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 0; }
.hero-media-stack::before {
  content:"";
  position:absolute;
  inset:-36px -30px 42px;
  background:
    radial-gradient(620px 420px at 25% 25%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(560px 380px at 75% 45%, rgba(99,102,241,.12), transparent 62%);
  filter: blur(26px);
  opacity: .70;
  pointer-events:none;
  z-index:-1;
}
html[data-theme="dark"] .hero-media-stack::before {
  background:
    radial-gradient(620px 420px at 25% 25%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(560px 380px at 75% 45%, rgba(167,139,250,.14), transparent 62%);
  opacity:.55;
}

/* “Premium float” */
.premium-float { animation: premiumFloat 7.5s ease-in-out infinite; }
@keyframes premiumFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.hero-card { border-radius: var(--radius2); background: transparent; border: 0; box-shadow: none; }

/* Tilt glass wrapper */
.hero-tilt-layer{
  position: relative;
  width: 100%;
  height: clamp(280px, 42vh, 460px);
  border-radius: var(--radius2);
  overflow: hidden;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow2), 0 12px 24px rgba(2,132,199,.07);

  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transform-style: preserve-3d;
  transition: transform 220ms ease;
  will-change: transform;
}
html[data-theme="dark"] .hero-tilt-layer{
  background: rgba(2,6,23,.22);
  border: 1px solid rgba(56,189,248,.14);
  box-shadow: var(--shadow2), 0 18px 32px rgba(0,0,0,.35);
}

.hero-tilt-layer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 95% at 50% 45%, rgba(240,249,255,0) 55%, rgba(240,249,255,.88) 100%),
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 35%, rgba(255,255,255,.18));
  pointer-events:none;
  opacity:.58;
  z-index:2;
}
html[data-theme="dark"] .hero-tilt-layer::before{
  background:
    radial-gradient(120% 95% at 50% 45%, rgba(2,6,23,0) 55%, rgba(2,6,23,.92) 100%),
    linear-gradient(180deg, rgba(56,189,248,.10), rgba(2,6,23,0) 40%, rgba(167,139,250,.08));
  opacity:.72;
}

.hero-tilt-layer::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
  box-shadow:
    inset 0 0 0 1px rgba(14,165,233,.10),
    inset 0 -40px 80px rgba(240,249,255,.50);
  border-radius: var(--radius2);
}
html[data-theme="dark"] .hero-tilt-layer::after{
  box-shadow:
    inset 0 0 0 1px rgba(56,189,248,.12),
    inset 0 -40px 90px rgba(2,6,23,.58);
}

/* Swiper full height */
.heroSwiper, .heroSwiper .swiper-wrapper, .heroSwiper .swiper-slide { height: 100%; }
.hero-slide { padding:0 !important; display:block !important; position: relative !important; }

.hero-slide-img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1);
  transition:transform 520ms ease, filter 520ms ease;
  filter: saturate(.98) contrast(.98) brightness(.98);
}
.hero-card:hover .hero-slide-img{ transform: scale(1.02); }

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next{
  width:44px;height:44px;border-radius:14px;
  background:rgba(255,255,255,.58) !important;
  border:1px solid rgba(255,255,255,.35) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 22px rgba(2,132,199,.12);
  z-index: 5;
}
html[data-theme="dark"] .heroSwiper .swiper-button-prev,
html[data-theme="dark"] .heroSwiper .swiper-button-next{
  background:rgba(15,23,42,.62) !important;
  border-color: rgba(56,189,248,.14) !important;
  box-shadow: 0 18px 28px rgba(0,0,0,.40);
}
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after{
  font-size:18px;
  color: var(--heading);
}

.heroSwiper .swiper-pagination{ z-index: 6; }
.heroSwiper .swiper-pagination-bullet{
  background: rgba(15,23,42,.45) !important;
  opacity:.28;
}
.heroSwiper .swiper-pagination-bullet-active{
  background: var(--brand1) !important;
  opacity:1;
}

@media (max-width: 991px){
  .hero { padding: 40px 0 22px; }
  .hero-tilt-layer{
    height: auto;
    aspect-ratio: 16 / 11;
    min-height: 250px;
  }
}

/* Home brief */
.hero-brief-card .card-body { padding: 18px 22px; }
.hero-brief-text { color: var(--muted); line-height: 1.9; font-size: 1rem; }

/* =========================
   ICON BLOCKS
   ========================= */
.feature-icon, .service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
  color: var(--brand1);
}
html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .service-icon{
  background: rgba(2,6,23,.55);
  border-color: rgba(56,189,248,.16);
  box-shadow: 0 12px 22px rgba(0,0,0,.35);
}
.feature-icon i, .service-icon i { font-size: 1.25rem; }

/* =========================
   STATS
   ========================= */
.stat-card { padding: 20px; text-align: center; }
.stat-number { font-size: 38px; font-weight: 900; letter-spacing: -1px; color: var(--brand1); }
.stat-label { color: var(--muted); font-weight: 600; }

/* “Why us” cards inside .stats */
.stats .feature-card{
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(14,165,233,.16);
  box-shadow: 0 10px 28px rgba(2,132,199,.08);
  overflow: hidden;
}
.stats .feature-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 220px at 15% 20%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(520px 220px at 85% 80%, rgba(99,102,241,.10), transparent 60%);
  opacity:.65;
  pointer-events:none;
}
.stats .feature-card > *{ position:relative; z-index:1; }

.stats .feature-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(99,102,241,.10));
  border: 1px solid rgba(14,165,233,.16);
  box-shadow: 0 10px 18px rgba(14,165,233,.10);
  margin-bottom: 10px;
}
.stats .feature-card h3{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.stats .feature-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

html[data-theme="dark"] .stats .feature-card{
  background: rgba(2,6,23,.46);
  border-color: rgba(56,189,248,.12);
  box-shadow: 0 18px 34px rgba(0,0,0,.40);
}
html[data-theme="dark"] .stats .feature-card::before{
  background:
    radial-gradient(520px 240px at 15% 20%, rgba(56,189,248,.16), transparent 62%),
    radial-gradient(520px 240px at 85% 80%, rgba(167,139,250,.12), transparent 62%);
  opacity:.70;
}
html[data-theme="dark"] .stats .feature-icon{
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(167,139,250,.10));
  border-color: rgba(56,189,248,.16);
  box-shadow: 0 18px 28px rgba(0,0,0,.42);
}

@media (max-width: 991px){
  .stats .row.g-3.mt-2{ margin-top: 10px !important; }
  .stats .feature-card{ padding: 16px; }
}

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(224,242,254,.75);
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(186,230,253,.85);
}
html[data-theme="dark"] .section-badge{
  background: rgba(56,189,248,.12);
  color: var(--heading);
  border-color: rgba(56,189,248,.16);
}

/* =========================
   ABOUT
   ========================= */
.about-main-top { display: flex; gap: 16px; align-items: flex-start; }

.about-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(224,242,254,.9), rgba(240,249,255,.9));
  border: 1px solid rgba(186,230,253,.9);
  color: var(--brand1);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.10);
  font-size: 1.5rem;
}
html[data-theme="dark"] .about-mark{
  background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(167,139,250,.08));
  border-color: rgba(56,189,248,.14);
}

.about-lead { color: var(--muted); max-width: 72ch; font-size: 1.05rem; line-height: 1.9; }

.about-divider { height: 1px; width: 100%; margin: 20px 0; background: rgba(241,245,249,.9); }
html[data-theme="dark"] .about-divider{ background: rgba(148,163,184,.12); }

.pill-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(248,250,252,.85);
  border: 1px solid rgba(241,245,249,.9);
}
html[data-theme="dark"] .pill-card{
  background: rgba(2,6,23,.35);
  border-color: rgba(56,189,248,.12);
}

.pill-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--stroke);
  color: var(--brand1);
  font-size: 1.1rem;
}
html[data-theme="dark"] .pill-ico{
  background: rgba(15,23,42,.70);
  border-color: rgba(56,189,248,.14);
}
.pill-title { font-weight: 800; color: var(--heading); }
.pill-text { color: var(--muted); }

.about-miniCard {
  border-radius: 16px;
  padding: 18px;
  background: rgba(248,250,252,.88);
  border: 1px solid rgba(226,232,240,.95);
}
html[data-theme="dark"] .about-miniCard{
  background: rgba(2,6,23,.35);
  border-color: rgba(56,189,248,.12);
}

.mini-grid { display: grid; gap: 12px; }
.mini-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(241,245,249,.92);
}
html[data-theme="dark"] .mini-item{
  background: rgba(2,6,23,.35);
  border-color: rgba(56,189,248,.12);
}

.mini-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239,246,255,.9);
  color: var(--brand1);
}
html[data-theme="dark"] .mini-icon{
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(56,189,248,.12);
}
.mini-title { font-weight: 800; color: var(--heading); }
.mini-text { color: var(--muted); font-size: 0.9rem; }

.goal-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--stroke);
}
html[data-theme="dark"] .goal-card{
  background: rgba(2,6,23,.35);
  border-color: rgba(56,189,248,.12);
}
.goal-card i { font-size: 1.2rem; color: var(--brand1); margin-top: 2px; }

@media (min-width: 992px) {
  .about-sticky { position: sticky; top: calc(var(--headerH) + 16px); }
}

/* =========================
   SERVICES
   ========================= */
.service-card { padding: 24px; background: rgba(255,255,255,.88); }
html[data-theme="dark"] .service-card { background: rgba(15,23,42,.62); }

.services-grid { align-items: stretch; }

.svc-card { position: relative; overflow: hidden; }
.svc-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 260px at 15% 18%, rgba(14,165,233,.12), transparent 60%),
    radial-gradient(520px 260px at 85% 82%, rgba(99,102,241,.10), transparent 60%);
  opacity:.70;
  pointer-events:none;
}
html[data-theme="dark"] .svc-card::before{
  background:
    radial-gradient(520px 260px at 15% 18%, rgba(56,189,248,.14), transparent 62%),
    radial-gradient(520px 260px at 85% 82%, rgba(167,139,250,.12), transparent 62%);
  opacity:.75;
}

.svc-card .card-body{ position:relative; z-index:1; }

.svc-head{ display:flex; gap:14px; align-items:flex-start; }
.svc-icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(99,102,241,.10));
  border: 1px solid rgba(14,165,233,.16);
  box-shadow: 0 10px 18px rgba(14,165,233,.10);
  color: var(--brand1);
  flex: 0 0 auto;
}
html[data-theme="dark"] .svc-icon{
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(167,139,250,.10));
  border-color: rgba(56,189,248,.16);
  box-shadow: 0 18px 28px rgba(0,0,0,.42);
}

.svc-icon i{ font-size: 1.3rem; }

.svc-content{
  color: var(--muted);
  line-height: 1.9;
}
.svc-content ul, .svc-content ol{
  margin: 0;
  margin-top: 10px;
  padding-inline-start: 1.25rem;
}
.svc-content li{ margin-bottom: 7px; }
.svc-content ul ul, .svc-content ol ul{ margin-top: 8px; }

.svc-note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 10px rgba(2,132,199,.06);
}
html[data-theme="dark"] .svc-note{
  background: rgba(2,6,23,.36);
  border-color: rgba(56,189,248,.12);
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}

.svc-wide .svc-content{ font-size: 0.98rem; }
@media (max-width: 991px){
  .svc-icon{ width: 50px; height: 50px; border-radius: 16px; }
}
/* =========================
   PROJECTS
   ========================= */
.btn-filter {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.95);
  color: var(--muted);
  font-weight: 650;
}
html[data-theme="dark"] .btn-filter{
  background: rgba(2,6,23,.46);
  border-color: rgba(56,189,248,.12);
  color: rgba(226,232,240,.76);
}
.btn-filter:hover { background: rgba(248,250,252,.95); }
html[data-theme="dark"] .btn-filter:hover{
  background: rgba(2,6,23,.58);
  border-color: rgba(56,189,248,.18);
}

.btn-filter.active {
  background: var(--brand1);
  color: #001018;
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 10px 20px rgba(0,0,0,.30);
}
html[data-theme="dark"] .btn-filter.active { color: rgba(1, 9, 14, 0.95); }

.project-item { transition: opacity 220ms ease, transform 220ms ease; }
.project-item.is-filter-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

.project-card { overflow: hidden; cursor: pointer; background: rgba(255,255,255,.90); }
html[data-theme="dark"] .project-card{
  background: rgba(2,6,23,.48);
  border-color: rgba(56,189,248,.12);
  box-shadow: 0 16px 30px rgba(0,0,0,.40);
}

/* Real image covers (ONE definition only) */
.project-cover { height: 190px; position: relative; overflow: hidden; }
.project-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 520ms ease, filter 520ms ease;
  filter: saturate(1) contrast(0.98) brightness(0.98);
}
.project-card:hover .project-cover img { transform: scale(1.03); }

html[data-theme="dark"] .project-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(2,6,23,0) 0%,
    rgba(2,6,23,0.42) 70%,
    rgba(2,6,23,0.62) 100%
  );
  pointer-events:none;
}

.project-body { padding: 18px; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(241,245,249,.9);
  color: #475569;
  border: 1px solid rgba(226,232,240,.9);
}
html[data-theme="dark"] .chip{
  background: rgba(15,23,42,.66);
  color: rgba(226,232,240,.76);
  border-color: rgba(56,189,248,.12);
}

/* =========================
   CONTACT
   ========================= */
.contact-block-head { display:flex; flex-direction:column; }
.contact-list { display: grid; gap: 10px; }

.contact-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(241,245,249,.95);
  color: inherit;
  text-decoration:none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html[data-theme="dark"] .contact-item{
  background: rgba(2,6,23,.38);
  border-color: rgba(56,189,248,.12);
}
.contact-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 18px -10px rgba(0,0,0,.10);
  border-color: rgba(14,165,233,.28);
}

.ci-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(239,246,255,.90);
  border: 1px solid rgba(14,165,233,.14);
  color: rgba(2,132,199,.95);
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(14,165,233,.10);
}
html[data-theme="dark"] .ci-ico{
  background: rgba(15,23,42,.72);
  border-color: rgba(56,189,248,.14);
  color: var(--brand1);
}

.ci-ico i{ font-size: 1.15rem; }
.ci-text{ display:flex; flex-direction:column; gap:2px; min-width: 0; }
.ci-title{ font-weight: 900; color: var(--heading); }
.ci-sub{ color: var(--muted); font-size: .92rem; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-go{ margin-inline-start:auto; color: rgba(71,85,105,.9); opacity:.85; }
html[data-theme="dark"] .ci-go{ color: rgba(226,232,240,.55); }

/* WhatsApp highlight */
.ci-whatsapp .ci-ico{
  background: rgba(220,252,231,.92);
  border-color: rgba(34,197,94,.16);
  color: rgba(22,163,74,.95);
}
html[data-theme="dark"] .ci-whatsapp .ci-ico{
  background: rgba(22,163,74,.16);
  border-color: rgba(34,197,94,.18);
  color: rgba(134,239,172,.95);
}

/* Social */
.social-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.social-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.95);
  text-decoration:none;
  color: var(--heading);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html[data-theme="dark"] .social-chip{
  background: rgba(15,23,42,.62);
  border-color: rgba(56,189,248,.12);
  color: var(--heading);
}
.social-chip:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 18px -10px rgba(0,0,0,.10);
  border-color: rgba(14,165,233,.24);
}
.social-chip i{ font-size: 1.2rem; color: var(--brand1); }
.social-chip.wide{ grid-column: 1 / -1; }

/* Map wrap + dark filter */
.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: rgba(255,255,255,.65);
}
html[data-theme="dark"] .map-wrap{
  background: rgba(15,23,42,.62);
  border-color: rgba(56,189,248,.14);
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
html[data-theme="dark"] .map-wrap iframe{
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) brightness(0.95);
}

/* =========================
   FOOTER
   ========================= */
.app-footer {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border-top: 1px solid var(--stroke);
}
html[data-theme="dark"] .app-footer { background: rgba(15,23,42,.82); }

/* =========================
   MODAL (Bootstrap modal-content has .modal-dark in HTML)
   ========================= */
.modal-dark {
  background: #fff;
  border: 0;
  color: var(--text);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}
html[data-theme="dark"] .modal-dark{
  background: rgba(15,23,42,.96);
  color: var(--text);
}
.modal-header { border-bottom: 1px solid #f1f5f9; }
html[data-theme="dark"] .modal-header{ border-bottom: 1px solid rgba(56,189,248,.12); }
.btn-close { filter: none; }

/* Modal cover uses background image from clicked card */
.project-modal-cover {
  height: 260px;
  border-radius: 16px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
html[data-theme="dark"] .project-modal-cover { background-color: rgba(2, 6, 23, 0.45); }

html[data-theme="dark"] #projectModalTitle,
html[data-theme="dark"] .modal-title {
  color: var(--heading) !important;
}

/* =========================
   TO TOP (supports either class toggle OR display toggle)
   ========================= */
.to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: var(--brand1);
  color: #fff;

  /* keep it ready even if JS uses class toggles */
  display: grid;
  place-items: center;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  z-index: 999;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.to-top:hover { transform: translateY(-4px); }
.to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================
   REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-tilt-layer { transform: none !important; }
  .hero-card:hover .hero-slide-img { transform: none !important; }
}

/* =========================
   HARD OVERRIDE: avoid Bootstrap text-white surprises in dark
   ========================= */
html[data-theme="dark"] .text-white,
html[data-theme="dark"] .navbar-dark,
html[data-theme="dark"] .navbar-dark .navbar-brand,
html[data-theme="dark"] .navbar-dark .navbar-nav .nav-link {
  color: var(--heading) !important;
}
html, body { overflow-anchor: none; }
