/* ============================================================
   XEROVI POLISH LAYER v2  —  premium dark / neon-aurora system
   Additive, layered over the Aivora theme. June 2026.
   ============================================================ */

:root {
  --xv-green:      #00ff97;
  --xv-green-soft: #38ffb0;
  --xv-teal:       #14e3d0;
  --xv-blue:       #4a7bff;
  --xv-ink:        #00020f;
  --xv-ink-2:      #060a16;
  --xv-surface:    #0a0e1c;
  --xv-surface-2:  #0e1426;
  --xv-line:       rgba(255,255,255,.08);
  --xv-line-2:     rgba(255,255,255,.14);
  --xv-text:       #c4c6cf;
  --xv-text-dim:   #8b8e9c;
  --xv-glow:       rgba(0,255,151,.35);
  --xv-grad:       linear-gradient(120deg, var(--xv-teal), var(--xv-green) 55%, var(--xv-green-soft));
  --xv-grad-cool:  linear-gradient(135deg, var(--xv-blue), var(--xv-teal) 60%, var(--xv-green));
}

/* ---------- Base feel ---------- */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 120px; }
::selection { background: var(--xv-green); color: #00140b; }
::-moz-selection { background: var(--xv-green); color: #00140b; }

@media (min-width: 992px) {
  ::-webkit-scrollbar { width: 11px; }
  ::-webkit-scrollbar-track { background: #04060e; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a2236, #0f1626);
    border-radius: 100px; border: 2px solid #04060e;
  }
  ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #25406b, #16304f); }
  html { scrollbar-width: thin; scrollbar-color: #1a2236 #04060e; }
}

/* ---------- Ambient aurora (injected #xv-aurora) ----------
   Performance-first: pure radial-gradients painted into ONE fixed layer.
   No blur filter, no mix-blend-mode, no per-frame animation — those forced a
   full-page recomposite on every scroll frame (the 20fps cause). This sits
   behind the content and is composited once. */
#xv-aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 8% 12%,  rgba(0,255,151,.16), transparent 60%),
    radial-gradient(34vw 34vw at 92% 30%, rgba(20,227,208,.14), transparent 60%),
    radial-gradient(40vw 40vw at 60% 100%, rgba(74,123,255,.10), transparent 62%);
}
/* aurora sits at z-index:-1 (above the page's base background, below all content),
   so we do NOT elevate content — elevating every .elementor wrapper to the same
   z-index trapped the fixed header behind later sections and made the nav vanish
   at some scroll positions. */

/* ---------- Typography (fluid + balanced) ---------- */
h1, h2, h3, .title { letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
.sec-title .title, .title.title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.65rem); line-height: 1.06; }
.int-hero-one .title, h1.title { font-size: clamp(2.5rem, 1.2rem + 5vw, 5rem); line-height: 1.04; }

/* Ampersand fix — display font renders & as an X-like glyph */
.xv-amp { font-family: "DM Sans", sans-serif; font-weight: 600; font-style: normal; }
/* Industry-card labels: clean sans (fixes the & glyph + sharper at small size) */
.xb-industries-item .xb-title {
  font-family: "DM Sans", sans-serif !important;
  font-weight: 600; letter-spacing: -0.01em;
}

/* Refined treatment for the new line-icon set (industries + hero stats) */
.xb-industries-item .xb-icon img,
.hero .xb-item--icon img,
.hero-content + * .xb-item--icon img {
  width: 40px !important; height: 40px !important; object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 255, 151, 0.30));
}
/* Centre the icon (and its circular bg) inside each industry card */
.xb-industries-item { text-align: center; }
.xb-industries-item .xb-icon {
  display: grid; place-items: center; margin-left: auto; margin-right: auto;
  transition: transform .35s ease, box-shadow .35s ease;
}
.xb-industries-item:hover .xb-icon { transform: translateY(-3px) scale(1.05); }

/* Hero brand name above the headline */
.hero-content .xv-brand {
  display: inline-block; margin-bottom: 16px;
  font-family: "DM Sans", sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--xv-green);
  padding: 7px 16px; border: 1px solid rgba(0,255,151,.32); border-radius: 100px;
  background: rgba(0,255,151,.06);
}
@media (max-width: 600px) { .hero-content .xv-brand { font-size: .72rem; margin-bottom: 14px; padding: 6px 13px; } }

