/* ================================
   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);
  }
  /* ================================
   Project Link (Sleek Style)
================================ */
.project-link {
  display: block;
  width: 100%;
  margin-top: auto; /* Pushes link to bottom if space permits */
  padding-top: 18px;
  border-top: 1px solid var(--hairline); /* The subtle separator line */
  
  font-family: 'Georgia', 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

/* The Arrow */
.project-link::after {
  content: "→";
  float: right;
  transition: transform 0.2s ease;
}

/* Hover Effects */
.project-link:hover {
  opacity: 0.7;
  border-color: var(--border); /* Slightly darker line on hover */
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none; /* Resets old button lift */
}

.project-link:hover::after {
  transform: translateX(6px); /* Arrow slides right */
}

.project-link:active {
  transform: none;
  box-shadow: none;
}

/* ================================
   Mobile
================================ */
@media (max-width: 768px) {
  .project {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-thumbnail {
    width: 100%;
    max-width: 100%; /* Allow full width on mobile */
    height: auto;
    margin-bottom: 0;
  }

  .project-details {
    padding: 30px 20px;
    align-items: center; /* Center text */
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .project-title {
    text-align: center;
    align-self: center !important;
    margin-top: 10px;
  }

  .project-link {
    text-align: left; /* Keep the link structure clean even on mobile */
    margin-top: 20px;
  }
}
  /* ================================
     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;
    }
  
  }
  