/* ============================================================
   NexaStack — Hand-Crafted Professional Design System
   Theme: Modern Technical Studio (Light Canvas / Deep Slate Contrast)
   Strictly Solid Colours • Zero Gradients • Clean Typographic Scale
   ============================================================ */

/* ── 1. Design Tokens & CSS Custom Properties ──────────────── */
:root {
  /* Solid Canvas & Surfaces */
  --theme-bg:                  #ffffff;
  --theme-bg-alt:              #f8fafc; /* Slate 50 */
  --theme-surface:             #ffffff;
  --theme-surface-hover:       #f1f5f9; /* Slate 100 */

  /* Neutral Grey Scale (7 Solid Shades) */
  --theme-grey-50:             #f8fafc;
  --theme-grey-100:            #f1f5f9;
  --theme-grey-200:            #e2e8f0; /* Divider & Border */
  --theme-grey-300:            #cbd5e1; /* Subtle Input Border */
  --theme-grey-500:            #64748b; /* Muted Meta Text */
  --theme-grey-700:            #334155; /* Body Paragraphs */
  --theme-grey-900:            #0f172a; /* Slate 900 Headings */

  /* Primary Brand & Interactive */
  --theme-primary:             #0f172a; /* Deep Slate */
  --theme-primary-hover:       #1e293b;
  --theme-interactive:         #1d4ed8; /* Cobalt Blue (WCAG AA 5.6:1) */
  --theme-interactive-hover:   #1e40af;
  --theme-interactive-subtle:  #eff6ff;

  /* Studio Warm Accent */
  --theme-accent:              #d97706; /* Solid Warm Amber */
  --theme-accent-subtle:       #fef3c7;

  /* Text Colors */
  --theme-text-heading:        #0f172a;
  --theme-text-body:           #334155;
  --theme-text-muted:          #64748b;
  --theme-text-inverse:        #ffffff;

  /* Solid Borders */
  --theme-border:              #e2e8f0;
  --theme-border-strong:       #cbd5e1;

  /* Status Colors */
  --theme-success:             #15803d;
  --theme-success-bg:          #f0fdf4;
  --theme-error:               #b91c1c;
  --theme-error-bg:            #fef2f2;

  /* Typography Scale */
  --theme-font-heading:        'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-font-body:           'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --theme-font-mono:           'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale (4, 8, 12, 16, 24, 32, 48, 64, 96px) */
  --theme-space-1:             4px;
  --theme-space-2:             8px;
  --theme-space-3:             12px;
  --theme-space-4:             16px;
  --theme-space-6:             24px;
  --theme-space-8:             32px;
  --theme-space-12:            48px;
  --theme-space-16:            64px;
  --theme-space-24:            96px;

  /* Section Padding */
  --theme-section-pad:         80px;

  /* Small & Consistent Border-Radius (Strictly 4-8px, NO pills) */
  --theme-radius-sm:           4px;
  --theme-radius-md:           6px;
  --theme-radius-lg:           8px;

  /* Subtle Shadows (Max 2 Levels, Zero Glow) */
  --theme-shadow-sm:           0 1px 3px 0 rgba(15, 23, 42, 0.07), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --theme-shadow-md:           0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);

  /* Subtle Hover Transitions (150-220ms) */
  --theme-transition:          180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Overrides for original stylesheet variables ── */
  --clr-bg:                    var(--theme-bg);
  --clr-surface:               var(--theme-bg-alt);
  --clr-card:                  var(--theme-surface);
  --clr-border:                var(--theme-border);
  --clr-primary:               var(--theme-interactive);
  --clr-primary-lt:            var(--theme-interactive);
  --clr-accent:                var(--theme-accent);
  --clr-accent2:               var(--theme-accent);
  --grad-brand:                none;
  --grad-card:                 none;
  --clr-text:                  var(--theme-text-body);
  --clr-muted:                 var(--theme-text-muted);
  --font-display:              var(--theme-font-heading);
  --font-body:                 var(--theme-font-body);
  --font-mono:                 var(--theme-font-mono);
  --radius-sm:                 var(--theme-radius-sm);
  --radius-md:                 var(--theme-radius-md);
  --radius-lg:                 var(--theme-radius-lg);
  --radius-xl:                 var(--theme-radius-lg);
  --shadow-glow:               none;
  --shadow-card:               var(--theme-shadow-sm);
  --transition:                var(--theme-transition);
}

