/* =========================================
   XADRAK — Global Design System
   Dark Cyber Lab · Terminal · Intel
   ========================================= */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #05070A;
  color: #CBD5E1;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- CSS VARIABLES --- */
:root {
  --black: #05070A;
  --graphite: #111827;
  --graphite-light: #1A2332;
  --graphite-mid: #0F1923;
  --green: #00FF88;
  --cyan: #00E5FF;
  --red: #FF3B3B;
  --orange: #FF8C42;
  --yellow: #FFD166;
  --text: #CBD5E1;
  --text-muted: #64748B;
  --text-soft: #94A3B8;
  --white: #F8FAFC;
  --border: rgba(0, 229, 255, 0.12);
  --border-green: rgba(0, 255, 136, 0.15);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.25);
  --glow-green: 0 0 20px rgba(0, 255, 136, 0.25);
  --mono: 'JetBrains Mono', 'Space Mono', monospace;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; opacity: 0.5; }

/* --- SELECTION --- */
::selection { background: rgba(0, 229, 255, 0.25); color: var(--white); }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav.scrolled { background: rgba(5, 7, 10, 0.97); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.logo-icon { display: flex; align-items: center; }
.logo-text { background: linear-gradient(135deg, #00E5FF, #00FF88); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.nav-link:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.06); }
.nav-link.cta-nav {
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 4px;
}
.nav-link.cta-nav:hover { background: rgba(0, 255, 136, 0.1); box-shadow: var(--glow-green); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--cyan); transition: all 0.3s; border-radius: 2px; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.particles {
  position: absolute;
  inset: 0;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--cyan);
  animation: particleFloat linear infinite;
  opacity: 0;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.6; transform: scale(1); }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100px) scale(0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.terminal-boot {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
}
.prompt { color: var(--cyan); margin-right: 0.5rem; }
.cursor-blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-title {
  font-family: var(--mono);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}

.title-glitch {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #00E5FF 0%, #00FF88 50%, #00E5FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.4));
  animation: titlePulse 4s ease-in-out infinite;
}
.title-glitch::before,
.title-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #FF3B3B, #00E5FF);
  -webkit-background-clip: text;
  background-clip: text;
  animation: glitch 8s infinite;
  opacity: 0;
}
.title-glitch::after {
  background: linear-gradient(135deg, #00FF88, #FF3B3B);
  -webkit-background-clip: text;
  background-clip: text;
  animation: glitch 8s infinite 0.1s;
}
@keyframes glitch {
  0%, 92%, 100% { opacity: 0; clip-path: none; transform: none; }
  93% { opacity: 0.7; clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  95% { opacity: 0.7; clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  97% { opacity: 0.5; clip-path: inset(40% 0 40% 0); transform: translate(-2px, 1px); }
}
@keyframes titlePulse {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 60px rgba(0, 255, 136, 0.5)); }
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sep { color: var(--cyan); margin: 0 0.5rem; }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px var(--green); } 50% { box-shadow: 0 0 16px var(--green); } }

/* --- TERMINAL WIDGET --- */
.terminal-widget {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  width: 100%;
  max-width: 600px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green { background: #28C840; }
.t-title { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); margin-left: 6px; }

.terminal-body {
  padding: 1rem 1.25rem;
  min-height: 120px;
  max-height: 200px;
  overflow-y: auto;
}
.t-line {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.t-hint { color: var(--text-muted); font-style: italic; margin-top: 0.5rem; }
.t-prompt { color: var(--cyan); margin-right: 0.5rem; }
.t-text { color: var(--text); }
.t-accent { color: var(--green); }
.t-success { color: var(--green); }
.t-error { color: var(--red); }
.t-info { color: var(--cyan); }

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}
.t-prompt-input { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); white-space: nowrap; }
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  caret-color: var(--green);
}
.terminal-input::placeholder { color: var(--text-muted); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #00E5FF, #00B8CC);
  color: #05070A;
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 229, 255, 0.4); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}
.btn-secondary:hover { background: rgba(0, 255, 136, 0.08); box-shadow: var(--glow-green); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(203, 213, 225, 0.15);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(203, 213, 225, 0.35); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.btn-outline:hover { background: rgba(0, 229, 255, 0.06); box-shadow: var(--glow-cyan); }

.btn-full { width: 100%; justify-content: center; }

/* =========================================
   SECTION SHARED
   ========================================= */
section { padding: 6rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}
.section-title {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}
.section-footer { text-align: center; margin-top: 2.5rem; }

/* =========================================
   DAILY BRIEFING
   ========================================= */
.briefing { background: var(--graphite-mid); }

.briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.brief-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.brief-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 3px 0 0 3px;
}
.brief-card.critical::before { background: var(--red); box-shadow: 0 0 12px rgba(255, 59, 59, 0.5); }
.brief-card.high::before { background: var(--orange); box-shadow: 0 0 12px rgba(255, 140, 66, 0.5); }
.brief-card.medium::before { background: var(--yellow); box-shadow: 0 0 12px rgba(255, 209, 102, 0.4); }

