/* ================================
   Project Page Base
================================ */
.projects-body {
    font-family: 'Georgia', 'Libre Baskerville', serif;
    background: linear-gradient(to bottom, var(--bg-0), var(--bg-1));
    color: var(--ink);
    margin: 0;
    padding: 0;
  }
  
  /* ================================
     Container Layout
  ================================ */
  .projects-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  /* ================================
     Project Card
  ================================ */
  .project {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
  }
  
  .project.visible {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* ================================
     Thumbnail
  ================================ */
  .project-thumbnail {
    width: 100%;
    max-width: 350px;
    object-fit: cover;
    border: none;
    border-radius: 0;
  }
  
  /* ================================
     Project Content
  ================================ */
  .project-details {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Title */
  .project-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    font-family: 'Georgia', 'Libre Baskerville', serif;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 4px;
    margin-bottom: 18px;
    max-width: fit-content;
    opacity: 0;
    transform: translateY(-15px);
    animation: titleDropIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
  }
  
  @keyframes titleDropIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Preview Text */
  .project-preview {
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-2);
  }
  
  /* ================================
     Modern Project Button
     (inspired by view-all-button)
  ================================ */
  .project-link {
    display: inline-block;
    align-self: flex-start;
    max-width: fit-content;
  
    font-size: 16px;
    font-weight: 600;
    font-family: 'Georgia', 'Libre Baskerville', serif;
  
    color: var(--ink);
    background-color: transparent;
    padding: 10px 22px;
    border: 1px solid var(--ink);
    border-radius: 6px;
  
    cursor: pointer;
    text-decoration: none;
  
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
  
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  }
  
  .project-link:hover {
    background-color: var(--ink);
    color: var(--text-4);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }
  
  .project-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* ================================
     Mobile
  ================================ */
  @media (max-width: 768px) {
    .project {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .project-thumbnail {
      width: 100%;
      max-width: 300px;
      height: auto;
      margin-bottom: 20px;
    }
  
    .project-details {
      padding: 20px;
      align-items: center;
      text-align: center;
    }
  
    .project-title {
      text-align: center;
      align-self: center !important;
    }
  
    .project-link {
      align-self: center !important;
    }
  }
  