/* Eyebrow / sub-title accent (keep the theme's own dot decorations intact) */
.sub-title { color: var(--xv-green) !important; font-weight: 600; }
/* centered eyebrows: theme leaves no room for the right dot -> it overlaps the
   last letter ("Who We Ar•"). Add matching right padding for symmetry. */
.sec-title-center .sub-title, .about-sec-title .sub-title { padding-right: 16px; }

/* Gradient accent on the green/highlight spans inside headings + slow shimmer */
.title span:not(.round-img):not(.xv-amp):not(:has(img)), .sec-title .title em {
  background: linear-gradient(110deg, var(--xv-teal), var(--xv-green) 55%, var(--xv-green-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Remove the demo's decorative inline heading GIFs ----------
   They were low-quality dark animated blobs that read as broken/loading
   boxes mid-sentence. Hiding them lets the typography carry the design. */
.sec-title .title img, .title img, h1 .round-img, h2 .round-img,
.round-img, .int-about .title img, h1.title img, h2.title img,
.title span:has(img), .sec-title .title span:has(img),
h1 span:has(img), h2 span:has(img) {
  display: none !important;
}
/* collapse the leftover inline gap the wrappers left behind */
.sec-title .title, .title { white-space: normal; }

/* ============================================================
   Single service detail layout (.xv-svc, injected via post_content)
   ============================================================ */
.content-area { width: 100%; }
.xv-svc {
  max-width: 1080px; margin: 0 auto; padding: 70px 24px 90px;
  font-family: "DM Sans", sans-serif; color: var(--xv-text);
}
.xv-svc-lead {
  font-size: clamp(1.1rem, .9rem + .8vw, 1.4rem); line-height: 1.7;
  color: #d7dae3; max-width: 820px; margin: 0 0 8px;
}
.xv-svc-h {
  font-family: var(--font-heading, "SportingGrotesque"), sans-serif; color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin: 56px 0 26px; letter-spacing: -.01em;
}
.xv-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xv-svc-item {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--xv-line); border-radius: 18px; padding: 22px 24px;
  background: linear-gradient(150deg, var(--xv-surface-2), var(--xv-surface));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.xv-svc-item:hover { transform: translateY(-4px); border-color: rgba(0,255,151,.4); box-shadow: 0 24px 60px -40px var(--xv-glow); }
.xv-svc-ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(0,255,151,.1); border: 1px solid rgba(0,255,151,.4); color: var(--xv-green);
  font-size: 18px; line-height: 1; margin-top: 2px;
}
.xv-svc-item h3 { color: #fff; font-size: 1.06rem; margin: 0 0 6px; font-weight: 600; }
.xv-svc-item p { margin: 0; font-size: .94rem; line-height: 1.6; }
.xv-svc-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.xv-svc-tags span {
  border: 1px solid var(--xv-line-2); border-radius: 100px; padding: 9px 18px;
  font-size: .9rem; color: #cfd2db; background: rgba(255,255,255,.03);
}
.xv-svc-cta {
  margin-top: 64px; text-align: center; border: 1px solid var(--xv-line); border-radius: 26px;
  padding: 54px 32px;
  background: radial-gradient(560px 240px at 50% 0%, rgba(0,255,151,.12), transparent 70%), linear-gradient(160deg, var(--xv-surface-2), var(--xv-surface));
}
.xv-svc-cta h3 { font-family: var(--font-heading,"SportingGrotesque"),sans-serif; color:#fff; font-size: clamp(1.4rem,1.1rem + 1.4vw,2.1rem); margin: 0 0 12px; }
.xv-svc-cta p { margin: 0 auto 28px; max-width: 520px; line-height: 1.65; }
.xv-svc-cta .xv-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.xv-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 100px;
  font-weight: 700; font-size: .94rem; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.xv-btn--primary { background: var(--xv-green); color: #00140b !important; box-shadow: 0 8px 30px -10px var(--xv-glow); }
.xv-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0,255,151,.7); }
.xv-btn--ghost { border: 1px solid var(--xv-line-2); color: #fff !important; background: rgba(255,255,255,.03); }
.xv-btn--ghost:hover { border-color: rgba(0,255,151,.5); transform: translateY(-2px); }
@media (max-width: 720px) { .xv-svc-grid { grid-template-columns: 1fr; } .xv-svc { padding: 48px 18px 70px; } }

/* ============================================================
   [xv_projects] — modern case-study grid (home + /our-projects/)
   ============================================================ */
.xv-projects { max-width: 1240px; margin: 0 auto; padding: 70px 24px; font-family: "DM Sans", sans-serif; }
.xv-projects-head { text-align: center; margin-bottom: 44px; }
.xv-projects-eyebrow {
  display: inline-block; color: var(--xv-green); font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px;
}
.xv-projects-title {
  font-family: var(--font-heading, "SportingGrotesque"), sans-serif; color: #fff;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.01em; margin: 0;
}
.xv-projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.xv-pcard {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border: 1px solid var(--xv-line); border-radius: 22px;
  background: linear-gradient(160deg, var(--xv-surface-2), var(--xv-surface));
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease;
}
.xv-pcard:hover { transform: translateY(-8px); border-color: rgba(0,255,151,.42); box-shadow: 0 34px 80px -44px var(--xv-glow); }
.xv-pcard-media {
  position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center;
  overflow: hidden; transition: transform .6s ease;
}
.xv-pcard-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(6,10,22,.55)); }
.xv-pcard:hover .xv-pcard-media { transform: scale(1.05); }
.xv-pcard-num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--font-heading,"SportingGrotesque"),sans-serif; font-size: 1.05rem; font-weight: 700;
  color: #00140b; background: var(--xv-grad); width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; box-shadow: 0 8px 22px -8px var(--xv-glow);
}
.xv-pcard-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.xv-pcard-tag {
  align-self: flex-start; color: var(--xv-green); font-size: .76rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px;
  border: 1px solid rgba(0,255,151,.3); background: rgba(0,255,151,.06); margin-bottom: 16px;
}
.xv-pcard-title {
  font-family: var(--font-heading,"SportingGrotesque"),sans-serif; color: #fff;
  font-size: 1.32rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 12px;
}
.xv-pcard-desc { color: var(--xv-text-dim); font-size: .96rem; line-height: 1.65; margin: 0 0 22px; flex: 1; }
.xv-pcard-link { color: var(--xv-green); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 9px; }
.xv-pcard-arrow { transition: transform .3s ease; }
.xv-pcard:hover .xv-pcard-arrow { transform: translateX(6px); }

