/* HOME PAGE SECTION CODE STARTS */

.fnx-connect-hero {
  --fnx-accent: #4da3e8;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #fff;
  background:url(https://www.farenexus.com/assets/img/FG-banner.webp);
  background-size: cover;
  background-position: center 50%;
}

.fnx-connect-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fnx-bg-grid {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: radial-gradient(rgba(120, 185, 230, .22) 1.2px, transparent 1.2px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 65%);
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.fnx-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.fnx-bg-blob.b1 {
  left: -140px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  background: #093457;
  opacity: .4;
}

.fnx-bg-blob.b2 {
  left: 30%;
  top: -180px;
  width: 380px;
  height: 380px;
  background: #1b6399;
  opacity: .25;
}

.fnx-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 300px;
  animation: fnxWave 30s linear infinite;
}

.fnx-wave path { fill: #093457; }

.fnx-wave.w1 { opacity: .25; animation-duration: 26s; }

.fnx-wave.w2 {
  bottom: -30px;
  opacity: .3;
  animation-duration: 38s;
  animation-direction: reverse;
}

.fnx-wave.w3 {
  bottom: -70px;
  opacity: .45;
  animation-duration: 52s;
}

.fnx-wave.w3 path { fill: #062a47; }

.fnx-connect-container {
  --fnx-w: 696px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(12px, 1fr)
    minmax(0, calc(var(--fnx-w) * .55))
    minmax(0, calc(var(--fnx-w) * .45))
    minmax(0, 1fr);
  align-items: top;
  width: 100%;
  min-height: 700px;
}

@media (min-width: 992px) {
  .fnx-connect-container { --fnx-w: 936px; }

  .fnx-connect-hero,
  .fnx-connect-container,
  .fnx-connect-visual {
    min-height: 530px !important;
  }
}

@media (min-width: 1200px) { .fnx-connect-container { --fnx-w: 1116px; } }
@media (min-width: 1400px) { .fnx-connect-container { --fnx-w: 1296px; } }

.fnx-connect-content {
  position: relative;
  z-index: 3;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0px 0px 60px 20px;
  margin-left: -30px;
  transform: translateY(-32px);
}

.fnx-connect-title {
  max-width: 580px;
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.fnx-connect-title span { color: #4da3e8; font-weight: 700; }

.fnx-connect-description {
  max-width: 530px;
  margin: 0;
  color: #e6f0f8;
  font-size: 16px;
  line-height: 1.6;
}

.image-map {
  width: 100%;
  max-width: 90%;
  height: 210px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  background: url(https://farenexus.com/assets/img/map-new.webp);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  top: 32px;
  left: -30px;
  filter: drop-shadow(4px 4px 0px #041f3865);
}

.fnx-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 25px;
  width: 100%;
}

.fnx-feature-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  border-right: 1px solid #4f7fa899;
  padding-right: 30px;
}

.fnx-feature-item:last-child { border: none; padding-right: 20px; }

.fnx-feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 9px;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #67a1e7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(58, 155, 228, .08), 0 0 20px rgba(58, 155, 228, .22);
  background: rgba(6, 38, 66, .65);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.fnx-feature-icon::before,
.fnx-feature-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid #3a9be4;
  opacity: 0;
  pointer-events: none;
}

.fnx-feature-icon::before { animation: fnxIconPulse 2.4s ease-out infinite; }
.fnx-feature-icon::after  { animation: fnxIconPulse 2.4s ease-out infinite 1.2s; }

@keyframes fnxIconPulse {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.55; }
  70%  { opacity: 0.18; }
  100% { transform: scale(1.55); opacity: 0; }
}

.fnx-feature-item h3 {
  margin: 0;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}

.fnx-feature-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #67a1e7;
  line-height: 1.4;
  max-width: 95%;
}
.fnx-feature-sub.first
{
  max-width: 80%;
}

.fnx-feature-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #e6f0f8;
  word-wrap: break-word;
}

.fnx-feature-bar {
  width: 28px;
  height: 3px;
  background: #67a1e7;
  border-radius: 2px;
  margin-top: 6px;
  display: none;
}

.fnx-connect-visual {
  --fnx-r: 72px;            
  --fnx-depth: 1;           
  position: relative;
  grid-column: 3 / 5;
  grid-row: 1;
  min-width: 0;
  margin-left: 10px;
  display: none;
}

/* ---------- background deco ---------- */
.fnx-connect-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* soft blue glow behind the glass frame */
.fnx-connect-deco::before {
  content: "";
  position: absolute;
  inset: 4% 0 4% 6%;
  border-radius: 120px 0 0 120px;
  background: radial-gradient(60% 70% at 55% 45%, rgba(58, 155, 228, .35), transparent 70%);
  filter: blur(30px);
}

/* floating light dots */
.fnx-float-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67a1e7;
  box-shadow: 0 0 12px rgba(103, 161, 231, .9);
  z-index: 4;
  pointer-events: none;
}

