.category-btn-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  margin-top: 3rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0;
}
.category-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  /* No flex-grow, no hover effect */
}
.category-btn img {
  width: 40vw;
  max-width: 680px;
  min-width: 320px;
  height: auto;
  height: auto;
  display: block;
}
.category-btn:hover {
}

.illustrations-btn {
  margin-left: auto;
}
@media (max-width: 710px) {
  .category-btn-row {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 2vw;
    width: 100%;
    padding: 0;
  }
  .designwork-fixed-btn {
    position: fixed !important;
    left: 0 !important;
    top: 80px !important;
    bottom: unset !important;
    right: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100 !important;
  }
  .illustrations-fixed-btn {
    position: fixed !important;
    right: 0 !important;
    left: unset !important;
    top: 220px !important;
    bottom: unset !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .category-btn {
    width: auto;
    margin: 0;
  }
  .category-btn:not(.designwork-fixed-btn):not(.illustrations-fixed-btn) {
    justify-content: center;
    align-items: center;
  }
  .illustrations-btn {
    margin-left: 0;
  }
  .category-btn img {
    width: 90vw;
    max-width: 320px;
    height: auto;
  }
}
.designwork-fixed-btn {
  position: fixed !important;
  left: 0 !important;
  top: 220px !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.designwork-fixed-btn img {
  display: block;
}
@media (max-width: 710px) {
  .designwork-fixed-btn {
    left: 0 !important;
    top: 480px !important;
    bottom: unset !important;
    right: unset !important;
    transform: none !important;
    margin-top: 40px !important;
    padding-top: 0 !important;
  }
    /* No overrides: use .category-btn img size */
  .illustrations-fixed-btn {
    right: 0 !important;
    left: unset !important;
    top: 220px !important;
    bottom: unset !important;
    transform: none !important;
  }
  .illustrations-fixed-btn img {
    display: block;
  }
}
.illustrations-fixed-btn {
  position: fixed !important;
  right: 0 !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  top: 220px !important;
  transform: none !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
.illustrations-fixed-btn img {
  display: block;
  display: block;
}
  /* No overrides: use .category-btn img size */
    left: unset !important;
    transform: none !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }
    /* No overrides: use .category-btn img size */
}
/* Overlay site name SVG above header background */
header {
  position: relative;
}
header .site-title-svg {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 20;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 60vw;
  width: 48vw;
  min-width: 220px;
  display: block;
  text-decoration: none !important;
}
header .site-title-svg img[alt="Logo"] {
  height: 6vw;
  width: auto;
  min-height: 36px;
  max-height: 90px;
  margin-right: 0em;
}
header .site-title-svg img[alt="Apollo Hyden"] {
  height: 6vw;
  width: auto;
  min-height: 36px;
  max-height: 90px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}
@media (max-width: 600px) {
  header .site-title-svg {
    left: 1rem;
    top: 1rem;
    max-width: 60vw;
  }
}
footer.contact-footer {
  background: url('../images/Footer_Black.svg') center top/cover no-repeat;
  border-top: none;
  color: #fff;
  padding: 3rem 3rem 2rem 3rem;
  font-size: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 0.5em;
  max-width: 100vw;
  box-sizing: border-box;
}
footer.contact-footer span {
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  width: 100%;
  margin-bottom: 0;
  font-size: 1em;
  display: block;
}
footer.contact-footer span:first-child {
  text-align: left;
}
footer.contact-footer span:last-child {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  footer.contact-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.2em;
    padding-left: 1em;
    padding-right: 1em;
    background: url('../images/Footer_Black_Small.svg') center top/cover no-repeat;
  }
  footer.contact-footer span {
    text-align: center !important;
    width: 100%;
    margin-bottom: 0.2em;
  }
}
footer.contact-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5em;
  font-weight: 500;
}
footer.contact-footer a:hover {
  text-decoration: underline;
  color: var(--accent);
}
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  background: none;
  border: none;
  z-index: 10;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-Regular.woff2') format('woff2'),
       url('fonts/Poppins/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-SemiBold.woff2') format('woff2'),
       url('fonts/Poppins/Poppins-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-Bold.woff2') format('woff2'),
       url('fonts/Poppins/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
:root {
  --bg-main: #f7f6fb;
  --bg-card: #fff;
  --accent: #b8c6e6;
  --highlight: #f9d6e2;
  --text-main: #222;
  --link-hover: #7a9cc6;
}
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: var(--bg-main) url('../images/Header_Home.svg') top center no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
  color: var(--text-main);
}
header {
  padding: 1.5rem 2rem 1rem 5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 600;
}
nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: none;
  margin-top: 1.2rem;
  margin-left: auto;
  z-index: 3;
}
nav a {
  color: #fff;
  background: none;
  text-align: right;
  font-weight: 500;
  text-decoration: none;
  padding: 0.1em 0.1em;
  border-radius: 0;
  transition: color 0.2s, border-bottom 0.2s;
  display: block;
  margin: 0 0.2em 0.2em 0;
}
nav a.active {
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
}
main {
  margin: 2rem auto;
  padding: 0;
}
.projects-list h2,
.illustrations-grid h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
 .project-card {
  display: block;
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--accent);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1px solid var(--accent);
}
.project-card:hover {
  box-shadow: 0 4px 16px var(--link-hover);
  border: 1.5px solid var(--link-hover);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 1rem;
}
.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
 .illustration-card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--highlight);
  overflow: hidden;
  margin: 0;
  transition: box-shadow 0.2s, border 0.2s;
  border: 1px solid var(--highlight);
}
.illustration-card:hover {
  box-shadow: 0 4px 16px var(--accent);
  border: 1.5px solid var(--accent);
}
.illustration-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.illustration-card figcaption {
  padding: 1rem;
}
 .contact-info {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--highlight);
  padding: 2rem;
  max-width: 400px;
  margin: 2rem auto;
  border: 1px solid var(--highlight);
}
@media (max-width: 600px) {
  main {
    padding: 0 0.5rem;
  }
  .project-card img,
  .illustration-card img {
    height: 120px;
  }
}
/* Modal styles for image lightbox */
#modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(184,198,230,0.85); /* pastel blue overlay */
  justify-content: center;
  align-items: center;
}
#modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 32px var(--accent);
}
#modal .close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--link-hover);
  cursor: pointer;
}
