@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Poppins:ital,wght@0,200;0,300;0,400;1,200;1,300&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.projects-body .project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projects-body p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: #333;
}

.projects-body .intro {
  width: 100%;
  padding: 80px 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.projects-body .intro h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.projects-body .outro {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100svh;
  width: 100%;
}

.projects-body .spotlight {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.projects-body .project-index {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 2;
}

/* NEW — this was missing, so it inherited the global h1 rule */
.projects-body .project-index h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #4a4a4a;
}

.projects-body .project-images {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  padding: 50svh 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.projects-body .project-img {
  width: 100%;
  aspect-ratio: 16/9;
  opacity: 0.5;
  transition: all 0.3s ease;
  overflow: hidden;
}

.hero-img-prj {
  aspect-ratio: 6/10;
  overflow: hidden;
}

.projects-body .project-names {
  position: absolute;
  top: 0;
  right: 2rem;
  width: auto;
  padding: 50svh 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 1;
}

.projects-body .project-name p {
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.projects-body .project-index h1,
.projects-body .project-images,
.projects-body .project-names p {
  will-change: transform;
}

.projects-body .project-img a,
.projects-body .project-names a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ================================
   OUTRO / PROJECT MOCKUP GRID
   ================================ */

.projects-body .outro {
    width: 100%;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 5rem 4rem;
    box-sizing: border-box;
}

/* Each row */
.projects-body .outro .row-1,
.projects-body .outro .row-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}

/* Individual image containers */
.projects-body .outro .hero-img {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images */
.projects-body .outro .project-mockup-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Optional subtle hover effect */
.projects-body .outro .hero-img {
    transition: transform 0.3s ease;
}

.projects-body .outro .hero-img:hover {
    transform: translateY(-5px);
}


/* ================================
   TABLET
   ================================ */

@media (max-width: 1000px) {
    .projects-body .intro {
        padding: 60px 16px 32px;
    }

    .projects-body .intro h2 {
        font-size: 24px;
    }

    .projects-body .outro {
        padding: 4rem 2rem;
        gap: 1.5rem;
    }

    .projects-body .outro .row-1,
    .projects-body .outro .row-2 {
        gap: 1.5rem;
    }

    /* The names column would overlap the now near-full-width image
       column, so it's dropped — the images remain links with
       descriptive alt text, so nothing is lost functionally. */
    .projects-body .project-names {
        display: none;
    }

    .projects-body .project-images {
        width: calc(100% - 3rem);
        gap: 1rem;
    }

    .projects-body .project-index {
        top: 1.5rem;
        left: 1.5rem;
    }

    .projects-body .project-index h1 {
        font-size: 1.5rem;
    }
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 600px) {
    .projects-body .intro {
        padding: 48px 16px 24px;
    }

    .projects-body .intro h2 {
        font-size: 20px;
    }

    .projects-body .outro {
        padding: 3rem 1.25rem;
        gap: 1rem;
    }

    .projects-body .outro .row-1,
    .projects-body .outro .row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-body .project-index {
        top: 1.1rem;
        left: 1.1rem;
    }

    .projects-body .project-index h1 {
        font-size: 1.15rem;
    }

    .projects-body .project-images {
        width: calc(100% - 2rem);
        gap: 0.75rem;
    }
}