/**
 * SolidCore Technologies - Global Design System & Core Stylesheet
 * Enterprise Critical Infrastructure Aesthetic: Deep Navy, Graphite, Electric Blue & Engineering Grid
 */

:root {
  /* Color Palette - Enterprise Dark */
  --color-navy-darkest: #070d19;
  --color-navy-900: #0b132b;
  --color-navy-800: #111c38;
  --color-navy-700: #1c2541;
  --color-navy-600: #243256;
  
  /* Color Palette - Clean Content Surfaces */
  --color-bg-page: #f8fafc;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-border-accent: rgba(0, 163, 255, 0.3);

  /* Accents & Brand Markers */
  --color-blue-primary: #0066ff;
  --color-blue-hover: #0052cc;
  --color-cyan-electric: #00d2ff;
  --color-cyan-glow: rgba(0, 210, 255, 0.15);
  --color-amber-accent: #f59e0b;
  --color-emerald-accent: #10b981;

  /* Typography Colors */
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-text-white: #ffffff;
  --color-text-white-muted: #cbd5e1;
  --color-text-white-dim: #94a3b8;

  /* Typography Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --container-narrow: 980px;
  --container-pad: 1.5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-dark: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.25);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Technical Blueprint Grid Background */
.bg-grid-dark {
  background-color: var(--color-navy-darkest);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-grid-subtle {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

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

/* Typography Standards */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-dark-theme h1,
.text-dark-theme h2,
.text-dark-theme h3,
.text-dark-theme h4,
.text-dark-theme h5,
.text-dark-theme h6,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-white);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }

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

p:last-child {
  margin-bottom: 0;
}

.section-dark p {
  color: var(--color-text-white-muted);
}

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

a:hover {
  color: var(--color-blue-hover);
}

/* Engineering Monospace Technical Badges */
.badge-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.badge-blue {
  background: rgba(0, 102, 255, 0.1);
  color: var(--color-blue-primary);
  border: 1px solid rgba(0, 102, 255, 0.25);
}

.badge-cyan {
  background: rgba(0, 210, 255, 0.1);
  color: #0284c7;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-dark-cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--color-cyan-electric);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========================================================
   SECTION 1: UTILITY TOP BAR
   ======================================================== */
.utility-bar {
  background-color: #050914;
  color: var(--color-text-white-dim);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
  position: relative;
  z-index: 1010;
}

.utility-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-white-dim);
  text-decoration: none;
}

.utility-item a {
  color: var(--color-text-white-muted);
}

.utility-item a:hover {
  color: var(--color-cyan-electric);
}

.utility-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-cyan-electric);
  flex-shrink: 0;
}

.utility-tag {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* ========================================================
   SECTION 2: MAIN STICKY NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(7, 13, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand Wordmark */
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0066ff, #00d2ff);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--color-text-white);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-title span {
  color: var(--color-cyan-electric);
}

.brand-subtitle {
  color: var(--color-text-white-dim);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-text-white-muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link svg.caret {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link svg.caret {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: #0c142c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 1050;
}

.dropdown-menu.dropdown-wide {
  min-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-white-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dropdown-link-icon {
  width: 28px;
  height: 28px;
  background: rgba(0, 102, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-link-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-cyan-electric);
}

.dropdown-link-text {
  display: flex;
  flex-direction: column;
}

.dropdown-link-title {
  font-weight: 600;
  font-size: 0.885rem;
  color: var(--color-text-white);
  line-height: 1.3;
}

.dropdown-link-desc {
  font-size: 0.75rem;
  color: var(--color-text-white-dim);
  line-height: 1.3;
  margin-top: 2px;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-toggle-btn svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

/* ========================================================
   BUTTONS AND INTERACTIVE CTAs
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-primary), #0052cc);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a75ff, #0052cc);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.btn-outline-dark:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-muted);
}

.btn-cyan {
  background: rgba(0, 210, 255, 0.15);
  color: var(--color-cyan-electric);
  border-color: rgba(0, 210, 255, 0.4);
}

.btn-cyan:hover {
  background: rgba(0, 210, 255, 0.25);
  color: #ffffff;
  border-color: var(--color-cyan-electric);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: transparent;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  color: #ffffff;
}

/* ========================================================
   SECTION PADDING & FOUNDATIONS
   ======================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--color-navy-darkest);
  color: var(--color-text-white);
}

.section-darker {
  background-color: #040810;
  color: var(--color-text-white);
}

.section-light {
  background-color: #ffffff;
}

.section-subtle {
  background-color: var(--color-bg-page);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-tagline {
  color: var(--color-blue-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-dark .section-tagline {
  color: var(--color-cyan-electric);
}

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

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: var(--color-text-white-muted);
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background-color: #040711;
  color: var(--color-text-white-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr 1.25fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: var(--color-text-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--color-text-white-dim);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-cyan-electric);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--color-text-white-dim);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ========================================================
   RESPONSIVE NAVIGATION & MEDIA QUERIES
   ======================================================== */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .utility-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .utility-right {
    display: none;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--color-navy-darkest);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1100;
  padding: 1.5rem;
  overflow-y: auto;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.mobile-nav-link {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.mobile-sub-links {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-sub-link {
  color: var(--color-text-white-dim);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  display: block;
}

.mobile-sub-link:hover {
  color: var(--color-cyan-electric);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