/* ── 2. Base & Noise/Orb Removal ───────────────────────────── */
body {
  background-color: var(--theme-bg) !important;
  color: var(--theme-text-body) !important;
  font-family: var(--theme-font-body) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  display: none !important; /* Remove noise filter overlay */
}

.hero-orbs,
.bg-glow-404 {
  display: none !important; /* Remove neon glowing ambient orbs */
}

/* Kill all infinite floating / bouncing / drifting / spinning keyframes */
.hero-orbs .orb,
.floating-card,
.badge::before,
.why-circle::before {
  animation: none !important;
}

/* Normalize fade-up scroll animations so all content is cleanly visible */
.fade-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Remove gradient clipping across all headings & titles */
.gradient-text,
.stat-num,
.kpi-num,
.why-circle .big-num,
.num-404,
.doc-header h1,
.nav-logo {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  background-clip: unset !important;
  color: var(--theme-text-heading) !important;
}

/* ── 3. Typography Scale & Headings ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 600;
}

p {
  color: var(--theme-text-body);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.section-pad {
  padding-block: var(--theme-section-pad) !important;
}

@media (max-width: 768px) {
  .section-pad {
    padding-block: 48px !important;
  }
}

.section-header {
  margin-bottom: 2.75rem !important;
}

.section-heading {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 0.75rem !important;
}

.section-subheading {
  color: var(--theme-text-muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
}

/* Micro Badges (Non-pill, crisp engineering tag) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--theme-font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--theme-interactive) !important;
  background-color: var(--theme-interactive-subtle) !important;
  border: 1px solid #bfdbfe !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: var(--theme-radius-md) !important;
  margin-bottom: 1rem !important;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--theme-interactive);
}

/* ── 4. Buttons (Primary, Secondary, Outline) ──────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--theme-font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: var(--theme-radius-md) !important;
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: background-color var(--theme-transition),
              border-color var(--theme-transition),
              color var(--theme-transition),
              box-shadow var(--theme-transition) !important;
  transform: none !important;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--theme-interactive);
  outline-offset: 2px;
}

/* Primary Button: Solid Cobalt Blue */
.btn-primary {
  background: var(--theme-interactive) !important;
  background-color: var(--theme-interactive) !important;
  color: #ffffff !important;
  border-color: var(--theme-interactive) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.btn-primary:hover {
  background: var(--theme-interactive-hover) !important;
  background-color: var(--theme-interactive-hover) !important;
  border-color: var(--theme-interactive-hover) !important;
  color: #ffffff !important;
  box-shadow: var(--theme-shadow-md) !important;
  transform: none !important;
}

/* Outline / Secondary Button: Solid Crisp Border */
.btn-outline {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--theme-text-heading) !important;
  border: 1px solid var(--theme-border-strong) !important;
  backdrop-filter: none !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.btn-outline:hover {
  background: var(--theme-surface-hover) !important;
  background-color: var(--theme-surface-hover) !important;
  border-color: var(--theme-primary) !important;
  color: var(--theme-primary) !important;
  transform: none !important;
}

/* Small Button */
.btn-sm {
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
}

/* ── 5. Navigation Bar ─────────────────────────────────────── */
#navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--theme-border) !important;
  padding: 0.85rem 0 !important;
  backdrop-filter: none !important;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

#navbar.scrolled {
  background: #ffffff !important;
  border-bottom: 1px solid var(--theme-border) !important;
  backdrop-filter: none !important;
  padding: 0.65rem 0 !important;
  box-shadow: var(--theme-shadow-sm);
}