.brief-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.brief-severity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.severity-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 3px;
}
.severity-badge.critical { background: rgba(255, 59, 59, 0.15); color: var(--red); border: 1px solid rgba(255, 59, 59, 0.3); }
.severity-badge.high { background: rgba(255, 140, 66, 0.15); color: var(--orange); border: 1px solid rgba(255, 140, 66, 0.3); }
.severity-badge.medium { background: rgba(255, 209, 102, 0.12); color: var(--yellow); border: 1px solid rgba(255, 209, 102, 0.3); }

.brief-source { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.brief-meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.brief-date { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); }
.brief-tag { font-family: var(--mono); font-size: 0.65rem; color: var(--cyan); background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.15); padding: 1px 6px; border-radius: 3px; }
.brief-title { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; line-height: 1.4; }
.brief-summary { font-size: 0.85rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 1rem; }
.brief-link { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); display: inline-flex; align-items: center; gap: 0.35rem; transition: gap 0.2s; }
.brief-link:hover { gap: 0.6rem; }

/* =========================================
   AREAS DE ATUAÇÃO
   ========================================= */
.areas { background: var(--black); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.area-card {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.area-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 229, 255, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.area-card:hover { border-color: rgba(0, 229, 255, 0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.area-card:hover::after { opacity: 1; }

.area-icon { margin-bottom: 1rem; }
.area-title { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.area-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.area-tag { font-family: var(--mono); font-size: 0.65rem; color: var(--green); background: rgba(0, 255, 136, 0.08); border: 1px solid rgba(0, 255, 136, 0.2); padding: 2px 8px; border-radius: 3px; display: inline-block; letter-spacing: 1px; }

/* =========================================
   INTEL PANEL
   ========================================= */
.intel-panel {
  background: linear-gradient(135deg, #0A0F1A 0%, #050A14 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}
.intel-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.intel-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.intel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.tl-label { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; display: block; margin-bottom: 4px; }
.tl-value { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; letter-spacing: 3px; }
.tl-value.elevated { color: var(--orange); text-shadow: 0 0 20px rgba(255, 140, 66, 0.4); }
.tl-bar { width: 200px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.tl-fill { height: 100%; width: 70%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 2px; animation: tlPulse 2s ease-in-out infinite; }
@keyframes tlPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.intel-meta { text-align: right; }
.intel-date { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.intel-badge { font-family: var(--mono); font-size: 0.65rem; color: var(--green); background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.25); padding: 2px 8px; border-radius: 3px; letter-spacing: 1px; animation: pulse 2s infinite; }

.intel-title { font-family: var(--mono); font-size: 0.9rem; color: var(--cyan); margin-bottom: 1.25rem; }
.risks-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.risk-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.3); border-radius: 6px; border-left: 2px solid transparent; transition: all 0.2s; }
.risk-item:hover { background: rgba(0, 229, 255, 0.04); border-left-color: var(--cyan); }
.risk-num { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); min-width: 24px; }
.risk-text { flex: 1; font-size: 0.85rem; color: var(--text); }
.risk-severity { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; }
.critical-text { color: var(--red); }
.high-text { color: var(--orange); }
.medium-text { color: var(--yellow); }
.intel-cta { text-align: center; }

/* =========================================
   LABS
   ========================================= */
.labs-section { background: var(--graphite-mid); }

.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.lab-card {
  background: var(--graphite);
  border: 1px solid var(--border-green);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.lab-card:hover { border-color: rgba(0, 255, 136, 0.35); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-green); }
.lab-type { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--green); letter-spacing: 2px; margin-bottom: 0.75rem; }
.lab-title { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; line-height: 1.4; }
.lab-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.lab-footer { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lab-tag { font-family: var(--mono); font-size: 0.64rem; color: var(--green); background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.15); padding: 2px 7px; border-radius: 3px; }

/* =========================================
   ABOUT
   ========================================= */
.about-section { background: var(--black); }
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}
.about-terminal {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.about-terminal-body { padding: 1.25rem; }
.at-line { font-family: var(--mono); font-size: 0.78rem; margin-bottom: 0.5rem; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.at-key { color: var(--cyan); min-width: 60px; }
.at-sep { color: var(--text-muted); }
.at-val { color: var(--text); }
.at-prompt { color: var(--cyan); margin-right: 0.5rem; }
.at-cmd { color: var(--green); }
.at-output { color: var(--text-muted); padding-left: 1.2rem; font-style: italic; }
.accent-cyan { color: var(--cyan); }
.accent-green { color: var(--green); }

.about-text .section-tag { text-align: left; margin-bottom: 0.5rem; }
.about-text .section-title { text-align: left; margin-bottom: 1.25rem; }
.about-p { color: var(--text-soft); line-height: 1.7; margin-bottom: 1rem; font-size: 0.95rem; }
.highlight-text { color: var(--cyan); font-family: var(--mono); font-size: 0.88rem; }

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter-section {
  background: linear-gradient(135deg, #0A1628, #051020);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
}
.newsletter-container { max-width: 560px; margin: 0 auto; }
.nl-icon { margin-bottom: 1.5rem; }
.nl-title { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.nl-sub { color: var(--text-muted); margin-bottom: 2rem; }
.nl-form { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.nl-input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.nl-input:focus { border-color: rgba(0, 229, 255, 0.4); }
.nl-disclaimer { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); }

/* =========================================
   SOCIAL
   ========================================= */
.social-section { background: var(--black); padding-bottom: 4rem; }
.social-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: all 0.25s ease;
  min-width: 90px;
}
.social-card:hover { color: var(--cyan); border-color: rgba(0, 229, 255, 0.35); transform: translateY(-3px); box-shadow: var(--glow-cyan); background: rgba(0, 229, 255, 0.04); }
.social-card.nl-card:hover { color: var(--green); border-color: rgba(0, 255, 136, 0.35); box-shadow: var(--glow-green); background: rgba(0, 255, 136, 0.04); }

/* =========================================
   CONTACT
   ========================================= */
.contact-section { background: var(--graphite-mid); }
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 0.5rem; }
.contact-item { /* */ }
.contact-label { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.contact-val { font-family: var(--mono); font-size: 0.82rem; color: var(--text); }
.contact-hash { color: var(--cyan); opacity: 0.7; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 1px; }
.form-input {
  padding: 0.7rem 1rem;
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.06); }
.form-textarea { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; }
select.form-input option { background: var(--graphite); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-tagline { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-sub { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); opacity: 0.6; font-style: italic; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; color: var(--cyan); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); }
.footer-hash { font-family: var(--mono); font-size: 0.65rem; color: var(--text-muted); opacity: 0.5; }

/* =========================================
   BLACKBOX / SECRET RESUME
   ========================================= */
.blackbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  overflow-y: auto;
  backdrop-filter: blur(8px);
}
.blackbox-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.blackbox-container {
  width: 100%;
  max-width: min(1560px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
  flex-shrink: 0;
}
.blackbox-terminal {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.1);
}
.blackbox-body { padding: 1rem 1.25rem; }
.bb-line { font-family: var(--mono); font-size: 0.82rem; color: var(--text); margin-bottom: 0.4rem; }

.resume-content {
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 3rem);
  display: none;
}
.resume-content.visible { display: block; animation: slideIn 0.5s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.resume-header-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--red);
  border: 1px solid rgba(255, 59, 59, 0.3);
  background: rgba(255, 59, 59, 0.06);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.resume-name { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--cyan); margin-bottom: 0.5rem; letter-spacing: 4px; }
.resume-title { font-family: var(--mono); font-size: 0.85rem; color: var(--green); margin-bottom: 1rem; }
.resume-meta-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 6px;
}
.resume-meta-item {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}
.resume-section { margin-bottom: 2rem; }
.rs-title { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); margin-bottom: 1rem; letter-spacing: 1px; }
.resume-section p { font-size: 0.88rem; color: var(--text-soft); line-height: 1.7; }
.exp-item { display: flex; gap: 1rem; margin-bottom: 1rem; padding: 0.75rem; background: rgba(0, 0, 0, 0.2); border-radius: 6px; border-left: 2px solid var(--cyan); }
.exp-num { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); min-width: 28px; flex-shrink: 0; }
.exp-period { display: block; font-size: 0.72rem; font-family: var(--mono); color: var(--cyan); margin-bottom: 0.35rem; }
.exp-item > div { font-size: 0.85rem; color: var(--text-soft); line-height: 1.65; }
.skills-grid-r { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--green); background: rgba(0, 255, 136, 0.08); border: 1px solid rgba(0, 255, 136, 0.2); padding: 4px 10px; border-radius: 4px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about-container { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 4rem 1.25rem; }
  .blackbox-overlay { padding: 0.75rem; }
  .blackbox-container { max-width: 100%; gap: 1rem; }
  .resume-content { border-radius: 10px; }
  .resume-name { font-size: 2rem; letter-spacing: 2px; }
  .resume-title { font-size: 0.78rem; line-height: 1.6; }
  .resume-meta-row { gap: 0.6rem; }
  .resume-meta-item { width: 100%; }
  .exp-item { gap: 0.75rem; padding: 0.7rem; }
  .skill-tag { max-width: 100%; overflow-wrap: anywhere; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(5, 7, 10, 0.98); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 1.25rem 80px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .terminal-widget { margin-top: 2rem; }
  .intel-header { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nl-form { flex-direction: column; }
  .social-grid { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.5rem; }
  .blackbox-overlay { padding: 0.5rem; }
  .blackbox-body { padding: 0.85rem; }
  .resume-content { padding: 1rem; }
  .resume-header-badge { font-size: 0.6rem; line-height: 1.4; }
  .exp-item { flex-direction: column; }
  .exp-num { min-width: 0; }
  .areas-grid { grid-template-columns: 1fr; }
  .briefing-grid { grid-template-columns: 1fr; }
  .labs-grid { grid-template-columns: 1fr; }
}
