/* =========================================================
   GIT INFOSYS — Dubai page: advanced effects layer
   Loaded after style.css. Everything here is progressive:
   without JS or with reduced motion the page stays fully usable.
   ========================================================= */

@property --fx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false
}

html.lenis,
html.lenis body {
  scroll-behavior: auto
}

/* ---------- Intro curtain (first visit per session) ---------- */
.fx-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  pointer-events: none
}

.has-intro .fx-intro {
  display: flex
}

.fx-intro__panel {
  flex: 1;
  background: var(--night);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1)
}

.fx-intro__panel:nth-child(2) {
  transition-delay: .06s
}

.fx-intro__star {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  fill: none;
  stroke: var(--gold-lt);
  stroke-width: 1.4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: fx-draw 1s cubic-bezier(.6, 0, .2, 1) forwards, fx-spin 1.6s cubic-bezier(.6, 0, .2, 1) forwards;
  transition: opacity .3s ease
}

@keyframes fx-draw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes fx-spin {
  to {
    transform: rotate(90deg)
  }
}

.intro-out .fx-intro__panel:first-child {
  transform: translateY(-101%)
}

.intro-out .fx-intro__panel:nth-child(2) {
  transform: translateY(101%)
}

.intro-out .fx-intro__star {
  opacity: 0
}

/* ---------- Grain + dust ---------- */
.fx-grain {
  position: fixed;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: fx-grain 1.2s steps(4) infinite
}

@keyframes fx-grain {
  0% {
    transform: translate(0, 0)
  }

  25% {
    transform: translate(-3%, 2%)
  }

  50% {
    transform: translate(2%, -3%)
  }

  75% {
    transform: translate(-2%, -1%)
  }

  100% {
    transform: translate(0, 0)
  }
}

.fx-dust {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100vw;
  height: 100vh;
  pointer-events: none
}

/* ---------- Custom cursor ---------- */
.fx-cursor {
  display: none
}

.has-cursor .fx-cursor {
  display: block
}

.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor [data-cursor],
.has-cursor .accordion-button {
  cursor: none
}

.has-cursor input,
.has-cursor textarea,
.has-cursor select {
  cursor: auto
}

.fx-cursor__dot,
.fx-cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%
}

.fx-cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold-lt);
  mix-blend-mode: difference
}

.fx-cursor__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(230, 195, 124, .75);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s ease, border-color .3s ease, opacity .2s ease
}

.fx-cursor__ring b {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--night);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s ease, transform .3s var(--ease)
}

.fx-cursor.is-hover .fx-cursor__ring {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  background: rgba(230, 195, 124, .14)
}

.fx-cursor.is-label .fx-cursor__ring {
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  background: var(--gold-lt);
  border-color: var(--gold-lt)
}

.fx-cursor.is-label .fx-cursor__ring b {
  opacity: 1;
  transform: none
}

.fx-cursor.is-label .fx-cursor__dot,
.fx-cursor.is-text .fx-cursor__dot {
  opacity: 0
}

.fx-cursor.is-text .fx-cursor__ring {
  opacity: 0
}

.fx-cursor.is-down .fx-cursor__ring {
  transform: scale(.85)
}

/* service preview card that trails the pointer */
.fx-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9990;
  display: none;
  width: 220px;
  padding: 22px;
  border-radius: 20px;
  background: var(--night);
  color: var(--on-night);
  border: 1px solid rgba(230, 195, 124, .35);
  box-shadow: 0 30px 70px rgba(5, 9, 18, .4);
  pointer-events: none;
  background-image: radial-gradient(circle at 80% 0%, rgba(230, 195, 124, .3), transparent 55%), var(--lattice-soft);
  background-size: auto, 56px 56px;
  opacity: 0;
  transform: scale(.6) rotate(-6deg)
}

.has-service-preview .fx-preview {
  display: block
}

.fx-preview i {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: var(--gold-lt);
  margin-bottom: 16px
}

.fx-preview b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2
}

/* ---------- Section dots ---------- */
.fx-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 4500;
  display: none;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
  mix-blend-mode: difference
}

@media (min-width: 1200px) {
  .fx-dots {
    display: flex
  }
}

.fx-dots a {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: transform .3s var(--ease), background .3s ease
}

.fx-dots a.is-active {
  background: #fff;
  transform: scale(1.35)
}

.fx-dots span {
  position: absolute;
  right: 22px;
  top: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity .25s ease, transform .25s var(--ease);
  pointer-events: none
}

.fx-dots a:hover span,
.fx-dots a:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%)
}

/* ---------- Back to top ring ---------- */
.fx-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 4500;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-lt);
  box-shadow: 0 12px 30px rgba(5, 9, 18, .35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s var(--ease)
}

@media (min-width: 768px) {
  .fx-top {
    display: flex
  }
}

.fx-top.is-visible {
  opacity: 1;
  transform: none
}

.fx-top svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg)
}

.fx-top circle {
  fill: none;
  stroke: rgba(230, 195, 124, .2);
  stroke-width: 2
}

