/* =========================================================================================================
   BREADCRUMB SECTION
========================================================================================================= */
.breadcrumb-section {
    position: relative;
    background-image: url('https://www.thinktrekwebsoft.com/wp-content/themes/think/image/portfoliobanner.jpg'); /* Local copy for reliability */
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.breadcrumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.breadcrumb-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

    .breadcrumb-content h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

.breadcrumb-nav {
    font-size: 1rem;
}

    .breadcrumb-nav a {
        color: #fff;
        text-decoration: none;
        margin: 0 5px;
    }

    .breadcrumb-nav span {
        margin: 0 5px;
    }

/* =========================================================================================================
   PORTFOLIO SECTION
========================================================================================================= */
.portfolio {
    padding: 20px 80px;
    text-align: center;
}

    .portfolio h1 {
        color: #36949e;
        margin: 20px auto;
        font-size: 3rem;
    }

.filter-tabs {
    margin-bottom: 10px;
}

.filter-btn {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #36949e;
    color: white;
    border: none;
    border-radius: 4px;
}

    .filter-btn.active {
        background-color: #333;
        color: white;
    }

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 50px 70px;
}

.portfolio-item {
    width: 250px;/* Controlled by JS filtering */
}

    .portfolio-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .portfolio-item img:hover {
            transform: scale(1.05);
        }

/* =========================================================================================================
   LIGHTBOX
========================================================================================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

    .lightbox .close:hover {
        color: #ccc;
    }

/* =========================================================================================================
   RESPONSIVE DESIGN
========================================================================================================= */

/* Tablets (Landscape & Portrait) - Max 991px */
@media (max-width: 991px) {
    .breadcrumb-section {
        height: 220px;
    }

    .breadcrumb-content h1 {
        font-size: 2.2rem;
    }

    .portfolio {
        padding: 20px 40px;
    }

        .portfolio h1 {
            font-size: 2.2rem;
        }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .portfolio-grid {
        padding: 30px 40px;
        gap: 15px;
    }

    .portfolio-item {
        width: 200px;
    }
}

/* Large Phones (Max 767px) */
@media (max-width: 767px) {
    .breadcrumb-section {
        height: 180px;
    }

    .breadcrumb-content h1 {
        font-size: 1.8rem;
    }

    .breadcrumb-nav {
        font-size: 0.9rem;
    }

    .portfolio {
        padding: 15px 20px;
    }

        .portfolio h1 {
            font-size: 2rem;
        }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .portfolio-grid {
        padding: 20px;
        gap: 12px;
    }

    .portfolio-item {
        width: 180px;
    }
}

/* Small Phones (Max 575px) */
@media (max-width: 575px) {
    .breadcrumb-section {
        height: 150px;
    }

    .breadcrumb-content h1 {
        font-size: 1.5rem;
    }

    .breadcrumb-nav {
        font-size: 0.85rem;
    }

    .portfolio {
        padding: 10px 10px;
    }

        .portfolio h1 {
            font-size: 1.6rem;
        }

    .filter-btn {
        padding: 5px 10px;
        font-size: 12px;
        margin: 3px;
    }

    .portfolio-grid {
        padding: 15px;
        gap: 10px;
    }

    .portfolio-item {
        width: 140px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox .close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}
