/* Portfolio Section Styling */

.portfolio-filter-wrapper {
    margin-bottom: 50px;
}

/* Portfolio Two (Template Style) */
.portfolio-two {
    background: #fdfdfd;
    padding: 100px 0;
}

.portfolio-two__filter-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    background: #fff;
    padding: 15px 30px;
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    width: max-content;
    margin: 0 auto 60px;
    border: 1px solid #eee;
}

@media (max-width: 991px) {
    .portfolio-two__filter-btn {
        width: 100%;
        border-radius: 20px;
        padding: 15px;
    }
}

.portfolio-two__filter-btn button {
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid transparent;
    background: #f8f8f8;
    color: #444;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-two__filter-btn button span {
    font-size: 11px;
    opacity: 0.5;
    font-weight: 500;
}

.portfolio-two__filter-btn button:hover {
    background: #eee;
    transform: translateY(-2px);
}

.portfolio-two__filter-btn button.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.portfolio__text-slider {
    margin-bottom: 80px;
    overflow: hidden;
    white-space: nowrap;
    background: #000;
    display: flex;
    align-items: center;
    height: 140px;
}

.portfolio__text-slider-wrapper {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: portfolioMarquee 40s linear infinite;
}

@keyframes portfolioMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portfolio__text-slider-single {
    display: flex;
    align-items: center;
}

.portfolio__text-slider-single h2 {
    display: inline-block;
    color: #fff;
    font-size: 75px;
    font-weight: 900;
    text-transform: uppercase;
    margin-right: 60px;
    letter-spacing: -3px;
    margin-bottom: 0;
}

.portfolio__text-slider-single h2 a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
}

.portfolio__text-slider-single h2 a i {
    color: #e77f23;
    font-size: 45px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 1199px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio__single {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    background: #fff;
    width: 100%;
}

.portfolio__single img {
    width: 100% !important;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio__single:hover img {
    transform: scale(1.08);
}


.portfolio__single-content {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.portfolio__single:hover .portfolio__single-content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio__single-content h4 {
    margin: 0;
}

.portfolio__single-content h4 a {
    color: #111;
    font-weight: 700;
    font-size: 22px;
}

.portfolio__single-content i {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #e77f23;
    font-size: 20px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .portfolio__text-slider {
        height: 60px;
        margin-bottom: 40px;
    }

    .portfolio__text-slider-single h2 {
        font-size: 28px;
        margin-right: 30px;
        letter-spacing: -1px;
        line-height: 1;
    }

    .portfolio__text-slider-single h2 a {
        gap: 12px;
    }

    .portfolio__text-slider-single h2 a i {
        font-size: 22px;
    }
}

