/**
 * NexusForge Theme - Main Stylesheet
 * Advanced CSS for modern tech incubation & product studio
 */

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.nf-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nf-header-height);
  transition: all var(--nf-transition-normal);
  background: transparent;
}

.nf-site-header.is-scrolled {
  background: var(--nf-bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nf-border-subtle);
  box-shadow: var(--nf-shadow-sm);
  height: 70px;
}

.nf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nf-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--nf-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--nf-text-primary);
  letter-spacing: -0.03em;
}

.nf-brand-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--nf-gradient-brand);
  border-radius: var(--nf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--nf-shadow-glow-primary);
}

.nf-brand-text span {
  background: var(--nf-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Announcement Top Bar (Configurable) */
.nf-announcement-bar {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nf-announcement-bar a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.nf-announcement-bar a:hover {
  opacity: 0.9;
}

.nf-announcement-close {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  opacity: 0.8;
}

.nf-announcement-close:hover {
  opacity: 1;
}

/* Navigation Links */
.nf-nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nf-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nf-nav-menu li {
  position: relative;
}

.nf-nav-menu a {
  color: var(--nf-text-secondary);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.5rem 0;
  transition: color var(--nf-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nf-nav-menu a:hover,
.nf-nav-menu .current-menu-item > a {
  color: var(--nf-text-primary);
}

.nf-nav-menu .current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nf-gradient-brand);
  border-radius: var(--nf-radius-full);
}

/* Dropdown Menu */
.nf-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  box-shadow: var(--nf-shadow-lg);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--nf-transition-normal);
  z-index: 100;
  backdrop-filter: blur(16px);
}

.nf-nav-menu li:hover > .sub-menu,
.nf-nav-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nf-nav-menu .sub-menu a {
  padding: 0.6rem 0.9rem;
  border-radius: var(--nf-radius-sm);
  display: block;
  font-size: 0.875rem;
}

.nf-nav-menu .sub-menu a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--nf-primary);
}

/* Header Action Tools */
.nf-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Dark / Light Mode Switcher */
.nf-theme-toggle {
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-border-subtle);
  color: var(--nf-text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--nf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--nf-transition-fast);
}

.nf-theme-toggle:hover {
  color: var(--nf-text-primary);
  border-color: var(--nf-border-bright);
  background: var(--nf-bg-card-hover);
}

.nf-icon-sun, .nf-icon-moon {
  width: 18px;
  height: 18px;
  transition: transform var(--nf-transition-normal);
}

[data-theme="dark"] .nf-icon-sun { display: block; }
[data-theme="dark"] .nf-icon-moon { display: none; }
[data-theme="light"] .nf-icon-sun { display: none; }
[data-theme="light"] .nf-icon-moon { display: block; }

/* Hamburger Button */
.nf-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  color: var(--nf-text-primary);
  padding: 0.5rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nf-mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer Overlay */
.nf-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--nf-bg-surface-elevated);
  border-left: 1px solid var(--nf-border-bright);
  box-shadow: var(--nf-shadow-lg);
  z-index: 2000;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--nf-transition-slow);
  overflow-y: auto;
}

.nf-mobile-drawer.is-open {
  right: 0;
}

.nf-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--nf-transition-normal);
}

.nf-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nf-border-subtle);
}

.nf-drawer-close {
  background: none;
  border: none;
  color: var(--nf-text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  padding: 0.25rem;
}

.nf-drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nf-drawer-menu a {
  color: var(--nf-text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  padding: 0.25rem 0;
}

.nf-drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nf-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.nf-hero {
  position: relative;
  padding-top: calc(var(--nf-header-height) + 4rem);
  padding-bottom: 6rem;
  overflow: hidden;
}

.nf-hero-ambient-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.12) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.nf-hero-ambient-glow-2 {
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.nf-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.nf-hero-content {
  max-width: 640px;
}

.nf-hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.nf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--nf-gradient-hero-badge);
  border: 1px solid var(--nf-border-accent);
  padding: 0.4rem 1rem;
  border-radius: var(--nf-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nf-primary);
}

