/* ================= PROJECTS ================= */

/* PAGE */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 6% 100px;
  }
  
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
  }
  
  .page h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
  }



/* =============================================
   NAV
   ============================================= */

.mobile-menu-wrapper {
    position: relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #acdcee;
    padding: 10px 40px;
    border-radius: 25px;
    width: max-content;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 250px;
}

.username { color: black; font-weight: 600; }
.menu-icon { font-size: 30px; cursor: pointer; color: black; }

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: white;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 999;
    width: 240px;
}

.nav-menu a {
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 15px;
    transition: background 0.2s;
}

.nav-menu a:hover { background-color: #f0f0f0; color: #4f8ef7; }
.nav-menu.show { display: flex; }

.navIcon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 15px;
}

  
  /* FILTER */
  .filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }
  
  .filter-btn {
    background: white;
    border: 2px solid black;
    color: #000;
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background-color: #acdcee;
    border-color: #acdcee;
  }
  
  /* GRID */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  .project-card {
    background: #fff;
    border: 2px solid black;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  }
  
  .project-img-wrap {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #e8f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
  }
  
  .project-card:hover .project-img-wrap img {
    transform: scale(1.04);
  }
  
  .project-img-placeholder {
    font-size: 44px;
    color: #acdcee;
  }
  
  .project-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .project-name {
    font-size: 16px;
    font-weight: 700;
  }
  
  .project-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .badge-done {
    background: #d4f4e8;
    color: #1a7a4a;
    border: 1px solid #a8e6cb;
  }
  
  .badge-wip {
    background: #fef3cd;
    color: #856404;
    border: 1px solid #fde68a;
  }
  
  .project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  
  .stack-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #f0fbff;
    border: 1px solid #acdcee;
    border-radius: 20px;
    color: #333;
  }
  
  .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  
  .proj-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
    white-space: nowrap;
  }
  
  .proj-btn:hover {
    background: #acdcee;
    border-color: #acdcee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 220, 238, 0.45);
  }
  
  /* GitHub button gets a slightly darker treatment */
  .proj-btn .fa-github {
    font-size: 13px;
  }
  
  @media (max-width: 500px) {
    .page {
      padding-top: 100px;
    }
  
    .projects-grid {
      grid-template-columns: 1fr;
    }
  }