/* Featured wide card: media + body side by side on desktop */
.xv-pcard--wide { grid-column: 1 / -1; flex-direction: row; }
.xv-pcard--wide .xv-pcard-media { flex: 0 0 54%; aspect-ratio: auto; }
.xv-pcard--wide .xv-pcard-body { justify-content: center; padding: 40px; }
.xv-pcard--wide .xv-pcard-title { font-size: 1.7rem; }
.xv-pcard--wide .xv-pcard-desc { font-size: 1.02rem; }

.xv-projects-cta { text-align: center; margin-top: 44px; }

@media (max-width: 860px) {
  .xv-projects-grid { grid-template-columns: 1fr; gap: 20px; }
  .xv-pcard--wide { flex-direction: column; }
  .xv-pcard--wide .xv-pcard-media { flex: none; aspect-ratio: 16/10; }
  .xv-pcard--wide .xv-pcard-body { padding: 26px; }
  .xv-pcard--wide .xv-pcard-title { font-size: 1.32rem; }
  .xv-pcard--wide .xv-pcard-desc { font-size: .96rem; }
  .xv-projects { padding: 54px 20px; }
}

/* ============================================================
   Custom Xerovi cursor (desktop / fine-pointer only)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.xv-cursor-on, html.xv-cursor-on a, html.xv-cursor-on button,
  html.xv-cursor-on .thm-btn, html.xv-cursor-on [role="button"], html.xv-cursor-on .xv-pcard { cursor: none !important; }

  #xv-cur-dot, #xv-cur-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2147483647;
    border-radius: 50%; will-change: transform; mix-blend-mode: normal;
  }
  #xv-cur-dot {
    width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--xv-green);
    box-shadow: 0 0 10px var(--xv-glow); transition: opacity .25s ease;
  }
  #xv-cur-ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1.5px solid rgba(0, 255, 151, .65); background: rgba(0, 255, 151, 0);
    transition: width .28s cubic-bezier(.2,.7,.2,1), height .28s cubic-bezier(.2,.7,.2,1),
                margin .28s cubic-bezier(.2,.7,.2,1), background .28s ease, border-color .28s ease, opacity .25s ease;
  }
  /* rotating dashed accent for brand flair */
  #xv-cur-ring::before {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1.5px dashed rgba(0, 255, 151, .35); animation: xv-cur-spin 5s linear infinite;
  }
  @keyframes xv-cur-spin { to { transform: rotate(360deg); } }

  /* hover an interactive element: ring grows + tints, dot hides */
  html.xv-cur-hover #xv-cur-ring {
    width: 60px; height: 60px; margin: -30px 0 0 -30px;
    background: rgba(0, 255, 151, .08); border-color: var(--xv-green);
  }
  html.xv-cur-hover #xv-cur-dot { opacity: 0; }
  /* press feedback */
  html.xv-cur-down #xv-cur-ring::before { animation-duration: 1.2s; }
  html.xv-cur-down #xv-cur-ring { background: rgba(0, 255, 151, .14); }
  /* hide while pointer is off-window */
  html.xv-cur-out #xv-cur-dot, html.xv-cur-out #xv-cur-ring { opacity: 0; }
}

