/* Container */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
  }
  
  .section-head {
    text-align: center;
    margin-bottom: 30px;
  }
  .section-head h2 { margin: 0; font-size: 2rem; }
  .section-head p { color: var(--muted); }
  
  /* Project cards */
  .projects-list {
    display: grid;
    gap: 28px;
  }
  .project {
    background: transparent;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
  }
  .project:hover { transform: translateY(-3px); }
  .project header p { color: var(--muted); margin: 6px 0 14px 0; }
  .project .stack { color: var(--muted); font-weight: 600; margin: 10px 0 14px 0; }
  
  /* Gallery toggle button */
  .project button.gallery-toggle {
    background: var(--bg);
    color: var(--text);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid var(--muted);
  }
  .project button.gallery-toggle:hover {
    background: var(--text);
    color: var(--bg);
  }
  
  /* Hidden gallery grid */
  .project .gallery {
    display: none;
    margin-top: 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    animation: fadeIn 0.4s ease forwards;
  }
  .project .gallery img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
  }
  .project .gallery img:hover { transform: scale(1.05); }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Lightbox */
  #lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  #lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
  }
  #lightbox .controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  #lightbox button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    padding: 8px 14px;
    transition: background 0.3s;
  }
  #lightbox button:hover { background: rgba(255,255,255,0.35); }
  #lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .project { padding: 16px; }
    .project button.gallery-toggle { width: 100%; }
  }