/* Projects Page */
.projects-page {
    padding: 100px 0;
    background-color: #f9f9f9;
  }
  
  .section-title {
    font-size: 3rem;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
  }
  
  .section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 50px;
  }
  
  /* Projects Grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  /* Project Card */
  .project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  
  .project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .project-card:hover .project-img {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: 20px;
    text-align: center;
  }
  
  .project-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
  }
  
  .project-info p {
    font-size: 1rem;
    color: #777;
    margin-bottom: 20px;
  }
  
  .project-link {
    color: #E67E22;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .project-link:hover {
    color: #d35400;
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .section-title {
      font-size: 2.5rem;
    }
  
    .project-info h3 {
      font-size: 1.3rem;
    }
  
    .project-info p {
      font-size: 0.9rem;
    }
  }
  
  /* Project detail page */
  /* ensure detail pages sit below the fixed header */
  .project-detail {
    padding: 100px 0 60px; /* larger top padding to clear fixed header */
  }

  .back-link {
    display: inline-block;
    margin: 6px 0 20px 0;
    color: #555;
    text-decoration: none;
  }

  .back-link {
    transition: color 0.18s ease;
    cursor: pointer;
  }

  .back-link:hover {
    color: #E67E22;
  }

  .project-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
  }

  .project-title {
    font-size: 2.25rem;
    margin: 0;
  }

  .project-summary {
    color: #666;
    margin-top: 12px;
  }

  .project-details {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
  }

  .project-column h2 {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .project-column h3 {
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .project-aside h3 {
    margin-bottom: 6px;
  }

  /* paragraphs and lists spacing inside project content */
  .project-column p,
  .project-aside p,
  .project-body p {
    margin: 0 0 14px 0;
    line-height: 1.6;
  }

  .project-column ul {
    margin: 0 0 18px 20px;
  }

  .project-footer {
    margin-top: 40px;
  }

  .project-cta {
    display: inline-block;
    background: #E67E22;
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

  .project-cta:hover {
    background-color: #d35400;
  }

  /* External links in project content */
  .project-column a,
  .project-aside a {
    color: #E67E22;
    text-decoration: none;
    transition: color 0.18s ease;
  }

  .project-column a:hover,
  .project-aside a:hover {
    color: #d35400;
    text-decoration: underline;
  }

  /* Project image grid */
  .project-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }

  .project-image-grid img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Full-width image section */
  .project-image-fullwidth {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .project-image-fullwidth img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  @media (max-width: 900px) {
    .project-details {
      grid-template-columns: 1fr;
    }
  }
  