html {
    scroll-behavior: smooth;
  }

body {
    font-family: Arial, sans-serif;
    background: url("../assets/img/bg.png");
  }
  
  .section {
    padding: 2rem;
  }
  
  .page-title {
    color: #4CAF50;
    margin-bottom: 1.5rem;
  }
  
  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem; /* Adds space between buttons */
  }
  
  .filter-btn {
    background: linear-gradient(145deg, #4CAF50, #388e3c); /* Gradient background */
    color: white;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase; /* Uppercase text */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px; /* Ensure buttons have a minimum width */
  }
  
  .filter-btn i {
    margin-right: 8px; /* Space between icon and text */
  }
  
  .filter-btn:hover {
    background: linear-gradient(145deg, #388e3c, #4CAF50); /* Reverse gradient on hover */
    transform: scale(1.1); /* Slight scale effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
  }
  
  .filter-btn:active {
    transform: scale(1); /* Reset scale on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow on click */
  }
  
  .filter-btn:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 4px rgba(72, 180, 97, 0.6); /* Green glow on focus */
  }
  
  .filter-btn i {
    font-size: 1.2rem; /* Make the icon slightly larger */
  }
  
  @media (max-width: 768px) {
    .filter-buttons {
      flex-direction: column; /* Stack buttons vertically on small screens */
    }
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .project-card {
    border: 1px solid #000000;
    border-radius: 8px;
    background-color: rgb(70, 68, 68);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  }
  .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;
  }

  .project-card:nth-child(9) {
    animation-delay: 0.9s;
  }
  
  .project-card:nth-child(10) {
    animation-delay: 1s;
  }
  
  .project-card:nth-child(11) {
    animation-delay: 1.1s;
  }
  
  .project-card:nth-child(12) {
    animation-delay: 1.2s;
  }


@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .project-card:hover {
    cursor: pointer;
    transform: translateY(-10px); /* Lift the card */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  .project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  
  .project-card h5 {
    color: #fdfcfc;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .project-card p {
    font-size: 0.9rem;
    color: #b4afaf;
    text-align: center;
    padding: 0 0.5rem 1rem;
  }
  

  .return-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
  }
  
  .return-button:hover {
    cursor: pointer;
    background-color: #45a049;
    transform: translateY(-5px); /* Slight upward movement */
  }
  
  .return-button i {
    margin-right: 8px;
  }