/* ================================================================
   PORTFOLIO — STYLES.CSS  |  Echelon / Anduril / DoD Theme
   Quick edits → change :root variables below
================================================================ */

/* ---------------------------------------------------------------- VARIABLES ---- */
:root {
  --bg: #000000;
  --panel: #0a0a0a;
  --card: #111111;
  --card-hov: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.18);
  --border-solid: #333333;
  --text: #d1d5db;
  --dim: #6b7280;
  --dim2: #4b5563;
  --hi: #ffffff;
  --green: #22c55e;
  --green-glow: #00ff41;
  --blue: #3b82f6;
  --orange: #f97316;
  --rose: #f43f5e;
  --f-sans: "Inter", sans-serif;
  --f-mono: "JetBrains Mono", monospace;
  --nav-h: 72px;
  --wrap: 1400px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  font-family: var(--f-mono);
}
.container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------------------------------------------------------------- LOADING SCREEN ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-track {
  width: 260px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: #fff;
  animation: loading 1.8s ease-in-out infinite;
}
@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.loader-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  animation: pulse-o 1.2s ease-in-out infinite;
}
@keyframes pulse-o {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------------------------------------------------------------- BACKGROUND LAYERS ---- */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.space-bg {
  background-image:
    radial-gradient(
      ellipse at 20% 30%,
      rgba(138, 43, 226, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(30, 144, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 20%,
      rgba(255, 20, 147, 0.03) 0%,
      transparent 40%
    ),
    radial-gradient(
      ellipse at 30% 80%,
      rgba(0, 191, 255, 0.04) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse at 60% 50%,
      rgba(80, 0, 180, 0.04) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, #000000 0%, #05000f 50%, #000000 100%);
}

.cosmic-haze {
  opacity: 0.4;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      rgba(138, 43, 226, 0.03) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(30, 144, 255, 0.025) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse at 50% 30%,
      rgba(255, 20, 147, 0.02) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 40% 80%,
      rgba(0, 191, 255, 0.025) 0%,
      transparent 68%
    );
  background-size:
    150% 150%,
    150% 150%,
    150% 150%,
    150% 150%;
  animation: haze 200s ease-in-out infinite alternate;
}
@keyframes haze {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-20px, 10px) scale(1.1);
  }
}

.starfield {
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 35% 65%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 75% 45%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 25% 55%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 65% 75%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 8% 70%, rgba(255, 255, 255, 0.32), transparent),
    radial-gradient(1px 1px at 88% 35%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(2px 2px at 22% 42%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(2px 2px at 62% 22%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(2px 2px at 42% 72%, rgba(255, 255, 255, 0.14), transparent),
    radial-gradient(2px 2px at 82% 52%, rgba(255, 255, 255, 0.09), transparent);
  background-size:
    200% 200%,
    200% 200%,
    200% 200%,
    200% 200%,
    200% 200%,
    200% 200%,
    200% 200%,
    200% 200%,
    300% 300%,
    300% 300%,
    300% 300%,
    300% 300%;
  animation: drift 120s ease-in-out infinite;
}
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-10px, -5px) scale(1.02);
  }
  50% {
    transform: translate(5px, -10px) scale(0.98);
  }
  75% {
    transform: translate(-5px, 10px) scale(1.01);
  }
}

