/* 
 * SkyDreamix Tech Solution - Portfolio Page Styles
 */

.portfolio-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.8)), url('../images/AIstudy.webp') center/cover fixed;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.portfolio-hero h1 {
    color: #ffffff;
    font-weight: 680;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Filter Navigation */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 600;
    transition: all 0.4s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(46, 163, 214, 0.25);
    transform: translateY(-2px);
}

/* Portfolio Card */
.portfolio-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 6, 23, 0.9), rgba(46, 163, 214, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateY(100%);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.15);
}

.overlay-content h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.project-cat {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.view-project {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: #fff;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .portfolio-hero {
        padding: 140px 0 70px;
        text-align: center;
    }

    .portfolio-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 150px 0 80px;
    }
    
    .portfolio-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        padding: 120px 0 60px;
    }

    .portfolio-hero h1 {
        font-size: 2.2rem;
    }

    .overlay-content h3 {
        font-size: 1.3rem;
    }

    .overlay-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-img {
        height: 250px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Pagination Styles - Synced with Blog System */
.blog-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link.active,
.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(46, 163, 214, 0.2);
    transform: translateY(-3px);
}
