/* Portfolio Page Styles */
.portfolio-page .portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
}

.portfolio-page .filter-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 16px;
    margin: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.portfolio-page .filter-btn.active,
.portfolio-page .filter-btn:hover {
    background: #fff;
    color: #000;
}

.portfolio-page .filtered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-page .project-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.portfolio-page .project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    display: none !important;
}

/* Project Card Styles */
.portfolio-page .project-box-div {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-page .project-box-div > a {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 10px;
}

.portfolio-page .project-box-div > a::before {
    content: '';
    background: #000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    z-index: 1;
    opacity: .5;
    height: 100%;
    width: 100%;
}

.portfolio-page .project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 600ms ease;
}

.portfolio-page .project-box-div > a:hover .project-image {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-page .project-meta {
    padding-left: 30px;
    padding-bottom: 40px;
    position: relative;
}

.portfolio-page .project-number {
    font-size: 70px;
    line-height: 1;
    font-weight: bold;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    margin-top: -33px;
    position: relative;
    z-index: 2;
    opacity: .5;
    left: -10px;
}

.portfolio-page .project-category {
    margin-top: 15px;
}

.portfolio-page .project-category span {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    word-spacing: 4px;
    position: relative;
    display: block;
    padding: 0;
}

.portfolio-page .project-meta-title {
    margin: 20px 0;
}

.portfolio-page .project-meta-title span {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    display: block;
    cursor: pointer;
    transition: all 400ms ease;
}

.portfolio-page .project-meta-title:hover span {
    color: #d7d7d7;
}

.portfolio-page .project-button a {
    font-size: 13px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-decoration: none;
}

.portfolio-page .project-button {
    transition: all 600ms ease;
}

.portfolio-page .project-button svg {
    width: 20px;
    height: 20px;
    transition: all 0.6s cubic-bezier(0.5, 0.2, 0.1, 1.14);
    display: inline-block;
    top: -5px;
    margin-left: 2px;
    position: absolute !important;
}

.portfolio-page .project-button svg * {
    fill: none;
    stroke: #fff;
    stroke-width: 2px;
}

.portfolio-page .project-button a::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    background: #fff;
    bottom: 5px;
    left: 0;
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
    transform: scaleX(1);
    height: 1px;
}

.portfolio-page .project-button a:hover::before {
    transform: scaleX(0);
    transform-origin: right;
}

.portfolio-page .project-button a:hover svg {
    transform: translate(10px, -10px);
    opacity: 0;
}

/* Portfolio Page Responsive */
@media (max-width: 1200px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-page .portfolio-filters {
        gap: 8px;
        padding: 0 10px;
    }
    
    .portfolio-page .filter-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .portfolio-page .project-image {
        height: 250px;
    }
    
    .portfolio-page .project-number {
        font-size: 60px;
    }
    
    .portfolio-page .project-meta-title span {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 5px;
    }
    
    .portfolio-page .project-meta {
        padding-left: 20px;
        padding-bottom: 20px;
    }
    
    .portfolio-page .project-number {
        font-size: 50px;
        margin-top: -25px;
    }
    
    .portfolio-page .project-category span {
        font-size: 12px;
    }
    
    .portfolio-page .project-meta-title span {
        font-size: 16px;
    }
    
    .portfolio-page .portfolio-filters {
        gap: 4px;
        padding: 0 5px;
    }
    
    .portfolio-page .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .portfolio-page .project-image {
        height: 200px;
    }
}

/* Portfolio Page Responsive */
@media (max-width: 1200px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-page .portfolio-filters {
        gap: 8px;
        padding: 0 10px;
    }
    
    .portfolio-page .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-page .filtered-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 5px;
    }
    
    .portfolio-page .project-meta {
        padding-left: 20px;
        padding-bottom: 20px;
    }
    
    .portfolio-page .project-number {
        font-size: 50px;
        margin-top: -25px;
    }
    
    .portfolio-page .project-category span {
        font-size: 12px;
    }
    
    .portfolio-page .project-meta-title span {
        font-size: 16px;
    }
    
    .portfolio-page .portfolio-filters {
        gap: 4px;
        padding: 0 5px;
    }
    
    .portfolio-page .filter-btn {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 12px;
    }
}
