/* ===========================================================
   Al-Qotr style — Design system matched to alqotr.sa
   Font: Cairo | Primary #204469 | Accent gold #F2A900
   RTL Arabic, responsive, Elementor-style fadeInUp animations
   =========================================================== */

:root {
  --c-primary: #204469;      /* deep navy blue (brand) */
  --c-primary-2: #2f5f8f;
  --c-accent: #F2A900;       /* gold accent (brand) */
  --c-accent-2: #F0BE48;
  --c-text: #666666;
  --c-heading: #1c2b3a;
  --c-muted: #5B778A;
  --c-light: #F3F3F3;
  --c-soft: #eef3f8;
  --c-border: #e6ebf1;
  --c-white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 34px rgba(32, 68, 105, .10);
  --shadow-lg: 0 24px 60px rgba(32, 68, 105, .16);
  --container: 1200px;
  --header-h: 84px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: transparent;
  line-height: 1.9;
  overflow-x: hidden;
  font-size: 16px;
}
/* direction follows <html dir="..">; default RTL if unset */
html { direction: rtl; }
html[dir="ltr"] { direction: ltr; }

h1, h2, h3, h4 { color: var(--c-heading); font-weight: 800; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
section { padding: 90px 0; position: relative; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head .eyebrow {
  color: var(--c-accent); font-weight: 800; letter-spacing: .5px; font-size: 15px;
  display: inline-block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); color: var(--c-heading); }
.section-head p { color: var(--c-muted); margin-top: 16px; font-size: 18px; }

/* accent divider */
.divider { width: 64px; height: 4px; background: var(--c-accent); border-radius: 4px; margin: 16px auto 0; }
.divider.right { margin: 16px 0 0; }

/* buttons — pill w/ gold + navy variants */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #1c2b3a;
  padding: 14px 34px; border-radius: 50px; font-weight: 800; font-size: 16px;
  transition: .3s cubic-bezier(.2,.7,.3,1); border: 2px solid var(--c-accent); cursor: pointer;
  font-family: var(--font);
}
.btn:hover { background: #ffbc1a; border-color: #ffbc1a; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(242,169,0,.35); }
.btn-navy { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-navy:hover { background: var(--c-primary-2); border-color: var(--c-primary-2); box-shadow: 0 12px 26px rgba(32,68,105,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--c-primary); border-color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.0); height: var(--header-h);
  display: flex; align-items: center; transition: .35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.98); box-shadow: 0 6px 24px rgba(32,68,105,.08);
  height: 72px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 46px; height: 46px; transition: .3s; }
.logo b { color: #fff; font-size: 21px; font-weight: 900; display: block; line-height: 1.1; transition: .3s; }
.logo span { color: rgba(255,255,255,.85); font-size: 12px; display: block; transition: .3s; }
.site-header.scrolled .logo b { color: var(--c-primary); }
.site-header.scrolled .logo span { color: var(--c-muted); }

.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  padding: 12px 15px; font-weight: 700; font-size: 15.5px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px; transition: .25s; color: #fff;
}
.site-header.scrolled .nav > ul > li > a { color: var(--c-heading); }
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--c-accent); }
.has-sub > a::after { content: "\25BE"; font-size: 9px; opacity: .7; margin-top: 2px; }

