/* Portfolio Grid */
.portfolio-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    height: 16rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-bg {
    transform: scale(1.1);
}

/* Dark Overlay */
.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::before {
    opacity: 0;
}

/* Content Overlay */
.portfolio-item-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, #03678e);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-item-content {
    opacity: 0.9;
    transform: translateY(0);
}

.portfolio-item-category {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-item-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.portfolio-item-description {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-item-link {
    width: 3rem;
    height: 3rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b8e9d;
    transition: all 0.3s ease;
}

.portfolio-item-link:hover {
    background-color: #f97316;
    color: white;
}

.portfolio-item-link svg {
    width: 1.25rem;
    height: 1.25rem;
}