/* ═══════════════════════════════════════════════════════
   NITEC — Dark Cinematic Theme
   Aesthetic: Clean, technical, authoritative — green-teal brand
   ═══════════════════════════════════════════════════════ */

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

/* ── Tokens ── */
:root {
  --brand-deep: #1a4a2e;
  --brand-mid: #2a8a4a;
  --brand-bright: #3db36b;
  --brand-green: #337448;
  --brand-teal: #22c55e;

  --surface-0: #060d0a;
  --surface-1: #0a1a10;
  --surface-2: #0f2418;
  --surface-3: #163a24;
  --surface-card: rgba(15, 36, 24, 0.7);

  --text-primary: #f0f8f4;
  --text-secondary: #88aa96;
  --text-tertiary: #5a7a68;
  --text-accent: var(--brand-bright);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);

  --glow-green: 0 0 80px rgba(61, 179, 107, 0.15);
  --glow-teal: 0 0 80px rgba(34, 197, 94, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;

  --particle-r: 51;
  --particle-g: 116;
  --particle-b: 72;
  --particle-accent-r: 34;
  --particle-accent-g: 197;
  --particle-accent-b: 94;
}

/* ── Light Theme ── */
[data-theme="light"] {
  --brand-deep: #1a4a2e;
  --brand-mid: #2a8a4a;
  --brand-bright: #1e7a3e;
  --brand-green: #337448;
  --brand-teal: #16a34a;

  --surface-0: #f6faf8;
  --surface-1: #eef4f0;
  --surface-2: #e4ede8;
  --surface-3: #d4e0da;
  --surface-card: rgba(255, 255, 255, 0.8);

  --text-primary: #0f2418;
  --text-secondary: #3a5a48;
  --text-tertiary: #6a8a78;
  --text-accent: var(--brand-green);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);

  --glow-green: 0 0 80px rgba(30, 122, 62, 0.08);
  --glow-teal: 0 0 80px rgba(22, 163, 74, 0.1);

  --particle-r: 30;
  --particle-g: 122;
  --particle-b: 62;
  --particle-accent-r: 22;
  --particle-accent-g: 163;
  --particle-accent-b: 74;
}

/* Light theme overrides */
[data-theme="light"] .nav::before { background: rgba(246, 250, 248, 0.75); }
[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #0f2418 0%, #0f2418 40%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-bg::before {
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(30, 122, 62, 0.08), transparent),
    radial-gradient(ellipse 500px 500px at 70% 60%, rgba(22, 163, 74, 0.06), transparent),
    radial-gradient(ellipse 800px 300px at 50% 80%, rgba(26, 74, 46, 0.06), transparent);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
