:root {
  --pink-light: #fff0f6;
  --pink-main: #ffd1e8;
  --pink-dark: #c0267c;
  --text-dark: #2b2b2b;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
}

/* STICKY FOOTER LAYOUT */
html, body {
  height: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--pink-light);
  color: #3a2a33;
}

/* NAV */
nav {
  background: white;
  border-bottom: 3px solid var(--pink-dark);
  padding: 1rem 2rem;
  display: flex;
  gap: 2rem;
position: sticky;
top: 0;
z-index: 1000;
}

nav a {
  text-decoration: none;
  color: var(--pink-dark);
  font-weight: 600;
}

/* LAYOUT */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
flex: 1;
}

/* WIDER PROJECT PAGE */
main.project-page {
  max-width: 1600px;
}


/* PROJECT GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border: 3px solid var(--pink-dark);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: transform 0.15s ease;
text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  border-radius: 8px;
}

/* TAGS */
.tags {
  margin-top: 0.5rem;
}

.tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--pink-main);
  border-radius: 999px;
  margin-right: 0.25rem;
}

/* FOOTER */
footer {
  background: white;
  border-top: 3px solid var(--pink-dark);
  padding: 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

/* GALLERY */
.gallery img {
  cursor: pointer;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius);
}

.modal.show {
  display: flex;
}

/* FILTER BAR */
#filters {
  background: white;
  border: 3px solid var(--pink-dark);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

#filters fieldset {
  border: none;
  padding: 0;
}

#filters legend {
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 0.5rem;
}

#filters input[type="text"] {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 2px solid var(--pink-dark);
  font-size: 1rem;
  max-width: 300px;
}

#filters input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--pink-main);
}


/* CHECKBOX STYLING */
#filters input[type="checkbox"] {
color: var(--pink-dark);
  accent-color: var(--pink-dark);
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

#filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
}

/* FULL-WIDTH PAGE HEADER */
.page-header {
  position: relative;
  width: 100%;
  height: 260px;

  background-image: var(--header-image);
  background-size: cover;
  background-position: center;

  border-bottom: 4px solid var(--pink-dark);
}

/* Overlay for readability */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.45)
  );
}

/* Header title */
.page-header h1 {
  position: relative;
  z-index: 1;

  height: 100%;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 2.75rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

