.portfolio-filters {
    margin-bottom: 20px;
    text-align: center;
}
.portfolio-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}
.portfolio-filters li {
    display: inline-block;
    margin: 0 5px;
}
.portfolio-filters li a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #005177 0%, #0B0F1C 700%);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.portfolio-filters li a:hover,
.portfolio-filters li active {
    background: linear-gradient(135deg, #0B0F1C 0%, #005177 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px; 
    justify-content: space-around; 
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    z-index: 5;
    pointer-events: none;
}
.portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
    transition: filter 0.3s ease;
}
.portfolio-item:hover img {
    filter: brightness(100%);
}
.portfolio-title {
    font-size: 18px; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 4px 4px 20px #000000;
    display: inline-block;
    width: auto;
    text-align: center;
    z-index: 10;
    font-family: "Inter", Sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}
.portfolio-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-image,
.portfolio-image img,
.portfolio-image::before {
  border-radius: inherit;
}