.nav-logo {
  font-family: var(--theme-font-heading) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--theme-primary) !important;
}

.nav-links a {
  color: var(--theme-text-body) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--theme-radius-sm) !important;
  transition: color var(--theme-transition), background-color var(--theme-transition);
}

.nav-links a:hover {
  color: var(--theme-interactive) !important;
  background: var(--theme-surface-hover) !important;
}

.nav-toggle span {
  background: var(--theme-primary) !important;
}

@media (max-width: 900px) {
  .nav-links.open {
    background: #ffffff !important;
    border-bottom: 1px solid var(--theme-border);
    backdrop-filter: none !important;
  }
  .nav-links.open a {
    color: var(--theme-text-heading) !important;
    font-size: 1.25rem !important;
  }
}

/* ── 6. Hero Section ───────────────────────────────────────── */
#hero {
  background-color: var(--theme-bg) !important;
  padding-top: 100px !important;
  padding-bottom: 60px !important;
  min-height: auto !important;
}

.hero-heading {
  font-family: var(--theme-font-heading) !important;
  font-size: clamp(2.35rem, 4.8vw, 3.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--theme-text-heading) !important;
  margin-bottom: 1.25rem !important;
}

.hero-sub {
  color: var(--theme-text-body) !important;
  font-size: 1.125rem !important;
  line-height: 1.65 !important;
}

.hero-stats {
  border-top: 1px solid var(--theme-border) !important;
  padding-top: 1.75rem !important;
  margin-top: 2.5rem !important;
}

.stat-num {
  font-family: var(--theme-font-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--theme-primary) !important;
}

.stat-label {
  font-family: var(--theme-font-mono) !important;
  color: var(--theme-text-muted) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em !important;
}

/* Hero Code Graphic Panel */
.hero-graphic {
  background: #0f172a !important; /* Solid Dark Slate Canvas for code window */
  border: 1px solid #1e293b !important;
  border-radius: var(--theme-radius-lg) !important;
  padding: 1.75rem !important;
  box-shadow: var(--theme-shadow-md) !important;
}

.hero-graphic::before {
  display: none !important; /* Remove gradient bar */
}

.code-window {
  background: #090d16 !important;
  border: 1px solid #1e293b !important;
  border-radius: var(--theme-radius-md) !important;
}

.code-bar {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
}

/* Floating Hero Cards */
.floating-card {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-md) !important;
  box-shadow: var(--theme-shadow-md) !important;
  backdrop-filter: none !important;
  color: var(--theme-text-heading) !important;
  padding: 0.75rem 1rem !important;
}

.floating-card .fc-label {
  color: var(--theme-text-muted) !important;
  font-size: 0.75rem !important;
}

.floating-card .fc-value {
  color: var(--theme-text-heading) !important;
  font-weight: 700 !important;
}

.floating-card .fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--theme-radius-sm);
  background: var(--theme-interactive-subtle);
  color: var(--theme-interactive);
}

/* ── 7. Services Section (Alternating Light Grey Surface) ──── */
#services {
  background-color: var(--theme-bg-alt) !important;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

.service-card {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  padding: 2rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
  transition: border-color var(--theme-transition),
              box-shadow var(--theme-transition),
              transform var(--theme-transition) !important;
  overflow: hidden;
}

.service-card::after {
  display: none !important; /* Remove animated gradient underline */
}

.service-card:hover {
  border-color: var(--theme-border-strong) !important;
  box-shadow: var(--theme-shadow-md) !important;
  transform: translateY(-2px) !important;
}

.service-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: var(--theme-radius-md) !important;
  font-size: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

