/* ================================================
   NextGen Technologies — Unified Brand System
   ================================================
   This stylesheet provides consistent branding
   across all pages. Include AFTER page-specific
   styles to ensure brand consistency.
   ================================================ */

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  --ng-navy: #0C1F3F;
  --ng-navy-light: #163557;
  --ng-teal: #4CC9A4;
  --ng-teal-dark: #1B7A64;
  --ng-teal-hover: #3AB893;
  --ng-gold: #E8B86D;
  --ng-light-bg: #F8F6F2;
  --ng-border: #DDE5EF;
  --ng-text: #1A2B3C;
  --ng-muted: #5A7089;
  --ng-white: #FFFFFF;
  --ng-red: #E84040;
  --ng-font-body: 'DM Sans', sans-serif;
  --ng-font-heading: 'DM Serif Display', serif;
}

/* ─── GLOBAL RESETS ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ng-font-body);
  color: var(--ng-text);
  background: var(--ng-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================================================
   NAVIGATION — Unified across all pages
   ================================================ */
.ng-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 229, 239, 0.6);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: all 0.3s ease;
}

.ng-nav.scrolled {
  box-shadow: 0 2px 20px rgba(12, 31, 63, 0.08);
  height: 64px;
}

/* LOGO */
.ng-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
  flex-shrink: 0;
}

/* Nav logo image — uses the official logo-square.png */
.ng-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.ng-nav-logo:hover .ng-logo-icon {
  transform: scale(1.05);
}

.ng-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ng-logo-name {
  font-family: var(--ng-font-heading);
  font-size: 20px;
  color: var(--ng-navy);
  letter-spacing: -0.3px;
}

.ng-logo-name span {
  color: var(--ng-teal);
}

.ng-logo-tagline {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ng-muted);
  font-weight: 500;
}

/* NAV LINKS */
.ng-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.ng-nav-links > li {
  position: relative;
}

.ng-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ng-text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.ng-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ng-teal);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.ng-nav-links a:hover {
  color: var(--ng-teal-dark);
}

.ng-nav-links a:hover::after {
  width: 100%;
}

.ng-nav-links a.active {
  color: var(--ng-teal-dark);
}

.ng-nav-links a.active::after {
  width: 100%;
}

/* DROPDOWN TRIGGER BUTTONS */
.ng-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ng-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ng-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ng-dropdown-trigger:hover,
.ng-has-dropdown.open .ng-dropdown-trigger {
  color: var(--ng-teal-dark);
  background: rgba(76, 201, 164, 0.08);
}

.ng-group-active .ng-dropdown-trigger {
  color: var(--ng-teal-dark);
}

.ng-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ng-has-dropdown.open .ng-chevron {
  transform: rotate(180deg);
}

/* DROPDOWN PANEL */
.ng-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 260px;
  background: var(--ng-white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(12, 31, 63, 0.12), 0 0 0 1px rgba(221, 229, 239, 0.5);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 2000;
}

.ng-has-dropdown.open .ng-dropdown,
.ng-has-dropdown:hover .ng-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.ng-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
  color: var(--ng-text);
}

.ng-dropdown a::after { display: none !important; }

.ng-dropdown a:hover {
  background: var(--ng-light-bg);
  color: var(--ng-text);
}

.ng-dropdown a.active {
  background: rgba(76, 201, 164, 0.08);
}

.ng-dd-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ng-light-bg);
  font-size: 16px;
  flex-shrink: 0;
}

.ng-dropdown a:hover .ng-dd-icon {
  background: rgba(76, 201, 164, 0.12);
}

.ng-dropdown a div {
  display: flex;
  flex-direction: column;
}

.ng-dropdown a strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ng-navy);
  line-height: 1.3;
}

.ng-dropdown a span {
  font-size: 12px;
  color: var(--ng-muted);
  line-height: 1.3;
}

/* LIVE DEMO LINK */
.ng-nav-links a.ng-demo-link {
  color: var(--ng-teal-dark);
  font-weight: 600;
}

/* TRY EVA LINK IN NAV */
.ng-nav-eva {
  color: #4CC9A4 !important;
  font-weight: 700 !important;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  position: relative;
}
.ng-nav-eva::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4CC9A4;
  border-radius: 1px;
}
.ng-nav-eva:hover {
  color: #1B7A64 !important;
}

/* CTA BUTTON IN NAV */
.ng-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ng-teal-dark);
  color: var(--ng-white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.25s ease;
  letter-spacing: 0.2px;
  box-shadow: none !important;
}

.ng-nav-cta::after { display: none !important; }

.ng-nav-cta:hover {
  background: var(--ng-navy);
  color: var(--ng-white) !important;
  transform: none;
  box-shadow: none !important;
}

/* HAMBURGER */
.ng-hamburger {
  display: none;
  flex-direction: column;
  width: 26px;
  height: 20px;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  padding: 0;
}

