body {
  font-family: 'Rubik', sans-serif;
  margin: 0;
  background: #fafafa;
  color: #222;
}

/* ---------- header layout ---------- */

header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #ddd;
}

.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* left side */

.site-title h1 {
  margin: 0;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* right side nav */

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

nav a:hover {
  opacity: 0.6;
}

/* clickable name */

.home-link {
  text-decoration: none;
  color: inherit;
}

/* ---------- HERO ---------- */

.hero {
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* ---------- ABOUT ---------- */

.about {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 150px;
  align-items: center;
}

  .about-grid img {
  transition: transform 0.2s ease;
}

.about img {
  width: 100%;
  border-radius: 8px;
}

.video-wrapper {
  max-width: 800px;
  margin: 60px auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 450px;
  border-radius: 12px;
}

.video-wrapper.short {
  max-width: 400px;
  margin: 60px auto;
  aspect-ratio: 9 / 16;
}

.video-wrapper.short iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.bandcamp-wrapper {
  max-width: 700px;
  margin: 60px auto;
}

.bandcamp-wrapper iframe {
  width: 100%;
  height: 120px;
  border: none;
}

.center-text {

  text-align: center;

}

.center {

  text-align: center;

}

/* ---------- newsletter section ---------- */

.links {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.links-grid img {
  width: 100%;
  max-width: 400px;
  justify-self: end;
  border-radius: 10px;
}

  .links-grid img {
  transition: transform 0.2s ease;
}


.links-grid img2 {
  width: 100%;
  max-width: 600px;
  justify-self: end;
  border-radius: 10px;
}

  .links-grid img2 {
  transition: transform 0.2s ease;
}


.button {
  background-color: #7EBEFB; /* blue background */
  border: none; /* Remove border */
  color: white; /* White text */
  padding: 15px 32px; /* Some padding */
  text-align: center; /* Center the text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Make it block-level for padding */
  font-size: 16px; /* Increase font size */
  cursor: pointer; /* Change cursor to pointer on hover */
  border-radius: 8px; /* Rounded corners */
}

.button:hover {
  background-color: #4C94D9; /* Darker blue on hover */
}

/* ---------- FOOTER ---------- */

footer {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

/* ---------- CATEGORY GRID ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 80px auto;
  gap: 25px;
}

/* ---------- CATEGORY CARD ---------- */

.category-card {
  text-decoration: none;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: black;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: all 0.25s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6); /* ✅ fixed */
}

.category-card span {
  position: relative;
  z-index: 2;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* backgrounds */

.animation {
  background-image: url("images/animation.png");
}

.illustration {
  background-image: url("images/illustration/fab.png");
}

.fanart {
  background-image: url("images/fanart/flow.jpg");
}

.commissions {
  background-image: url("images/commissions/periodpiece.png");
}

/* ---------- PROJECT GRID ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: 80px auto;
  gap: 25px;
}

/* ---------- PROJECT CARD ---------- */

.project-card {
  text-decoration: none;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: black;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: all 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6); /* ✅ fixed */
}

.project-card span {
  position: relative;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* backgrounds */

.summer {
  background-image: url("images/2GB/boys.png");
}

.worlds {
  background-image: url("images/worlds-away/forest.png");
}

.ernie {
  background-image: url("images/the-heros-ernie/banner.png");
}

.music {
  background-image: url("images/fun.png");
}


  
/* ---------- GALLERY ---------- */

.gallery {
  column-count: 2;
  column-gap: 20px;
}

.gallery img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  display: block;
  break-inside: avoid;
  transition: transform 0.2s ease;
}

  section {
  margin-bottom: 80px;
}
  
  /* ---------- PAGE LAYOUT ---------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-title {
  margin-bottom: 40px;
  font-size: 2rem;
  }

/* ---------- MOBILE ---------- */
@media (max-width: 700px) {

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    width: 100%;
  }

  nav a {
    margin-left: 0;
    margin-right: 20px;
  }
}

@media (max-width: 700px) {

  .links-grid {
    grid-template-columns: 1fr;
  }

  .links-grid img {
    justify-self: start;
    margin-top: 20px;
  }

/* ---------- MOBILE FIXES ---------- */

@media (max-width: 800px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery {
    column-count: 1;
  }
}
