/* 
 * Cross Components, Inc. - Core Styling & Design System
 * Built with Vanilla CSS for Maximum Speed, Elegance, and Maintainability
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --bg-dark: #070b13;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --primary: #06b6d4; /* Electric Cyan */
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.15);
  --accent: #2563eb; /* Cobalt Blue */
  --accent-glow: rgba(37, 99, 235, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dimmed: #6b7280;
  
  --success: #10b981; /* Emerald Green */
  --warning: #f59e0b; /* Amber */
  --danger: #ef4444; /* Coral Red */
  
  /* Borders & Glassmorphism */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(6, 182, 212, 0.4);
  --glass-border: 1px solid var(--border-color);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  backdrop-filter: blur(10px);
}

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

.btn-accent {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-accent:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 11, 19, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  transition: var(--transition-normal);
}

.header-scrolled {
  background: rgba(7, 11, 19, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 6px;
}

.logo-icon::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid white;
  transform: rotate(45deg);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: rgba(7, 11, 19, 0.95);
    backdrop-filter: blur(20px);
    border-left: var(--glass-border);
    flex-direction: column;
    padding: 3rem 2rem;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-normal);
  }
  
  .nav-menu.open {
    right: 0;
  }
}

/* ==========================================================================
   Home Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  background-image: 
    linear-gradient(rgba(7, 11, 19, 0.85), rgba(7, 11, 19, 0.95)), 
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--primary-glow);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-desc { font-size: 1rem; }
}

/* ==========================================================================
   Cards & Glassmorphism Components
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Page Headers & Intros
   ========================================================================== */
.page-header {
  padding-top: 160px;
  padding-bottom: 4rem;
  background: linear-gradient(rgba(7, 11, 19, 1), rgba(7, 11, 19, 0.8)), 
              url('../images/hero-bg.png') center/cover no-repeat;
  border-bottom: var(--glass-border);
  position: relative;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
}

@media (max-width: 768px) {
  .page-title { font-size: 2.2rem; }
  .page-intro { font-size: 1rem; }
}

/* ==========================================================================
   Interactive Parts Search Page (`search.html`)
   ========================================================================== */
.search-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .search-wrapper {
    grid-template-columns: 1fr;
  }
}

.search-box-container {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.search-box-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: transparent;
  color: var(--text-main);
  border: none;
}

.search-btn {
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-btn:hover {
  background: var(--primary-hover);
}

/* Results Grid/Table */
.results-table-container {
  background: rgba(17, 24, 39, 0.6);
  border: var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.results-table th, .results-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-table th {
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  font-weight: 600;
}

.results-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.status-instock { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-shortage { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.status-eol { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* BOM Upload Dropzone */
.bom-upload-card {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(17, 24, 39, 0.4);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bom-upload-card:hover, .bom-upload-card.dragover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.03);
}

.bom-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.bom-upload-input {
  display: none;
}

/* Sourcing Analyzer Simulation Styles */
.analysis-progress-container {
  margin-top: 2rem;
  text-align: left;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.1s linear;
}

.analysis-results-card {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease-out;
}

/* ==========================================================================
   Line Card Page (`linecard.html`)
   ========================================================================== */
.linecard-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.manufacturer-card {
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.manufacturer-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

/* ==========================================================================
   Quality Page Details (`quality.html`)
   ========================================================================== */
.quality-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  gap: 1.5rem;
  position: relative;
}

.quality-flow::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  z-index: 1;
}

.quality-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.quality-flow-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
  transition: var(--transition-normal);
}

.quality-flow-step:hover .quality-flow-circle {
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.quality-flow-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.quality-flow-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 180px;
}

@media (max-width: 768px) {
  .quality-flow {
    flex-direction: column;
  }
  .quality-flow::after {
    display: none;
  }
  .quality-flow-step {
    margin-bottom: 2rem;
  }
}

/* ==========================================================================
   Contact Us Page (`contact.html`)
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.quote-sidebar {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
}

.quote-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  position: relative;
}

.quote-text::before {
  content: '“';
  font-size: 4rem;
  position: absolute;
  top: -2.5rem;
  left: -1rem;
  color: var(--primary);
  opacity: 0.3;
}

.quote-author {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Services Dynamic Pricing Chart Simulation
   ========================================================================== */
.chart-box {
  background: rgba(17, 24, 39, 0.6);
  border: var(--glass-border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--glass-shadow);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-align: center;
}

.chart-bars-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chart-bar-label {
  width: 140px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chart-bar-bg {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.fill-franchise {
  width: 90%;
  background: linear-gradient(90deg, #ef4444, #b91c1c); /* Red gradient */
}

.fill-cross {
  width: 58%;
  background: linear-gradient(90deg, var(--primary), var(--accent)); /* Cyan gradient */
}

/* ==========================================================================
   Weekly Posts & Social Hub (`news.html`)
   ========================================================================== */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.blog-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--glass-border);
}

.blog-img-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.6;
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dimmed);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Market News Side Widgets */
.news-widget {
  background: rgba(17, 24, 39, 0.6);
  border: var(--glass-border);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
}

.alert-item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.alert-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.alert-item.alert-danger::before {
  background: var(--danger);
}

.alert-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.alert-time {
  font-size: 0.75rem;
  color: var(--text-dimmed);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #04070c;
  border-top: var(--glass-border);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.25rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--primary);
}

/* Sector Badges (Aerospace, Medical, etc.) */
.footer-sectors {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0;
  text-align: center;
}

.sectors-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dimmed);
  margin-bottom: 1.5rem;
}

.sectors-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.sector-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.sector-item:hover {
  color: var(--primary);
}

.sector-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dimmed);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   Modals & Success States
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(7, 11, 19, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 1.5s linear infinite;
}
