/* NEON GARAGE GRID DESIGN SYSTEM */
:root {
  /* Color Palette */
  --bg-primary: #081014;
  --bg-secondary: #0D171C;
  --surface: #122127;
  --surface-elevated: #172A31;
  --accent-cyan: #32D7E8;
  --accent-blue: #4B7BFF;
  --accent-lime: #B7E35F;
  --accent-ice: #DFFAFF;
  --text-muted: #91A6AC;
  --text-main: #DFFAFF;
  --border: #284149;
  --warning: #F29A52;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Layout */
  --container-max: 1400px;
  --grid-gap: 2rem;
  --nav-height: 80px;
}

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

@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;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

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

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

a:hover {
  color: var(--accent-ice);
  text-shadow: 0 0 8px rgba(50, 215, 232, 0.4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent-ice);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

.tech-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.5rem;
}

.data-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-x: auto;
  white-space: nowrap;
}

.data-strip span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-strip span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent-cyan);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

section { padding: 6rem 0; position: relative; }
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--grid-gap); }

.mt-auto { margin-top: auto; }
.align-self-start { align-self: flex-start; }

/* Header & Nav */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(8, 16, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-ice);
  letter-spacing: 0.05em;
}

.brand-desc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

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

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

.nav-links a:hover, .nav-links a.active { color: var(--accent-ice); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  background: var(--bg-secondary);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 6px var(--accent-lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  cursor: pointer;
}

/* UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: rgba(50, 215, 232, 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: inset 0 0 10px rgba(50, 215, 232, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(50, 215, 232, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--border);
}

.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--accent-blue);
  background: rgba(75, 123, 255, 0.1);
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tech-card::before, .tech-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tech-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.tech-card:hover {
  background: var(--surface-elevated);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}
.tech-card:hover::before, .tech-card:hover::after { opacity: 1; }

.card-img-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tech-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: luminosity;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--bg-primary) 10%, transparent 100%);
  z-index: 2;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Service Finder */
.service-finder {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 3rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}

.finder-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.finder-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 calc(25% - 1rem);
  min-width: 200px;
  text-align: left;
}

.finder-btn:hover, .finder-btn.active {
  background: var(--surface-elevated);
  border-color: var(--accent-cyan);
  color: var(--accent-ice);
}

.finder-result {
  min-height: 80px;
  padding: 1.5rem;
  border-left: 2px solid var(--accent-cyan);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-family: var(--font-main);
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Process Workflow */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--border);
  position: absolute;
  top: -1.5rem; right: 1rem;
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

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

.footer-brand { margin-bottom: 1.5rem; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: var(--text-muted); }
.footer-col ul a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface-elevated);
  border-top: 1px solid var(--accent-blue);
  padding: 1.5rem;
  z-index: 9999;
  display: none; /* Controlled by JS */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cookie-text { flex: 1 1 300px; font-size: 0.9rem; }
.cookie-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Utilities */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-4 { margin-bottom: 4rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .status-indicator { display: none; }
  .mobile-toggle { display: block; }
  
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; width: 100%;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    z-index: 999;
  }
  
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .finder-btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .process-grid { grid-template-columns: 1fr; }
}