.submenu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 290px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; z-index: 50;
  border-top: 3px solid var(--c-accent);
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 11px 15px; border-radius: 8px; font-size: 14.5px; color: var(--c-heading); font-weight: 600; transition: .2s; }
.submenu li a:hover { background: var(--c-soft); color: var(--c-primary); padding-right: 20px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-weight: 800; color: #fff; font-size: 14px; padding: 8px 16px;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 50px; transition: .25s;
}
.lang-switch:hover { background: var(--c-accent); border-color: var(--c-accent); color: #1c2b3a; }
.site-header.scrolled .lang-switch { color: var(--c-primary); border-color: var(--c-border); }
.site-header.scrolled .lang-switch:hover { color: #1c2b3a; background: var(--c-accent); border-color: var(--c-accent); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }
.site-header.scrolled .menu-toggle span { background: var(--c-primary); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: -8% 0; z-index: 0; background-size: cover; background-position: center;
  will-change: transform;
  background-image: linear-gradient(100deg, rgba(20,38,60,.90) 10%, rgba(32,68,105,.72) 60%, rgba(32,68,105,.4)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80");
}
.hero .container { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero .eyebrow { color: var(--c-accent); font-weight: 800; letter-spacing: 1px; display: inline-block; margin-bottom: 18px; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 62px); color: #fff; line-height: 1.22; max-width: 950px; }
.hero h1 span { color: var(--c-accent); }
.hero p { font-size: clamp(17px, 2.2vw, 22px); max-width: 680px; margin: 24px 0 38px; opacity: .95; font-weight: 500; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; opacity: .8; font-size: 26px; animation: bob 1.8s infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,10px);} }

/* page header (interior) */
.page-header {
  position: relative; color: #fff; padding: 190px 0 90px; text-align: center; overflow: hidden;
}
.page-header .hero-bg {
  position: absolute; inset: -8% 0; z-index: 0; background-size: cover; background-position: center;
  background-image: linear-gradient(100deg, rgba(20,38,60,.92), rgba(32,68,105,.75)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1920&q=80");
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(30px, 4.5vw, 50px); }
.page-header .divider { margin-top: 18px; }
.breadcrumb { margin-top: 16px; opacity: .92; font-size: 15px; font-weight: 600; }
.breadcrumb a:hover { color: var(--c-accent); }

/* ===================== STATS ===================== */
.stats { background: var(--c-primary); color: #fff; padding: 70px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat { position: relative; }
.stat b { font-size: clamp(40px, 5vw, 60px); font-weight: 900; display: block; line-height: 1; color: #fff; }
.stat b em { color: var(--c-accent); font-style: normal; }
.stat span { display: block; margin-top: 12px; opacity: .92; font-size: 17px; font-weight: 600; }
.stat:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.18); }

/* ===================== SERVICE CARDS ===================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 38px 30px; transition: .32s;
  box-shadow: var(--shadow); border: 1px solid var(--c-border); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; right: 0; height: 4px; width: 0; background: var(--c-accent); transition: .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { width: 100%; }
.card .icon {
  width: 70px; height: 70px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c-soft); color: var(--c-primary); font-size: 30px; margin-bottom: 22px; transition: .32s;
}
.card:hover .icon { background: var(--c-primary); color: #fff; transform: rotate(-6deg); }
.card h3 { font-size: 21px; margin-bottom: 12px; color: var(--c-heading); }
.card p { color: var(--c-text); font-size: 15.5px; }
.card .more { color: var(--c-primary); font-weight: 800; margin-top: 18px; display: inline-flex; gap: 6px; font-size: 14.5px; transition: .25s; }
.card .more:hover { color: var(--c-accent); gap: 12px; }
.card.dark { background: var(--c-primary); border: none; }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.85); }
.card.dark .icon { background: rgba(255,255,255,.14); color: #fff; }
.card.dark .more { color: var(--c-accent); }

/* ===================== SPLIT ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { position: relative; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split .media .badge {
  position: absolute; bottom: -22px; right: -14px; background: var(--c-accent); color: #1c2b3a;
  padding: 18px 26px; border-radius: 14px; font-weight: 900; box-shadow: var(--shadow-lg); text-align: center;
}
.split .media .badge b { display: block; font-size: 30px; line-height: 1; color: #1c2b3a; }
.split .media .badge span { font-size: 13px; }
.split .eyebrow { color: var(--c-accent); font-weight: 800; display: inline-block; margin-bottom: 12px; }
.split h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 20px; }
.split p { color: var(--c-text); margin-bottom: 16px; font-size: 16.5px; }
.check-list li { padding-right: 34px; position: relative; margin-bottom: 14px; color: var(--c-heading); font-weight: 600; }
.check-list li::before {
  content: "\2713"; position: absolute; right: 0; top: 4px; color: #1c2b3a; background: var(--c-accent);
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; font-weight: 900;
}

.bg-light { background: rgba(243,243,243,.80); }
.bg-soft { background: rgba(238,243,248,.80); }

/* ===================== PROJECTS ===================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project:hover img { transform: scale(1.09); }
.project .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff;
  background: linear-gradient(0deg, rgba(20,38,60,.94) 0%, rgba(20,38,60,.15) 55%, transparent 80%);
}
.project .overlay span { font-size: 13px; color: var(--c-accent); font-weight: 800; }
.project .overlay h3 { font-size: 19px; margin-top: 6px; color: #fff; }

/* ===================== CLIENTS SLIDER ===================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scrollX 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(50%); } }
.client-logo {
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px; height: 100px; width: 180px;
  display: grid; place-items: center; color: var(--c-muted); font-weight: 800; font-size: 15px; flex: 0 0 auto;
  transition: .25s; text-align: center; padding: 10px;
}
.client-logo:hover { border-color: var(--c-accent); color: var(--c-primary); box-shadow: var(--shadow); }

/* ===================== GEO-AI ===================== */
.geoai { position: relative; color: #fff; overflow: hidden; }
.geoai .hero-bg {
  position: absolute; inset: -8% 0; z-index: 0; background-size: cover; background-position: center;
  background-image: linear-gradient(100deg, rgba(20,38,60,.93), rgba(32,68,105,.8)),
    url("https://images.unsplash.com/photo-1639322537228-f710d846310a?auto=format&fit=crop&w=1920&q=80");
}
.geoai .container { position: relative; z-index: 2; }
.geoai h2 { color: #fff; }
.geoai p { color: rgba(255,255,255,.9); }
.geoai .check-list li { color: #fff; }
.geoai .eyebrow { color: var(--c-accent); }

/* ===================== MEDIA / POSTS ===================== */
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; border: 1px solid var(--c-border); }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post .thumb { height: 220px; overflow: hidden; }
.post .thumb img { height: 100%; width: 100%; object-fit: cover; transition: .5s; }
.post:hover .thumb img { transform: scale(1.08); }
.post .body { padding: 24px; }
.post .tag { color: var(--c-accent); font-size: 13px; font-weight: 800; }
.post h3 { font-size: 19px; margin: 10px 0; line-height: 1.6; color: var(--c-heading); }
.post .meta { color: var(--c-muted); font-size: 13px; }

/* ===================== CONTACT ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.info-item { display: flex; gap: 18px; margin-bottom: 28px; }
.info-item .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.info-item h4 { font-size: 17px; margin-bottom: 3px; }
.info-item p { color: var(--c-muted); font-size: 15px; }
form .field { margin-bottom: 20px; }
form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: var(--c-heading); }
form input, form textarea, form select {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--c-border); border-radius: 10px;
  font-family: var(--font); font-size: 15px; background: #fff; transition: .2s;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(242,169,0,.15); }

/* ===================== VALUE BLOCKS ===================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--c-border); transition: .3s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value .icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 16px; background: var(--c-soft); color: var(--c-primary); display: grid; place-items: center; font-size: 28px; }
.value:hover .icon { background: var(--c-accent); color: #1c2b3a; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { font-size: 14.5px; }

/* ===================== CTA ===================== */
.cta { background: linear-gradient(115deg, var(--c-primary) 0%, #16314c 100%); color: #fff; text-align: center; overflow: hidden; position: relative; }
.cta::after { content: ""; position: absolute; top: -40%; left: -10%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(242,169,0,.18), transparent 70%); }
.cta h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 16px; color: #fff; position: relative; }
.cta p { opacity: .92; max-width: 640px; margin: 0 auto 30px; position: relative; }

/* ===================== FOOTER ===================== */
.site-footer { background: #16314c; color: #b8c6d4; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 44px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--c-accent); border-radius: 3px; }
.site-footer .logo b { color: #fff; }
.site-footer .logo span { color: #92a6b6; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a { font-size: 15px; transition: .2s; }
.footer-grid ul li a:hover { color: var(--c-accent); padding-right: 6px; }
.footer-grid p { font-size: 15px; color: #9fb2c2; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .25s; color: #fff; font-weight: 700; }
.social a:hover { background: var(--c-accent); color: #1c2b3a; transform: translateY(-3px); }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; padding: 12px 16px; border-radius: 10px; border: none; font-family: var(--font); }
.newsletter button { background: var(--c-accent); color: #1c2b3a; border: none; padding: 0 22px; border-radius: 10px; cursor: pointer; font-weight: 800; font-family: var(--font); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 54px; padding: 24px 0; text-align: center; font-size: 14px; color: #8397a8; }

/* ===================== ANIMATIONS (Elementor-style fadeInUp) ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.anim { opacity: 0; }
.anim.in { animation: fadeInUp .9s cubic-bezier(.2,.7,.3,1) forwards; }
.anim.right.in { animation-name: fadeInRight; }
.anim.left.in { animation-name: fadeInLeft; }
.anim.zoom.in { animation-name: zoomIn; }
.anim.d1.in { animation-delay: .12s; }
.anim.d2.in { animation-delay: .24s; }
.anim.d3.in { animation-delay: .36s; }
.anim.d4.in { animation-delay: .48s; }
.anim.d5.in { animation-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .anim, .anim.in { animation: none !important; opacity: 1 !important; }
  .scroll-cue { animation: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .cards, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .site-header { background: rgba(22,38,60,.98); }
  .nav {
    position: fixed; top: var(--header-h); right: 0; width: 330px; max-width: 86vw;
    height: calc(100vh - var(--header-h)); background: #fff; box-shadow: var(--shadow-lg);
    padding: 22px; overflow-y: auto; transform: translateX(105%); transition: .32s;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a { color: var(--c-heading) !important; padding: 15px 10px; border-bottom: 1px solid var(--c-light); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: none; padding: 0 0 10px; min-width: auto; display: none; }
  .has-sub.open-sub .submenu { display: block; }
  .stats .grid { grid-template-columns: 1fr; gap: 34px; }
  .stat:not(:last-child)::after { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .media { order: 2; }
  .split .media .badge { right: auto; left: 14px; }
}
@media (max-width: 560px) {
  section { padding: 62px 0; }
  .cards, .projects-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}

/* ===================== LTR (English) OVERRIDES ===================== */
html[dir="ltr"] .divider.right { margin: 16px auto 0 0; }
html[dir="ltr"] .check-list li { padding-right: 0; padding-left: 34px; }
html[dir="ltr"] .check-list li::before { right: auto; left: 0; }
html[dir="ltr"] .submenu { right: auto; left: 0; }
html[dir="ltr"] .submenu li a:hover { padding-right: 15px; padding-left: 20px; }
html[dir="ltr"] .site-footer h4::after { right: auto; left: 0; }
html[dir="ltr"] .footer-grid ul li a:hover { padding-right: 0; padding-left: 6px; }
html[dir="ltr"] .split .media .badge { right: auto; left: -14px; }
html[dir="ltr"] .cta::after { left: auto; right: -10%; }
html[dir="ltr"] .hero, html[dir="ltr"] .page-header .hero-bg,
html[dir="ltr"] .geoai .hero-bg { background-position: center; }
html[dir="ltr"] body { line-height: 1.75; }
@media (max-width: 900px) {
  html[dir="ltr"] .split .media .badge { left: auto; right: 14px; }
}

/* ===========================================================
   GLOBAL DYNAMIC EFFECTS (all pages, ar + en)
   =========================================================== */

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--c-accent), #ffce55); z-index: 3000; transition: width .1s linear; }

/* custom cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none; border-radius: 50%; }
  .cursor-dot { width: 8px; height: 8px; background: var(--c-accent); transform: translate(-50%,-50%); transition: width .2s, height .2s; }
  .cursor-ring { width: 40px; height: 40px; border: 2px solid rgba(242,169,0,.6); transform: translate(-50%,-50%); transition: transform .18s ease-out, width .25s, height .25s, border-color .25s, background .25s; }
  .cursor-ring.hover { width: 62px; height: 62px; border-color: var(--c-accent); background: rgba(242,169,0,.10); }
  .cursor-ring.down { width: 30px; height: 30px; }
  .cursor-dot.hover { width: 0; height: 0; }
}

/* global animated background */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47,95,143,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(242,169,0,.07), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f8fc); }
.bg-fx .bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .10; animation: bgfloat 20s ease-in-out infinite; }
.bg-fx .b1 { width: 480px; height: 480px; background: #2f5f8f; top: -140px; right: -100px; }
.bg-fx .b2 { width: 420px; height: 420px; background: #F2A900; bottom: -160px; left: -120px; animation-delay: -6s; opacity: .07; }
.bg-fx .b3 { width: 360px; height: 360px; background: #4e5091; top: 45%; left: 55%; animation-delay: -12s; }
.bg-fx .bg-grid { position: absolute; inset: 0; opacity: .04; background-image: linear-gradient(#204469 1px, transparent 1px), linear-gradient(90deg, #204469 1px, transparent 1px); background-size: 64px 64px; animation: bggrid 24s linear infinite; }
@keyframes bgfloat { 0%,100% { transform: translate(0,0) scale(1);} 33% { transform: translate(50px,-40px) scale(1.12);} 66% { transform: translate(-40px,30px) scale(.94);} }
@keyframes bggrid { to { background-position: 64px 64px; } }

/* subtle living gradient on light sections */
.bg-light, .bg-soft { position: relative; overflow: hidden; }
.bg-light::before, .bg-soft::before { content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,0,.05), transparent 70%); top: -20%; right: -10%; animation: livingblob 18s ease-in-out infinite; pointer-events: none; z-index: 0; }
.bg-light > .container, .bg-soft > .container { position: relative; z-index: 1; }
@keyframes livingblob { 0%,100% { transform: translate(0,0);} 50% { transform: translate(-8vw,6vw) scale(1.15);} }

/* page-header animated orbs */
.page-header .ph-orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.page-header .ph-orbs .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: bgfloat 16s ease-in-out infinite; }
.page-header .ph-orbs .o1 { width: 340px; height: 340px; background: #2f5f8f; top: -100px; right: -60px; }
.page-header .ph-orbs .o2 { width: 260px; height: 260px; background: #F2A900; bottom: -100px; left: -40px; opacity: .3; animation-delay: -5s; }

/* reveal variants (global) */
.r-up, .r-left, .r-right, .r-zoom { opacity: 0; transition: .8s cubic-bezier(.2,.7,.3,1); }
.r-up { transform: translateY(40px); } .r-left { transform: translateX(-40px); } .r-right { transform: translateX(40px); } .r-zoom { transform: scale(.9); }
.r-up.in, .r-left.in, .r-right.in, .r-zoom.in { opacity: 1; transform: none; }
.d-1 { transition-delay: .1s;} .d-2 { transition-delay: .2s;} .d-3 { transition-delay: .3s;} .d-4 { transition-delay: .4s;} .d-5 { transition-delay: .5s;}

/* magnetic / tilt / glow (global) */
.magnetic { transition: transform .2s cubic-bezier(.2,.7,.3,1); }
.tilt { transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; will-change: transform; }
.glow-card { position: relative; overflow: hidden; }
.glow-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,0,.18), transparent 70%); top: var(--my,50%); left: var(--mx,50%); transform: translate(-50%,-50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.glow-card:hover::after { opacity: 1; }

/* back to top */
.to-top { position: fixed; bottom: 26px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; background: var(--c-primary); color: #fff; border: none; display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s; }
html[dir="rtl"] .to-top { left: 26px; } html[dir="ltr"] .to-top { right: 26px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-accent); color: #16314c; transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .bg-fx .bg-orb, .bg-fx .bg-grid, .bg-light::before, .bg-soft::before, .page-header .ph-orbs .orb { animation: none !important; }
  .r-up, .r-left, .r-right, .r-zoom { opacity: 1 !important; transform: none !important; }
}

/* animated particle canvas (video-like living background) */
.fx-canvas { position: absolute; inset: 0; z-index: 1; display: block; pointer-events: none; }
.hero.dyn .fx-canvas { z-index: 2; }
.hero.dyn .container { z-index: 3; }
.page-header .fx-canvas { z-index: 1; }
.page-header .container { position: relative; z-index: 2; }

/* ===========================================================
   PER-SECTION animated backgrounds — a different theme each
   =========================================================== */
section > .container { position: relative; z-index: 1; }
.sec-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* theme 1: floating 3D shapes */
.t-shapes .sh { position: absolute; opacity: .16; transform-style: preserve-3d; animation: spin3d 18s linear infinite; }
.t-shapes .sh.s1 { top: 14%; inset-inline-start: 8%; width: 66px; height: 66px; background: linear-gradient(135deg,#F2A900,#ffd873); border-radius: 16px; }
.t-shapes .sh.s2 { bottom: 16%; inset-inline-end: 10%; width: 88px; height: 88px; border: 4px solid #2f5f8f; border-radius: 50%; animation-duration: 24s; }
.t-shapes .sh.s3 { top: 44%; inset-inline-end: 24%; width: 0; height: 0; border-left: 32px solid transparent; border-right: 32px solid transparent; border-bottom: 56px solid rgba(47,95,143,.5); animation-duration: 21s; }
@keyframes spin3d { 0% { transform: rotateX(0) rotateY(0) rotateZ(0);} 100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg);} }

/* theme 2: drifting dot grid */
.t-dots { background-image: radial-gradient(rgba(47,95,143,.16) 2px, transparent 2px); background-size: 34px 34px; animation: dotsmove 14s linear infinite; opacity: .8; }
@keyframes dotsmove { to { background-position: 34px 34px; } }

/* theme 3: aurora blobs */
.t-aurora .bl { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .22; animation: bgfloat 17s ease-in-out infinite; }
.t-aurora .bl.a1 { width: 340px; height: 340px; background: #2f5f8f; top: -80px; inset-inline-start: -40px; }
.t-aurora .bl.a2 { width: 300px; height: 300px; background: #F2A900; bottom: -90px; inset-inline-end: -30px; animation-delay: -6s; opacity: .15; }
.t-aurora .bl.a3 { width: 240px; height: 240px; background: #4e5091; top: 30%; inset-inline-start: 45%; animation-delay: -11s; opacity: .16; }

/* theme 4: rotating concentric rings (3D feel) */
.t-rings .rg { position: absolute; top: 50%; inset-inline-start: 50%; border-radius: 50%; border: 2px dashed rgba(47,95,143,.22); transform: translate(-50%,-50%); animation: ringspin 26s linear infinite; }
.t-rings .rg.r1 { width: 420px; height: 420px; }
.t-rings .rg.r2 { width: 640px; height: 640px; border-color: rgba(242,169,0,.16); animation-duration: 38s; animation-direction: reverse; }
.t-rings .rg.r3 { width: 260px; height: 260px; border-style: solid; border-color: rgba(78,80,145,.14); animation-duration: 20s; }
@keyframes ringspin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* theme 5: light waves */
.t-waves::before, .t-waves::after { content: ""; position: absolute; left: -20%; right: -20%; height: 220px; background: linear-gradient(90deg, transparent, rgba(47,95,143,.10), transparent); transform: skewY(-6deg); animation: wavemove 11s ease-in-out infinite; }
.t-waves::before { top: 8%; }
.t-waves::after { bottom: 8%; background: linear-gradient(90deg, transparent, rgba(242,169,0,.08), transparent); animation-delay: -5.5s; }
@keyframes wavemove { 0%,100% { transform: skewY(-6deg) translateX(-6%);} 50% { transform: skewY(-6deg) translateX(6%);} }

/* theme 6: 3D perspective grid floor */
.t-grid3d { perspective: 380px; }
.t-grid3d .floor { position: absolute; bottom: -10%; left: -50%; right: -50%; height: 130%; background-image: linear-gradient(rgba(47,95,143,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(47,95,143,.16) 1px, transparent 1px); background-size: 52px 52px; transform: rotateX(62deg); transform-origin: bottom; animation: floormove 6s linear infinite; }
@keyframes floormove { to { background-position: 0 52px; } }

@media (prefers-reduced-motion: reduce) {
  .t-shapes .sh, .t-dots, .t-aurora .bl, .t-rings .rg, .t-waves::before, .t-waves::after, .t-grid3d .floor { animation: none !important; }
}

/* contact form status message */
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 15px; text-align: center; }
.form-status.ok { background: #e6f7ec; color: #1a7f42; border: 1px solid #ب9e6c7; }
.form-status.ok { border-color: #b9e6c7; }
.form-status.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6cb; }
.js-contact-form button[disabled] { opacity: .6; cursor: not-allowed; }
