
/* ======================
   DESIGN SYSTEM
====================== */
:root {
  --bg-machine: #0a0a0a;
  --bg-human: #fdf6f0;
  --accent: #4da6ff;
  --text-machine: #e6f0ff;
  --text-human: #2a2a2a;
}

body {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  transition: background 0.6s ease, color 0.6s ease;
}

/* MODES */
body.machine {
  background: var(--bg-machine);
  color: var(--text-machine);
}

body.human {
  background: var(--bg-human);
  color: var(--text-human);
  font-family: 'Playfair Display', serif;
}

body.collision {
  background: linear-gradient(120deg, var(--bg-machine), var(--bg-human));
  color: white;
}

/* ======================
   NAVIGATION
====================== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 10vw;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-sizing: border-box; /* Add this line */
}

.nav-left {
  display: flex;
  gap: 10px;
}

.pill-toggle {
  display: inline-flex;
  position: relative;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 3px;
}

.pill-indicator {
  position: absolute;
  top: 3px;
  height: calc(100% - 6px);
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  transition: left 0.25s ease, width 0.25s ease;
  pointer-events: none;
}

.mode-toggle {
  background: none;
  border: none;
  padding: 6px 16px;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s;
}

.mode-toggle.active {
  opacity: 1;
}

.mode-toggle:hover {
  opacity: 0.8;
}


.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 10vw;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 16px;
  letter-spacing: 1px;
  position: relative;
}
.nav-links a.active {
  opacity: 0.4;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

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

section {
  min-height: 100vh;
  padding: 80px 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ======================
   HERO
====================== */
.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  cursor: pointer;
}

.glitch:hover {
  text-shadow: 2px 0 red, -2px 0 blue;
}

/* ======================
   QUESTIONS
====================== */
.question {
  border: 1px solid currentColor;
  padding: 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.question.active {
  background: rgba(255,255,255,0.1);
}

.answer {
  display: none;
  margin-top: 10px;
}

/* ======================
   AUTHENTICITY DETECTOR
====================== */
.detector {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ======================
   PARTICIPATION
====================== */
.response {
  position: absolute;
  max-width: 200px;
  font-size: 12px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ======================
   EXPERIMENTS GALLERY
====================== */

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

/* Remove blue border on gallery links */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: none;        /* ← remove the border */
  outline: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Show full image without cropping */
.gallery-item img {
  width: 100%;
  height: auto;        /* ← change from fixed 250px to auto */
  object-fit: unset;   /* ← remove the crop behavior */
  display: block;
  transition: transform 0.4s ease;
}

/* Hover zoom */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
}

.gallery-item:hover .overlay {
  opacity: 1;
}