/* =========================
   BASE / RESET
========================= */

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

:root {
  --bg: #0a0a0b;
  --panel: #111214;
  --border: rgba(255,255,255,0.08);
  --text: #f4f1ea;
  --muted: rgba(255,255,255,0.55);
  --accent: #d3b58f;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* =========================
   UTILITIES
========================= */

.container {
  max-width: 1300px;
  margin: auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

/* =========================
   BACKGROUND EFFECTS
========================= */

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  z-index: 999;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: white;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-image: url("../images/Wal_Were.png");
  background-size: cover;
  background-position: center;
  z-index: 0;

    width: 100%;
  height: 100vh;
}

.hero-content {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 8rem 2rem;
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
}

.system-text {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: rgba(255,255,255,0.35);
}

.hero-role {
  color: rgba(255,255,255,0.75);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s;
}

.primary-btn {
  background: var(--text);
  color: black;
  font-weight: 700;
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  border: 1px solid var(--border);
  color: white;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================
   CARDS / OBSERVATIONS
========================= */

.observation-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 2rem;
}

.card-label {
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.card-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 8rem 2rem;
}

.section-header {
  max-width: 1300px;
  margin: auto;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* =========================
   PROJECTS
========================= */

.project-card {
  max-width: 1300px;
  margin: auto;
  margin-bottom: 8rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.project-card.reverse {
  direction: rtl;
}

.project-card.reverse * {
  direction: ltr;
}

.project-image {
  height: 500px;
  border-radius: 2rem;
  border: 1px solid var(--border);
  transition: 0.5s;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.walk-image {
  background-image: url("../images/Version-1.png");
  background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

.prisoner-image {
   background-image: url("../images/p2318.png");
  background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

.fingers-image {
   background-image: url("../images/3 (2).png");
  background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

.project-meta {
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.project-info h3 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.project-description {
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-tags span {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.7);
}

.project-observation {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.project-observation span {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

.project-links {
  margin-top: 2rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;

  border: 1px solid var(--border);
  color: rgba(255,255,255,0.85);

  transition: 0.3s;
}

.project-links a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* =========================
   OBSERVATIONS / NOTES
========================= */

.observations-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.observation-grid {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.note-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}

/* =========================
   ARCHIVE
========================= */

.archive-table {
  max-width: 1300px;
  margin: auto;
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
}

.archive-row {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 0.25fr 0.25fr;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: 0.3s;
}

.archive-row:last-child {
  border-bottom: none;
}

.archive-row:hover {
  background: rgba(255,255,255,0.03);
}

.archive-row span:first-child {
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.45);
}

/* =========================
   PROFILE
========================= */

.profile-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.profile-container {
  max-width: 1300px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.profile-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-left p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.profile-intro {
  font-size: 1.3rem !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.7 !important;
}

.profile-right {
  display: flex;
}

.profile-card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.profile-card span {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.25rem;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace;
}

.profile-card p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;

  border-radius: 1.5rem;
  border: 1px solid var(--border);

  filter: grayscale(10%);
}

/* =========================
   CONTACT
========================= */

.contact-section {
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(3rem, 6vw, 5rem);
  max-width: 900px;
  margin: auto;
  margin-bottom: 2rem;
}

.contact-description {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links a {
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.contact-links a:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================
   FOOTER
========================= */

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: rgba(255,255,255,0.4);
}

/* =========================
   ANIMATIONS
========================= */

.fade-up {
  animation: fadeUp 1s ease forwards;
}

.fade-up-delay {
  animation: fadeUp 1.3s ease forwards;
}

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  nav {
    display: none;
  }

  .hero-content,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card.reverse {
    direction: ltr;
  }

  .archive-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .project-info h3 {
    font-size: 2.5rem;
  }

  .profile-container {
    grid-template-columns: 1fr;
  }
}
.scroll-box {
  max-height: 70vh;   /* how tall the menu can get */
  overflow-y: auto;   /* THIS makes it scroll */
}
.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  opacity: 0.8;
  text-transform: uppercase;
}

.tag.system { color: #9ef0ff; }
.tag.hardware { color: #ffd28a; }
.tag.vision { color: #b7ff9e; }
.tag.robotics { color: #ff9eb6; }
