/* =========================================
   Portfolio Page Styles (Creative IT Park)
   Matched with Header, Footer & Contact Colors
   ========================================= */

.cip-portfolio-page {
    background-color: #0d111a;
    color: #ffffff;
    padding-bottom: 85px;
}

.cip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   1. Portfolio Hero Section
   ========================================= */
.cip-pf-hero {
    padding: 85px 0 70px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(29, 78, 216, 0.3) 0%, rgba(13, 17, 26, 1) 75%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.cip-pf-badge {
    display: inline-block;
    background-color: rgba(29, 78, 216, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #f5cb42;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.cip-pf-hero__title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #ffffff;
}

.cip-pf-hero__title span {
    color: #f5cb42;
}

.cip-pf-hero__subtitle {
    font-size: 1.08rem;
    color: #d1d5db;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.75;
}

/* =========================================
   2. Filter Buttons & Portfolio Grid
   ========================================= */
.cip-pf-showcase {
    padding: 65px 0 80px;
}

/* Filter Bar */
.cip-pf-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.cip-filter-btn {
    background-color: #131926;
    color: #d1d5db;
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cip-filter-btn:hover {
    border-color: #f5cb42;
    color: #f5cb42;
}

.cip-filter-btn.active {
    background-color: #f5cb42;
    color: #0d111a;
    border-color: #f5cb42;
    font-weight: 700;
}

/* 3-Column Portfolio Grid */
.cip-pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Portfolio Card */
.cip-pf-card {
    background-color: #131926;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cip-pf-card:hover {
    transform: translateY(-6px);
    border-color: #f5cb42;
    box-shadow: 0 15px 35px rgba(9, 23, 122, 0.35);
}

/* Thumbnail Area */
.cip-pf-card__thumb {
    position: relative;
    width: 100%;
    height: 215px;
    background: linear-gradient(135deg, #1d4ed8 0%, #09177a 100%);
    overflow: hidden;
}

.cip-pf-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cip-pf-card:hover .cip-pf-card__thumb img {
    transform: scale(1.06);
}

.cip-pf-card__fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    padding: 15px;
}

.cip-pf-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgba(13, 17, 26, 0.88);
    color: #f5cb42;
    border: 1px solid rgba(245, 203, 66, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Card Body */
.cip-pf-card__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cip-pf-card__body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5cb42;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cip-pf-card__body p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 22px;
    flex-grow: 1;
}

.cip-pf-card__footer {
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.cip-pf-client {
    color: #9ca3af;
}

.cip-pf-link {
    color: #f5cb42;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cip-pf-link:hover {
    color: #ffffff;
}

/* =========================================
   3. Bottom Call to Action (Royal Blue Gradient)
   ========================================= */
.cip-pf-cta__box {
    background: radial-gradient(circle at center, #1d4ed8 0%, #09177a 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 55px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(9, 23, 122, 0.4);
}

.cip-pf-cta__box h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.cip-pf-cta__box p {
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 620px;
    margin: 0 auto 28px;
}

.cip-pf-cta__btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cip-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cip-btn--gold {
    background-color: #f5cb42;
    color: #0d111a;
}

.cip-btn--gold:hover {
    background-color: #eab308;
    transform: translateY(-2px);
}

.cip-btn--outline {
    background-color: rgba(13, 17, 26, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cip-btn--outline:hover {
    background-color: #ffffff;
    color: #09177a;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .cip-pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cip-pf-hero__title {
        font-size: 2.15rem;
    }
}

@media (max-width: 650px) {
    .cip-pf-grid {
        grid-template-columns: 1fr;
    }

    .cip-pf-hero {
        padding: 65px 0 55px;
    }

    .cip-pf-hero__title {
        font-size: 1.85rem;
    }

    .cip-pf-cta__box h2 {
        font-size: 1.65rem;
    }
}