.ng-hamburger span {
  width: 100%;
  height: 2.5px;
  background: var(--ng-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ng-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.ng-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.ng-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .ng-hamburger {
    display: flex;
  }

  .ng-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--ng-white);
    flex-direction: column;
    padding: 90px 24px 40px;
    gap: 0;
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    z-index: 1000;
    align-items: flex-start;
    overflow-y: auto;
  }

  .ng-nav-links.active {
    right: 0;
  }

  .ng-nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--ng-border);
  }

  .ng-nav-links a:not(.ng-nav-cta) {
    display: block;
    padding: 14px 0;
    font-size: 15px;
  }

  .ng-nav-links a::after { display: none; }

  /* Mobile dropdown trigger */
  .ng-dropdown-trigger {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    justify-content: space-between;
    border-radius: 0;
  }

  .ng-dropdown-trigger:hover,
  .ng-has-dropdown.open .ng-dropdown-trigger {
    background: none;
  }

  /* Mobile dropdown panel */
  .ng-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 8px 8px;
    min-width: unset;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
    border-left: 2px solid var(--ng-teal);
    margin-left: 4px;
  }

  .ng-has-dropdown.open .ng-dropdown {
    max-height: 500px;
    transform: none;
  }

  .ng-dropdown a {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .ng-dd-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .ng-nav-cta {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 22px;
  }
}

/* ================================================
   HERO SECTIONS — Unified system
   ================================================
   STANDARD: All inner-page heroes MUST use these
   exact specs for consistency:
   - margin-top: 72px
   - padding: 72px 5% 56px
   - gradient: 135deg #0C1F3F → #163557 → #1B4B42
   - h1: clamp(30px, 4vw, 44px)
   - subtitle: 16px, rgba white 0.7
   ================================================ */

/* Standard dark hero for inner pages */
.ng-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, #0C1F3F 0%, #163557 50%, #1B4B42 100%);
  color: white;
  padding: 72px 5% 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ng-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76, 201, 164, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.ng-hero .ng-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ng-teal);
  font-weight: 600;
  margin-bottom: 14px;
}

.ng-hero h1 {
  font-family: var(--ng-font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 14px;
}

.ng-hero h1 em {
  font-style: italic;
  color: var(--ng-teal);
}

.ng-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================================
   BUTTONS — Unified system
   ================================================ */
.ng-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ng-font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.2px;
}

.ng-btn-primary {
  background: var(--ng-teal-dark);
  color: var(--ng-white);
  padding: 14px 30px;
}

.ng-btn-primary:hover {
  background: var(--ng-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 31, 63, 0.25);
  color: var(--ng-white);
}

.ng-btn-secondary {
  background: transparent;
  color: var(--ng-teal);
  padding: 14px 30px;
  border: 1.5px solid rgba(76, 201, 164, 0.4);
}

.ng-btn-secondary:hover {
  background: rgba(76, 201, 164, 0.1);
  border-color: var(--ng-teal);
  color: var(--ng-teal);
}

.ng-btn-white {
  background: var(--ng-white);
  color: var(--ng-navy);
  padding: 14px 30px;
}

.ng-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--ng-navy);
}

/* ================================================
   FOOTER — Unified across all pages
   ================================================ */
.ng-footer {
  background: var(--ng-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 0;
}

.ng-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 5% 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.ng-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ng-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Footer logo image */
.ng-footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.ng-footer-logo-text {
  font-family: var(--ng-font-heading);
  font-size: 20px;
  color: var(--ng-white);
}

.ng-footer-logo-text span {
  color: var(--ng-teal);
}

.ng-footer-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.ng-footer-venture {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 4px;
}

.ng-footer-venture span {
  color: var(--ng-gold);
  font-weight: 500;
}

.ng-footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.ng-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ng-footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.ng-footer-col a:hover {
  color: var(--ng-teal);
}

.ng-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
}

.ng-footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.ng-footer-bottom a:hover {
  color: var(--ng-teal);
}

.ng-footer-bottom-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  .ng-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 5% 32px;
  }

  .ng-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ================================================
   CTA SECTION — Reusable bottom CTA block
   ================================================ */
.ng-cta-section {
  background: linear-gradient(135deg, var(--ng-navy) 0%, #163557 50%, #1B4B42 100%);
  padding: 80px 5%;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.ng-cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(76, 201, 164, 0.1) 0%, transparent 70%);
}

.ng-cta-section h2 {
  font-family: var(--ng-font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 400;
  margin-bottom: 14px;
  position: relative;
}

.ng-cta-section p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}

.ng-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ================================================
   SECTION STANDARDS
   ================================================ */
.ng-section {
  padding: 80px 5%;
}

.ng-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.ng-section-header .ng-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ng-teal-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.ng-section-header h2 {
  font-family: var(--ng-font-heading);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--ng-navy);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ng-section-header p {
  font-size: 16px;
  color: var(--ng-muted);
  line-height: 1.7;
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.ng-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ng-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ng-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
