body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #000;
  margin: 0;
  padding: 0;
}

/* JOYCE CHEN in top-right corner */
#joyce-name {
  font-size: 1.2rem;
  font-weight: bold;
  position: fixed;
  top: 20px;
  right: 20px;
  background: #e6dbff;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 10;
  color: black;
  text-decoration: none;
}

#joyce-name:hover {
  color: #3E01FF;
}

/* Projects container */
#projects-wrapper {
  padding-top: 100px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Projects layout */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.project-item a {
  text-decoration: none;
  color: black;
}

.project-item p {
  margin: 0;
}

.project-number {
  font-size: 2rem;
  font-style: italic;
}

.project-title {
  font-size: 2rem;
  font-style: italic;
  font-weight: bold;
}

.project-subtitle {
  font-size: 1rem;
  margin-top: 4px;
  margin-left: 3rem; /* indent the subtitle */
}

/* Hover effect */
.project-item a:hover .project-title {
  color: #3E01FF;
}


/* Additional styles for detail page */
    .project-detail-container {
      padding: 100px 40px 40px;
    }
    
    .project-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 30px;
      position: relative;
    }
    
    .project-title-container {
      max-width: 60%;
    }
    
    .project-main-title {
      font-size: 2rem;
      font-weight: bold;
      margin: 0;
    }
    
    .project-subtitle {
      width: 100%;
      padding: 0 40px; /* Match your container padding */
      margin-top: -20px; /* Pull up slightly closer to title */
      margin-bottom: 30px;
    }

    .project-subtitle p {
      font-size: 1rem;
      margin: 0;
      text-align: left;
      max-width: 100%;
    }
    
    .pdf-container {
      display: flex;
      flex-direction: column;
      gap: 40px;
      margin-top: 40px;
    }
    
    .pdf-viewer {
      width: 100%;
      height: 100vh;
      border: none;
      background: #e0e0e0; /* Grey background in case PDF fails to load */
    }
    
    .back-button {
      position: fixed;
      top: 20px;
      left: 20px;
      font-size: 1.5rem;
      text-decoration: none;
      color: black;
      background: #e6dbff;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
    }
    
    .back-button:hover {
      color: #3E01FF;
      background: #d9c9ff;
    }
    
    @media (max-width: 768px) {
      .project-header {
        flex-direction: column;
      }
      
      .project-title-container {
        max-width: 100%;
        margin-bottom: 20px;
      }
      
      .project-detail-container {
        padding: 80px 20px 20px;
      }
    }

.project-page {
  width: 100%;
  margin-bottom: 40px; /* Space between pages */
}

.project-page img {
  width: 100%;
  height: auto;
  display: block;
}


/* Add this to your existing CSS */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align items to top */
  margin-bottom: 20px;
}

.project-title-container {
  max-width: 70%; /* Increased from 60% */
}

.project-subtitle {
  width: 100%;
  padding: 0;
  margin: 10px 0 30px 0; /* Better spacing */
  font-size: 1rem;
  line-height: 1.5;
}

.project-subtitle a {
  color: #3E01FF;
  text-decoration: none;
  font-weight: bold;
}

.project-subtitle a:hover {
  text-decoration: underline;
}

/* Fix for mobile */
@media (max-width: 768px) {
  .project-title-container {
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .project-subtitle {
    margin: 10px 0 20px 0;
  }
}
