.portfolio-section {
    padding: 32px 0;
}

.portfolio-tabs {
    margin-bottom: 40px;
}

.nav-pills .nav-link {
    color: #FF6B98;
    border-radius: 25px;
    padding: 10px 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #FF6B98;
    color: white !important;
}

.portfolio-item {
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(255, 107, 152, 0.1);
    padding-bottom: 15px;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.portfolio-title {
    color: #FF6B98;
    font-size: 1.2rem;
    margin: 15px 15px 5px;
    font-weight: 600;
}

.portfolio-category {
    color: #666;
    font-size: 0.9rem;
    margin: 0 15px 15px;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: #FF6B98;
    color: white;
    border: none;
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-footer {
    border-top: none;
}

/* Masonry layout improvements */
.portfolio-content {
    padding: 20px 0;
}

.portfolio-item-wrapper {
    padding: 10px;
}

.portfolio-item {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item img {
    flex: 1;
    min-height: 180px;
}

/* Ensure all portfolio items are visible initially */
.portfolio-item-wrapper {
    display: block;
}

/* Make portfolio items more interactive */
.portfolio-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 107, 152, 0.2);
}

/* Portfolio Page Styles */
body {
    background-color: #f8f9fa;
}

/* Fixed dimensions for category cards */
.portfolio-item.category-card {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.portfolio-item.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-item.category-card .img-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.portfolio-item.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.portfolio-item.category-card:hover img {
    transform: scale(1.05);
}

.portfolio-item.category-card .portfolio-title {
    padding: 15px;
    margin: 0;
    text-align: center;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
}

/* Portfolio Tabs */
.portfolio-tabs {
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 0 5px;
}

.portfolio-tabs .nav-item {
    margin: 0;
    flex: 0 0 auto;
}

.portfolio-tabs .nav-link {
    color: #333;
    border-radius: 20px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    font-size: 0.9rem;
}

.portfolio-tabs .nav-link:hover {
    background-color: #e9ecef;
    color: #333;
}

.portfolio-tabs .nav-link.active {
    background-color: #FF6B98;
    color: white;
}

/* Portfolio Grid */
.portfolio-content {
    padding: 20px 0;
}

.portfolio-item-wrapper {
    margin-bottom: 30px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: #FF6B98;
    color: white;
    border: none;
}

.modal-body {
    padding: 20px;
}

.modal-image {
    width: 100%;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .portfolio-tabs .nav-item {
        width: calc(33.333% - 4px);
        margin: 0;
    }

    .portfolio-tabs .nav-link {
        text-align: center;
        padding: 8px 5px;
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .portfolio-tabs .nav-item {
        width: calc(33.333% - 4px);
    }

    .portfolio-tabs .nav-link {
        padding: 6px 4px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .portfolio-item.category-card {
        height: 250px;
    }

    .portfolio-item.category-card .img-container {
        height: 200px;
    }

    .portfolio-item.category-card .portfolio-title {
        font-size: 16px;
        padding: 10px;
    }
} 