.nf-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: nfPulse 2s infinite;
}

@keyframes nfPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nf-hero-title {
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.nf-hero-description {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--nf-text-secondary);
  margin-bottom: 2.25rem;
}

.nf-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.nf-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--nf-border-subtle);
}

.nf-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--nf-text-muted);
}

.nf-hero-meta-item svg {
  color: var(--nf-primary);
  width: 18px;
  height: 18px;
}

/* Interactive Hero Visual Showcase */
.nf-hero-visual {
  position: relative;
}

.nf-visual-terminal {
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-bg-card-border);
  border-radius: var(--nf-radius-xl);
  box-shadow: var(--nf-shadow-lg);
  overflow: hidden;
  position: relative;
}

.nf-terminal-bar {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--nf-border-subtle);
}

.nf-terminal-dots {
  display: flex;
  gap: 6px;
}

.nf-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.nf-dot-red { background: #ef4444; }
.nf-dot-yellow { background: #f59e0b; }
.nf-dot-green { background: #10b981; }

.nf-terminal-title {
  font-family: var(--nf-font-mono);
  font-size: 0.775rem;
  color: var(--nf-text-muted);
}

.nf-terminal-body {
  padding: 1.75rem;
}

.nf-venture-preview-card {
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--nf-transition-normal);
}

.nf-venture-preview-card:hover {
  border-color: var(--nf-primary);
  transform: translateY(-2px);
}

.nf-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.nf-preview-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nf-text-primary);
}

.nf-preview-desc {
  font-size: 0.875rem;
  color: var(--nf-text-secondary);
  margin-bottom: 1rem;
}

.nf-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nf-tech-pill {
  font-family: var(--nf-font-mono);
  font-size: 0.725rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-full);
  color: var(--nf-text-muted);
}

[data-theme="light"] .nf-tech-pill {
  background: rgba(15, 23, 42, 0.04);
}

/* Floating Card Widgets */
.nf-floating-card-1 {
  position: absolute;
  top: -20px;
  right: -25px;
  background: var(--nf-bg-surface);
  border: 1px solid var(--nf-border-accent);
  border-radius: var(--nf-radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--nf-shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatUp 4s ease-in-out infinite alternate;
}

.nf-floating-card-2 {
  position: absolute;
  bottom: -20px;
  left: -25px;
  background: var(--nf-bg-surface);
  border: 1px solid var(--nf-border-bright);
  border-radius: var(--nf-radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--nf-shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatDown 5s ease-in-out infinite alternate;
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes floatDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(12px); }
}


/* ==========================================================================
   PARTNERS / INVESTOR LOGOS TICKER
   ========================================================================== */
.nf-ticker-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--nf-border-subtle);
  border-bottom: 1px solid var(--nf-border-subtle);
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.nf-ticker-label {
  text-align: center;
  font-family: var(--nf-font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nf-text-muted);
  margin-bottom: 1.5rem;
}

.nf-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
  gap: 3.5rem;
  align-items: center;
}

.nf-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.nf-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--nf-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nf-text-muted);
  opacity: 0.65;
  transition: opacity var(--nf-transition-fast), color var(--nf-transition-fast);
}

.nf-ticker-item:hover {
  opacity: 1;
  color: var(--nf-text-primary);
}


/* ==========================================================================
   STATS & METRICS SECTION
   ========================================================================== */
.nf-stats-section {
  padding: 5rem 0;
  position: relative;
}

.nf-stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.nf-stat-number {
  font-family: var(--nf-font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--nf-gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.nf-stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--nf-text-primary);
  margin-bottom: 0.25rem;
}

.nf-stat-desc {
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  margin: 0;
}


/* ==========================================================================
   INCUBATION PIPELINE & LIFECYCLE
   ========================================================================== */
.nf-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.nf-section-tag {
  font-family: var(--nf-font-mono);
  font-size: 0.8rem;
  color: var(--nf-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.nf-section-title {
  margin-bottom: 1rem;
}

.nf-section-subtitle {
  font-size: 1.1rem;
  color: var(--nf-text-secondary);
}

.nf-incubation-section {
  padding: 6rem 0;
  position: relative;
}

.nf-pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.nf-stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.25rem;
  border-radius: var(--nf-radius-lg);
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-bg-card-border);
  transition: all var(--nf-transition-normal);
}

