/* Global font and background */
body {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  background: url("/assets/backgrounds/circuit-bg.png") repeat;
  background-size: cover;
  color: #000;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Animated subtle pulse overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(0,255,0,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: pulse 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
}

.images img {
  width: 100%;
  margin-bottom: 1rem;
}

.youtube {
  margin-bottom: 2rem;
}

/* Full project list grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.project-grid.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-grid.meowsic-grid {
  grid-template-columns: repeat(5, 1fr);
}

/* Each project block */
.project-card {
  text-align: center;
  font-size: 0.9rem;
}

.project-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.project-card img:hover {
  transform: scale(1.03);
}

.project-title {
  font-size: 1.1rem;
  margin-top: 0.3rem;
  text-align: center;
  font-weight: bold;
}


/* Category thumbnails with shortcode */
.special-thumb {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
}

/* Wrapper for archive and buttons */
.category-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Full archive button spans full width */
.full-archive-button {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
}

.full-archive-button img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Grid for category buttons */
.category-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 900px;
}

.category-buttons img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.category-buttons img:hover {
  transform: scale(1.04);
}

.category-header-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.category-header-images img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.category-title-img {
  max-width: 525px; /* 300px × 1.75 */
  width: 100%;
  flex-grow: 1;
}

.nav-button {
  max-height: 105px; /* 60px × 1.75 */
  flex-shrink: 0;
}