[data-theme="light"] .hero-stat-value { color: var(--brand-green); }
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-deep));
  box-shadow: 0 0 30px rgba(51, 116, 72, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 40px rgba(51, 116, 72, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border-medium);
}
[data-theme="light"] .btn-secondary:hover { background: rgba(0,0,0,0.06); }
[data-theme="light"] .nav-cta {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-deep));
  box-shadow: 0 0 20px rgba(51, 116, 72, 0.2);
}
[data-theme="light"] .nav-cta:hover { box-shadow: 0 4px 30px rgba(51, 116, 72, 0.35); }
[data-theme="light"] .nav-dropdown-menu { background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
[data-theme="light"] .nav-dropdown-item:hover { background: rgba(30, 122, 62, 0.05); }
[data-theme="light"] .card::before { background: linear-gradient(135deg, rgba(30, 122, 62, 0.04), rgba(22, 163, 74, 0.02)); }
[data-theme="light"] .card-base:hover {
  border-color: rgba(51, 116, 72, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), var(--glow-green);
}
[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, rgba(30, 122, 62, 0.1), rgba(22, 163, 74, 0.06));
  border-color: rgba(51, 116, 72, 0.15);
}
[data-theme="light"] .section-label { color: var(--brand-green); }
[data-theme="light"] .section-label::before { background: var(--brand-green); }
[data-theme="light"] .hero-badge {
  color: var(--brand-green);
  background: rgba(51, 116, 72, 0.06);
  border-color: rgba(51, 116, 72, 0.2);
}
[data-theme="light"] .hero-badge-dot { background: var(--brand-green); }
[data-theme="light"] .stat-value {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .highlight-text {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .cta-banner::before { background: linear-gradient(135deg, rgba(26, 74, 46, 0.06), rgba(22, 163, 74, 0.04)); }
[data-theme="light"] body::after { opacity: 0.02; }
[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-teal));
  box-shadow: 0 0 8px rgba(51, 116, 72, 0.4);
}
[data-theme="light"] .card-base::after {
  background: radial-gradient(
    400px circle at var(--spot-x) var(--spot-y),
    rgba(51, 116, 72, 0.07),
    rgba(30, 122, 62, 0.03) 40%,
    transparent 70%
  );
}
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--surface-0); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--surface-3); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--brand-green); }
[data-theme="light"] .team-card-role { color: var(--brand-green); }
[data-theme="light"] .solution-card:hover {
  box-shadow: 0 24px 80px rgba(0,0,0,0.08), var(--glow-green);
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(51, 116, 72, 0.1);
}
[data-theme="light"] .content-inner a { color: var(--brand-green); border-bottom-color: rgba(51, 116, 72, 0.3); }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  margin-left: 4px;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--border-medium); }
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,0.04); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.08); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text-secondary); transition: color 0.2s; }
.theme-toggle:hover svg { color: var(--text-primary); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
body {
  font-family: var(--font-display);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-bright); }

::selection { background: rgba(51, 116, 72, 0.3); color: #fff; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand-teal));
  z-index: 10001;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(61, 179, 107, 0.5);
}

/* ── Card Spotlight (cursor glow) ── */
.card-base {
  --spot-x: -1000px;
  --spot-y: -1000px;
}
.card-base::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--spot-x) var(--spot-y),
    rgba(61, 179, 107, 0.1),
    rgba(34, 197, 94, 0.04) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.card-base:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 10, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.scrolled::before { opacity: 1; }
.nav-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nitec-logo { height: 32px; width: auto; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .nitec-logo { filter: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown.open .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease-out-expo);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 0 20px rgba(61, 179, 107, 0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 30px rgba(61, 179, 107, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    background: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: 14px 0; font-size: 16px; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-cta { margin: 16px 0 0; text-align: center; padding: 14px; }
}

/* ══════════════════════════════════════════
   HERO SECTIONS
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(61, 179, 107, 0.12), transparent),
    radial-gradient(ellipse 500px 500px at 70% 60%, rgba(34, 197, 94, 0.08), transparent),
    radial-gradient(ellipse 800px 300px at 50% 80%, rgba(26, 74, 46, 0.15), transparent);
  animation: meshDrift 20s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -3%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  will-change: transform;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-bright);
  background: rgba(61, 179, 107, 0.08);
  border: 1px solid rgba(61, 179, 107, 0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-bright);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 179, 107, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(61, 179, 107, 0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, var(--brand-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(20deg);
  animation: wordReveal 0.7s var(--ease-out-expo) forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero p em {
  font-style: normal;
  color: var(--brand-bright);
  font-weight: 500;
}

/* ── Buttons ── */
.btn-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  box-shadow: 0 0 30px rgba(61, 179, 107, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(61, 179, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-secondary {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.btn-arrow::after { content: '\2192'; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-bright);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 24px; }
}

/* ══════════════════════════════════════════
   PAGE HERO (shorter, for inner pages)
   ══════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 32px 60px;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.6; }
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   ACCESSIBILITY UTILITIES
   ══════════════════════════════════════════ */
/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section { padding: 120px 32px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--brand-bright);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 700px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 56px;
}
.section-center { text-align: center; }
.section-center .section-title,
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  margin: 0 32px;
}

/* ══════════════════════════════════════════
   CARD BASE (shared by all card types)
   ══════════════════════════════════════════ */
.card-base {
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out-expo);
}
.card-base:hover {
  border-color: rgba(61, 179, 107, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--glow-green);
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  padding: 32px;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(61, 179, 107, 0.05), rgba(34, 197, 94, 0.03));
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 179, 107, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(61, 179, 107, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--brand-bright); }
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid var(--border-medium);
}
.section-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   SOLUTION CARDS (home page)
   ══════════════════════════════════════════ */
