/* ============================================
   LOBATON — DESIGN SYSTEM
   Precision. Discipline. Performance.
   ============================================ */

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

:root {
  /* Core palette — inspired by F-35 stealth coating */
  --bg: #0a0a0c;
  --surface: #111114;
  --surface-2: #18181c;
  --surface-3: #1e1e24;
  --fg: #e8e8ec;
  --fg-2: #9a9aaa;
  --fg-3: #5a5a6e;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.4);
  --warning: #ff6b35;
  --warning-dim: rgba(255, 107, 53, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 229, 255, 0.2);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --wrapper: 1200px;
  --px: clamp(24px, 5vw, 48px);

  /* Timing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

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

/* --- SCROLL PROGRESS --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* --- GRAIN OVERLAY --- */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--wrapper);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.nav-logo .callsign {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--fg);
}

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

.nav-links a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

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

.mobile-nav a {
  font-size: 24px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-nav a:hover {
  color: var(--accent);
}

/* --- WRAPPER --- */
.wrapper {
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* --- SECTION LABEL --- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* --- HUD DECORATIVE ELEMENTS --- */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.4;
}

.hud-corner--tl {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hud-corner--tr {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.hud-corner--bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.hud-corner--br {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 70%);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  animation: scanline 4s linear infinite;
  opacity: 0.3;
}

@keyframes scanline {
  0% { top: -2px; }
  100% { top: 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.2s forwards;
}

.hero-meta .blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.4s forwards;
}

.hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent;
  transition: color 0.4s var(--ease), -webkit-text-stroke 0.4s var(--ease);
}

.hero h1:hover .outline {
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--fg-2);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.8s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #33ecff;
  box-shadow: 0 0 30px var(--accent-dim);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

/* --- STATUS PANEL --- */
.status-section {
  padding: 120px 0;
  position: relative;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
}

.status-cell {
  background: var(--surface);
  padding: 32px;
  position: relative;
  transition: background 0.3s var(--ease);
}

.status-cell:hover {
  background: var(--surface-2);
  border-top: 1px solid var(--accent);
  margin-top: -1px;
}

.status-cell .label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-3);
  margin-bottom: 12px;
}

.status-cell .value {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.status-cell .value.accent {
  color: var(--accent);
}

.status-cell .value.warning {
  color: var(--warning);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  animation: pulse-dot 2s ease infinite;
}

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

/* --- PROJECTS --- */
.projects-section {
  padding: 120px 0;
}

.projects-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.projects-section .subtitle {
  font-size: 16px;
  color: var(--fg-2);
  margin-bottom: 64px;
  max-width: 480px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all 0.4s var(--ease);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  cursor: default;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
}

.project-status.active {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.project-status.complete {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}

.project-status.classified {
  color: var(--warning);
  background: var(--warning-dim);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease);
}

.project-links a:hover {
  color: var(--accent);
}

.project-links a svg {
  width: 14px;
  height: 14px;
}

/* --- FEATURED PROJECT --- */
.featured-project {
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.featured-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warning), transparent);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  align-items: center;
}

.featured-visual {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-visual .placeholder-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-content .project-id {
  margin-bottom: 16px;
}

.featured-content h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.featured-content p {
  color: var(--fg-2);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* --- SKILLS / SYSTEMS --- */
.systems-section {
  padding: 120px 0;
  position: relative;
}

.systems-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.system-cell {
  background: var(--surface);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.system-cell:hover {
  background: var(--surface-2);
}

.system-cell:hover .system-icon {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.system-icon {
  font-size: 24px;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
  color: var(--fg-2);
}

.system-cell h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.system-cell p {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}

.system-level {
  margin-top: 16px;
  height: 2px;
  background: var(--surface-3);
  border-radius: 1px;
  overflow: hidden;
}

.system-level-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 1s var(--ease);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* --- EXPERIENCE / TIMELINE --- */
.timeline-section {
  padding: 120px 0;
}

.timeline-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .org {
  font-size: 14px;
  color: var(--fg-2);
  margin-bottom: 12px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.7;
  max-width: 600px;
}

/* --- ABOUT / STORY --- */
.about-hero {
  padding: 160px 0 80px;
}

.about-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.about-hero .lead {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--fg-2);
  max-width: 600px;
  line-height: 1.7;
}

.about-content {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.about-text p {
  color: var(--fg-2);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-sidebar {
  position: sticky;
  top: 100px;
}

.info-block {
  margin-bottom: 40px;
}

.info-block .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-accent);
}

.info-block ul {
  list-style: none;
}

.info-block li {
  font-size: 14px;
  color: var(--fg-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.info-block li:last-child {
  border-bottom: none;
}

/* --- CONTACT / FOOTER --- */
.contact-section {
  padding: 120px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-section .subtitle {
  color: var(--fg-2);
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.contact-link svg {
  width: 16px;
  height: 16px;
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HUD RADAR (decorative) --- */
.hud-radar {
  position: absolute;
  right: var(--px);
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.08;
  pointer-events: none;
}

.hud-radar circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.5;
}

.hud-radar .sweep {
  fill: var(--accent);
  opacity: 0.3;
  transform-origin: center;
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 80px;
}

.stat {
  background: var(--surface);
  padding: 32px;
  text-align: center;
}

.stat .number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-family: var(--font-mono);
}

.stat .number .accent-char {
  color: var(--accent);
}

.stat .desc {
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-sidebar {
    position: static;
  }

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

  .hud-radar {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .systems-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline-item::before {
    left: -36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

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

/* --- CURSOR GLOW --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* --- PAGE SPECIFIC: PROJECTS --- */
.projects-hero {
  padding: 160px 0 80px;
}

.projects-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.projects-hero .lead {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 520px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* --- CERTIFICATIONS --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s var(--ease);
}

.cert-card:hover {
  border-color: var(--border-hover);
}

.cert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cert-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-card .cert-org {
  font-size: 12px;
  color: var(--fg-3);
}