/* ---------- Scroll progress bar ---------- */
.xv-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999;
  background: var(--xv-grad); box-shadow: 0 0 14px var(--xv-glow);
  pointer-events: none; transition: width 90ms linear;
}

/* ---------- Header ----------
   Solid background instead of backdrop-filter blur (blur re-rasterises the area
   behind the bar on every scroll frame — costly). */
.xb-header-area-sticky,
.header-style--one .xb-header-area-sticky,
.header-style--two .xb-header-area-sticky {
  background: #070a14 !important;
  border-bottom: 1px solid var(--xv-line);
  box-shadow: 0 10px 34px -20px rgba(0,0,0,.9);
}

/* Keep the nav accessible while scrolling in EITHER direction. The theme only
   reveals its cloned sticky header on scroll-UP and slides it with a 0.6s
   transition — that slide (and the theme re-toggling its class) is the
   "appears/disappears" flicker. We pin it once past the header via an
   html.xv-scrolled flag (set in xerovi-polish.js), force it solid, and KILL the
   transition so there is no slide at all. */
html.xv-scrolled #xb-header-area .xb-header-area-sticky,
html.xv-scrolled .xb-header-area-sticky {
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: none !important;
}

/* Remove the theme's duplicate back-to-top (we keep our own .xv-top) */
.xb-backtotop { display: none !important; }

/* ---------- Logo ---------- */
/* Header brand mark — crisp, sized for the bar */
.xb-header-logo img, .header-logo img { width: 52px !important; height: auto; }
/* Hero brand mark — a TRUE 3D extruded Xerovi logo (built in JS as stacked
   depth layers) that rotates smoothly like a solid object. The chrome-box demo
   image is hidden; .xv-logo3d holds the layers. */
.hero-icon { perspective: 1500px; }
.hero-icon::after { /* soft static green glow behind the mark (cheap, no blur filter on the 3D group) */
  content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(0,255,151,.28), transparent 65%);
}
.xv-logo3d {
  position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto;
  transform-style: preserve-3d;
  animation: xv-spin3d 9.2s linear infinite; /* smooth continuous spin, no float/jump */
  will-change: transform;
}
.xv-logo3d .xv-l {
  position: absolute; inset: 0;
  background-position: center; background-repeat: no-repeat; background-size: contain;
  backface-visibility: visible;
}
.xv-logo3d .xv-face { filter: drop-shadow(0 0 20px rgba(0, 255, 151, .35)); }
@keyframes xv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes xv-spin3d {
  0%   { transform: rotateX(10deg) rotateY(0deg); }
  100% { transform: rotateX(10deg) rotateY(360deg); }
}
@media (max-width: 991px) {
  .xv-logo3d { width: min(62vw, 230px); margin: 0 auto; }
  /* Center the 3D mark on tablet/phone — undo the theme's desktop-only offset + transform */
  .hero-style .hero-icon { position: relative; text-align: center; margin-left: auto !important; margin-right: auto !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none !important; }
  .xv-logo3d { animation: none !important; transform: rotateX(10deg) rotateY(-28deg); }
}