.grid-pattern {
  opacity: 0.15;
  background-size: 120px 120px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.vignette-bottom {
  background: linear-gradient(
    to bottom,
    transparent 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

.scanline {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 1;
  background: linear-gradient(
    0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 50%,
    transparent 100%
  );
  pointer-events: none;
  bottom: 100%;
  animation: scanline 8s linear infinite;
}
@keyframes scanline {
  0% {
    bottom: 100%;
  }
  100% {
    bottom: -80px;
  }
}

nav,
section,
footer,
.overlay {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- NAVIGATION ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background var(--ease),
    border-color var(--ease),
    padding var(--ease);
  padding: 28px 0;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-diamond {
  width: 32px;
  height: 32px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nav-diamond-inner {
  width: 22px;
  height: 22px;
  border: 2px solid #000;
}
.nav-diamond.sm {
  width: 24px;
  height: 24px;
}
.nav-diamond-inner.sm {
  width: 16px;
  height: 16px;
}
.nav-name {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hi);
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--dim);
  transition: color var(--ease);
}
.nav-links a:hover {
  color: var(--hi);
}
.contact-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--hi);
  color: #000;
  border: none;
  padding: 10px 18px;
  transition:
    background var(--ease),
    color var(--ease);
}
.contact-btn:hover {
  background: #e5e5e5;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hi);
  transition: var(--ease);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.97);
  border-top: 1px solid var(--border);
  padding: 20px 48px 28px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.mobile-menu a:hover {
  color: var(--hi);
}
.mobile-menu button {
  margin-top: 20px;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--hi);
  color: #000;
  border: none;
  padding: 10px 18px;
}

/* ---------------------------------------------------------------- SECTION HEADERS ---- */
.sec-hdr {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.sec-hdr-simple {
  margin-bottom: 64px;
}
.sec-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--hi);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-title {
  font-family: var(--f-sans);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--hi);
  line-height: 1;
}
.sec-note {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--dim);
  max-width: 380px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- HERO ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  
}

.hero-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  opacity: 0.5;
}
.status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hi);
  padding: 3px 10px;
}
.status-sep {
  color: var(--dim2);
}
.status-txt {
  color: var(--text);
}
.hero-name {
  font-family: var(--f-sans);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--hi);
  margin-bottom: 28px;
  user-select: none;
}
.hero-name-fade {
  display: block;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.35) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bio {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dim);
  max-width: 520px;
  margin: 0 auto 48px;
  letter-spacing: 0.01em;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--hi);
  color: #000;
  padding: 12px 24px;
  transition:
    filter var(--ease),
    transform var(--ease);
}
.btn-primary:hover {
  filter: invert(1);
  transform: translateY(-1px);
  color: #fff;
}
.btn-arrow {
  flex-shrink: 0;
  transition: transform var(--ease);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-ghost {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  transition:
    color var(--ease),
    border-color var(--ease);
}
.btn-ghost:hover {
  color: var(--hi);
  border-color: var(--hi);
}
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #fff, transparent);
}
.scroll-label {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--dim2);
  animation: pulse-o 2s ease-in-out infinite;
}

/* ---------------------------------------------------------------- EXPERIENCE ---- */
#experience {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.tl-item {
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  transition: border-color var(--ease);
}
.tl-item:hover {
  border-color: var(--border-hi);
}
.tl-dot {
  position: absolute;
  left: -5px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--hi);
  transition: background var(--ease);
}
.tl-item:hover .tl-dot {
  background: var(--hi);
}
.tl-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
}
.tl-company {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hi);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tl-period {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--dim);
}
.tl-location {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim2);
  margin-top: 16px;
}
.tl-role {
  font-family: var(--f-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hi);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: color var(--ease);
}
.tl-item:hover .tl-role {
  color: #e5e5e5;
}
.tl-duties {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tl-duties li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--dim);
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95rem;
}
.tl-duties li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- PROJECTS ---- */
#projects {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--border);
  color: var(--dim);
  padding: 6px 14px;
  transition:
    color var(--ease),
    border-color var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--hi);
  border-color: var(--hi);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: transparent;
  border: none;
  overflow: visible;
}
.proj-card {
  position: relative;
  height: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}
