/* NEWSMANIA — isolated 3D demo preview */

.nm-preview.nm-dev3d-preview{
  position:relative !important;
  display:grid !important;
  grid-template-rows:68px minmax(0,1fr) 225px !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
  color:#f5f7f6 !important;
  background:
    radial-gradient(circle at 72% 38%,rgba(72,255,164,.15),transparent 27%),
    radial-gradient(circle at 15% 85%,rgba(73,99,255,.09),transparent 32%),
    linear-gradient(145deg,#030705 0%,#06110c 52%,#020403 100%) !important;
}

.nm-dev3d-preview *,
.nm-dev3d-preview *::before,
.nm-dev3d-preview *::after{
  box-sizing:border-box;
}

.nm-dev3d-preview .nm-preview-grid{
  position:absolute;
  inset:0;
  z-index:0;
  opacity:.2 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.038) 1px,transparent 1px) !important;
  background-size:32px 32px !important;
  pointer-events:none;
}

.nm-dev3d-nav{
  position:relative;
  z-index:10;
  display:flex;
  align-items:center;
  width:100%;
  padding:0 5%;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nm-dev3d-logo{
  color:#fff;
  font-family:var(--font-body);
  font-size:17px;
  font-weight:700;
  letter-spacing:-.05em;
  white-space:nowrap;
}

.nm-dev3d-logo span{
  color:#5cf0a6;
}

.nm-dev3d-links{
  display:flex;
  align-items:center;
  gap:26px;
  margin-left:auto;
}

.nm-dev3d-links span{
  color:rgba(255,255,255,.52);
  font-family:var(--font-body);
  font-size:9px;
  white-space:nowrap;
}

.nm-dev3d-nav button{
  width:auto;
  min-width:120px;
  height:34px;
  margin-left:30px;
  padding:0 18px;
  border:1px solid rgba(92,240,166,.42);
  border-radius:999px;
  color:#5cf0a6;
  background:rgba(92,240,166,.045);
  font-family:var(--font-body);
  font-size:8px;
  white-space:nowrap;
}

.nm-dev3d-main{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:3%;
  min-height:0;
  padding:3% 5% 2%;
}

.nm-dev3d-copy{
  min-width:0;
}

.nm-dev3d-copy>*{
  opacity:0;
  transform:translateY(20px);
  transition:
    opacity .8s ease,
    transform .9s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-kicker{
  display:block;
  margin-bottom:14px;
  color:#5cf0a6;
  font-family:var(--font-body);
  font-weight:700;
  font-size:9px;
  letter-spacing:.04em;
}

.nm-dev3d-copy h2{
  max-width:670px;
  margin:0;
  color:#fff;
  font-family:var(--font-body);
  font-size:clamp(25px,3.1vw,54px);
  font-weight:650;
  line-height:1.04;
  letter-spacing:-.045em;
}

.nm-dev3d-copy h2 em{
  display:block;
  margin-top:6px;
  color:#5cf0a6;
  font-style:normal;
}

.nm-dev3d-copy p{
  max-width:540px;
  margin:18px 0 0;
  color:rgba(255,255,255,.48);
  font-family:var(--font-body);
  font-size:clamp(9px,1vw,14px);
  line-height:1.6;
}

.nm-dev3d-actions{
  display:flex;
  gap:12px;
  margin-top:22px;
}

.nm-dev3d-actions button{
  width:auto;
  min-width:125px;
  height:38px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  color:#041009;
  background:#5cf0a6;
  font-family:var(--font-body);
  font-size:9px;
  white-space:nowrap;
  font-weight:700;
}

.nm-dev3d-actions button:nth-child(2){
  color:rgba(255,255,255,.72);
  background:rgba(255,255,255,.02);
}

.nm-dev3d-tech{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:21px;
}

.nm-dev3d-tech span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.025);
  font:7px/1 var(--font-code);
  letter-spacing:.1em;
}

/* 3D scene */

.nm-dev3d-scene{
  position:relative;
  width:92%;
  max-width:580px;
  aspect-ratio:1.28;
  justify-self:center;
  perspective:1100px;
  transform-style:preserve-3d;
  opacity:0;
  transform:scale(.72) rotateY(-12deg) rotateX(7deg);
  transition:
    opacity 1s ease,
    transform 1.2s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-platform{
  position:absolute;
  left:12%;
  right:8%;
  bottom:4%;
  height:24%;
  border:1px solid rgba(92,240,166,.3);
  border-radius:50%;
  background:
    radial-gradient(ellipse at center,rgba(92,240,166,.2),rgba(92,240,166,.04) 50%,transparent 72%);
  box-shadow:0 0 50px rgba(92,240,166,.12);
  transform:rotateX(70deg) translateZ(-30px);
}

.nm-dev3d-core{
  position:absolute;
  left:50%;
  top:45%;
  width:115px;
  height:115px;
  transform-style:preserve-3d;
  transform:translate(-50%,-50%) rotateX(-18deg) rotateY(28deg);
}

.nm-dev3d-core .face{
  position:absolute;
  inset:0;
  display:block;
  border:1px solid rgba(128,255,193,.55);
  background:
    linear-gradient(145deg,rgba(92,240,166,.55),rgba(11,69,43,.68));
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.08),
    0 0 32px rgba(92,240,166,.13);
  backdrop-filter:blur(8px);
}

