.portfolio-hero {
    text-align: center;
    padding: 100px 20px 60px;
    background-color: #f6f6f4;
}

.portfolio-hero h1 {
    font-size: 60px;
    font-weight: 700;
}

.portfolio-hero p {
    margin-top: 15px;
    font-size: 18px;
    color: #aaaaaa;
}

/* ===== CATEGORY GRID ===== */
.portfolio-categories {
    padding: 60px 8%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== SQUARE CATEGORY CARD ===== */
.category-card {
    position: relative;
    aspect-ratio: 1 / 1; /* Makes it perfectly square */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    transition: 0.4s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

/* Image fills square */
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
    opacity: 0.75;
}

.category-card:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Overlay */
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.category-overlay h3 {
    font-size: 22px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px){
    .category-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px){
    .category-grid{
        grid-template-columns: 1fr;
    }

    .portfolio-hero h1 {
        font-size: 34px;
    }
}
