
  html, body { margin:0; padding:0; }
  #ngs-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
  }
  #ngs-intro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,7,18,0.55);
    -webkit-backdrop-filter: blur(28px) saturate(120%);
    backdrop-filter: blur(28px) saturate(120%);
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  #ngs-intro-backdrop.ngs-fade-out {
    opacity: 0;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
  /* only this element travels into the nav logo slot */
  #ngs-intro-stage {
    position: absolute;
    inset: 0;
    transition: transform 0.9s cubic-bezier(.65,0,.35,1), opacity 0.5s ease 0.35s;
    will-change: transform, opacity;
  }
  #ngs-intro-stage.ngs-intro-collapsed { opacity: 0; }
  #ngs-intro canvas {
    display: block;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.95)) drop-shadow(0 0 26px rgba(255,255,255,0.75)) drop-shadow(0 0 52px rgba(210,225,255,0.5));
  }
  #ngs-intro-label {
    position: absolute;
    left: 50%;
    top: 84%;
    transform: translate(-50%, 0);
    max-width: 92vw;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(15px, 5.2vw, 32px);
    letter-spacing: 0.34em;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255,255,255,0.65);
    opacity: 0;
    transition: opacity 0.6s ease;
    white-space: nowrap;
  }
  #ngs-intro-label.ngs-label-visible { opacity: 0.92; }
  #ngs-intro-label.ngs-fade-out { opacity: 0 !important; transition: opacity 0.4s ease; }
  #ngs-intro-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 46%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.4) 32%, rgba(255,255,255,0) 64%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  #ngs-intro-flash.ngs-flash-active { opacity: 1; }
  #ngs-intro.ngs-intro-collapsed { display: none; }

  .ngs-logo-canvas { opacity: 0; transition: opacity 0.5s ease; }
  .ngs-logo-canvas.ngs-reveal { opacity: 1; }

  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .ngs-root {
    font-family: 'Space Grotesk', sans-serif;
    background: #030712;
    color: #f0f4ff;
    overflow-x: hidden;
    min-height: 100vh;
  }

  /* NAV */
  .ngs-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(139,92,246,0.15);
  }
.ngs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e2e8ff;
}

.ngs-logo-img {
  height: 100px;   /* same size as old SVG */
  width: auto;    /* keep proportions */
  display: block;
}