.service-icon.blue {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.service-icon.orange {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.service-icon.cyan {
  background: #f0fdfa !important;
  color: #0f766e !important;
}

.service-card h3 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.65rem !important;
}

.service-card p {
  color: var(--theme-text-body) !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

.service-card .learn-more {
  color: var(--theme-interactive) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.service-card .learn-more:hover {
  color: var(--theme-interactive-hover) !important;
}

/* ── 8. Why Choose Us Section (White Canvas) ───────────────── */
#why {
  background: var(--theme-bg) !important;
}

.why-feat {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-md) !important;
  padding: 1.15rem 1.35rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.why-feat:hover {
  border-color: var(--theme-border-strong) !important;
}

.why-feat-icon {
  background: var(--theme-interactive-subtle) !important;
  color: var(--theme-interactive) !important;
  border-radius: var(--theme-radius-sm) !important;
}

.why-feat h4 {
  color: var(--theme-text-heading) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.why-feat p {
  color: var(--theme-text-body) !important;
  font-size: 0.875rem !important;
  margin-bottom: 0;
}

/* Why Visual Box */
.why-visual {
  background: var(--theme-bg-alt) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  padding: 2.25rem 2rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.why-visual::before {
  display: none !important; /* Remove gradient bar */
}

.why-circle {
  background: #0f172a !important; /* Solid Slate Circle */
  box-shadow: var(--theme-shadow-md) !important;
}

.why-circle::before {
  display: none !important; /* Remove spinning dashed border */
}

.why-circle .big-num {
  color: #ffffff !important;
}

.why-circle small {
  color: #cbd5e1 !important;
}

.why-visual-label {
  color: var(--theme-text-heading) !important;
}

/* Override inline semi-transparent cards in why section */
div[style*="background:rgba(0,0,0,.3)"],
div[style*="background: rgba(0,0,0,.3)"] {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-md) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

div[style*="background:var(--grad-brand)"] {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  color: var(--theme-primary) !important;
}

/* ── 9. About Section (Alternating Light Grey Surface) ─────── */
#about {
  background-color: var(--theme-bg-alt) !important;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

.about-kpi {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-md) !important;
  padding: 1.25rem 1.5rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.kpi-icon {
  background: #0f172a !important; /* Solid slate container */
  color: #ffffff !important;
  border-radius: var(--theme-radius-sm) !important;
}

.kpi-num {
  font-family: var(--theme-font-heading) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--theme-primary) !important;
}

.kpi-label {
  color: var(--theme-text-body) !important;
  font-size: 0.875rem !important;
}

.about-desc {
  color: var(--theme-text-body) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

/* Expertise Tags (Clean rectangular tags, NO pills) */
.pill {
  font-family: var(--theme-font-mono) !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text-heading) !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: var(--theme-radius-sm) !important;
  box-shadow: var(--theme-shadow-sm);
}

/* ── 10. Portfolio Section (White Canvas) ───────────────────── */
#portfolio {
  background-color: var(--theme-bg) !important;
}

.portfolio-card {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--theme-shadow-sm) !important;
  transition: border-color var(--theme-transition),
              box-shadow var(--theme-transition),
              transform var(--theme-transition) !important;
}

.portfolio-card:hover {
  border-color: var(--theme-border-strong) !important;
  box-shadow: var(--theme-shadow-md) !important;
  transform: translateY(-2px) !important;
}

/* Portfolio Thumbnail: Clean structured banner instead of loud gradient */
.portfolio-thumb {
  height: 160px !important;
  background-color: #0f172a !important; /* Solid Deep Slate */
  border-bottom: 1px solid var(--theme-border);
}

.portfolio-thumb .pt-bg {
  background: #0f172a !important;
  opacity: 0.95;
}

.portfolio-thumb .pt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--theme-radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.portfolio-body {
  padding: 1.75rem !important;
}

.portfolio-cat {
  font-family: var(--theme-font-mono) !important;
  color: var(--theme-interactive) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

.portfolio-body h3 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.65rem !important;
}

.portfolio-body p {
  color: var(--theme-text-body) !important;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
}

.ptag {
  font-family: var(--theme-font-mono) !important;
  font-size: 0.75rem !important;
  background: var(--theme-bg-alt) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text-muted) !important;
  padding: 0.25rem 0.55rem !important;
  border-radius: var(--theme-radius-sm) !important;
}