/* ---------- Preloader (loading screen) ----------
   New green logo + a dynamic neon loader: the mark pulses/glows while two rings
   ping outward from it. Replaces the old single spinning circle + old logo. */
.preloader { background: #04060e !important; }
.preloader .loader-line-mask, .preloader .loader-line { display: none !important; }
.preloader .loader-circle { box-shadow: none !important; }
.preloader .loader-logo {
  background-image: url("https://xerovi.com/wp-content/uploads/2026/06/xv-icons/xv-logo.svg") !important;
  background-size: 90px !important;
  animation: xv-pre-pulse 1.5s ease-in-out infinite;
}
.preloader .loader-circle::before,
.preloader .loader-circle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  border: 2px solid rgba(0, 255, 151, .55); pointer-events: none;
  animation: xv-pre-ping 1.9s cubic-bezier(0, .2, .8, 1) infinite;
}
.preloader .loader-circle::after { animation-delay: .95s; border-color: rgba(20, 227, 208, .5); }
@keyframes xv-pre-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes xv-pre-pulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(0, 255, 151, .35)); opacity: .92; }
  50%      { filter: drop-shadow(0 0 34px rgba(0, 255, 151, .75)); opacity: 1; }
}
.main-menu li > a, .xb-menu-primary li > a { position: relative; transition: color .25s ease; }
.main-menu li > a::after, .xb-menu-primary li > a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px;
  background: var(--xv-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.main-menu li > a:hover, .xb-menu-primary li > a:hover { color: #fff !important; }
.main-menu li > a:hover::after, .xb-menu-primary li > a:hover::after,
.main-menu li.current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons: shine sweep + glow ---------- */
.thm-btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  position: relative; overflow: hidden;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, filter .28s ease !important;
  will-change: transform;
}
.thm-btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.thm-btn:hover::after { left: 130%; }
.thm-btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  transform: translateY(-3px); box-shadow: 0 16px 42px -12px var(--xv-glow); filter: brightness(1.05);
}
.thm-btn:active { transform: translateY(-1px) scale(.99); }

/* Breathing glow on the hero's primary call-to-action */
.hero-btn .thm-btn, .hero-content .thm-btn, .xv-btn--primary {
  animation: xv-breathe 3.4s ease-in-out infinite;
}
.hero-btn .thm-btn:hover, .hero-content .thm-btn:hover, .xv-btn--primary:hover { animation: none; }
@keyframes xv-breathe {
  0%, 100% { box-shadow: 0 8px 30px -12px var(--xv-glow); }
  50% { box-shadow: 0 8px 42px -6px var(--xv-glow); }
}

/* ---------- Generic card hover (theme borders) ---------- */
.xb-border { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease; }
.xb-border:hover {
  border-color: rgba(0,255,151,.4) !important;
  box-shadow: 0 28px 70px -38px var(--xv-glow);
}