.ngs-logo-canvas {
  height: 80px;
  width: 50px;
  display: block;
  flex-shrink: 0;
}
.ngs-logo-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(1.15) drop-shadow(0 0 4px rgba(255,255,255,0.95)) drop-shadow(0 0 10px rgba(210,225,255,0.7));
}


  .ngs-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .ngs-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
  }
  .ngs-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #e2e8ff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .ngs-nav-toggle[aria-expanded="true"] .ngs-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ngs-nav-toggle[aria-expanded="true"] .ngs-nav-toggle-bar:nth-child(2) { opacity: 0; }
  .ngs-nav-toggle[aria-expanded="true"] .ngs-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .ngs-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  .ngs-nav-links a {
    color: #94a3c8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.2s;
  }
  .ngs-nav-links a:hover { color: #a78bfa; }
  .ngs-nav-cta {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
  }

  /* HERO */
  .ngs-hero {
    position: relative;
    min-height: min(92vh, 780px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
  }

  .ngs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* 3D perspective grid floor */
  .grid-floor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
  }

  /* Orb glows */
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: orbPulse 6s ease-in-out infinite alternate;
  }
  .orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -120px; left: -100px; }
  .orb-2 { width: 400px; height: 400px; background: #3b82f6; top: 50px; right: -80px; animation-delay: 2s; }
  .orb-3 { width: 300px; height: 300px; background: #06b6d4; bottom: 80px; left: 20%; animation-delay: 4s; }

  @keyframes orbPulse {
    from { transform: scale(1) translateY(0); opacity: 0.28; }
    to { transform: scale(1.12) translateY(-18px); opacity: 0.42; }
  }

  .ngs-hero-content { position: relative; z-index: 2; max-width: 820px; }

  .ngs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.35);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-family: 'Space Mono', monospace;
    color: #a78bfa;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
  }
  .ngs-eyebrow-dot {
    width: 6px; height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: blink 1.4s ease-in-out infinite;
  }
  @keyframes blink {
    0%,100% { opacity: 1; } 50% { opacity: 0.3; }
  }

  .ngs-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #f0f4ff;
  }
  .ngs-hero h1 .accent {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 60%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .ngs-hero-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
  }
  .ngs-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 28px rgba(124,58,237,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.55); }
  .btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #e2e8ff;
    border: 1px solid rgba(255,255,255,0.28);
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(167,139,250,0.4); }

  /* STATS STRIP */
  .ngs-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 900px;
    margin-top: 4rem;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    overflow: hidden;
  }
  .stat-item {
    padding: 1.5rem 2.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.07);
    flex: 1;
  }
  .stat-item:last-child { border-right: none; }
  .stat-num {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
  }

  /* COURSES */
  .section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .ngs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
  }
  .section-header-center {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 3.5rem;
  }
  .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #a78bfa;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }
  .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #f0f4ff;
    margin-bottom: 1rem;
  }
  .section-sub {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 480px;
    line-height: 1.7;
  }
  .section-header { margin-bottom: 3.5rem; }

  /* Course cards */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .course-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
  }
  .course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; height: 2px;
    background: var(--card-accent, linear-gradient(90deg, #7c3aed, #38bdf8));
    opacity: 0;
    transition: opacity 0.25s;
  }
  .course-card:hover {
    border-color: rgba(167,139,250,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4);
  }
  .course-card:hover::before { opacity: 1; }

  .card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 22px;
  }

  .card-tag {
    display: inline-block;
    font-size: 10px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    font-weight: 700;
  }
  .tag-cert { background: rgba(124,58,237,0.18); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
  .tag-class { background: rgba(59,130,246,0.18); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
  .tag-skill { background: rgba(6,182,212,0.18); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }

  .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8ff;
    margin-bottom: 0.5rem;
  }
  .card-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
  .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
  }
  .card-sessions { color: #475569; }
  .card-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(124,58,237,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 14px;
  }

  /* 3D FLOATING FEATURE BAND */
  .feature-band {
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(79,70,229,0.05) 50%, rgba(6,182,212,0.06) 100%);
    border-top: 1px solid rgba(124,58,237,0.12);
    border-bottom: 1px solid rgba(6,182,212,0.1);
    padding: 5rem 2rem;
  }
  .feature-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .feature-visual {
    position: relative;
    height: 340px;
  }

  /* 3D card stack */
  .card-stack {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .stack-card {
    position: absolute;
    width: 260px;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
  }
  .sc1 {
    background: rgba(124,58,237,0.2);
    transform: rotate(-8deg) translateY(40px) translateX(-30px);
    z-index: 1;
  }
  .sc2 {
    background: rgba(79,70,229,0.25);
    transform: rotate(-3deg) translateY(15px);
    z-index: 2;
  }
  .sc3 {
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(167,139,250,0.3);
    transform: rotate(2deg) translateY(-10px) translateX(20px);
    z-index: 3;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2);
  }
  .sc-label { font-size: 10px; color: #a78bfa; font-family: 'Space Mono', monospace; letter-spacing: 0.1em; margin-bottom: 8px; }
  .sc-big { font-size: 1.8rem; font-weight: 700; color: #f0f4ff; }
  .sc-sub { font-size: 12px; color: #64748b; margin-top: 4px; }
  .sc-progress {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
  }
  .sc-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #7c3aed, #38bdf8);
    width: 72%;
  }
  .sc-chips {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
  }
  .sc-chip {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(167,139,250,0.15);
    color: #a78bfa;
    font-family: 'Space Mono', monospace;
  }

  .feature-text {}
  .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
  }
  .feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .feature-dot {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 16px;
  }
  .feature-item-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8ff;
    margin-bottom: 3px;
  }
  .feature-item-text p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
  }

  /* PROCESS STEPS */
  .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .process-step {
    background: #030712;
    padding: 2rem 1.5rem;
    position: relative;
  }
  .ps-num {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #334155;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }
  .ps-icon {
    font-size: 24px;
    margin-bottom: 1rem;
  }
  .ps-title { font-size: 17px; font-weight: 600; color: #e2e8ff; margin-bottom: 0.5rem; }
  .ps-desc { font-size: 16px; color: #64748b; line-height: 1.6; }

  /* CTA BAND */
  .cta-band {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(124,58,237,0.15) 0%, transparent 70%);
  }
  .cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
  .cta-band h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f0f4ff;
    margin-bottom: 1rem;
  }
  .cta-band p {
    color: #64748b;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    line-height: 1.7;
  }
  .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

  /* ABOUT */
  html {
  scroll-behavior: smooth;
}

#about {
  scroll-margin-top: 90px;
}

.ngs-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.ngs-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

 .ngs-member {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(167, 139, 250, 0.3);
      border-radius: 12px;
      padding: 1.5rem;
      text-align: center;
      transition: transform 0.3s ease;
    }

    .ngs-member:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    }


.ngs-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e2e8ff;
  margin-bottom: 0.35rem;
}

