/* Updated project.css to visually match landing page while keeping layout */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  --color-bg: #f8f8f1;
  --color-fg: #181818;
  --color-title: #d65b3d;
  --color-nav-link: #4a4a4a;
  --color-nav-link-hover: #d65b3d;
  --font-size-s: 0.85rem;
  --font-size-xl: 3.5rem;
  --font-size-xxl: 5.5rem;
  --spacing-m: 2rem;
  --spacing-l: 5rem;
}

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

html, body {
  height: 100%;
  background: var(--color-bg);
  font-family: 'Lato', sans-serif;
  color: var(--color-fg);
  overflow-x: hidden;
}

/* Navbar override (same as landing page) */
header {
    background: linear-gradient(to bottom, #f38e5cbe, rgba(0, 0, 0, 0));
    height: var(--header__height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
  }
  
  .main__nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--spacing-m);
  }
  
  .main__nav-bar ul {
    display: flex;
    gap: var(--spacing-l);
    list-style: none;
  }
  .main__nav-bar a {
    font-family: 'Lato', sans-serif !important;
  }
  
  .main__nav-title li a,
  .main__nav-list li a {
    font-weight: 700;
    font-size: var(--font-size-s);
    text-decoration: none;
    color: var(--color-nav-link);
    transition: color 0.3s;
  }
  
  .main__nav-title li a:hover,
  .main__nav-list li a:hover {
    color: var(--color-nav-link-hover);
  }
  
  .main__nav-ham {
    display: none;
  }
  
  /* Project title update */
  .title-container{
    padding-bottom: 2rem;
  }
  .project-title {
    font-size: 4rem; /* slightly smaller */
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    color: var(--color-title);
   line-height: 1.2;
  }
  
.container-p {
  justify-content: space-between;
  position: relative;
  text-align: center;
  background: transparent;
}

.project-content {
  padding: 18.4375rem 3.75rem 0 3.75rem;
}

.project-layout-1 {
  padding: 0 0 1.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

.project-text {
  flex: 1;
  max-width: 31.25rem;
  text-align: left;
  align-self: flex-end;
}



.project-description {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.skills {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 0.625rem;
  color: #707070;
}

.skills span {
  padding: 0.3125rem 0.625rem;
}

.project-image-featured {
  width: 46.875rem;
  height: 28.125rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-container {
  flex: 1;
}

.project-image-container video {
  margin-top: 2.5rem;
}

.project-image img,
.project-image video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.caption {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

.image-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.image-grid img {
  width: 100%;
}

.grid-2x2,
.grid-2x2l {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

.grid-2x2 img {
  height: 25rem;
  object-fit: cover;
}

.grid-4x3,
.grid-4x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.grid-4x3 img,
.grid-4x2 img {
  width: 100%;
  object-fit: cover;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.25rem;
  margin: 2.5rem;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.text-image-layout {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.text-section {
  flex: 1;
  text-align: left;
  font-weight: 300;
}

.text-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.text-section p {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.image-section {
  margin-top: 2rem;
  flex: 1;
}

.image-section img {
  width: 100%;
}

/* Responsive tweaks */
@media (max-width: 64rem) {
  .project-content {
    padding: 11.25rem 2.5rem 0 2.5rem;
  }
  .project-layout-1 {
    flex-direction: column;
    gap: 3.75rem;
  }
  .project-title {
    font-size: 3rem;
  }
  .grid-4x3,
  .grid-4x2,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .text-image-layout {
    flex-direction: column;
    gap: 1.25rem;
  }
  .text-section h3 {
    font-size: 1.4rem;
  }
  .project-image-featured {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 48rem) {
  .project-content {
    padding: 8.75rem 2rem 0 2rem;
  }
  .project-title {
    font-size: 2.25rem;
  }
  .skills {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-4x3,
  .grid-4x2,
  .video-grid,
  .grid-2x2,
  .grid-2x2l {
    grid-template-columns: 1fr;
  }
  .text-section h3 {
    font-size: 1.2rem;
  }
  .text-section p {
    font-size: 0.95rem;
  }
  .caption {
    font-size: 0.9rem;
  }
  .video-grid video {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 30rem) {
  .project-content {
    padding: 6.25rem 1.25rem 0 1.25rem;
  }
  .project-title {
    font-size: 1.75rem;
  }
  .text-section p {
    font-size: 0.9rem;
  }
  .caption {
    font-size: 0.85rem;
  }
  .text-section h3 {
    font-size: 1.1rem;
  }
  .video-grid {
    margin: 1.25rem 0;
  }
}

.grid-1video-1image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.grid-1video-1image video,
.grid-1video-1image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}