.nm-dev3d-core .face-front{ transform:translateZ(57px); }
.nm-dev3d-core .face-back{ transform:rotateY(180deg) translateZ(57px); }
.nm-dev3d-core .face-left{ transform:rotateY(-90deg) translateZ(57px); }
.nm-dev3d-core .face-right{ transform:rotateY(90deg) translateZ(57px); }
.nm-dev3d-core .face-top{ transform:rotateX(90deg) translateZ(57px); }
.nm-dev3d-core .face-bottom{ transform:rotateX(-90deg) translateZ(57px); }

.nm-dev3d-orbit{
  position:absolute;
  left:50%;
  top:45%;
  display:block;
  border:1px solid rgba(92,240,166,.3);
  border-radius:50%;
  transform-style:preserve-3d;
}

.nm-dev3d-scene .orbit-one{
  width:73%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateX(72deg);
}

.nm-dev3d-scene .orbit-two{
  width:61%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateY(70deg);
}

.nm-dev3d-scene .orbit-three{
  width:81%;
  aspect-ratio:1;
  transform:translate(-50%,-50%) rotateX(45deg) rotateY(35deg);
}

.nm-dev3d-sphere{
  position:absolute;
  display:block;
  width:36px;
  height:36px;
  border-radius:50%;
  background:
    radial-gradient(circle at 30% 25%,#eafff4 0%,#65f5ad 15%,#12663f 50%,#03150c 100%);
  box-shadow:0 0 28px rgba(92,240,166,.38);
}

.nm-dev3d-scene .sphere-a{
  left:9%;
  top:17%;
}

.nm-dev3d-scene .sphere-b{
  right:8%;
  bottom:16%;
  width:25px;
  height:25px;
}

.nm-dev3d-float-card{
  position:absolute;
  z-index:8;
  min-width:110px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:12px;
  background:rgba(7,12,9,.82);
  box-shadow:
    0 20px 45px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(14px);
}

.nm-dev3d-float-card small,
.nm-dev3d-float-card strong{
  display:block;
}

.nm-dev3d-float-card small{
  margin-bottom:5px;
  color:rgba(255,255,255,.34);
  font-family:var(--font-body);
  font-size:8px;
  letter-spacing:.03em;
}

.nm-dev3d-float-card strong{
  color:#fff;
  font:700 11px/1.2 var(--font-body);
}

.nm-dev3d-scene .dev-card-code{
  left:-1%;
  bottom:9%;
  transform:translateZ(80px);
}

.nm-dev3d-scene .dev-card-score{
  right:-2%;
  top:7%;
  transform:translateZ(95px);
}

.nm-dev3d-scene .dev-card-score strong,
.nm-dev3d-scene .dev-card-status strong{
  color:#5cf0a6;
}

.nm-dev3d-scene .dev-card-status{
  right:7%;
  bottom:0;
  transform:translateZ(65px);
}

/* Service cards */

.nm-dev3d-services{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  min-height:0;
  padding:0 5% 3.5%;
}

.nm-dev3d-services article{
  position:relative;
  display:grid;
  grid-template-columns:105px minmax(0,1fr);
  grid-template-rows:auto auto 1fr;
  column-gap:18px;
  align-items:center;
  min-width:0;
  overflow:hidden;
  padding:20px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  color:#fff;
  background:
    radial-gradient(circle at 0 0,rgba(92,240,166,.1),transparent 45%),
    linear-gradient(145deg,rgba(255,255,255,.042),rgba(255,255,255,.015));
  box-shadow:0 18px 45px rgba(0,0,0,.18);
  opacity:0;
  transform:translateY(24px);
  transition:
    opacity .8s ease,
    transform .9s cubic-bezier(.16,1,.3,1);
}

.nm-dev3d-services article::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,#5cf0a6,transparent);
  opacity:.65;
}

.nm-service-3d{
  grid-row:1/4;
  position:relative;
  width:100px;
  height:100px;
  display:grid;
  place-items:center;
  transform-style:preserve-3d;
}

.nm-service-3d::before,
.nm-service-3d::after{
  content:"";
  position:absolute;
  inset:17px;
  border:1px solid rgba(92,240,166,.38);
  border-radius:15px;
  background:
    linear-gradient(145deg,rgba(92,240,166,.27),rgba(5,35,21,.16));
  box-shadow:
    0 20px 30px rgba(0,0,0,.3),
    inset 0 0 18px rgba(92,240,166,.08);
  transform:rotateX(58deg) rotateZ(45deg);
}

.nm-service-3d::after{
  inset:29px;
  border-color:rgba(255,255,255,.13);
  transform:rotateX(58deg) rotateZ(45deg) translateZ(18px);
}

.nm-service-3d span{
  position:relative;
  z-index:3;
  color:#5cf0a6;
  font:700 19px/1 var(--font-body);
  text-shadow:0 0 18px rgba(92,240,166,.45);
}

.nm-dev3d-services small{
  color:#5cf0a6;
  font:7px/1 var(--font-code);
}