.fnx-float-dot.dot-1 { top: 18%; left: -9%; animation: fnxDotFloat 4s ease-in-out infinite; }
.fnx-float-dot.dot-2 { top: 42%; left: 1%; width: 5px; height: 5px; animation: fnxDotFloat 5s ease-in-out infinite .8s; }
.fnx-float-dot.dot-3 { top: 89%; left: 6%; width: 6px; height: 6px; animation: fnxDotFloat 4.5s ease-in-out infinite 1.2s; }
.fnx-float-dot.dot-4 { top: 12%; right: 13%; width: 5px; height: 5px; animation: fnxDotFloat 5s ease-in-out infinite 1.8s; }

/* soft light passing over the visual */
.fnx-light-sweep {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 35%;
  height: 140%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10), transparent);
  transform: rotate(15deg);
  filter: blur(8px);
  animation: fnxLightSweep 7s ease-in-out infinite;
}

@keyframes fnxDotFloat {
  0%, 100% { transform: translate(0, 0); opacity: .45; }
  50%      { transform: translate(8px, -12px); opacity: 1; }
}

@keyframes fnxLightSweep {
  0%   { left: -45%; opacity: 0; }
  15%  { opacity: .7; }
  55%  { opacity: .7; }
  75%, 100% { left: 125%; opacity: 0; }
}

/* ---------- 3D stage ---------- */
.fnx-stage {
  position: absolute;
  /* inset: 70px 7% 70px 6%; */
  inset: 119px 11% 74px 0%;
  z-index: 2;
  perspective: 1500px;
  transform: translateY(-12px);
}

/* gentle idle float */
.fnx-float {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: fnxCardFloat 8s ease-in-out infinite;
}

/* tilt: right side closer to viewer (mouse updates --rx / --ry via JS) */
.fnx-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -14deg)) rotateZ(-2.5deg);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

/* ---------- glass layers (back -> front) ---------- */
.fnx-plate {
  position: absolute;
  pointer-events: none;
}

/* back-most big glass slab, pushed up/right */
.fnx-plate.p3 {
  /* inset: -34px -44px -26px -30px; */
  inset: -68px -34px -21px -32px;
  border-radius: calc(var(--fnx-r) + 34px) calc(var(--fnx-r) + 70px) calc(var(--fnx-r) + 34px) calc(var(--fnx-r) + 34px);
  transform: translate3d(calc(10px * var(--fnx-depth)), calc(-10px * var(--fnx-depth)), -90px);
  background: linear-gradient(145deg, rgba(90, 170, 255, .30), rgba(20, 90, 190, .10));
  border: 1.5px solid rgba(120, 200, 255, .45);
  box-shadow: 0 0 40px rgba(58, 155, 228, .35), inset 0 0 30px rgba(120, 200, 255, .15);
}

/* middle glass slab */
.fnx-plate.p2 {
  /* inset: -18px -20px -14px -16px; */
  inset: -36px -15px -8px -19px;
  border-radius: calc(var(--fnx-r) + 18px);
  transform: translate3d(calc(6px * var(--fnx-depth)), calc(-4px * var(--fnx-depth)), -45px);
  background: linear-gradient(145deg, rgba(120, 200, 255, .28), rgba(26, 112, 179, .12));
  border: 1.5px solid rgba(150, 215, 255, .6);
  box-shadow: 0 0 26px rgba(77, 163, 232, .45), inset 0 0 22px rgba(160, 220, 255, .22);
}

/* thin glowing outline just outside the photo */
.fnx-plate.p0 {
  inset: -8px;
  border-radius: calc(var(--fnx-r) + 8px);
  border: 2px solid rgba(190, 232, 255, .8);
  box-shadow: 0 0 18px rgba(120, 200, 255, .7), inset 0 0 12px rgba(190, 232, 255, .35);
  transform: translateZ(30px);
}

/* glowing floor under the frame */
.fnx-ground {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -62px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77, 163, 232, .55), transparent);
  filter: blur(10px);
  transform: translateZ(-120px);
  pointer-events: none;
}

/* main image card */
.fnx-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--fnx-r);
  border: 2px solid rgba(255, 255, 255, .55);
  background: #062a47;
  box-shadow:
    0 0 34px rgba(77, 163, 232, .6),
    0 40px 70px -24px rgba(2, 14, 28, .75);
  transform: translateZ(0);
}

.fnx-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* glass gloss + bottom depth */
.fnx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(0deg, rgba(6, 42, 71, .30) 0%, rgba(6, 42, 71, 0) 30%);
}