.nf-stage-card:hover {
  transform: translateY(-6px);
  border-color: var(--nf-primary);
  box-shadow: var(--nf-shadow-md), var(--nf-shadow-glow-primary);
}

.nf-stage-number {
  font-family: var(--nf-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nf-primary);
  background: rgba(99, 102, 241, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--nf-border-accent);
}

.nf-stage-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--nf-text-primary);
}

.nf-stage-desc {
  font-size: 0.85rem;
  color: var(--nf-text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.nf-stage-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nf-stage-perks li {
  font-size: 0.775rem;
  color: var(--nf-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nf-stage-perks li svg {
  color: var(--nf-accent-emerald);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}


/* ==========================================================================
   PRODUCTS & VENTURES SHOWCASE
   ========================================================================== */
.nf-products-section {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.01);
}

.nf-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.nf-filter-btn {
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-border-subtle);
  color: var(--nf-text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--nf-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--nf-transition-fast);
}

.nf-filter-btn:hover,
.nf-filter-btn.is-active {
  background: var(--nf-primary);
  color: #ffffff;
  border-color: var(--nf-primary);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.nf-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nf-product-thumb {
  width: 100%;
  height: 200px;
  background: var(--nf-bg-surface-elevated);
  border-radius: var(--nf-radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--nf-transition-normal);
}

.nf-product-card:hover .nf-product-thumb img {
  transform: scale(1.05);
}

.nf-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.nf-product-title {
  font-size: 1.25rem;
  margin: 0;
}

.nf-product-title a {
  color: var(--nf-text-primary);
}

.nf-product-title a:hover {
  color: var(--nf-primary);
}

.nf-product-desc {
  font-size: 0.9rem;
  color: var(--nf-text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.nf-product-metric {
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed var(--nf-border-accent);
  padding: 0.5rem 0.75rem;
  border-radius: var(--nf-radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.nf-metric-label {
  font-size: 0.775rem;
  color: var(--nf-text-muted);
}

.nf-metric-value {
  font-family: var(--nf-font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nf-primary);
}

.nf-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 1rem;
  margin-top: auto;
}

.nf-product-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nf-action-icon-link {
  color: var(--nf-text-muted);
  padding: 0.4rem;
  border-radius: var(--nf-radius-sm);
  transition: all var(--nf-transition-fast);
  display: flex;
}

.nf-action-icon-link:hover {
  color: var(--nf-text-primary);
  background: rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   INCUBATION MODEL / CAPABILITIES
   ========================================================================== */
.nf-capabilities-section {
  padding: 6rem 0;
}

.nf-capability-card {
  padding: 2.25rem;
}

.nf-capability-icon {
  width: 52px;
  height: 52px;
  background: var(--nf-gradient-hero-badge);
  border: 1px solid var(--nf-border-accent);
  border-radius: var(--nf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-primary);
  margin-bottom: 1.5rem;
}

.nf-capability-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.nf-capability-desc {
  font-size: 0.925rem;
  color: var(--nf-text-secondary);
  margin: 0;
}


/* ==========================================================================
   PITCH BANNER & APPLICATION MODAL
   ========================================================================== */
.nf-pitch-banner {
  padding: 5rem 0;
  position: relative;
}

.nf-banner-inner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid var(--nf-border-accent);
  border-radius: var(--nf-radius-xl);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--nf-shadow-lg);
}

.nf-banner-content {
  max-width: 600px;
}

.nf-banner-title {
  margin-bottom: 1rem;
}

.nf-banner-desc {
  font-size: 1.1rem;
  color: var(--nf-text-secondary);
  margin: 0;
}

/* Modal Overlay & Dialog */
.nf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--nf-transition-normal);
}

.nf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.nf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.nf-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-border-bright);
  border-radius: var(--nf-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--nf-shadow-lg);
  z-index: 1;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--nf-transition-normal);
}