.proj-card:hover {
  border-color: var(--hi);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  z-index: 10;
}
.proj-card-img {
  position: absolute;
  inset: 0;
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(1);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.7s ease;
}
.proj-card:hover .proj-card-img img {
  opacity: 0.85;
  filter: grayscale(0);
  transform: scale(1.05);
}
.proj-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.6) 42%,
    rgba(0, 0, 0, 0.15) 75%,
    transparent 100%
  );
  transition: background var(--ease);
}
.proj-card:hover .proj-card-img-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.72) 48%,
    rgba(0, 0, 0, 0.32) 80%,
    rgba(0, 0, 0, 0.1) 100%
  );
}
.proj-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}
.proj-tag {
  position: absolute;
  top: 18px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.proj-tag-status {
  left: 18px;
  color: #e5e7eb;
}
.proj-tag-status[data-status="Deployed"]    { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.proj-tag-status[data-status="Prototype"]   { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.proj-tag-status[data-status="R&D"]         { color: #60a5fa; border-color: rgba(96, 165, 250, 0.5); }
.proj-tag-status[data-status="Interactive"] { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.proj-tag-cat {
  right: 18px;
  color: rgba(255, 255, 255, 0.9);
}
.proj-title {
  font-family: var(--f-sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hi);
  margin-bottom: 16px;
  line-height: 1;
  transition: transform var(--ease);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.proj-card:hover .proj-title {
  transform: translateY(-2px);
}
.proj-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.proj-card:hover .proj-desc {
  opacity: 1;
  transform: translateY(0);
}
.proj-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  padding-right: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.proj-tech-row span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.proj-tech-row span:not(:last-child)::after {
  content: " •";
}
.proj-corner-icon {
  position: absolute;
  bottom: 28px;
  right: 26px;
  width: 28px;
  height: 28px;
  opacity: 0;
  transition: opacity var(--ease), transform var(--ease);
  color: var(--hi);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}
.proj-card:hover .proj-corner-icon {
  opacity: 1;
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- CAPABILITIES ---- */
#capabilities {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.skill-card-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.skill-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.skill-title {
  font-family: var(--f-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hi);
  letter-spacing: -0.02em;
}
.skill-desc {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.6;
  margin-bottom: 24px;
}
.skill-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.skill-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.skill-tools span {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--dim2);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mc-compliance-panel {
  background: var(--panel);
  border: 1px solid var(--border);
}
.mc-panel-hdr {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--dim);
  text-transform: uppercase;
}
.mc-badges {
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mc-badge {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--hi);
  border: 1px solid var(--border-hi);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.05em;
  transition: all var(--ease);
}
.mc-badge:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green);
  color: var(--green);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- TERMINAL ---- */
#terminal {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.term-window {
  background: #050505;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.term-dots {
  display: flex;
  gap: 6px;
}
.tdot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.tdot.red {
  background: rgba(239, 68, 68, 0.6);
}
.tdot.yellow {
  background: rgba(234, 179, 8, 0.6);
}
.tdot.green {
  background: rgba(34, 197, 94, 0.6);
}
.term-bar-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.term-body {
  padding: 24px;
  height: 380px;
  overflow-y: auto;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) transparent;
}
.term-line-cmd {
  color: var(--hi);
}
.term-line-out {
  color: rgba(255, 255, 255, 0.4);
}
.term-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}
.term-prompt {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--hi);
  animation: pulse-o 1s step-end infinite;
}
.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--hi);
  caret-color: var(--hi);
}
.term-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------------- SHARED OVERLAY ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay.open {
  display: flex;
  animation: fade-in 0.2s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.icon-close {
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--dim);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--ease),
    color var(--ease);
}
.icon-close:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* ---------------------------------------------------------------- CONTACT MODAL ---- */
.cmodal {
  background: var(--bg);
  border: 1px solid var(--border-hi);
  width: 100%;
  max-width: 600px;
  animation: slide-up 0.3s ease;
}
@keyframes slide-up {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cmodal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.cmodal-hdr-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmodal-title {
  font-family: var(--f-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hi);
}
.cmodal-sub {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.cmodal-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cmodal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  transition: border-color var(--ease);
}
.cmodal-row:hover {
  border-color: var(--border-hi);
}
.cmodal-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmodal-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.cmodal-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.cmodal-info {
  flex: 1;
}
.cmodal-info h3 {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hi);
  margin-bottom: 2px;
}
.cmodal-info p {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--dim);
}
.cmodal-btn {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px solid;
  padding: 8px 16px;
  transition:
    background var(--ease),
    color var(--ease);
  white-space: nowrap;
}
.cmodal-btn.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}
.cmodal-btn.blue:hover {
  background: rgba(59, 130, 246, 0.3);
}
.cmodal-email {
  background: none;
  border: none;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: #4ade80;
  transition: color var(--ease);
  white-space: nowrap;
}
.cmodal-email:hover {
  color: #86efac;
}
.cmodal-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-top: 4px;
}
.cmodal-status p:first-child {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 4px;
}
.cmodal-status p:first-child strong {
  color: #4ade80;
}
.cmodal-status p:last-child {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--dim);
}

