/*
Theme Name: NexusForge - IT Products & Incubation Studio
Theme URI: https://towncraft.io/themes/nexusforge
Author: Towncraft Digital Studios
Author URI: https://towncraft.io
Description: A sleek, ultra-modern, highly configurable WordPress theme engineered for IT product development companies, digital venture studios, tech incubators, and startup foundries. Features dark/light mode, mobile-first responsive architecture, interactive incubation pipeline, product showcases with live tech stack filters, pitch submission modals, and extensive Customizer settings.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexusforge
Tags: technology, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, dark-mode, responsive-layout, portfolio

NexusForge WordPress Theme, Copyright 2026 Towncraft Digital Studios
Distributed under the terms of the GNU GPL
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME TOKENS)
   ========================================================================== */
:root {
  /* Color Palette - Default Dark Cyber Aesthetic */
  --nf-bg-body: #07090e;
  --nf-bg-surface: #0d121d;
  --nf-bg-surface-elevated: #131b2e;
  --nf-bg-surface-glass: rgba(13, 18, 29, 0.75);
  --nf-bg-card: #0f1626;
  --nf-bg-card-hover: #162035;
  --nf-bg-card-border: rgba(255, 255, 255, 0.08);
  --nf-bg-card-border-hover: rgba(99, 102, 241, 0.4);

  /* Brand Accents */
  --nf-primary: #6366f1;
  --nf-primary-rgb: 99, 102, 241;
  --nf-primary-hover: #4f46e5;
  --nf-secondary: #06b6d4;
  --nf-secondary-rgb: 6, 182, 212;
  --nf-accent-purple: #8b5cf6;
  --nf-accent-emerald: #10b981;
  --nf-accent-amber: #f59e0b;
  --nf-accent-rose: #f43f5e;

  /* Vibrant Gradients */
  --nf-gradient-brand: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --nf-gradient-glow: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  --nf-gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  --nf-gradient-hero-badge: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);

  /* Typography Colors */
  --nf-text-primary: #f8fafc;
  --nf-text-secondary: #94a3b8;
  --nf-text-muted: #64748b;
  --nf-text-inverse: #07090e;

  /* Borders & Dividers */
  --nf-border-subtle: rgba(255, 255, 255, 0.08);
  --nf-border-bright: rgba(255, 255, 255, 0.16);
  --nf-border-accent: rgba(99, 102, 241, 0.35);

  /* Shadows & Glows */
  --nf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --nf-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --nf-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --nf-shadow-glow-primary: 0 0 35px rgba(99, 102, 241, 0.25);
  --nf-shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);

  /* Geometry & Radii */
  --nf-radius-sm: 6px;
  --nf-radius-md: 12px;
  --nf-radius-lg: 18px;
  --nf-radius-xl: 24px;
  --nf-radius-full: 9999px;

  /* Font Families */
  --nf-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nf-font-heading: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --nf-font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --nf-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --nf-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --nf-transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --nf-container-max: 1280px;
  --nf-container-wide: 1440px;
  --nf-container-narrow: 880px;
  --nf-header-height: 80px;
}

/* Light Theme Mode Overrides */
[data-theme="light"] {
  --nf-bg-body: #f8fafc;
  --nf-bg-surface: #ffffff;
  --nf-bg-surface-elevated: #f1f5f9;
  --nf-bg-surface-glass: rgba(255, 255, 255, 0.85);
  --nf-bg-card: #ffffff;
  --nf-bg-card-hover: #f8fafc;
  --nf-bg-card-border: rgba(15, 23, 42, 0.08);
  --nf-bg-card-border-hover: rgba(99, 102, 241, 0.45);

  --nf-text-primary: #0f172a;
  --nf-text-secondary: #475569;
  --nf-text-muted: #64748b;
  --nf-text-inverse: #ffffff;

  --nf-border-subtle: rgba(15, 23, 42, 0.08);
  --nf-border-bright: rgba(15, 23, 42, 0.15);
  --nf-border-accent: rgba(99, 102, 241, 0.35);

  --nf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --nf-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --nf-shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --nf-shadow-glow-primary: 0 0 30px rgba(99, 102, 241, 0.18);
  --nf-shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.18);

  --nf-gradient-card: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
  --nf-gradient-hero-badge: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}

/* Base Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--nf-font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--nf-bg-body);
  color: var(--nf-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--nf-transition-normal), color var(--nf-transition-normal);
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--nf-primary);
  outline-offset: 3px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--nf-bg-surface);
  border-radius: var(--nf-radius-sm);
  box-shadow: var(--nf-shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--nf-text-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nf-font-heading);
  color: var(--nf-text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--nf-text-secondary);
}

a {
  color: var(--nf-primary);
  text-decoration: none;
  transition: color var(--nf-transition-fast);
}

a:hover {
  color: var(--nf-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Containers */
.nf-container {
  width: 100%;
  max-width: var(--nf-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nf-container-wide {
  max-width: var(--nf-container-wide);
}

.nf-container-narrow {
  max-width: var(--nf-container-narrow);
}

/* Buttons */
.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--nf-font-heading);
  border-radius: var(--nf-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--nf-transition-normal);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.nf-btn-primary {
  background: var(--nf-gradient-brand);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.nf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.nf-btn-secondary {
  background: var(--nf-bg-surface-elevated);
  color: var(--nf-text-primary) !important;
  border-color: var(--nf-border-bright);
}

.nf-btn-secondary:hover {
  background: var(--nf-bg-card-hover);
  border-color: var(--nf-primary);
  color: var(--nf-text-primary);
  transform: translateY(-2px);
}

.nf-btn-outline {
  background: transparent;
  color: var(--nf-text-primary) !important;
  border-color: var(--nf-border-subtle);
}

.nf-btn-outline:hover {
  border-color: var(--nf-primary);
  color: var(--nf-primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

.nf-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.nf-btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Badge / Pills */
.nf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--nf-radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  font-family: var(--nf-font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nf-badge-brand {
  background: var(--nf-gradient-hero-badge);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--nf-primary);
}

.nf-badge-live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.nf-badge-beta {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.nf-badge-incubating {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* Gradient Text */
.nf-gradient-text {
  background: var(--nf-gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism Card Base */
.nf-card {
  background: var(--nf-bg-card);
  border: 1px solid var(--nf-bg-card-border);
  border-radius: var(--nf-radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all var(--nf-transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

/* Layout Utilities */
.nf-grid {
  display: grid;
  gap: 1.5rem;
}

.nf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Background tech patterns */
.nf-bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .nf-bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}