.nm-dev3d-services strong{
  margin-top:7px;
  color:#fff;
  font-family:var(--font-body);
  font-size:15px;
}

.nm-dev3d-services p{
  align-self:start;
  max-width:96%;
  margin:7px 0 0;
  color:rgba(255,255,255,.38);
  font-family:var(--font-body);
  font-size:9px;
  line-height:1.45;
}

/* Every completed visual phase */

.nm-os[data-phase="css"] .nm-dev3d-copy>*,
.nm-os[data-phase="js"] .nm-dev3d-copy>*,
.nm-os[data-phase="php"] .nm-dev3d-copy>*,
.nm-os[data-phase="deploy"] .nm-dev3d-copy>*,
.nm-os[data-phase="online"] .nm-dev3d-copy>*{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(2){ transition-delay:.08s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(3){ transition-delay:.16s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(4){ transition-delay:.24s; }
.nm-os[data-phase="css"] .nm-dev3d-copy>*:nth-child(5){ transition-delay:.32s; }

.nm-os[data-phase="css"] .nm-dev3d-scene,
.nm-os[data-phase="js"] .nm-dev3d-scene,
.nm-os[data-phase="php"] .nm-dev3d-scene,
.nm-os[data-phase="deploy"] .nm-dev3d-scene,
.nm-os[data-phase="online"] .nm-dev3d-scene{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-services article,
.nm-os[data-phase="js"] .nm-dev3d-services article,
.nm-os[data-phase="php"] .nm-dev3d-services article,
.nm-os[data-phase="deploy"] .nm-dev3d-services article,
.nm-os[data-phase="online"] .nm-dev3d-services article{
  opacity:1;
  transform:none;
}

.nm-os[data-phase="css"] .nm-dev3d-services article:nth-child(2){ transition-delay:.12s; }
.nm-os[data-phase="css"] .nm-dev3d-services article:nth-child(3){ transition-delay:.24s; }

/* Motion phase */

.nm-os[data-phase="js"] .nm-dev3d-core,
.nm-os[data-phase="php"] .nm-dev3d-core,
.nm-os[data-phase="deploy"] .nm-dev3d-core,
.nm-os[data-phase="online"] .nm-dev3d-core{
  animation:nmPreviewCore 9s linear infinite;
}

.nm-os[data-phase="js"] .orbit-one,
.nm-os[data-phase="php"] .orbit-one,
.nm-os[data-phase="deploy"] .orbit-one,
.nm-os[data-phase="online"] .orbit-one{
  animation:nmPreviewOrbit1 8s linear infinite;
}

.nm-os[data-phase="js"] .orbit-two,
.nm-os[data-phase="php"] .orbit-two,
.nm-os[data-phase="deploy"] .orbit-two,
.nm-os[data-phase="online"] .orbit-two{
  animation:nmPreviewOrbit2 10s linear infinite reverse;
}

.nm-os[data-phase="js"] .orbit-three,
.nm-os[data-phase="php"] .orbit-three,
.nm-os[data-phase="deploy"] .orbit-three,
.nm-os[data-phase="online"] .orbit-three{
  animation:nmPreviewOrbit3 13s linear infinite;
}

.nm-os[data-phase="js"] .nm-dev3d-sphere,
.nm-os[data-phase="php"] .nm-dev3d-sphere,
.nm-os[data-phase="deploy"] .nm-dev3d-sphere,
.nm-os[data-phase="online"] .nm-dev3d-sphere{
  animation:nmPreviewSphere 3.4s ease-in-out infinite;
}

.nm-os[data-phase="js"] .nm-dev3d-float-card,
.nm-os[data-phase="php"] .nm-dev3d-float-card,
.nm-os[data-phase="deploy"] .nm-dev3d-float-card,
.nm-os[data-phase="online"] .nm-dev3d-float-card{
  animation:nmPreviewCard 3.8s ease-in-out infinite;
}

.nm-os[data-phase="js"] .nm-service-3d,
.nm-os[data-phase="php"] .nm-service-3d,
.nm-os[data-phase="deploy"] .nm-service-3d,
.nm-os[data-phase="online"] .nm-service-3d{
  animation:nmPreviewService 4s ease-in-out infinite;
}

@keyframes nmPreviewCore{
  from{ transform:translate(-50%,-50%) rotateX(-18deg) rotateY(28deg); }
  to{ transform:translate(-50%,-50%) rotateX(-18deg) rotateY(388deg); }
}

@keyframes nmPreviewOrbit1{
  to{ transform:translate(-50%,-50%) rotateX(72deg) rotateZ(360deg); }
}

@keyframes nmPreviewOrbit2{
  to{ transform:translate(-50%,-50%) rotateY(70deg) rotateZ(360deg); }
}

@keyframes nmPreviewOrbit3{
  to{ transform:translate(-50%,-50%) rotateX(45deg) rotateY(35deg) rotateZ(360deg); }
}

@keyframes nmPreviewSphere{
  50%{ margin-top:-9px; transform:scale(1.08); }
}

@keyframes nmPreviewCard{
  50%{ margin-top:-8px; }
}

@keyframes nmPreviewService{
  50%{ transform:translateY(-7px) rotateY(10deg); }
}

@media(max-width:900px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:54px minmax(0,1fr) 155px !important;
  }

  .nm-dev3d-links{
    display:none;
  }

  .nm-dev3d-main{
    grid-template-columns:1.1fr .9fr;
  }

  .nm-dev3d-copy h2{
    font-size:clamp(17px,3.5vw,29px);
  }

  .nm-dev3d-copy p{
    display:none;
  }

  .nm-dev3d-tech{
    display:none;
  }

  .nm-dev3d-core{
    width:72px;
    height:72px;
  }

  .nm-dev3d-core .face-front{ transform:translateZ(36px); }
  .nm-dev3d-core .face-back{ transform:rotateY(180deg) translateZ(36px); }
  .nm-dev3d-core .face-left{ transform:rotateY(-90deg) translateZ(36px); }
  .nm-dev3d-core .face-right{ transform:rotateY(90deg) translateZ(36px); }
  .nm-dev3d-core .face-top{ transform:rotateX(90deg) translateZ(36px); }
  .nm-dev3d-core .face-bottom{ transform:rotateX(-90deg) translateZ(36px); }

  .nm-dev3d-float-card{
    display:none;
  }

  .nm-dev3d-services{
    gap:8px;
  }

  .nm-dev3d-services article{
    display:block;
    padding:12px;
  }

  .nm-service-3d{
    display:none;
  }

  .nm-dev3d-services p{
    display:none;
  }
}

@media(max-width:600px){
  .nm-dev3d-nav button{
    min-width:auto;
    padding:0 11px;
    margin-left:auto;
  }

  .nm-dev3d-main{
    grid-template-columns:1fr .65fr;
    padding:3% 4%;
  }

  .nm-dev3d-actions button{
    min-width:auto;
    height:29px;
    padding:0 10px;
    font-size:7px;
  }

  .nm-dev3d-services strong{
    font-size:9px;
  }
}


/* =========================================================
   3D PREVIEW ENHANCEMENT — TYPOGRAPHY + CATEGORIES
   ========================================================= */

/* Make room for categories and service cards */
.nm-preview.nm-dev3d-preview{
  grid-template-rows:
    68px
    minmax(0,1fr)
    155px
    205px !important;
}

/* Premium headline composition */
.nm-dev3d-title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:720px !important;
  font-family:var(--font-body);
}

.nm-dev3d-title span{
  display:block;
}

.nm-dev3d-title .title-small{
  margin-bottom:3px;
  color:rgba(255,255,255,.45);
  font-size:clamp(15px,1.5vw,24px);
  font-weight:500;
  letter-spacing:-.025em;
}

.nm-dev3d-title .title-main{
  color:#fff;
  font-size:clamp(30px,3.6vw,62px);
  font-weight:700;
  line-height:.95;
  letter-spacing:-.055em;
  text-shadow:
    0 8px 35px rgba(0,0,0,.35),
    0 0 40px rgba(255,255,255,.025);
}

.nm-dev3d-title .title-accent{
  position:relative;
  margin-top:8px;
  color:#5cf0a6;
  font-size:clamp(27px,3.25vw,56px);
  font-weight:700;
  line-height:.98;
  letter-spacing:-.05em;
  text-shadow:
    0 0 28px rgba(92,240,166,.19),
    0 10px 40px rgba(0,0,0,.32);
}

.nm-dev3d-title .title-accent::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-9px;
  width:34%;
  height:2px;
  border-radius:99px;
  background:linear-gradient(
    90deg,
    #5cf0a6,
    rgba(92,240,166,.18),
    transparent
  );
  box-shadow:0 0 16px rgba(92,240,166,.35);
}

.nm-os[data-phase="css"] .nm-dev3d-title .title-main,
.nm-os[data-phase="js"] .nm-dev3d-title .title-main,
.nm-os[data-phase="php"] .nm-dev3d-title .title-main,
.nm-os[data-phase="deploy"] .nm-dev3d-title .title-main,
.nm-os[data-phase="online"] .nm-dev3d-title .title-main{
  animation:nmTitleReveal .9s cubic-bezier(.16,1,.3,1) both;
}

.nm-os[data-phase="css"] .nm-dev3d-title .title-accent,
.nm-os[data-phase="js"] .nm-dev3d-title .title-accent,
.nm-os[data-phase="php"] .nm-dev3d-title .title-accent,
.nm-os[data-phase="deploy"] .nm-dev3d-title .title-accent,
.nm-os[data-phase="online"] .nm-dev3d-title .title-accent{
  animation:nmTitleReveal .95s .12s cubic-bezier(.16,1,.3,1) both;
}

@keyframes nmTitleReveal{
  from{
    opacity:0;
    transform:translateY(25px);
    filter:blur(8px);
  }
  to{
    opacity:1;
    transform:none;
    filter:none;
  }
}

/* Categories section */
.nm-dev3d-categories{
  position:relative;
  z-index:5;
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:20px;
  align-items:stretch;
  min-height:0;
  padding:0 5% 16px;
}

.nm-category-heading{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:16px 0;
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
}

.nm-category-heading span{
  margin-bottom:7px;
  color:#5cf0a6;
  font-family:var(--font-body);
  font-size:8px;
  letter-spacing:.04em;
}

.nm-category-heading strong{
  color:#fff;
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.1;
}

.nm-category-track{
  display:grid;
  grid-template-columns:repeat(6,minmax(105px,1fr));
  gap:8px;
  min-width:0;
}

.nm-category-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-width:0;
  overflow:hidden;
  padding:12px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  color:#fff;
  background:
    radial-gradient(circle at 50% 5%,rgba(92,240,166,.08),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.038),rgba(255,255,255,.012));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 12px 30px rgba(0,0,0,.12);
  opacity:0;
  transform:translateY(18px);
  transition:
    border-color .35s ease,
    background .35s ease,
    transform .8s cubic-bezier(.16,1,.3,1),
    opacity .7s ease;
}

