.portfolio-section {
    padding: 60px 0px 20px 0px;
}

.portfolio-title h6 {
    font-family: "Rockwell", serif;
    color: #f5c15b;
    font-weight: 400;
    margin-bottom: 5px;
    font-style: italic;
    font-size: 25px;
}

.portfolio-title h2 {
    font-family: "Rockwell", serif;
    color: #fff;
    font-weight: 700;
    font-style: bold;
    font-size: 30px;
}

/* Wrapper centers the filter bar */
.portfolio-filter-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
/* White pill container */
.portfolio-tabs {
    background: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Buttons */
.portfolio-tabs button {
    position: relative;
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 20px;
    font-family: "Rockwell", serif;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    white-space: nowrap;
}

/* Yellow underline */
.portfolio-tabs button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 3px;
    background: #FFC700; /* yellow */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover underline */
.portfolio-tabs button:hover::after {
    transform: scaleX(1);
}

/* Active state */
.portfolio-tabs button.active {
    font-weight: 600;
}

/* Active underline stays */
.portfolio-tabs button.active::after {
    transform: scaleX(1);
}


.portfolio-img {
    width: 100%;
    height: 300px;               /* FIXED HEIGHT */
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* CROPS IMAGE CLEANLY */
    transition: transform 0.4s ease;
}

/* .portfolio-grid img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
} */

.portfolio-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* shade strength */
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Show overlay on hover */
.portfolio-img:hover::after {
    opacity: 1;
}

.portfolio-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .portfolio-img { height: 270px; }
}

@media (max-width: 576px) {
    .portfolio-img { height: 350px; }
    .portfolio-tabs {
        gap: 7px;
    }
    .portfolio-tabs button {
    font-size: 10px;
    }
}



.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title .subtitle {
    display: block;
    font-family: "Rockwell", serif;
    color: #f5c15b;
    font-weight: 400;
    margin-bottom: 5px;
    font-style: italic;
    font-size: 25px;
}

.section-title .main-title {
    font-family: "Rockwell", serif;
    color: #f5c15b;
    font-weight: 700;
    font-style: italic;
    font-size: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-top: 50px;
}

/* Yellow underline */
.section-title .main-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;  
    transform: translateX(-50%);
    width: 90px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}
