/* ==========================================================================
   PDQ Technology Solutions — Professional, Dedicated, Quality
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-primary: #060913;
  --bg-surface: #0c1222;
  --bg-surface-elevated: #111a33;
  --bg-surface-glass: rgba(12, 18, 34, 0.75);
  --bg-card: rgba(17, 26, 51, 0.6);
  --bg-card-hover: rgba(22, 34, 66, 0.85);

  /* Primary Accent: Electric Cyan & Tech Blue */
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --accent-cyan-subtle: rgba(0, 242, 254, 0.1);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.3);
  --accent-indigo: #6366f1;

  /* Secondary Accents: Emerald Green & Security Amber */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-glow: #e2e8f0;

  /* Borders & Lines */
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-cyan: rgba(0, 242, 254, 0.3);
  --border-cyan-hover: rgba(0, 242, 254, 0.6);
  --border-emerald: rgba(16, 185, 129, 0.3);

  /* Font Families */
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Layout & Spacing */
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Background Ambient Tech Glows */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 5.5rem 0;
  position: relative;
}

.section-hero {
  padding: 7rem 0 5.5rem;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 80%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-ai {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--border-emerald);
  color: var(--accent-emerald);
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060913;
  font-weight: 900;
  font-family: var(--font-heading);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #040812;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-cyan);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Cards & Surface Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-cyan-subtle);
}

.card.featured {
  border-color: var(--border-cyan);
  background: linear-gradient(180deg, rgba(17, 26, 51, 0.85) 0%, rgba(12, 18, 34, 0.95) 100%);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-subtle);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.card-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--border-emerald);
  color: var(--accent-emerald);
}

.card-features {
  list-style: none;
  margin: 1.5rem 0;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.card-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  margin-top: 3px;
}

.card-features li.emerald svg {
  color: var(--accent-emerald);
}

/* Terminal / Code Window Preview Component */
.terminal-window {
  background: #070c17;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-cyan-subtle);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.terminal-header {
  background: #0b1324;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.terminal-body {
  padding: 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.terminal-prompt { color: var(--accent-cyan); }
.terminal-success { color: var(--accent-emerald); font-weight: 600; }
.terminal-highlight { color: #f8fafc; font-weight: 600; }

/* Stats & Metrics Grid */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3.5rem 0 1rem;
}

.metric-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding: 0 1rem;
}
.metric-item:last-child {
  border-right: none;
}

.metric-val {
  font-size: 2.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Pillar Showcase (Professional, Dedicated, Quality) */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pillar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

.pillar-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: var(--transition);
}

.pillar-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan);
}

.pillar-box:hover::before {
  opacity: 1;
}

.pillar-letter {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Forms & Interactive Inputs */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #070c17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-subtle);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Comparison Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  margin: 2.5rem 0;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.tech-table th, .tech-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.footer {
  background: #04060d;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .card-grid-3, .pillar-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }

  /* Mobile Dropdown Nav */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-cyan);
    padding: 1.5rem;
    gap: 1.25rem;
    z-index: 100;
  }

  .card-grid-3, .card-grid-2, .pillar-row {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
  }
  .metric-item:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
