* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    padding: 20px;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 1fr; /* This ensures all rows have equal height */
  }
  
  .project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(94, 242, 227, 0.3);
  }
  
  .project-card img {
    width: 100%;
    display: block;
    height: 250px;
    object-fit: cover;
  }
  
  .project-card .card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-radius: 0 0 10px 10px;
  }
  
  /* Alternating colors for the cards */
  .project-card:nth-child(odd) .card-label {
    background-color: #ad0089; /* Purple */
  }
  
  .project-card:nth-child(even) .card-label {
    background-color: #00aca6; /* Teal */
  }
  
  /* Animation for Desktop Hover */
  @media (min-width: 769px) {
    .project-card {
      opacity: 0.9;
      transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .project-card:hover {
      opacity: 1;
    }
    
    .project-card .card-label {
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }
    
    .project-card:hover .card-label {
      transform: translateY(0);
    }
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
      opacity: 0;
      animation: fadeIn 0.5s ease forwards;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* Staggered animation delays for each card */
    .project-card:nth-child(1) { animation-delay: 0.1s; }
    .project-card:nth-child(2) { animation-delay: 0.2s; }
    .project-card:nth-child(3) { animation-delay: 0.3s; }
    .project-card:nth-child(4) { animation-delay: 0.4s; }
    .project-card:nth-child(5) { animation-delay: 0.5s; }
    .project-card:nth-child(6) { animation-delay: 0.6s; }
    .project-card:nth-child(7) { animation-delay: 0.7s; }
    .project-card:nth-child(8) { animation-delay: 0.8s; }
  }
  
  /* Mobile sequential animation */
  @media (max-width: 768px) {
    .mobile-animation {
      position: relative;
    }
  }