/* =====================================================
   PORTFOLIO PAGE — portfolio.css
   Place this file in your css/ folder.
   Depends on style.css root variables:
   --brand-blue, --brand-purple, --white,
   --text-dark, --text-light, --bg-light,
   --shadow, --transition
   ===================================================== */

/* =====================================================
   SHARED UTILITIES
   ===================================================== */
.portfolio-main {
    overflow-x: hidden;
}

.pf-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 94%;
}

.pf-gradient-text {
    background: linear-gradient(to right, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pf-badge {
    display: inline-block;
    background: rgba(26, 131, 198, 0.12);
    border: 1px solid rgba(26, 131, 198, 0.4);
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.pf-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1a1150 50%, #2d0a4e 100%);
    color: var(--white);
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26, 131, 198, 0.25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(112, 45, 142, 0.3), transparent 50%);
    pointer-events: none;
}

.pf-hero .pf-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}

.pf-hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 22px;
    max-width: 820px;
}

.pf-hero > .pf-container > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.pf-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(26, 131, 198, 0.35);
    margin-bottom: 70px;
}

.pf-hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(112, 45, 142, 0.45);
}

/* Hero Stats Bar */
.pf-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px 20px 0 0;
    padding: 30px 50px;
    width: 100%;
    max-width: 900px;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.pf-stat {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.pf-stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
}

.pf-stat-plus {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-blue);
}

.pf-stat p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.pf-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* =====================================================
   FILTER TABS
   ===================================================== */
.pf-filters {
    background: var(--white);
    padding: 30px 0;
    position: sticky;
    top: 90px;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: 1px solid #eef1f5;
}

.pf-filter-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pf-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-light);
    border: 1.5px solid #e2e8f0;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.pf-filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(26, 131, 198, 0.06);
}

.pf-filter-btn.active {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(26, 131, 198, 0.3);
}

/* =====================================================
   CARDS GRID
   ===================================================== */
.pf-cards-section {
    padding: 70px 0 30px;
    background: var(--bg-light);
}

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

/* =====================================================
   SINGLE CARD
   ===================================================== */
.pf-card {
    background: var(--white);
    border: 1px solid #eef1f5;
    border-radius: 22px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-purple));
    opacity: 0;
    transition: var(--transition);
}

.pf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: rgba(26, 131, 198, 0.2);
}

.pf-card:hover::before {
    opacity: 1;
}

.pf-card-show {
    animation: pf-fade-in 0.4s ease forwards;
}

@keyframes pf-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card Top */
.pf-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pf-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.pf-card-meta {
    flex: 1;
}

.pf-card-meta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Industry Badges */
.pf-industry-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 50px;
}

.badge-education  { background: #eff6ff; color: #1d4ed8; }
.badge-ngo        { background: #f0fdf4; color: #16a34a; }
.badge-ecommerce  { background: #fff7ed; color: #c2410c; }
.badge-realestate { background: #fdf4ff; color: #9333ea; }
.badge-healthcare { background: #fff1f2; color: #e11d48; }
.badge-saas       { background: #f0f9ff; color: #0369a1; }
.badge-local      { background: #fefce8; color: #a16207; }

/* Real / Case Study badges */
.pf-real-badge,
.pf-dummy-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    margin-left: auto;
}

.pf-real-badge  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.pf-dummy-badge { background: #fdf4ff; color: #9333ea; border: 1px solid #e9d5ff; }

/* Card Sections */
.pf-card-section h4,
.pf-results h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pf-card-section h4 { color: #ef4444; }
.pf-solution h4     { color: var(--brand-blue); }
.pf-results h4      { color: #16a34a; }

.pf-card-section p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* Results / Metrics */
.pf-results {
    background: linear-gradient(135deg, #f8faff, #f3f0ff);
    border: 1px solid #e8e4f4;
    border-radius: 14px;
    padding: 18px 20px;
}

.pf-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pf-metric {
    flex: 1;
    min-width: 80px;
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    padding: 12px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pf-metric-val {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 4px;
}

.pf-metric-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonial */
.pf-testimonial {
    background: var(--bg-light);
    border-left: 3px solid var(--brand-purple);
    border-radius: 0 10px 10px 0;
    padding: 16px 18px;
    position: relative;
    margin-top: auto;
}

.pf-quote-icon {
    color: var(--brand-purple);
    opacity: 0.3;
    font-size: 1.4rem;
    margin-bottom: 6px;
    display: block;
}

.pf-testimonial p {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 8px;
}

.pf-testimonial span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-purple);
}

/* No Results */
.pf-no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.pf-no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

.pf-no-results p {
    font-size: 1.1rem;
}

/* =====================================================
   DISCLAIMER
   ===================================================== */
.pf-disclaimer {
    padding: 20px 0 10px;
    background: var(--bg-light);
}

.pf-disclaimer p {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-disclaimer i {
    color: var(--brand-blue);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.pf-cta {
    padding: 80px 0;
    background: var(--bg-light);
}

.pf-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: var(--white);
    border-radius: 28px;
    padding: 60px 55px;
    box-shadow: var(--shadow);
    border: 1px solid #eef1f5;
}

/* CTA Left Text */
.pf-cta-text .pf-badge {
    background: rgba(112, 45, 142, 0.08);
    border-color: rgba(112, 45, 142, 0.3);
    color: var(--brand-purple);
}

.pf-cta-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 18px;
}

.pf-cta-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 28px;
}

.pf-cta-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pf-perk i {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* CTA Right Form */
.pf-cta-form {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid #eef1f5;
}

.pf-cta-form h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.pf-form-group {
    position: relative;
    margin-bottom: 16px;
}

.pf-form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-blue);
    font-size: 0.9rem;
}

.pf-textarea i {
    top: 18px;
    transform: none;
}

.pf-form-group input,
.pf-form-group textarea {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.pf-form-group input:focus,
.pf-form-group textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(26, 131, 198, 0.1);
}

.pf-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.pf-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 5px;
}

.pf-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(112, 45, 142, 0.35);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-hero h1 {
        font-size: 2.7rem;
    }

    .pf-cta-inner {
        gap: 40px;
        padding: 45px 35px;
    }
}

@media (max-width: 900px) {
    .pf-cta-inner {
        grid-template-columns: 1fr;
    }

    .pf-cta-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .pf-hero {
        padding: 130px 20px 0;
        min-height: auto;
    }

    .pf-hero h1 {
        font-size: 2rem;
    }

    .pf-hero > .pf-container > p {
        font-size: 0.98rem;
    }

    .pf-hero-stats {
        padding: 20px 25px;
        gap: 5px;
    }

    .pf-stat-num { font-size: 1.9rem; }
    .pf-stat-plus { font-size: 1.2rem; }
    .pf-stat-divider { display: none; }

    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-filters {
        top: 75px;
        padding: 18px 0;
    }

    .pf-filter-btn {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .pf-cta-inner {
        padding: 30px 20px;
    }

    .pf-cta-text h2 {
        font-size: 1.6rem;
    }

    .pf-metrics {
        flex-direction: column;
    }
}
