/* ==========================================================================
   Luar IT — Production Static Stylesheet
   Sovereign European Cybersecurity (Dublin, Ireland)
   Palette: Obsidian (#020407), Midnight (#040814, #071329), Terminal Green (#10b981)
   ========================================================================== */

:root {
  --bg-pitch: #020407;
  --bg-deep: #030713;
  --bg-card: #040814;
  --bg-elevated: #071329;
  --bg-hover: #0c1f42;
  
  --border-midnight: #0e1c38;
  --border-glow: #142852;
  --border-subtle: #0b162c;
  
  --text-white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --terminal-green: #10b981;
  --terminal-green-bright: #34d399;
  --terminal-green-bg: rgba(2, 31, 21, 0.7);
  --terminal-green-border: #065f46;
  
  --accent-sky: #38bdf8;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Glow & Tech Grid */
.lunar-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(14, 28, 56, 0.45) 0%, transparent 65%),
    radial-gradient(circle at 85% 25%, rgba(2, 31, 21, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(7, 19, 41, 0.4) 0%, transparent 60%);
}

.lunar-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(14, 28, 56, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 28, 56, 0.22) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 75%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Utilities & Badges */
.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: var(--terminal-green-bg);
  border: 1px solid var(--terminal-green-border);
  color: var(--terminal-green-bright);
}

.badge-midnight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-glow);
  color: #93c5fd;
}

.badge-red {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background-color: rgba(185, 28, 28, 0.25);
  border: 1px solid #991b1b;
  color: #fca5a5;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background-color: var(--terminal-green);
  color: #020407;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--terminal-green-bright);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: #1e3a70;
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Cards & Bento Grid */
.card-midnight {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-midnight);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.card-midnight:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(14, 28, 56, 0.3);
}

/* Terminal Window */
.terminal-window {
  background-color: #010307;
  border: 1px solid var(--border-midnight);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 28, 56, 0.2);
}

.terminal-header {
  background-color: #050b18;
  border-bottom: 1px solid var(--border-midnight);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-amber { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-body {
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
}

/* Section titles */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terminal-green);
}

.section-heading {
  font-size: 2.25rem;
  margin: 0.4rem 0 0.8rem 0;
  color: #fff;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.modal-box {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(20, 40, 82, 0.4);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #032014;
  border: 1px solid var(--terminal-green);
  color: #a7f3d0;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulses */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pulse-indicator {
  animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* SVG icons */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text-white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 1rem;
  background-color: #030713;
  border-bottom: 1px solid var(--border-midnight);
  padding: 1.25rem 1.5rem;
}

.mobile-nav-drawer.active {
  display: flex;
}

/* Responsive */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .section-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
  .section-heading {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 1rem;
  }
}
