/* index.css -- for index.html's project grid */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-content: center;
  }
  
  .project-item {
    position: relative;
    width: 180px;
    height: 140px;
    border-radius: 20px;
    background: #1e1e1e;
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 10px;
  }
  
  .project-item i {
    font-size: 50px;
    margin-bottom: 5px;
  }
  
  .project-item img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
    object-fit: contain;
  }
  
  .project-item span {
    font-size: 1rem;
    color: #fff;
  }
  
  .project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.3);
  }
  
  .project-item .info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--accent-color);
    color: #121212;
    padding: 10px;
    font-size: 0.9rem;
    transition: bottom 0.3s ease-in-out;
    border-radius: 0 0 20px 20px;
    text-align: center;
  }
  
  .project-item:hover .info {
    bottom: 0;
  }
  