.fx-top .fx-top__ring {
  stroke: var(--gold-lt);
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132 * (1 - var(--p, 0)))
}

.fx-top i {
  transition: transform .3s var(--ease)
}

.fx-top:hover i {
  transform: translateY(-3px)
}

/* ---------- Header hide/show ---------- */
.headerTop.HomeMenu {
  transition: transform .45s var(--ease), background .3s ease, box-shadow .3s ease
}

.headerTop.HomeMenu.is-hidden {
  transform: translateY(-100%)
}

/* ---------- Hero upgrades ---------- */
.fx-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease
}

.fx-shader.is-live {
  opacity: 1
}

.has-gl .dx-hero__stars {
  display: none
}

.dx-hero__sun {
  mix-blend-mode: screen
}

.is-loaded .dx-hero__sun[data-depth] {
  transform: translate3d(var(--px, 0), calc(var(--py, 0px) + var(--sunset, 0px)), 0)
}

.dx-skyline {
  transform-origin: 50% 100%
}

.fx-char {
  display: inline-block;
  will-change: transform
}

.gsap-hero .dx-line>span {
  transform: none !important
}

.dx-hero__title {
  perspective: 800px
}

/* animated gold border on glass panels */
.dx-hero__copy,
.dx-form {
  position: relative;
  isolation: isolate
}

.dx-hero__copy::before,
.dx-form::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--fx-angle), transparent 0 62%, rgba(230, 195, 124, .95) 72%, transparent 82% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-orbit 6s linear infinite
}

@keyframes fx-orbit {
  to {
    --fx-angle: 360deg
  }
}

/* CTA shine sweep */
.dx-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease)
}

.dx-cta:hover::after {
  left: 120%
}

.dx-magnetic {
  will-change: transform
}

/* scroll hint */
.fx-scrollhint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--on-night-muted);
  font-size: 12px;
  font-weight: 600;
  transform: translateX(-50%)
}

.fx-scrollhint i {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: rgba(239, 230, 214, .2)
}

.fx-scrollhint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold-lt);
  animation: fx-drip 1.8s cubic-bezier(.6, 0, .2, 1) infinite
}

@keyframes fx-drip {
  to {
    top: 110%
  }
}

/* ---------- Marquee band ---------- */
.fx-band-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 26px 0;
  margin: -26px 0;
  background: linear-gradient(180deg, transparent 50%, var(--sand) 50%)
}

.fx-band {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--gold-lt);
  background: linear-gradient(90deg, #e9c98a, #d9a958 50%, #e9c98a);
  color: var(--night);
  margin: 0 -2%;
  transform: rotate(-1.2deg);
  box-shadow: 0 18px 40px rgba(5, 9, 18, .2)
}

.fx-band__track,
.fx-tech-marquee__row {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform
}

.fx-band__track span {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  padding: 0 28px
}

.fx-band__track i,
.fx-tech-marquee__row i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3C/svg%3E")
}

/* CSS fallback marquee when GSAP is not running */
html:not(.gsap-on) [data-marquee] {
  animation: fx-marquee 40s linear infinite
}

html:not(.gsap-on) [data-marquee="-1"] {
  animation-direction: reverse
}

@keyframes fx-marquee {
  to {
    transform: translateX(-50%)
  }
}

.fx-tech-marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)
}

.fx-tech-marquee__row span {
  padding: 10px 20px;
  margin: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink)
}

.fx-tech-marquee__row i {
  width: 12px;
  height: 12px;
  color: var(--gold)
}

/* ---------- Light-section aurora ---------- */
.dx-sand,
.dx-paper {
  overflow: clip
}

.dx-sand::before,
.dx-paper::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 22%, rgba(230, 195, 124, .32), transparent 70%),
    radial-gradient(30% 26% at 82% 70%, rgba(214, 160, 96, .22), transparent 70%),
    radial-gradient(26% 22% at 60% 12%, rgba(120, 140, 190, .12), transparent 70%);
  animation: fx-aurora 26s ease-in-out infinite alternate
}

.dx-paper::before {
  animation-duration: 32s;
  animation-direction: alternate-reverse
}

.dx-sand>*,
.dx-paper>* {
  position: relative
}

@keyframes fx-aurora {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg)
  }

  50% {
    transform: translate3d(4%, -3%, 0) rotate(6deg)
  }

  100% {
    transform: translate3d(-4%, 3%, 0) rotate(-4deg)
  }
}

/* sticky columns need visible overflow on their section */
#services.dx-sand,
#process.dx-paper,
#faq.dx-paper {
  overflow: clip
}

/* ---------- Spotlight borders (services + industries) ---------- */
.fx-spot {
  position: relative;
  isolation: isolate
}

.fx-spot::after {
  content: "";
  position: absolute;
  inset: 0 -18px;
  z-index: -1;
  border-radius: 18px;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 195, 124, .28), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease
}

.fx-spot:hover::after {
  opacity: 1
}

.dx-service h3 {
  transition: transform .45s var(--ease), color .3s ease
}

.dx-service:hover h3 {
  transform: translateX(8px);
  color: var(--gold-ink)
}