.nf-modal.is-open .nf-modal-dialog {
  transform: translateY(0) scale(1);
}

.nf-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-text-secondary);
  cursor: pointer;
  transition: all var(--nf-transition-fast);
}

.nf-modal-close:hover {
  color: var(--nf-text-primary);
  border-color: var(--nf-primary);
}

.nf-modal-header {
  margin-bottom: 2rem;
}

.nf-modal-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.nf-modal-subtitle {
  font-size: 0.95rem;
  color: var(--nf-text-secondary);
  margin: 0;
}

/* Forms */
.nf-form-group {
  margin-bottom: 1.5rem;
}

.nf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nf-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nf-text-primary);
  margin-bottom: 0.5rem;
}

.nf-input, .nf-select, .nf-textarea {
  width: 100%;
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  padding: 0.75rem 1rem;
  color: var(--nf-text-primary);
  font-family: var(--nf-font-sans);
  font-size: 0.925rem;
  transition: all var(--nf-transition-fast);
}

.nf-input:focus, .nf-select:focus, .nf-textarea:focus {
  border-color: var(--nf-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.nf-textarea {
  resize: vertical;
  min-height: 100px;
}

.nf-form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--nf-radius-md);
  font-size: 0.9rem;
  display: none;
}

.nf-form-feedback.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nf-form-feedback.is-error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}


/* ==========================================================================
   BLOG / TECH RADAR ARTICLES
   ========================================================================== */
.nf-blog-section {
  padding: 6rem 0;
}

.nf-post-card {
  display: flex;
  flex-direction: column;
}

.nf-post-thumb {
  border-radius: var(--nf-radius-md);
  overflow: hidden;
  height: 200px;
  margin-bottom: 1.25rem;
  background: var(--nf-bg-surface-elevated);
}

.nf-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--nf-transition-normal);
}

.nf-post-card:hover .nf-post-thumb img {
  transform: scale(1.05);
}

.nf-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--nf-text-muted);
  margin-bottom: 0.75rem;
}

.nf-post-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.nf-post-title a {
  color: var(--nf-text-primary);
}

.nf-post-title a:hover {
  color: var(--nf-primary);
}

.nf-post-excerpt {
  font-size: 0.9rem;
  color: var(--nf-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.nf-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nf-primary);
}

.nf-read-more:hover {
  color: var(--nf-secondary);
  transform: translateX(4px);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.nf-site-footer {
  background: var(--nf-bg-surface);
  border-top: 1px solid var(--nf-border-subtle);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
}

.nf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.nf-footer-brand-desc {
  font-size: 0.95rem;
  color: var(--nf-text-secondary);
  margin: 1.25rem 0 1.5rem 0;
  max-width: 320px;
}

.nf-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nf-social-btn {
  width: 36px;
  height: 36px;
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-border-subtle);
  border-radius: var(--nf-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-text-secondary);
  transition: all var(--nf-transition-fast);
}

.nf-social-btn:hover {
  background: var(--nf-primary);
  color: #ffffff;
  border-color: var(--nf-primary);
  transform: translateY(-2px);
}

.nf-footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nf-text-primary);
  margin-bottom: 1.25rem;
}

.nf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nf-footer-links a {
  color: var(--nf-text-secondary);
  font-size: 0.9rem;
  transition: color var(--nf-transition-fast);
}

.nf-footer-links a:hover {
  color: var(--nf-primary);
}

.nf-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nf-footer-bottom {
  border-top: 1px solid var(--nf-border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--nf-text-muted);
}

.nf-footer-bottom a {
  color: var(--nf-text-secondary);
}

.nf-footer-bottom a:hover {
  color: var(--nf-primary);
}

/* Back to Top */
.nf-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--nf-bg-surface-elevated);
  border: 1px solid var(--nf-border-bright);
  color: var(--nf-text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--nf-shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--nf-transition-normal);
  z-index: 990;
}

.nf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.nf-back-to-top:hover {
  background: var(--nf-primary);
  color: #ffffff;
  border-color: var(--nf-primary);
  transform: translateY(-3px);
}
