/* ====== Base ====== */
body {
  font-family: "acumin-pro", sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  margin: 0;
}

h1, h2, h3 {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0; /* prevents unexpected spacing */
}

/* ====== Header ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  position: relative;
}

header h1 {
  font-size: 1.4rem;
}

/* FIXED LINK STYLE */
header h1 a {
  color: #fff;
  text-decoration: none;
}

header h1 a:visited {
  color: #fff;
}

header h1 a:hover {
  color: #fff;
}

/* ====== Nav ====== */
nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
}

nav a:hover {
  color: #fff;
}

/* ====== Toggle ====== */
.toggle {
  position: relative;
  width: 60px;
  height: 32px;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 40px;
  cursor: pointer;
}

.slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 4px;
  left: 4px;
  background: #000;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle input:checked + .slider {
  background: #fff;
}

.toggle input:checked + .slider:before {
  transform: translateX(28px);
}

/* ====== Filters ====== */
.filters {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  transition: all 0.2s ease;
}

.filter-btn.active {
  color: #fff;
  border-color: #fff;
  background: #111;
}

.filter-btn:hover {
  background: #fff;
  color: #000;
}

/* ====== Filters (HIDDEN) ====== */
.filters {
  display: none;
}

/* ====== GRID (CLEAN + BIGGER) ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem 3rem;
}

/* ====== Project ====== */
.project {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #0a0a0a;
}

/* ====== IMAGE CONTAINER (16:9) ====== */
.image-placeholder,
.rotating-images {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

/* ====== IMAGES ====== */
.image-placeholder img,
.rotating-images img {
  position: absolute;
  inset: 0; /* cleaner than top/left/width/height combo */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* rotating fade */
.rotating-images img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ====== Hover Title ====== */
.project h3 {
  position: absolute;
  top: 50%;            /* THIS WAS MISSING */
  left: 50%;           /* THIS WAS MISSING */
  transform: translate(-50%, -50%);
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project:hover h3 {
  opacity: 1;
}

/* ====== Full Width Projects ====== */
.project.full {
  grid-column: 1 / -1;
}

/* ====== Footer ====== */
.contact-footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid #222;
  margin-top: 2rem;
}

.contact-footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.contact-footer a {
  color: #888;
  text-decoration: none;
}

.contact-footer a:hover {
  color: #fff;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* ====== Hidden Projects ====== */
.hidden-project {
  display: none;
}