/* ── 11. Testimonials Section (Alternating Light Grey Surface)  */
#testimonials {
  background-color: var(--theme-bg-alt) !important;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

.testi-card {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  padding: 2rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
  transition: border-color var(--theme-transition),
              box-shadow var(--theme-transition),
              transform var(--theme-transition) !important;
}

.testi-card::before {
  display: none !important; /* Remove giant gradient quote mark */
}

.testi-card:hover {
  border-color: var(--theme-border-strong) !important;
  box-shadow: var(--theme-shadow-md) !important;
  transform: translateY(-2px) !important;
}

.testi-stars {
  color: #d97706 !important; /* Solid Amber Stars */
  font-size: 0.95rem !important;
  margin-bottom: 1rem !important;
}

.testi-text {
  color: var(--theme-text-body) !important;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  font-style: normal !important;
  margin-bottom: 1.5rem !important;
}

.testi-avatar {
  background: #0f172a !important; /* Solid Slate Avatar Circle */
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
}

.testi-name {
  color: var(--theme-text-heading) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
}

.testi-role {
  color: var(--theme-text-muted) !important;
  font-size: 0.8125rem !important;
}

/* ── 12. Technologies Section (White Canvas) ───────────────── */
#technologies {
  background-color: var(--theme-bg) !important;
}

.tech-item {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-md) !important;
  padding: 1.15rem 1rem !important;
  box-shadow: var(--theme-shadow-sm) !important;
  transition: border-color var(--theme-transition),
              box-shadow var(--theme-transition),
              transform var(--theme-transition) !important;
}

.tech-item:hover {
  border-color: var(--theme-border-strong) !important;
  box-shadow: var(--theme-shadow-md) !important;
  transform: translateY(-2px) !important;
}

.tech-logo {
  border-radius: var(--theme-radius-sm) !important;
}

.tech-name {
  color: var(--theme-text-heading) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

.tech-type {
  font-family: var(--theme-font-mono) !important;
  color: var(--theme-text-muted) !important;
  font-size: 0.75rem !important;
}

/* ── 13. Call-To-Action (CTA) Box ──────────────────────────── */
#cta {
  background: var(--theme-bg) !important;
}

.cta-box {
  background: #0f172a !important; /* Deep Slate Solid Box */
  border-radius: var(--theme-radius-lg) !important;
  border: 1px solid #1e293b !important;
  box-shadow: var(--theme-shadow-md) !important;
  padding: 4.5rem 2.5rem !important;
  color: #ffffff !important;
}

.cta-box::before {
  display: none !important; /* Remove dot-grid svg mask */
}

.cta-box h2 {
  font-family: var(--theme-font-heading) !important;
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
}

.cta-box p {
  color: #cbd5e1 !important;
  font-size: 1.05rem !important;
}

.cta-box .btn {
  background: var(--theme-interactive) !important;
  background-color: var(--theme-interactive) !important;
  color: #ffffff !important;
  border: 1px solid var(--theme-interactive) !important;
  backdrop-filter: none !important;
  box-shadow: var(--theme-shadow-sm) !important;
}

.cta-box .btn:hover {
  background: var(--theme-interactive-hover) !important;
  background-color: var(--theme-interactive-hover) !important;
  border-color: var(--theme-interactive-hover) !important;
  color: #ffffff !important;
  transform: none !important;
}

/* ── 14. Contact Section ───────────────────────────────────── */
#contact {
  background-color: var(--theme-bg-alt) !important;
  border-top: 1px solid var(--theme-border);
}

