/* General layout */
body {
    background-color: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 2rem;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
  }
  
  p, li {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  nav {
    margin: 2rem 0;
  }
  
  nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: #000;
    transition: color 0.2s ease;
  }
  
  nav a:hover {
    color: #888;
  }
  
  footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
    color: #777;
  }
  
  /* Project Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .card {
    background-color: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .card img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .card h3 {
    margin: 1rem;
    font-size: 1.2rem;
    color: #000;
  }
  
  .card p {
    margin: 0 1rem 1rem;
    color: #333;
  }
  
  #project-content {
    margin-top: 3rem;
  }
  
  @media screen and (max-width: 600px) {
    body {
      padding: 1rem;
    }
    h1 {
      font-size: 2rem;
    }
    .grid {
      grid-template-columns: 1fr;
    }
  }


  figure {
    text-align: center;
    margin: 2rem 0;
  }
  
  figure img {
    max-width: 100%;
    height: auto;
  }
  
  figcaption {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.5rem;
  }

  figure img {
    width: 60%; /* or any percentage */
  }