.solution-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), var(--glow-green);
}
.solution-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(61, 179, 107, 0.12), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(61, 179, 107, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--brand-bright);
}
.solution-card-icon svg {
  width: 28px;
  height: 28px;
}
.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.solution-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.solution-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-bright);
  transition: gap 0.2s;
}
.solution-card:hover .solution-card-link { gap: 10px; }

/* ══════════════════════════════════════════
   STATS / IMPACT
   ══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 36px 24px;
}
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   PROJECT CARDS (for solutions pages)
   ══════════════════════════════════════════ */
.project-card {
  padding: 32px;
}
.project-card-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(61, 179, 107, 0.1);
  color: var(--brand-bright);
  border: 1px solid rgba(61, 179, 107, 0.15);
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.project-card-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.project-card-stats strong {
  color: var(--brand-bright);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.team-card {
  padding: 32px;
  text-align: center;
}
.team-card-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 179, 107, 0.12), rgba(34, 197, 94, 0.08));
  border: 2px solid rgba(61, 179, 107, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-bright);
}
.team-card-name { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.team-card-role {
  font-size: 0.85rem;
  color: var(--brand-bright);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(61, 179, 107, 0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-feedback {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.form-feedback--error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.form-feedback--success {
  color: var(--brand-bright);
  background: rgba(61, 179, 107, 0.08);
  border: 1px solid rgba(61, 179, 107, 0.2);
  font-size: 1rem;
  padding: 20px 24px;
}

.contact-info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 179, 107, 0.1);
  border-radius: var(--radius-sm);
  color: var(--brand-bright);
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 20px;
  height: 20px;
}
.contact-info-label { font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 4px; }
.contact-info-value { font-size: 0.95rem; font-weight: 500; }
.contact-info-value a { color: var(--brand-bright); transition: color 0.2s; }
.contact-info-value a:hover { color: var(--text-primary); }

/* ══════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════ */
.cta-banner {
  position: relative;
  padding: 80px 32px;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 74, 46, 0.4), rgba(34, 197, 94, 0.15));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════
   CONTENT SECTIONS (for inner pages)
   ══════════════════════════════════════════ */
.content-section { padding: 80px 32px; }
.content-inner {
  max-width: 900px;
  margin: 0 auto;
}
.content-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.content-inner h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.content-inner p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-inner ul { margin: 16px 0; padding-left: 0; }
.content-inner ul li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.content-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--brand-bright);
}
.content-inner a {
  color: var(--brand-bright);
  border-bottom: 1px solid rgba(61, 179, 107, 0.3);
  transition: border-color 0.2s;
}
.content-inner a:hover { border-color: var(--brand-bright); }

/* ══════════════════════════════════════════
   VIDEO EMBED
   ══════════════════════════════════════════ */
.embed-container {
  position: relative;
  margin: 48px 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--surface-2);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), var(--glow-green);
}
.embed-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 80px 32px 40px;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand { }
.nitec-logo-footer { height: 32px; width: auto; margin-bottom: 16px; filter: invert(1) hue-rotate(180deg); }
[data-theme="light"] .nitec-logo-footer { filter: none; }
.footer-tagline { font-size: 0.95rem; color: var(--text-secondary); }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-contact { display: flex; gap: 24px; }
.footer-contact a:hover { color: var(--text-secondary); }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--brand-bright); }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════════
   PARTICLES (Canvas overlay)
   ══════════════════════════════════════════ */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   MISC
   ══════════════════════════════════════════ */
.highlight-text {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Services/expertise list */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.services-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}
.services-list-item:hover {
  border-color: rgba(61, 179, 107, 0.2);
  background: rgba(61, 179, 107, 0.03);
}
.services-list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--brand-bright);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .services-list { grid-template-columns: 1fr; }
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* Reduced motion: collapse all animation/transition to imperceptible durations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