.ngs-name {
  font-size: 1.00rem;
  color: #94a3b8;
  line-height: 1.6;
}

.ngs-nav-links a {
  scroll-behavior: smooth;
}

/*Enroll form*/
.ngs-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.ngs-modal.ngs-active {
  display: flex;
}

.ngs-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(8px);
}

.ngs-modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(14px, 2vw, 18px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ngs-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.ngs-modal-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 0.5rem;
}

.ngs-modal-subtitle {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.ngs-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.ngs-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.ngs-form-group.ngs-full {
  grid-column: 1 / -1;
}

.ngs-form-group label {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.ngs-form-group input,
.ngs-form-group textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f4ff;
  border-radius: 10px;
  padding: clamp(0.8rem, 1.8vw, 0.95rem) clamp(0.9rem, 2vw, 1rem);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.ngs-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.ngs-form-group input:focus,
.ngs-form-group textarea:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.ngs-form-submit {
  margin-top: 1.25rem;
  width: 100%;
}

/* =========================================================
   POLISH LAYER — scroll reveals, ambient motion, micro-interactions
   ========================================================= */

/* Scroll reveal system */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].in-view { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].in-view { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* Scroll progress bar */
#ngs-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #38bdf8, #34d399);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(124,58,237,0.7);
  pointer-events: none;
}

/* Cursor ambient glow */
#ngs-cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, rgba(56,189,248,0.06) 42%, transparent 72%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
#ngs-cursor-glow.ngs-glow-active { opacity: 1; }

/* Nav: scrolled state + animated underlines */
.ngs-nav {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.ngs-nav.ngs-scrolled {
  background: rgba(8, 11, 22, 0.88);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-bottom-color: rgba(139,92,246,0.28);
}
.ngs-nav-links a { position: relative; display: inline-block; }
.ngs-nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #a78bfa, #38bdf8);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.16,1,.3,1);
}
.ngs-nav-links a:hover::after { width: 100%; }

/* Nav CTA + hero buttons: subtle press feedback and sheen */
.ngs-nav-cta, .btn-primary, .btn-ghost {
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.ngs-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(124,58,237,0.45); }
.ngs-nav-cta:active, .btn-primary:active { transform: translateY(0) scale(0.97); }

/* Hero accent: slow gradient shimmer */
.ngs-hero h1 .accent {
  background-size: 200% 200%;
  animation: ngsGradientShift 7s ease infinite;
}
@keyframes ngsGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Eyebrow badge: gentle pulse border */
.ngs-eyebrow { animation: ngsEyebrowGlow 3.2s ease-in-out infinite; }
@keyframes ngsEyebrowGlow {
  0%, 100% { border-color: rgba(124,58,237,0.35); }
  50% { border-color: rgba(124,58,237,0.65); }
}

/* Stat items: gentle lift on hover */
.stat-item { transition: background 0.25s ease, transform 0.25s ease; }
.stat-item:hover { background: rgba(255,255,255,0.03); transform: translateY(-2px); }

/* Course card 3D tilt (values set via JS custom properties) */
.course-card {
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transform-style: preserve-3d;
}
.course-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.course-card:hover::after { opacity: 1; }
.card-arrow { transition: transform 0.25s ease, background 0.25s ease; }
.course-card:hover .card-arrow { transform: translateX(3px); background: rgba(167,139,250,0.28); }

/* Feature stack cards: continuous gentle float */
.sc1 { animation: ngsFloat1 5.5s ease-in-out infinite; }
.sc2 { animation: ngsFloat2 6s ease-in-out infinite; }
.sc3 { animation: ngsFloat3 6.5s ease-in-out infinite; }
@keyframes ngsFloat1 {
  0%, 100% { transform: rotate(-8deg) translateY(40px) translateX(-30px); }
  50%      { transform: rotate(-8deg) translateY(28px) translateX(-30px); }
}
@keyframes ngsFloat2 {
  0%, 100% { transform: rotate(-3deg) translateY(15px); }
  50%      { transform: rotate(-3deg) translateY(3px); }
}
@keyframes ngsFloat3 {
  0%, 100% { transform: rotate(2deg) translateY(-10px) translateX(20px); }
  50%      { transform: rotate(2deg) translateY(-22px) translateX(20px); }
}

/* Process steps: number glow + hover lift */
.process-step {
  transition: background 0.25s ease, transform 0.25s ease;
}
.process-step:hover {
  background: rgba(124,58,237,0.06);
  transform: translateY(-3px);
}
.ps-num { transition: color 0.25s ease; }
.process-step:hover .ps-num { color: #a78bfa; }

/* Team member cards already have hover lift — add stagger-friendly base */
.ngs-member { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.ngs-member:hover { border-color: rgba(56,189,248,0.5); }

/* Modal: smooth scale/fade entrance instead of a hard cut */
.ngs-modal-content {
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), opacity 0.3s ease;
}
.ngs-modal.ngs-active .ngs-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.ngs-modal-overlay { opacity: 0; transition: opacity 0.3s ease; }
.ngs-modal.ngs-active .ngs-modal-overlay { opacity: 1; }
.ngs-modal-close { transition: background 0.2s ease, transform 0.2s ease; }
.ngs-modal-close:hover { background: rgba(255,255,255,0.14); transform: rotate(90deg); }

/* Form inputs: subtle rise on focus */
.ngs-form-group input, .ngs-form-group textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Back to top button */
#ngs-back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(124,58,237,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 500;
}
#ngs-back-to-top.ngs-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#ngs-back-to-top:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(124,58,237,0.6); }

  /* FOOTER */
  .ngs-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  .footer-copy { font-size: 12px; color: #334155; }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a { font-size: 12px; color: #334155; text-decoration: none; }
  .footer-links a:hover { color: #a78bfa; }

/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- Tablet (<=900px) ---------- */
@media (max-width: 900px) {
  .feature-band-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .feature-visual { order: 2; height: 280px; }
  .feature-text { order: 1; }
  .ngs-hero { padding: 4rem 1.5rem 3rem; min-height: auto; }
  .ngs-hero-content { max-width: 100%; }
}

/* ---------- Mobile nav (<=760px) ---------- */
@media (max-width: 760px) {
  .ngs-nav { padding: 0.85rem 1.25rem; }
  .ngs-nav-toggle { display: flex; }

  .ngs-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 11, 22, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(139,92,246,0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    z-index: 99;
  }
  .ngs-nav-menu.ngs-nav-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }
  .ngs-nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .ngs-nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .ngs-nav-cta {
    margin: 0 1.25rem 1.25rem;
    padding: 12px 22px;
  }
}

/* ---------- Mobile layout (<=680px) ---------- */
@media (max-width: 680px) {
  .ngs-logo { font-size: 13px; gap: 6px; }
  .ngs-logo-canvas { width: 34px; height: 50px; }

  .ngs-hero { padding: 3rem 1.25rem 2.5rem; }
  .ngs-hero h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); margin-bottom: 1.1rem; }
  .ngs-hero-sub { font-size: 1rem; max-width: 100%; margin-bottom: 2rem; }
  .ngs-hero-actions { flex-direction: column; width: 100%; }
  .ngs-hero-actions button { width: 100%; justify-content: center; }
  .ngs-eyebrow { font-size: 11px; text-align: center; }

  .ngs-stats { margin-top: 2.5rem; }
  .stat-item {
    flex: 1 1 50%;
    padding: 1.1rem 0.75rem;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 10.5px; }

  .ngs-section { padding: 3.5rem 1.25rem; }
  .section-header { margin-bottom: 2.25rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section-sub { font-size: 1rem; max-width: 100%; }

  .courses-grid,
  .process-grid,
  .ngs-team {
    grid-template-columns: 1fr;
  }

  .course-card { padding: 1.5rem; }
  .card-desc { font-size: 15px; }

  .feature-band { padding: 3.5rem 1.25rem; }
  .feature-band-inner { gap: 2.5rem; }
  .feature-visual { height: 220px; }
  .stack-card { width: 200px; padding: 1rem 1.15rem; }
  .sc1 { transform: rotate(-8deg) translateY(30px) translateX(-18px); }
  .sc2 { transform: rotate(-3deg) translateY(10px); }
  .sc3 { transform: rotate(2deg) translateY(-8px) translateX(14px); }
  .feature-item-text h4 { font-size: 16px; }
  .feature-item-text p { font-size: 15px; }

  .process-step { padding: 1.75rem 1.25rem; }
  .ps-title { font-size: 16px; }
  .ps-desc { font-size: 15px; }

  .ngs-about { padding: 3.5rem 1.25rem; }

  .cta-band { padding: 3.5rem 1.25rem; }
  .cta-band h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .cta-band p { font-size: 1.05rem; margin-bottom: 2rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions button { width: 100%; justify-content: center; }

  .ngs-form-grid { grid-template-columns: 1fr; }

  .ngs-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  #ngs-back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* ---------- Small phones (<=380px) ---------- */
@media (max-width: 380px) {
  .ngs-hero h1 { font-size: 1.9rem; }
  .stat-item { flex: 1 1 100%; border-right: none !important; }
  .stat-item:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }
}