.nm-category-card:hover{
  border-color:rgba(92,240,166,.33);
  background:
    radial-gradient(circle at 50% 5%,rgba(92,240,166,.16),transparent 47%),
    linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  transform:translateY(-4px) !important;
}

.nm-category-card::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,#5cf0a6,transparent);
  opacity:.3;
}

.nm-category-index{
  position:absolute;
  top:9px;
  left:10px;
  color:rgba(255,255,255,.25);
  font:5px var(--font-code);
}

.nm-category-icon{
  position:relative;
  width:42px;
  height:42px;
  margin:0 auto 10px;
  transform-style:preserve-3d;
}

.nm-category-icon::before,
.nm-category-icon::after{
  content:"";
  position:absolute;
  inset:7px;
  border:1px solid rgba(92,240,166,.42);
  border-radius:8px;
  background:linear-gradient(
    145deg,
    rgba(92,240,166,.21),
    rgba(7,45,27,.06)
  );
  box-shadow:
    0 10px 20px rgba(0,0,0,.25),
    inset 0 0 15px rgba(92,240,166,.05);
  transform:rotateX(57deg) rotateZ(45deg);
}

.nm-category-icon::after{
  inset:13px;
  transform:rotateX(57deg) rotateZ(45deg) translateZ(12px);
}

