/*
Theme Name: NexaIntellect AI Theme
Theme URI: https://nexaintellectai.com
Author: NexaIntellect AI Team
Author URI: https://nexaintellectai.com
Description: Bespoke high-performance WordPress theme for NexaIntellect AI Services & Agency Platform. Designed with Tailwind-compatible design tokens and optimized for AI agent showcases.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nexaintellect
*/

/* ==========================================================================
   1. Design System Tokens & Root Variables
   ========================================================================== */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-glow: rgba(79, 70, 229, 0.35);
  --secondary: #06B6D4;
  --secondary-hover: #0891B2;
  --accent-purple: #7C3AED;
  --accent-cyan: #38BDF8;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --bg-dark: #090D16;
  --bg-surface: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #243248;

  --border-subtle: #1E293B;
  --border-default: #334155;
  --border-focus: #6366F1;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7DD3FC;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   3. Typography & Gradients
   ========================================================================== */
.gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #C084FC 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   4. Buttons & Interactive Elements
   ========================================================================== */
.btn-primary, .button-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover, a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(79, 70, 229, 0.45);
  opacity: 0.95;
  color: #FFFFFF !important;
}

.btn-secondary, a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-default);
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover, a.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tag-pill {
  display: inline-block;
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid #334155;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-code);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ==========================================================================
   5. Header & Navigation Bar
   ========================================================================== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   6. Cards & Grid System
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.15);
}

.service-card-icon {
  font-size: 38px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   7. Forms & Inputs (Project Inquiry)
   ========================================================================== */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-control, input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select {
  cursor: pointer;
}

/* ==========================================================================
   8. Stats & Metrics
   ========================================================================== */
.metrics-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 32px 20px;
  text-align: center;
}

.metric-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
footer.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  margin-top: 90px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 45px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   10. Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can be toggled with mobile hamburger */
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-strip {
    gap: 30px;
  }
  
  .form-card {
    padding: 24px;
  }
}