/* "Live route" pill (top-right) */
.fnx-live {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(10, 52, 87, .55);
  border: 1.5px solid rgba(120, 200, 255, .8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(77, 163, 232, .6);
  transform: translateZ(70px) rotateZ(-5deg);
}

.fnx-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ad6ff;
  box-shadow: 0 0 10px #3ad6ff;
}

@keyframes fnxCardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes fnxWave {
  to { transform: translateX(-50%); }
}

/* =========================================================
   DESIGN ENHANCEMENTS
   ========================================================= */

/* ---------- ambient lighting over the whole hero ---------- */
.fnx-connect-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(520px 380px at 88% 18%, rgba(58, 155, 228, .22), transparent 70%),
    radial-gradient(480px 320px at 12% 95%, rgba(40, 120, 200, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 22%);
}

/* map blends softly into the background */
.image-map {
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 55%, transparent 100%);
}

/* ---------- feature columns ---------- */
.fnx-features-grid { counter-reset: fnxN; }

.fnx-feature-item {
  position: relative;
  counter-increment: fnxN;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  animation: fnxRise .8s cubic-bezier(.2, .7, .2, 1) backwards;
}
.fnx-feature-item:nth-child(1) { animation-delay: .10s; }
.fnx-feature-item:nth-child(2) { animation-delay: .25s; }
.fnx-feature-item:nth-child(3) { animation-delay: .40s; }


.fnx-feature-item:last-child::after { right: 6px; }