.nm-category-icon i{
  position:absolute;
  z-index:2;
  display:block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#5cf0a6;
  box-shadow:0 0 12px rgba(92,240,166,.7);
}

.nm-category-icon i:nth-child(1){
  left:7px;
  top:18px;
}

.nm-category-icon i:nth-child(2){
  right:7px;
  top:11px;
}

.nm-category-icon i:nth-child(3){
  right:10px;
  bottom:7px;
}

.nm-category-card strong{
  overflow:hidden;
  color:#fff;
  font-family:var(--font-body);
  font-size:10px;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.nm-category-card small{
  overflow:hidden;
  margin-top:4px;
  color:rgba(255,255,255,.32);
  font-family:var(--font-body);
  font-size:7px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Variation between category objects */
.category-saas .nm-category-icon{
  transform:rotateY(28deg);
}

.category-corporate .nm-category-icon{
  transform:rotateX(-12deg) rotateY(-22deg);
}

.category-marketplace .nm-category-icon{
  transform:rotateZ(15deg);
}

.category-ai .nm-category-icon::before{
  border-radius:50%;
}

.category-booking .nm-category-icon{
  transform:rotateY(-25deg);
}

/* Category reveal animation */
.nm-os[data-phase="css"] .nm-category-card,
.nm-os[data-phase="js"] .nm-category-card,
.nm-os[data-phase="php"] .nm-category-card,
.nm-os[data-phase="deploy"] .nm-category-card,
.nm-os[data-phase="online"] .nm-category-card{
  opacity:1;
  transform:none;
}

.nm-category-card:nth-child(2){ transition-delay:.07s; }
.nm-category-card:nth-child(3){ transition-delay:.14s; }
.nm-category-card:nth-child(4){ transition-delay:.21s; }
.nm-category-card:nth-child(5){ transition-delay:.28s; }
.nm-category-card:nth-child(6){ transition-delay:.35s; }

.nm-os[data-phase="js"] .nm-category-icon,
.nm-os[data-phase="php"] .nm-category-icon,
.nm-os[data-phase="deploy"] .nm-category-icon,
.nm-os[data-phase="online"] .nm-category-icon{
  animation:nmCategoryFloat 3.4s ease-in-out infinite;
}

.nm-category-card:nth-child(2) .nm-category-icon{ animation-delay:.2s !important; }
.nm-category-card:nth-child(3) .nm-category-icon{ animation-delay:.4s !important; }
.nm-category-card:nth-child(4) .nm-category-icon{ animation-delay:.6s !important; }
.nm-category-card:nth-child(5) .nm-category-icon{ animation-delay:.8s !important; }
.nm-category-card:nth-child(6) .nm-category-icon{ animation-delay:1s !important; }

@keyframes nmCategoryFloat{
  50%{
    margin-top:-5px;
    filter:brightness(1.18);
  }
}

/* Make the main service cards slightly more premium */
.nm-dev3d-services article{
  border-radius:18px;
  background:
    radial-gradient(circle at 0 0,rgba(92,240,166,.12),transparent 43%),
    linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}

.nm-dev3d-services article:hover{
  border-color:rgba(92,240,166,.28);
  transform:translateY(-5px) !important;
}

/* Responsive */
@media(max-width:1150px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:
      58px
      minmax(0,1fr)
      125px
      170px !important;
  }

  .nm-dev3d-categories{
    grid-template-columns:110px minmax(0,1fr);
    gap:12px;
  }

  .nm-category-track{
    grid-template-columns:repeat(3,1fr);
    grid-template-rows:repeat(2,1fr);
  }

  .nm-category-card{
    padding:8px 10px;
  }

  .nm-category-icon{
    display:none;
  }
}

@media(max-width:760px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:
      48px
      minmax(0,1fr)
      96px
      130px !important;
  }

  .nm-dev3d-title .title-small{
    font-size:9px;
  }

  .nm-dev3d-title .title-main{
    font-size:clamp(18px,4.2vw,27px);
  }

  .nm-dev3d-title .title-accent{
    font-size:clamp(17px,4vw,25px);
  }

  .nm-dev3d-categories{
    display:block;
    padding:0 4% 10px;
    overflow:hidden;
  }

  .nm-category-heading{
    display:none;
  }

  .nm-category-track{
    display:flex;
    gap:7px;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .nm-category-track::-webkit-scrollbar{
    display:none;
  }

  .nm-category-card{
    min-width:105px;
    height:78px;
    flex:none;
  }
}


/* =========================================================
   FULL DEMO WEBSITE — HERO + PROJECTS + CAPABILITIES + STATS
   ========================================================= */

.nm-preview.nm-dev3d-preview{
  display:block !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scroll-behavior:smooth;
  scrollbar-width:none;
}

.nm-preview.nm-dev3d-preview::-webkit-scrollbar{
  display:none;
}

.nm-dev3d-nav{
  position:sticky;
  top:0;
  z-index:50;
  height:68px;
  background:rgba(3,8,5,.84);
  backdrop-filter:blur(20px);
}

.nm-dev3d-main{
  min-height:calc(100% - 68px);
  padding-top:5%;
  padding-bottom:5%;
}

/* მოკლე Hero სათაური */

.nm-dev3d-title-short{
  max-width:620px !important;
}

.nm-dev3d-title-short .title-small{
  font-size:clamp(13px,1.35vw,21px);
}

.nm-dev3d-title-short .title-main{
  font-size:clamp(31px,4vw,66px);
  line-height:.93;
}

.nm-dev3d-title-short .title-accent{
  margin-top:10px;
  font-size:clamp(28px,3.5vw,58px);
}

.nm-dev3d-short-desc{
  max-width:450px !important;
  font-size:clamp(8px,.9vw,13px) !important;
}

/* საერთო შიდა სექციები */

.nm-demo-projects,
.nm-demo-capabilities,
.nm-demo-stats{
  position:relative;
  z-index:4;
  margin:0 5%;
}

.nm-demo-projects{
  padding:65px 0 50px;
  border-top:1px solid rgba(255,255,255,.08);
}

.nm-demo-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:28px;
}

