:root {
  --primary-green: hsl(120, 38%, 92%);
  --accent-green: #1bb31b;
  --text-gray: #ccc;
}

body {
  position: relative;
  min-height: 100vh; /* ensure it always fills screen */
  margin: 0;
}

/* blurred background image */
body::before {
  content: "";
  position: fixed; /* stays in place while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/Thumbnails/blackTotem.webp") no-repeat center
    center / cover;
  filter: blur(8px) brightness(0.5); /* blur + dark overlay */
  z-index: -1; /* send it behind everything */
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
}

.filter-buttons button {
  padding: 0.5rem 1.5rem;
  background: var(--primary-green);
  border: none;
  color: black;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

/* Section Title */
.catalogue-title {
  font-family: sans-serif;
  text-align: center;
  font-size: 2.5rem;
  padding-top: 20px;
  color: var(--accent-green);
}

/* Grid Layout */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 1800px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.catalogue-section {
  padding: 5rem 1rem;
}

/* Work Items */
.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-item.hidden {
  display: none;
}

/* Image Wrapper */
.work-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
}

.work-img-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Overlay */
.work-overlay {
  font-family: "classico", sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(120, 38%, 92%, 0.7); /* semi-transparent dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(20, 20, 20);
  font-size: 1.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1rem;
}

.work-img-wrapper:hover img {
  transform: scale(1.05);
}

.work-img-wrapper:hover .work-overlay {
  opacity: 1;
}

/* Captions */
.work-caption {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 90%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item {
    margin-bottom: 1rem;
  }

  .work-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .contact-wrapper-header {
    display: none; /* hide contact icons if desired */
  }

  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-caption {
    font-size: 0.8rem;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-buttons button {
    width: 100%;
    margin-bottom: 0rem;
  }

  .logo {
    font-size: 20px;
    margin-right: 1rem;
  }
}

@media (max-width: 480px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .work-caption {
    font-size: 0.7rem;
  }

  .work-overlay {
    font-family: "classico", sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(120, 38%, 92%, 0.7); /* semi-transparent dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(20, 20, 20);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
  }
  @media (max-width: 320px) {
    .footer-section {
      display: flex;
      justify-content: flex-end;
      flex: 1;
    }

    .footer-section p {
      font-size: 1.1rem;
      color: #000000;
      margin: 0;
      padding-left: 2rem;
    }
  }
}
