.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-buttons button {
    font-family: "Open Sans", sans-serif;
    font-weight: 600; 
    font-size: 16px;
    color: var(--teal);
    border: var(--teal) solid 2px;
    border-radius: 5px;
    width: 145px;
    height: 31px;
    transition: 300ms ease-out;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.filter-buttons button:hover{
        color: var(--light);
    background-color: var(--teal);
    transition: 300ms ease-out;
}

.filter-buttons button.active {
    font-family: "Open Sans", sans-serif;
    font-weight: 600; 
    font-size: 16px;
    color: var(--light);
    background-color: var(--teal);
    border: var(--teal) solid 2px;
    border-radius: 5px;
    width: 145px;
    height: 31px;
    transition: 300ms ease-out;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .filter-buttons {
        flex-wrap: wrap; 
        padding: 10px;
    }
    
    .filter-buttons button {
        padding: 6px 12px;
        font-size: 12px;
        margin: 5px;
        white-space: normal;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.portfolio-item img {
  transition: transform 5s ease !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-item:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.portfolio-item:hover img{
  transform: scale(1.2);
}

.portfolio-info {
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.portfolio-item::after{
    z-index: 0;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.767), rgba(0, 0, 0, 0));
}

.portfolio-info h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
}

.portfolio-info p {
    color: #fff;
    margin: 5px 0 10px;
    font-size: 0.9em;
}

.tag {
    font-family: "Open Sans", sans-serif;
    background: #d1d1d1d3;
    color: #333;
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 0.8em;
    border-radius: 5px;
    display: inline-block;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.pop-in {
  animation: popIn 0.6s ease-out forwards;
}

.pop-out {
  animation: popOut 0.4s ease-out forwards;
}