.nm-demo-section-head small,
.nm-capability-title small{
  display:block;
  margin-bottom:7px;
  color:#5cf0a6;
  font-family:var(--font-body);
  font-size:8px;
  letter-spacing:.04em;
}

.nm-demo-section-head strong,
.nm-capability-title strong{
  color:#fff;
  font-family:var(--font-body);
  font-size:clamp(18px,2.2vw,34px);
  line-height:1.05;
}

.nm-demo-section-head>span{
  color:rgba(255,255,255,.28);
  font:7px var(--font-code);
}

/* პროექტების ბარათები */

.nm-demo-project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.nm-demo-project{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:
    radial-gradient(circle at 20% 0%,rgba(92,240,166,.08),transparent 40%),
    rgba(255,255,255,.025);
  box-shadow:0 20px 50px rgba(0,0,0,.22);
  transition:
    transform .5s cubic-bezier(.16,1,.3,1),
    border-color .4s ease;
}

.nm-demo-project:hover{
  transform:translateY(-7px) rotateX(2deg);
  border-color:rgba(92,240,166,.3);
}

.nm-project-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.nm-project-top span{
  color:#5cf0a6;
  font-family:var(--font-body);
  font-size:8px;
  letter-spacing:.03em;
}

.nm-project-top i{
  color:rgba(255,255,255,.35);
  font-style:normal;
}

.nm-project-screen{
  position:relative;
  height:150px;
  margin-bottom:15px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    #07100c;
  background-size:18px 18px;
}

.nm-demo-project>strong{
  display:block;
  color:#fff;
  font-size:12px;
}

.nm-demo-project>small{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.3);
  font-family:var(--font-body);
  font-size:8px;
}

/* Ecommerce screen */

.project-commerce .nm-project-screen{
  display:grid;
  grid-template-columns:25% 1fr;
  gap:9px;
  padding:12px;
}

.nm-screen-sidebar{
  border-radius:7px;
  background:linear-gradient(180deg,rgba(92,240,166,.26),rgba(92,240,166,.04));
}

