/* Simplified & cleaned CSS */

.filter-buttons {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  display: inline;
}

.filter-btn {
  font-family: 'Geologica';
  font-weight: 400;
  transition: color 0.2s ease;
  color: var(--dark);
  text-transform: lowercase;
  border: 1px solid var(--gray);
  padding: 0.3em 0.6em;
  border-radius: 6px;
  background-color: white;
  margin: 0.2em;
}

.filter-btn:hover{
  background-color: var(--gray);
}

.filter-btn.active {
  background-color: var(--themed-primary);
  color: var(--themed-secondary)
}


/* ===============================
   PROJECTS SECTION
   =============================== */
.year-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin-bottom: 2rem;
}

.projects-year {
  position: sticky;
  top: 5rem;
  flex: 0 0 200px;
  height: fit-content;
}

.project-list {
   gap: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.project-card {
  display: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 10px;
}

.project-card:hover {
  background-color: var(--gray);
}

.project-card:hover .tag-pill {
  background-color: var(--white);
}

.project-card:hover .project-description {
  color: #777777;
}

.project-card.show {
  display: block;
}


.project-list a {
  text-decoration: none;
  color: var(--dark);
}

.project-card b {
  color: var(--dark);
}

.project-content {
  height: 100%;
  min-height: 100px; /* fallback for older browsers */
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 1rem;
}

.project-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-description {
  color: #a9a9a9;
  font-size: medium;
}

.cover-image {
  height: 200px;
  width: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: rgba(100, 100, 111, 0.1) 0px 7px 29px 0px;
  object-fit: cover;
  display: block;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  text-transform: lowercase;
}

.tag-pill {
  padding: 0.25rem 0.6rem;
  background: #e8e8e8;
  border-radius: 999px;
}


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

@media (max-width: 1200px) {
  .projects-year {
    flex: 0 0 120px;
    top: 4rem;
    border: none;
  }

  .project-list {
    grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
  .year-container {
    display: block;
    }

  .projects-year {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: solid 1px var(--gray);
  }

  .project-list {
    gap: 2.5rem 1rem;
    width: 100%;
  }

  .cover-image {
  height: 150px;
  width: 300px;
}
}

@media (max-width: 480px) {
  .project-list {
    gap: 2rem;
    display: flex;
    flex-direction: column;
  }

}

@media (max-width: 320px) {
  .project-list {
    gap: 1.5rem;
  }

}

/* ===============================
   FLOATING COVER IMAGE
   =============================== */

.floating-cover-image {
  position: fixed;
  width: 200px;
  height: 150px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10000;
  pointer-events: none;
}