/* ---------- Service accordion: contrast + accent ---------- */
.xb-service-item { transition: background .4s ease, box-shadow .4s ease; }
.xb-service-item.active {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(0,255,151,.10), transparent 55%),
    linear-gradient(135deg, rgba(20,227,208,.06), rgba(10,14,28,.6)) !important;
  box-shadow: inset 0 0 0 1px rgba(0,255,151,.18), 0 30px 80px -50px var(--xv-glow);
}
.xb-service-item .xb-item--title a { transition: color .3s ease; }
.xb-service-item.active .xb-item--title a { color: #fff !important; }
.xb-service-item.active .xb-item--content { color: #d7d9e2 !important; }
.xb-service-item .xb-item--icon {
  background: var(--xv-grad) !important; border: none !important;
  box-shadow: 0 10px 30px -10px var(--xv-glow); transition: transform .3s ease;
}
.xb-service-item:hover .xb-item--icon { transform: rotate(-8deg) scale(1.08); }

/* ---------- Feature / industry cards ---------- */
.xb-feature-item .xb-item--inner {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.xb-feature-item:hover .xb-item--inner {
  transform: translateY(-4px);
  border-color: rgba(0,255,151,.4) !important;
  background: linear-gradient(135deg, rgba(0,255,151,.06), rgba(10,14,28,.4)) !important;
  box-shadow: 0 24px 60px -40px var(--xv-glow);
}
.xb-feature-item .xb-item--icon { transition: transform .35s ease; }
.xb-feature-item:hover .xb-item--icon { transform: scale(1.12); }

/* ---------- Testimonial cards ---------- */
.ac-testimonial-item, .xb-testimonial-item {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
}
.ac-testimonial-item:hover, .xb-testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 80px -46px var(--xv-glow);
}
.xb-item--rating li:first-child { color: var(--xv-green) !important; }

/* ---------- Project / blog cards ---------- */
.xb-project-item, .xb-blog-item { transition: transform .35s ease, box-shadow .35s ease; }
.xb-project-item:hover, .xb-blog-item:hover { transform: translateY(-5px); }
.xb-blog-item img, .xb-project-item img { transition: transform .6s ease; }
.xb-blog-item:hover img, .xb-project-item:hover img { transform: scale(1.05); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--xv-green) !important;
  box-shadow: 0 0 0 3px rgba(0,255,151,.16) !important; outline: none;
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--xv-green); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Scroll reveal ---------- */
.xv-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1); }
.xv-reveal.xv-inview { opacity: 1; transform: none; }
.xv-reveal.d1 { transition-delay: .08s } .xv-reveal.d2 { transition-delay: .16s }
.xv-reveal.d3 { transition-delay: .24s } .xv-reveal.d4 { transition-delay: .32s }