.nm-screen-content{
  display:grid;
  grid-template-rows:8px 8px 1fr;
  gap:8px;
}

.nm-screen-content span{
  display:block;
  width:75%;
  border-radius:4px;
  background:rgba(255,255,255,.18);
}

.nm-screen-content span:nth-child(2){
  width:48%;
  opacity:.5;
}

.nm-screen-content div{
  border-radius:8px;
  background:
    radial-gradient(circle at 65% 35%,rgba(92,240,166,.48),transparent 23%),
    linear-gradient(145deg,#123c28,#07120d);
}

/* AI screen */

.project-ai .nm-project-screen{
  display:grid;
  place-items:center;
}

.nm-ai-ring{
  position:absolute;
  width:95px;
  height:95px;
  border:1px solid rgba(92,240,166,.36);
  border-radius:50%;
  animation:nmDemoRing 7s linear infinite;
}

.nm-ai-ring::before,
.nm-ai-ring::after{
  content:"";
  position:absolute;
  border:1px solid rgba(92,240,166,.18);
  border-radius:50%;
}

.nm-ai-ring::before{
  inset:13px;
}

.nm-ai-ring::after{
  inset:29px;
}

.nm-ai-core{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(145deg,#79ffc1,#126a43);
  box-shadow:0 0 35px rgba(92,240,166,.36);
  transform:rotate(45deg);
  animation:nmDemoCore 4s ease-in-out infinite;
}

.nm-ai-data{
  position:absolute;
  right:12px;
  bottom:12px;
  width:55px;
}

.nm-ai-data span{
  display:block;
  height:4px;
  margin-top:5px;
  border-radius:4px;
  background:rgba(255,255,255,.16);
}

.nm-ai-data span:nth-child(2){ width:70%; }
.nm-ai-data span:nth-child(3){ width:45%; }

@keyframes nmDemoRing{
  to{ transform:rotate(360deg); }
}

@keyframes nmDemoCore{
  50%{ transform:rotate(135deg) scale(1.1); }
}

/* Medical screen */

.project-medical .nm-project-screen{
  padding:13px;
}

.nm-medical-card{
  position:absolute;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:
    radial-gradient(circle at 70% 20%,rgba(92,240,166,.17),transparent 36%),
    rgba(255,255,255,.04);
}

.nm-medical-card.main{
  left:12px;
  top:12px;
  width:60%;
  height:75%;
}

.nm-medical-card.small-one{
  right:12px;
  top:12px;
  width:28%;
  height:34%;
}

.nm-medical-card.small-two{
  right:12px;
  bottom:12px;
  width:28%;
  height:34%;
}

/* Capabilities */

.nm-demo-capabilities{
  display:grid;
  grid-template-columns:1fr 1.65fr;
  gap:45px;
  padding:60px 0;
  border-top:1px solid rgba(255,255,255,.08);
}

.nm-capability-title{
  align-self:start;
}

.nm-capability-list{
  border-top:1px solid rgba(255,255,255,.09);
}

.nm-capability-list article{
  display:grid;
  grid-template-columns:35px 1fr auto;
  align-items:center;
  gap:15px;
  padding:16px 5px;
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:padding-left .4s ease;
}

.nm-capability-list article:hover{
  padding-left:13px;
}

.nm-capability-list span{
  color:#5cf0a6;
  font:6px var(--font-code);
}

.nm-capability-list strong{
  color:#fff;
  font-size:11px;
}

.nm-capability-list small{
  color:rgba(255,255,255,.3);
  font-family:var(--font-body);
  font-size:8px;
}

/* Stats */

.nm-demo-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:60px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.02);
}

.nm-demo-stats article{
  padding:25px;
  border-right:1px solid rgba(255,255,255,.08);
}

.nm-demo-stats article:last-child{
  border-right:0;
}

.nm-demo-stats strong{
  display:block;
  color:#5cf0a6;
  font-family:var(--font-body);
  font-size:clamp(22px,3vw,42px);
}

.nm-demo-stats span{
  display:block;
  margin-top:8px;
  color:rgba(255,255,255,.35);
  font-family:var(--font-body);
  font-size:8px;
}

/* ძველი categories/services ქვემოთ უფრო კომპაქტური */

.nm-dev3d-categories{
  margin-top:20px;
}

.nm-dev3d-services{
  padding-top:40px;
  padding-bottom:60px;
}

/* Responsive */

@media(max-width:900px){
  .nm-demo-project-grid{
    grid-template-columns:1fr 1fr;
  }

  .nm-demo-project:nth-child(3){
    grid-column:1/-1;
  }

  .nm-demo-capabilities{
    grid-template-columns:1fr;
    gap:25px;
  }

  .nm-demo-stats{
    grid-template-columns:1fr 1fr;
  }

  .nm-demo-stats article:nth-child(2){
    border-right:0;
  }

  .nm-demo-stats article:nth-child(-n+2){
    border-bottom:1px solid rgba(255,255,255,.08);
  }
}