.fnx-feature-icon {
  color: #fff;
  border-width: 2px;
  background: linear-gradient(145deg, #12568f, #062642);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.fnx-feature-icon svg { width: 26px; height: 26px; display: block; }

/* .fnx-feature-sub { text-shadow: 0 0 18px rgba(103, 161, 231, .45); } */

.fnx-feature-bar { transition: width .35s ease, background .35s ease; }

/* hover: lift, glow, longer bar */
.fnx-feature-item:hover .fnx-feature-icon {
  /* transform: scale(1.08); */
  border-color: #8fd0ff;
  box-shadow: 0 0 0 5px rgba(58, 155, 228, .14), 0 0 32px rgba(58, 155, 228, .6);
}


/* ---------- right visual ---------- */
.fnx-plate.p2 { animation: fnxFrameGlow 4.5s ease-in-out infinite; }

/* light sheen sweeping over the photo */
/* .fnx-card::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -30%;
  width: 20%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-18deg);
  animation: fnxSheen 7s ease-in-out infinite 1.6s;
} */

/* stronger glow rim on the photo */
.fnx-card {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 0 40px rgba(77, 163, 232, .55),
    0 44px 80px -26px rgba(2, 14, 28, .85);
}

/* stage slides in (uses the separate "translate" property so your own transform is kept) */
.fnx-stage { animation: fnxStageIn 1s cubic-bezier(.2, .7, .2, 1) backwards .15s; }

/* live dot pulses */
.fnx-live::before { animation: fnxLivePulse 1.8s ease-in-out infinite; }

@keyframes fnxRise {
  from { opacity: 0; translate: 0 26px; }
}
@keyframes fnxStageIn {
  from { opacity: 0; translate: 60px 0; }
}
@keyframes fnxFrameGlow {
  0%, 100% { box-shadow: 0 0 26px rgba(77, 163, 232, .45), inset 0 0 22px rgba(160, 220, 255, .22); }
  50%      { box-shadow: 0 0 46px rgba(77, 163, 232, .85), inset 0 0 32px rgba(160, 220, 255, .38); }
}
@keyframes fnxSheen {
  0%        { left: -30%; }
  45%, 100% { left: 135%; }
}
@keyframes fnxLivePulse {
  0%, 100% { box-shadow: 0 0 6px #3ad6ff; opacity: .7; }
  50%      { box-shadow: 0 0 14px #3ad6ff, 0 0 0 5px rgba(58, 214, 255, .18); opacity: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1500px)
{
  .fnx-connect-container
  {
    /* height: 800px; */
    /* min-height: fit-content; */
  }
}
@media (max-width:1400px)
{
  .fnx-connect-container
  {
    height: 400px;
  }
  .fnx-connect-content {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0px 0px 30px 10px;
    margin-left: -20px;
    transform: translateY(-100px);
    }
   .fnx-feature-item h3
   {
    font-size: 24px;
   }
   .fnx-feature-item:last-child { border: none; padding-right: 35px; }
  .image-map {
    width: 500px;
    /* max-width: 80%; */
    height: 180px;
    top: 100px;
    left: -30px;
  }
}
@media (max-width:1200px)
{
  .fnx-features-grid
  {
    /* grid-template-columns: 1fr; */
  }
  .image-map
  {
    display: none;
  }
  .fnx-connect-container
  {
    height: auto;
  }
  .fnx-connect-content
  {
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .fnx-connect-hero { min-height: auto; }
  .fnx-connect-hero,
  .fnx-connect-container,
  .fnx-connect-visual {
    min-height: auto !important;
  }
  .fnx-connect-content
  {
    transform: translateY(0);
  }
  .fnx-feature-item:last-child
  {
    padding-right: 0;
  }
  .fnx-connect-container {
    /* display: flex;
    flex-direction: column; */
    min-height: auto;
  }

  .fnx-connect-hero
  { 
    min-height: auto;
    text-align: center; 
    background:linear-gradient(to right,#0b3d68e8, #0b3d68e1), url(https://www.farenexus.com/assets/img/FG-banner.webp);
    background-size: cover;
    background-position: center;
  }
  .fnx-feature-desc { padding: 0 5px; }

  .fnx-connect-container { min-height: auto; display: flex;}

  /* .fnx-connect-content { padding: 10px 24px 30px; } */

  .fnx-feature-item { margin-top: 10px; }
  .fnx-connect-visual {
    --fnx-r: 56px;
    --fnx-depth: .8;
    order: 1;
    width: 100%;
    margin-left: 0;
    height: clamp(340px, 62vw, 480px);
    min-height: 0 !important;
  }

  .fnx-stage {
    inset: 44px 9% 52px 9%;
    transform: translateY(35px);
  }

  .fnx-scene {
    transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, -8deg)) rotateZ(-1.5deg);
  }

  .fnx-connect-content {
    order: 2;
    margin-left: 0;
    padding: 30px 30px 50px 30px;
    text-align: center;
    /* transform: translateY(-35px); */
  }

  .fnx-feature-icon,
  .fnx-feature-bar { margin: auto; }

  .image-map {
    display: none;
    left: 0;
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .fnx-connect-hero
  { 
    min-height: auto;
    text-align: center; 
    background:linear-gradient(to right,#0b3d68e8, #0b3d68e1), url(https://farenexus.com/test-domain/fareNexusTesting/assets/img/new-BG/BG-final-1.webp);
    background-size: cover;
    background-position: center;
  }

  .fnx-feature-desc { padding: 0 5px; }

  .fnx-connect-container { min-height: auto; display: flex;}

  .fnx-feature-item { margin-top: 10px; }

  .fnx-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin: auto;
  }

  .fnx-feature-bar { margin: auto; }
}

@media (max-width: 820px) {
  .fnx-connect-hero { min-height: auto; overflow: hidden; }

  .fnx-connect-content {
    margin-left: 0;
    order: 2;
  }

  .image-map { max-width: 100%; left: 0; height: 180px; }

  .fnx-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
    align-items: first baseline;
  }

  .fnx-feature-item {
    padding-right: 10px;
    border-right: 1px solid #4f7fa899;
    border-bottom: none;
  }

  .fnx-feature-desc { font-size: 15.5px; }

  .fnx-connect-visual { order: 1; margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {

  .image-map { height: 150px; margin-top: 10px; }

  .fnx-features-grid { grid-template-columns: 1fr; gap: 22px; }

  .fnx-feature-item {
    border-right: none;
    border-bottom: 1px solid #4f7fa899;
    padding-right: 0;
    padding-bottom: 18px;
  }

  .fnx-feature-item:last-child { border-bottom: none; padding-bottom: 0; }

  .fnx-feature-icon,
  .fnx-feature-bar { margin: auto; }

  .fnx-connect-visual {
    --fnx-r: 36px;
    --fnx-depth: .5;
    height: clamp(300px, 86vw, 400px);
  }
  .fnx-feature-sub
  {
    margin: auto;
  }

  .fnx-stage { inset: 34px 9% 44px 7%; transform: translateY(20px); }

  .fnx-scene { transform: rotateX(2deg) rotateY(-5deg) rotateZ(-1deg); }

  .fnx-plate.p3 { inset: -22px -24px -16px -18px; }
  .fnx-plate.p2 { inset: -12px -12px -8px -10px; }

  .fnx-live { top: 10px; right: 10px; padding: 6px 12px; font-size: 12px; display: none; }

  .fnx-feature-item::after { font-size: 44px; right: 50%; transform: translateX(50%); top: -10px; }
  .fnx-feature-item:last-child::after { right: 50%; }
}

@media (max-width: 380px) {
  .fnx-connect-content { padding: 26px 14px 24px; }

  .fnx-feature-icon { width: 46px; height: 46px; font-size: 20px; }

  /* .fnx-feature-item h3 { font-size: 19px; } */
}

@media (hover: none) {
  .fnx-feature-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fnx-wave,
  .fnx-float,
  .fnx-feature-item,
  .fnx-stage,
  .fnx-plate.p2,
  .fnx-card::before,
  .fnx-live::before { animation: none; }

  .fnx-scene { transition: none; }
}

/* HOME PAGE SECTION CODE ENDS */