.fx-spotgrid .dx-industry {
  position: relative;
  isolation: isolate;
  border: 0
}

.fx-spotgrid .dx-industry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(184, 135, 58, .95), rgba(184, 135, 58, .12) 40%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0)
}

.fx-spotgrid .dx-industry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, -999px) var(--my, -999px), rgba(230, 195, 124, .18), transparent 60%)
}

.fx-spotgrid .dx-industry i {
  transition: transform .5s var(--ease)
}

.fx-spotgrid .dx-industry:hover i {
  transform: rotate(-10deg) scale(1.1)
}

/* ---------- Tilt + glare ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform
}

[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 50%);
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity .3s ease
}

[data-tilt]:hover::after {
  opacity: 1
}

.dx-proof {
  position: relative
}

/* ---------- Portfolio pinned horizontal ---------- */
.dx-rail {
  display: block
}

.dx-rail__track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  width: max-content
}

.dx-rail.is-pinned {
  overflow: hidden;
  scroll-snap-type: none;
  cursor: auto
}

.dx-rail.is-pinned .dx-rail__track {
  will-change: transform
}

.dx-portfolio.is-pinmode .dx-rail-ctrl .dx-round {
  display: none
}

.dx-project {
  will-change: transform
}

.dx-project__media img {
  transform: scale(1.12)
}

.dx-project__media:hover img {
  transform: scale(1.18)
}

.fx-railbar {
  height: 2px;
  margin-top: 34px;
  background: var(--line-night);
  border-radius: 2px;
  overflow: hidden
}

.fx-railbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0))
}

/* ---------- Process ring ---------- */
.fx-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin-top: 36px;
  align-items: center;
  justify-content: center
}

.fx-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg)
}

.fx-ring circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 3
}

.fx-ring .fx-ring__bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: calc(578 * (1 - var(--fill, 0)))
}

.fx-ring__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--display)
}

.fx-ring__num b {
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold)
}

.fx-ring__num span {
  font-size: 18px;
  color: var(--muted)
}

.dx-step h3 {
  transition: color .4s ease
}

.dx-step.is-current h3 {
  color: var(--gold-ink)
}

/* ---------- Pricing hover sweep ---------- */
.dx-price-table tbody tr {
  position: relative;
  background-image: linear-gradient(90deg, rgba(230, 195, 124, .14), transparent 70%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size .6s var(--ease)
}

.dx-price-table tbody tr:hover {
  background-size: 100% 100%
}

.dx-price {
  font-variant-numeric: tabular-nums
}

/* ---------- Team image reveal ---------- */
.dx-person img {
  transform: scale(1.15)
}

/* ---------- Reviews ---------- */
.dx-review {
  position: relative;
  overflow: hidden;
  isolation: isolate
}

.dx-review::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-lt);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .5s var(--ease)
}

.dx-review:hover {
  background: transparent
}

.dx-review:hover::before {
  clip-path: circle(150% at var(--mx, 50%) var(--my, 50%))
}

/* ---------- FAQ search ---------- */
.fx-faqsearch {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px
}

.fx-faqsearch i {
  position: absolute;
  left: 18px;
  color: var(--gold-ink)
}

.fx-faqsearch input {
  width: 100%;
  min-height: 54px;
  padding: 12px 110px 12px 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease
}

.fx-faqsearch input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 135, 58, .15)
}

.fx-faqsearch__count {
  position: absolute;
  right: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted)
}

.fx-faqempty {
  padding: 18px 0;
  color: var(--muted)
}

.dx-accordion mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(230, 195, 124, .55);
  color: inherit
}

/* ---------- Contact silk ---------- */
.dx-contact {
  overflow: hidden
}

.dx-contact .fx-silk {
  z-index: 0
}

.dx-contact.dx-night::before {
  z-index: 1
}

.dx-contact>.dx-shell {
  z-index: 2
}

/* ---------- Underline links ---------- */
.gix-footer__links a,
.gix-footer__legal a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .2s ease
}

.gix-footer__links a:hover,
.gix-footer__legal a:hover {
  background-size: 100% 1px
}

/* ---------- Desktop-only bits ---------- */
@media (min-width: 992px) {
  .fx-scrollhint {
    display: flex
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .fx-grain,
  .fx-dust,
  .fx-cursor,
  .fx-preview,
  .fx-intro {
    display: none !important
  }

  .dx-sand::before,
  .dx-paper::before,
  .dx-hero__copy::before,
  .dx-form::before {
    animation: none
  }

  html:not(.gsap-on) [data-marquee] {
    animation: none
  }

  .dx-project__media img,
  .dx-person img {
    transform: none
  }
}

/* Section eyebrows (original numbered labels) */
.dx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 12px/1 'Figtree', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink)
}
.dx-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .9s cubic-bezier(.2,.7,.2,1)
}
.dx-eyebrow span { color: var(--gold) }
.dx-night .dx-eyebrow, .dx-contact .dx-eyebrow, .dx-pricing .dx-eyebrow { color: var(--gold-lt) }