.contact-info h3 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.contact-info p {
  color: var(--theme-text-body) !important;
}

.contact-icon {
  background: var(--theme-interactive-subtle) !important;
  color: var(--theme-interactive) !important;
  border-radius: var(--theme-radius-sm) !important;
}

.contact-item-label {
  font-family: var(--theme-font-mono) !important;
  color: var(--theme-text-muted) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em !important;
}

.contact-item-val {
  color: var(--theme-text-heading) !important;
  font-weight: 600 !important;
}

.contact-item-val:hover {
  color: var(--theme-interactive) !important;
}

.response-badge {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  border-radius: var(--theme-radius-md) !important;
  font-family: var(--theme-font-mono) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}

/* Contact Form Card */
.contact-form-wrap {
  background: #ffffff !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  box-shadow: var(--theme-shadow-sm) !important;
  padding: 2.5rem !important;
}

.contact-form-wrap::before {
  display: none !important; /* Remove gradient bar */
}

.form-group label {
  font-family: var(--theme-font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--theme-text-heading) !important;
  letter-spacing: 0.02em !important;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #ffffff !important;
  border: 1px solid var(--theme-border-strong) !important;
  border-radius: var(--theme-radius-md) !important;
  color: var(--theme-text-heading) !important;
  font-family: var(--theme-font-body) !important;
  font-size: 0.9375rem !important;
  padding: 0.75rem 1rem !important;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  transition: border-color var(--theme-transition), box-shadow var(--theme-transition);
}

.form-group select option {
  background: #ffffff !important;
  color: var(--theme-text-heading) !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--theme-interactive) !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15) !important;
}

/* ── 15. Footer ────────────────────────────────────────────── */
#footer {
  background: #0f172a !important; /* Deep Slate Foundation */
  border-top: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

.footer-brand .nav-logo {
  color: #ffffff !important;
}

.footer-brand p {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}

.social-link {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
  border-radius: var(--theme-radius-sm) !important;
}

.social-link:hover {
  background: var(--theme-interactive) !important;
  border-color: var(--theme-interactive) !important;
  color: #ffffff !important;
}

.footer-col h5 {
  font-family: var(--theme-font-heading) !important;
  font-size: 0.875rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

.footer-col ul li a {
  color: #94a3b8 !important;
  font-size: 0.9rem !important;
}

.footer-col ul li a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid #1e293b !important;
}

.footer-bottom p {
  color: #64748b !important;
  font-size: 0.85rem !important;
}

.footer-bottom a {
  color: #94a3b8 !important;
}

.footer-bottom a:hover {
  color: #ffffff !important;
}

/* ── 16. Document Pages (Privacy Policy, Terms of Service) ─── */
.doc-header {
  background: var(--theme-bg-alt) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  padding: 7rem 0 3rem !important;
}

.doc-header h1 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem) !important;
  font-weight: 700 !important;
}

.doc-header p {
  color: var(--theme-text-muted) !important;
}

.doc-content {
  color: var(--theme-text-body) !important;
  font-size: 1.05rem !important;
  background: #ffffff !important;
}

.doc-content h2 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  padding-bottom: 0.65rem !important;
}

.doc-content p {
  color: var(--theme-text-body) !important;
}

.doc-content ul li {
  color: var(--theme-text-body) !important;
}

/* ── 17. 404 Page ──────────────────────────────────────────── */
.wrapper-404 {
  background: var(--theme-bg) !important;
}

.num-404 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-primary) !important;
  font-weight: 800 !important;
  filter: none !important;
}

.title-404 {
  font-family: var(--theme-font-heading) !important;
  color: var(--theme-text-heading) !important;
  font-weight: 700 !important;
}

.desc-404 {
  color: var(--theme-text-body) !important;
}

/* ── 18. Inline SVG Icon Styling ───────────────────────────── */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-icon-lg {
  width: 2.25rem;
  height: 2.25rem;
}