/* ---------------------------------------------------------------- PROJECT DETAIL MODAL ---- */
.pmodal {
  background: var(--panel);
  border: 1px solid var(--border-hi);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slide-up 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) transparent;
}
.pmodal-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 10;
}
.pmodal-tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--dim);
  margin-bottom: 6px;
}
.pmodal-title {
  font-family: var(--f-sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hi);
}
.pmodal-body {
  padding: 28px;
}
.pm-viewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pm-img-wrap {
  flex: 1;
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#pm-img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: none;
}
#pm-img.loaded {
  display: block;
}
.pm-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  background: repeating-linear-gradient(
    45deg,
    var(--card) 0,
    var(--card) 10px,
    var(--panel) 10px,
    var(--panel) 20px
  );
}
.pm-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.8);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
#pm-label {
  color: var(--hi);
}
#pm-counter {
  color: var(--dim);
}
.pm-arrow {
  background: var(--card);
  border: 1px solid var(--border-hi);
  color: var(--hi);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--ease),
    border-color var(--ease);
}
.pm-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hi);
}
.pm-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-solid) transparent;
}
.pm-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 54px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: border-color var(--ease);
}
.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-thumb.active {
  border-color: var(--hi);
}
.pm-thumb-lbl {
  font-family: var(--f-mono);
  font-size: 0.45rem;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 4px;
  line-height: 1.4;
}
.pm-info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.pm-info-block h4 {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--hi);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.pm-info-block p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.6;
}
.pm-spec-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.pm-spec-key {
  color: var(--dim);
}
.pm-spec-val {
  color: var(--hi);
}
.pm-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pm-tech span {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- PULSE DOT ---- */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pulse-dot.green {
  background: #4ade80;
  animation: pulse-o 2s ease-in-out infinite;
}

/* ---------------------------------------------------------------- FOOTER ---- */
footer {
  padding: 96px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 96px;
  flex-wrap: wrap;
}
.footer-brand-col {
  max-width: 360px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-logo-txt {
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hi);
}
.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footer-col-hdr {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hi);
  margin-bottom: 24px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col ul a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color var(--ease);
}
.footer-col ul a:hover {
  color: var(--hi);
}
.footer-location {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 2;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--dim2);
}
.footer-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-status-txt {
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--dim2);
}

/* ---------------------------------------------------------------- SCROLL-REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-solid);
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ---------------------------------------------------------------- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .tl-grid {
    grid-template-columns: 1fr 2fr;
  }
  .pm-info {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }
  .container {
    padding: 0 24px;
  }
  .nav-inner {
    padding: 0 24px;
  }
  .nav-links {
    display: none;
  }
  .contact-btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu {
    padding: 20px 24px 28px;
  }
  .hero-status-row .status-sep,
  .hero-status-row .status-txt {
    display: none;
  }
  .sec-hdr {
    flex-direction: column;
    align-items: flex-start;
  }
  .tl-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tl-location {
    margin-top: 4px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .pm-info {
    grid-template-columns: 1fr;
  }
  .pm-viewer {
    flex-direction: column;
  }
  .pm-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  #terminal {
    padding: 64px 0;
  }
  #about,
  #experience,
  #projects,
  #capabilities {
    padding: 64px 0;
  }
  footer {
    padding: 64px 0 32px;
  }
}
