/* =============================================
   PORTFOLIO PAGE STYLES — template-portfolio.php
   Brand: #2c3e8c (navy) | #e74c3c (red CTA)
   ============================================= */

/* --- Hero --- */
.pf-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e8c 50%, #3b5bdb 100%);
    color: #fff;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pf-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.pf-hero-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.pf-hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.pf-hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.pf-hero h1 span { color: #fbbf24; }
.pf-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.pf-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}
.pf-stat-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.pf-stat-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-3px);
}
.pf-stat-icon {
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 12px;
}
.pf-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.1;
}
.pf-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

/* --- Section Common Utilities --- */
.pf-section-label {
    display: inline-block;
    background: #eff6ff;
    color: #2c3e8c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.pf-section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 10px;
    text-align: center;
}
.pf-section-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    text-align: center;
    margin: 0 0 48px;
}
.pf-header-wrap { text-align: center; }

/* --- Clients Section --- */
.pf-clients-section {
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
    padding: 80px 20px;
}
.pf-clients-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.pf-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.pf-client-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    transition: all 0.25s;
}
.pf-client-card:hover {
    border-color: #3b5bdb;
    box-shadow: 0 8px 24px rgba(44,62,140,0.1);
    transform: translateY(-3px);
}
.pf-client-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    text-transform: uppercase;
}
.pf-client-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.pf-clients-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pf-tag-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
}
.pf-tag-outline:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
}
.pf-tag-outline i { color: #6b7280; font-size: 0.8rem; }

/* --- Featured Projects --- */
.pf-projects-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 3px solid #f1f5f9;
}
.pf-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.pf-project-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.pf-project-card:hover {
    box-shadow: 0 12px 40px rgba(44,62,140,0.12);
    transform: translateY(-5px);
    border-color: #c7d2fe;
}
.pf-project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    position: relative;
    overflow: hidden;
    color: rgba(255,255,255,0.9);
}
.pf-project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 18px,
        rgba(255,255,255,0.04) 18px,
        rgba(255,255,255,0.04) 19px
    );
    pointer-events: none;
}
.pf-project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: rgba(255,255,255,0.92);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.22);
    z-index: 1;
}
.pf-project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-project-client {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3b5bdb;
    margin-bottom: 8px;
}
.pf-project-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.35;
}
.pf-project-body p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}
.pf-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pf-tag {
    background: #eff6ff;
    color: #2c3e8c;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- Trust Bar --- */
.pf-trust-bar {
    background: #fff;
    border-top: 3px solid #eff6ff;
    border-bottom: 3px solid #eff6ff;
    padding: 56px 20px;
}
.pf-trust-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}
.pf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.pf-trust-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeeff);
    color: #2c3e8c;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(44,62,140,0.1);
}
.pf-trust-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.pf-trust-item p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 240px;
}

/* --- Categories Showcase --- */
.pf-categories-section {
    background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
    padding: 80px 20px;
}
.pf-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.pf-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.pf-cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.pf-cat-card:hover {
    box-shadow: 0 12px 36px rgba(44,62,140,0.1);
    transform: translateY(-4px);
    border-color: #c7d2fe;
}
.pf-cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeeff);
    color: #3b5bdb;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.pf-cat-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.pf-cat-card p {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
}
.pf-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b5bdb;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.pf-cat-link:hover { color: #e74c3c; gap: 12px; }

/* --- CTA --- */
.pf-cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e8c 100%);
    color: #fff;
    padding: 90px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pf-cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.pf-cta-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.pf-cta-label {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.pf-cta-section h2 {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.2;
}
.pf-cta-section h2 span { color: #fbbf24; }
.pf-cta-section p {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.pf-btn-wrap {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.pf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e74c3c;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 36px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.pf-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 24px rgba(231,76,60,0.3);
}
.pf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 36px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.25s;
}
.pf-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateY(-2px);
}

/* --- SEO Section --- */
.pf-seo-section {
    background: #fff;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}
.pf-seo-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pf-seo-icon {
    color: #e74c3c;
    font-size: 1.1rem;
}
.pf-seo-section p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 14px;
}

/* =============================================
   PORTFOLIO — MOBILE RESPONSIVE FIXES
   ============================================= */
@media (max-width: 768px) {
    .pf-hero { padding: 60px 16px 50px; }
    .pf-stats {
        gap: 12px;
    }
    .pf-stat-item {
        padding: 20px 18px;
        min-width: 130px;
    }
    .pf-stat-num {
        font-size: 1.6rem;
    }
    .pf-clients-section,
    .pf-projects-section,
    .pf-categories-section,
    .pf-cta-section { padding: 50px 16px; }
    .pf-trust-bar { padding: 40px 16px; }
    .pf-trust-inner { grid-template-columns: 1fr; gap: 28px; }
    .pf-trust-item p { max-width: 100%; }
    .pf-clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pf-client-card { padding: 16px 10px; }
    .pf-client-logo {
        width: 48px; height: 48px;
        font-size: 0.75rem;
    }
    .pf-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pf-project-img { height: 160px; }
    .pf-cats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pf-btn-wrap {
        flex-direction: column;
        align-items: center;
    }
    .pf-btn-primary,
    .pf-btn-outline {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }
    .pf-clients-tags { gap: 8px; }
    .pf-tag-outline { padding: 6px 12px; font-size: 0.8rem; }
}

@media (max-width: 400px) {
    .pf-clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pf-stat-item {
        padding: 18px 14px;
        min-width: 110px;
    }
    .pf-stat-num { font-size: 1.4rem; }
}
