header {
    background-color: #0f0f0f;
}

.portfolio-hero {
    height: 400px;
    background-color: #0f0f0f;
    display: flex;
    align-items: center;
    padding: 70px;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 250px;
    background-color: #B6E925;
    right: 150px;
    top: 0;
    transform: skewX(-30deg);
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 70%;
    background-color: #B6E925;
    right: 0;
    top: 0;
    transform: rotate(-60deg);
    transform-origin: top right;
}

.portfolio-hero h1 {
    color: #ffffff;
    margin-right: 130px;
    font-size: 4rem;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    z-index: 2;
}

.portfolio-hero h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 80px; 
    height: 4px;
    background-color: #B6E925;
}

.portfolio-hero p {
    color: #d8d8d8;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 200;
    width: 25vw;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Categorías y Filtros */
.portfolio-categories {
    padding: 80px 70px;
    background-color: #212121;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-btn {
    background: none;
    border: 2px solid #B6E925;
    color: #ffffff;
    padding: 12px 24px;
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #B6E925;
    color: #212121;
}

/* Grid de portafolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.item-overlay p {
    font-size: 1rem;
    color: #B6E925;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-categories {
        padding: 40px 20px;
    }

    .category-filters {
        flex-wrap: wrap;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
}