@media(max-width:600px){
  .nm-dev3d-main{
    min-height:calc(100% - 54px);
  }

  .nm-demo-projects,
  .nm-demo-capabilities,
  .nm-demo-stats{
    margin-left:4%;
    margin-right:4%;
  }

  .nm-demo-project-grid{
    grid-template-columns:1fr;
  }

  .nm-demo-project:nth-child(3){
    grid-column:auto;
  }

  .nm-project-screen{
    height:115px;
  }

  .nm-capability-list article{
    grid-template-columns:25px 1fr;
  }

  .nm-capability-list small{
    display:none;
  }
}


/* =========================================================
   HERO OVERLAP FIX + REMOVE GREEN SPHERES
   ========================================================= */

/* keep text safely on the left */
.nm-dev3d-main{
  grid-template-columns:minmax(0, .92fr) minmax(420px, 1.08fr) !important;
  gap:6% !important;
}

.nm-dev3d-copy{
  position:relative;
  z-index:12;
  max-width:690px;
  padding-right:10px;
}

/* move 3D scene clearly to the right */
.nm-dev3d-scene{
  justify-self:end !important;
  width:88% !important;
  max-width:560px !important;
  margin-right:2% !important;
  transform-origin:center right;
}

/* ensure scene and cards never cover headline */
.nm-dev3d-core{
  left:55% !important;
}

.nm-dev3d-orbit{
  left:55% !important;
}

.nm-dev3d-platform{
  left:20% !important;
  right:0 !important;
}

.nm-dev3d-scene .dev-card-code{
  left:7% !important;
  bottom:5% !important;
}

.nm-dev3d-scene .dev-card-score{
  right:-1% !important;
  top:5% !important;
}

.nm-dev3d-scene .dev-card-status{
  right:5% !important;
  bottom:-1% !important;
}

/* remove the green spheres completely */
.nm-dev3d-sphere,
.sphere-a,
.sphere-b{
  display:none !important;
}

/* reduce oversized heading slightly so it never collides */
.nm-dev3d-title .title-main{
  font-size:clamp(30px,3.45vw,58px) !important;
  line-height:.96 !important;
}

.nm-dev3d-title .title-accent{
  font-size:clamp(28px,3.15vw,53px) !important;
  line-height:.98 !important;
}

/* make description cleaner */
.nm-dev3d-short-desc{
  max-width:500px !important;
  line-height:1.55 !important;
}

/* extra breathing space between copy and scene */
.nm-dev3d-actions,
.nm-dev3d-tech{
  position:relative;
  z-index:14;
}

/* tablet */
@media(max-width:1100px){
  .nm-dev3d-main{
    grid-template-columns:minmax(0,1fr) minmax(320px,.9fr) !important;
    gap:3% !important;
  }

  .nm-dev3d-title .title-main{
    font-size:clamp(25px,3.8vw,44px) !important;
  }

  .nm-dev3d-title .title-accent{
    font-size:clamp(23px,3.5vw,40px) !important;
  }

  .nm-dev3d-scene{
    width:95% !important;
    margin-right:0 !important;
  }
}

/* mobile: stack vertically so nothing overlaps */
@media(max-width:760px){
  .nm-dev3d-main{
    grid-template-columns:1fr !important;
    grid-template-rows:auto auto !important;
    gap:20px !important;
    align-items:start !important;
  }

  .nm-dev3d-copy{
    max-width:none !important;
    padding-right:0 !important;
  }

  .nm-dev3d-scene{
    width:78% !important;
    max-width:360px !important;
    justify-self:center !important;
    margin:0 auto !important;
  }

  .nm-dev3d-title .title-main{
    font-size:clamp(24px,8vw,38px) !important;
  }

  .nm-dev3d-title .title-accent{
    font-size:clamp(22px,7vw,34px) !important;
  }

  .nm-dev3d-float-card{
    display:none !important;
  }
}


/* =========================================================
   HERO SCROLL FIX — KEEP THE DEMO INSIDE ONE VIEWPORT
   ========================================================= */

/* The "FULL DEMO WEBSITE" block above turns the preview into a tall
   scrollable page (display:block + overflow-y:auto) and stacks in
   extra sections (projects/capabilities/stats/services) that never
   fit one screen. Restore the fixed nav / hero / categories grid so
   nothing needs internal scrolling and nothing can auto-scroll. */
.nm-preview.nm-dev3d-preview{
  display:grid !important;
  grid-template-rows:68px minmax(0,1fr) 190px !important;
  overflow:hidden !important;
}

.nm-dev3d-main{
  min-height:0 !important;
  padding:3% 5% 2% !important;
}

.nm-dev3d-categories{
  margin-top:0 !important;
  padding:0 5% !important;
}

/* these "full site" sections were added for the scrolling mockup and
   don't fit a single-viewport preview — keep them out of the flow */
.nm-demo-projects,
.nm-demo-capabilities,
.nm-demo-stats,
.nm-dev3d-services{
  display:none !important;
}

@media(max-width:1150px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:58px minmax(0,1fr) 160px !important;
  }
}

@media(max-width:900px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:54px minmax(0,1fr) 150px !important;
  }
}

@media(max-width:760px){
  .nm-preview.nm-dev3d-preview{
    grid-template-rows:48px minmax(0,1fr) 130px !important;
  }
}