/* ---------- Back to top ---------- */
.xv-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(8,12,22,.86);
  border: 1px solid rgba(0,255,151,.4); color: var(--xv-green); font-size: 19px; cursor: pointer;
  z-index: 9999; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s, box-shadow .3s;
}
.xv-top.xv-show { opacity: 1; visibility: visible; transform: none; }
.xv-top:hover { box-shadow: 0 0 26px var(--xv-glow); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.xb-footer { overflow: hidden; }
.xb-footer-heading .mail, .xb-footer .mail {
  box-shadow: 0 16px 50px -16px var(--xv-glow); transition: transform .3s ease, box-shadow .3s ease;
}
.xb-footer-heading .mail:hover, .xb-footer .mail:hover { transform: translateY(-2px); box-shadow: 0 20px 60px -14px var(--xv-glow); }
.xb-footer .xb-footer-nav-item { transition: transform .3s ease, background .3s ease; }
.xb-footer .xb-footer-nav-item:hover { transform: translateY(-3px); }
/* Footer bottom bar — address was rendering in huge display font at the edge */
.xb-footer-bottom {
  max-width: 1290px; margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
  gap: 18px 32px; flex-wrap: wrap; align-items: center;
}
.xb-footer-bottom, .xb-footer .contact-item { overflow-wrap: anywhere; word-break: normal; }
.xb-footer-bottom .contact-item { max-width: 100%; }
.xb-footer-bottom .contact-method {
  font-family: "DM Sans", sans-serif !important;
  font-size: .92rem !important; line-height: 1.6 !important;
  font-weight: 400 !important; color: var(--xv-text-dim) !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
.xb-footer-bottom .copyright-item p { color: var(--xv-text-dim); }
.xb-footer-bottom a { color: var(--xv-green-soft); transition: color .25s ease; }
.xb-footer-bottom a:hover { color: var(--xv-green); }

/* ============================================================
   MOBILE / TABLET  —  spacing, rhythm & readability overhaul
   ============================================================ */
@media (max-width: 991px) {
  #xv-aurora { opacity: .7; }

  /* Comfortable side gutters so nothing hugs the screen edge */
  .container { padding-left: 22px !important; padding-right: 22px !important; }

  /* Tame the theme's huge desktop section paddings into a consistent rhythm */
  .pt-200,.pt-150,.pt-145,.pt-140,.pt-135,.pt-130,.pt-120 { padding-top: 60px !important; }
  .pb-200,.pb-150,.pb-145,.pb-140,.pb-135,.pb-130,.pb-120 { padding-bottom: 60px !important; }
  .mt-150,.mt-145,.mt-135 { margin-top: 36px !important; }
  .mb-150,.mb-145,.mb-135,.mb-50 { margin-bottom: 26px !important; }
  .xb-sec-padding { padding-top: 0 !important; padding-bottom: 0 !important; }
  .elementor-widget-int-industries { min-height: 0 !important; }

  /* Headings: consistent size + readable leading */
  .sec-title .title, .title.title { font-size: clamp(1.7rem, 6.2vw, 2.15rem) !important; line-height: 1.18 !important; }
  .int-hero-one .title, h1.title, .hero-content .title { font-size: clamp(2rem, 7.6vw, 2.6rem) !important; line-height: 1.14 !important; }
}

@media (max-width: 600px) {
  :target { scroll-margin-top: 84px; }
  .xv-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  p { line-height: 1.7; }

  /* ----- Hero: balanced, elegant vertical rhythm ----- */
  section.hero, .hero.hero-style { padding-top: 92px !important; padding-bottom: 40px !important; }
  .hero-content .sub-title { margin-bottom: 26px !important; }
  .hero-content .thm-btn { font-size: 14px !important; }
  /* Hero 3D mark: centered, confident size, balanced breathing room above/below */
  .hero-style .hero-icon { margin-top: 20px !important; margin-bottom: 8px !important; }
  .xv-logo3d { width: min(64vw, 224px) !important; }
  /* Pull the stats row up so the mark isn't stranded above a big void */
  .hero-style .container > .row.mt-55 { margin-top: 14px !important; }

  /* ----- Section headers: clean, left-aligned, well-stacked ----- */
  .sec-title, .custom-sec-title, .sec-title-center, .tes-sec-title { text-align: left !important; }
  .sec-title .sub-title { display: inline-block; margin-bottom: 14px !important; padding: 0 !important; }
  .sec-title-center .sub-title::before, .sec-title-center .sub-title::after,
  .tes-sec-title .sub-title::before, .tes-sec-title .sub-title::after { display: none !important; } /* drop the side dots when left-aligned */
  .sec-title .sub-title { padding-left: 16px !important; } /* keep the single leading dot's room */
  .sec-title .title { margin-bottom: 0 !important; }
  .sec-title .xb-heading-btn, .custom-sec-title .xb-heading-btn { display: block !important; margin-top: 24px !important; }

  /* comfortable, not-overpowering touch targets */
  .thm-btn, .wp-block-button__link, button[type="submit"], .xb-footer-nav-item a, .main-menu a, .xb-menu-primary a { min-height: 46px; }

  /* footer */
  .xb-footer-bottom { padding-left: 22px; padding-right: 22px; justify-content: center; text-align: center; }
  .xb-footer-bottom .contact-item { width: 100%; justify-content: center; }
  .xb-footer-bottom .contact-method { font-size: .88rem !important; line-height: 1.55 !important; }

  .elementor img, .elementor video { max-width: 100%; height: auto; }
  .xv-svc-cta .xv-row { flex-direction: column; align-items: stretch; }
  .xv-svc-cta .xv-btn { justify-content: center; }

  /* ----- Project cards: stop the heavy crop + oversized title on mobile ----- */
  .xb-project-item { height: auto !important; min-height: 420px !important; }
  .xb-project-item .xb-item--title { font-size: 1.32rem !important; line-height: 1.22 !important; }
  .xb-project-content { padding: 22px !important; }
  /* show the preview image as a balanced top band rather than a hard full-bleed crop */
  .xb-project-item.bg_img { background-position: center 18% !important; }
}
/* never allow horizontal scroll on any device (clip keeps sticky header working) */
html, body { overflow-x: clip; max-width: 100%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon img { animation: none !important; }
  .xv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .xv-progress { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
