/* =========================================================
   COMPONENTS
========================================================= */
.sliver {
  height: 20vh;
}

.sliverish {
  height: 60vh;
  display: flex;
  width: 100%;
}

.medium {
  height: 80vh;
  display: flex;
}

.edge {
  height: 90vh;
  position: relative;
}

.full {
  height: 100vh;
  display: flex;
}

.navbar {
  position: fixed;
  padding-left: var(--padding-large);
  padding-right: var(--padding-large);
  padding-top: var(--padding-small);
  height: 8vh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  pointer-events: auto;
  background-color: transparent;
  mix-blend-mode: exclusion; /* add this line */
}

.nav-links-right {
  display: flex;
  gap: 1.5rem;
  font-size: 2rem;
  align-items: center;
  color: white;
  text-transform: uppercase;
}

.navbar a,
.logo {
  color: white;
  size: 3rem;
  font-family: var(--font-family-heading);
}

.nav-links-right a,
:hover {
  color: var(--color-nav-link-hover);
  transition: ease 0.3s;
}

.nav-links-right a {
  font-family: var(--font-family-body);
}

.navbar a,
.logo :hover {
  color: var(--color-nav-link-hover);
  transition: ease 0.3s;
}

[data-scroll-container] {
  overflow: hidden;
}

/* Hero */
.hero-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero-container-a {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(4rem, 8vw, 6rem);
}

.hero {
  width: 100%;
  object-position: center;
}

/* Project cards */
/* Card frame container */
.card-frame {
  position: relative; /* for absolute stacking of images */
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* Cover image */
.card-frame img.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

/* Hover image */
.card-frame img.hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* so hover triggers on parent */

  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

/* Swap images on hover */
.project-card:hover .card-frame img.cover {
  opacity: 0;
}

.project-card:hover .card-frame img.hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Project content spacing */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

/* Titles and descriptions */
.project-content h3 {
  font-family: var(--font-family-heading);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--color-text-project-title);
  margin: 0;
  line-height: 1;
}

.project-content .cover-description {
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: grey;
  line-height: 1.6;
  margin: 0;
}

.project-title {
  font-weight: 400;
  font-size: 3.6rem;
  color: var(--color-text-project-title);
  margin: 0;
}

/* Tags / categories */
.project-content .tags {
  opacity: 0;
}

.project-description {
  font-family: var(--font-family-body);
  font-size: 1.2rem;
  color: var(--color-text-project-description);
  line-height: 1.6;
  margin: 0;
  max-width: min(50ch, 90%);
  margin-bottom: var(--padding-small);
}

.tag {
  display: inline-block; /* shrink to fit text */
  border: 1px solid var(--color-nav-link-hover);
  color: var(--color-nav-link-hover);
  padding: 0.5rem 1rem; /* adjust as needed */
  border-radius: var(--radius-lg);
  white-space: nowrap; /* optional: prevent text wrap inside tag */
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-direction: column; /* allow multiple rows of tags */
  gap: 1rem; /* spacing between tags */
  align-items: flex-start;
}

/* =========================================================
   PROJECT LAYOUTS
========================================================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 4rem 1.777vw;
  background-color: var(--color-bg);
}

/* Background image container */
.work-background {
  position: absolute;
  inset: 0; /* fills the hero container */
  z-index: 0; /* behind everything */
  overflow: hidden;
  margin: var(--padding-small);
  border-radius: var(--radius-md);
}

.work-background img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* make it behave like background-size: cover */
  object-position: center; /* centers the image */
  display: block;
}

.work-background,
.hero-bg,
.background-img {
  pointer-events: none;
}

/* Foreground logo box */
.work-hero-box {
  position: relative;
  z-index: 2; /* above background */
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
}

.work-hero-box img {
  height: auto;
}

.footer {
  padding: 40px 0;
  background-color: var(--color-bg);
  color: white;
}

.footer .footer-links a {
  color: white;
}

.footer ul {
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer li {
  display: inline-block;
  padding: 0 10px;
}

.footer ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer ul a:hover {
  opacity: 1;
  color: var(--color-nav-link-hover);
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
}

.footer .social a {
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--color-nav-link-hover);
  margin: 0 8px;
  color: white;
  opacity: 0.75;
  transition: all 0.3s ease;
}

.footer .social a:hover {
  opacity: 1;
  color: var(--color-nav-link-hover);
  border-color: var(--color-nav-link-hover);
}

.footer .copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-project-description);
  margin-bottom: 0;
}

.footer .footer-break {
  height: 1px;
  border: none;
  background-color: var(--color-text-project-title);
}

.gif-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.case-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 40px;
  border: 1px solid orange; /* initial border color */
  padding: 0.5rem 1rem;
  font-family: var(--font-family-heading, "DM Sans", sans-serif);
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  background: orange;
  width: fit-content;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: fit-content;
}

.case-btn p {
  margin: 0;
  color: rgb(0, 0, 0); /* initial text color */
  transition: color 0.3s ease;
}

.case-btn .arrow {
  transition: transform 0.3s ease, color 0.3s ease;
  color: rgb(0, 0, 0);
}

/* Hover state */
.case-btn:hover {
  background-color: transparent; /* fill background */
}

.case-btn:hover p,
.case-btn:hover .arrow {
  color: orange; /* text and arrow black */
}

.case-btn:hover .arrow {
  transform: translateX(4px); /* arrow movement */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover the whole section */
  z-index: -1; /* behind the text and GIF */
}

.background-img {
  position: absolute; /* fill the parent */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* scale image to cover the container */
  z-index: 0; /* behind other content */
}

/* --- Filter Pills --- */
.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block; /* shrink to fit text */
  border: 1px solid var(--color-nav-link-hover);
  color: var(--color-nav-link-hover);
  padding: 0.5rem 1rem; /* adjust as needed */
  border-radius: var(--radius-lg);
  white-space: nowrap; /* optional: prevent text wrap inside tag */
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pill:hover {
  background-color: orange;
  color: black;
}

/* Active state for selected pill */
.pill.active {
  background-color: orange;
  color: black;
}

.content {
  align-items: center;
  text-align: center;
  vertical-align: middle;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.project-description-b {
  max-width: 30ch;
  color: var(--color-text-project-description);
}

.project-title-b {
  font-size: 3rem;
  text-transform: capitalize;
  text-align: center;
  justify-self: center;
}
.environmental-goals {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8vh;
}
