/* ============================================================
   220 CREATIVE — PORTFOLYO (portfolio.css) — PREMIUM DARK v2
   Önce & Sonra Slider · Stat Bandı · Detaylı Vaka Kartları
   .pf- prefix · independent stylesheet for portfolio page
   ============================================================ */

.pf-wrapper {
    background: var(--black);
    color: #fff;
    overflow: hidden;
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.pf-hero {
    position: relative;
    padding: 140px 0 0;
    background: radial-gradient(circle at 50% 100%, #161003 0%, var(--black) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.pf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
}

.pf-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 196,.08) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    animation: pfGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes pfGlowPulse {
    0%   { opacity: 0.7; transform: translateX(-50%) scale(0.9); }
    100% { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

.pf-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.pf-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--grey-300);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-crumb a {
    color: var(--grey-500);
    text-decoration: none;
    transition: color .3s;
}
.pf-crumb a:hover { color: var(--gold); }
.pf-crumb .sep    { color: rgba(255,255,255,.2); }
.pf-crumb b       { color: var(--gold); }

.pf-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.pf-hero h1 em {
    font-style: italic;
    font-family: serif;
    font-weight: 400;
    color: var(--gold);
    background: linear-gradient(120deg, var(--gold) 30%, #7dd3e8 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pf-hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--grey-300);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────
   İSTATİSTİK BANDI
───────────────────────────────────────── */
.pf-stats-band {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
}

.pf-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 0;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 56px;
}

.pf-stat-num {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    background: linear-gradient(120deg, var(--gold), #7dd3e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1;
}

.pf-stat-lbl {
    font-size: .78rem;
    font-weight: 600;
    color: var(--grey-400);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

/* ─────────────────────────────────────────
   ANA BÖLÜM
───────────────────────────────────────── */
.pf-sec {
    padding: 110px 0 80px;
    position: relative;
}

/* ─────────────────────────────────────────
   FILTRE SATIRI
───────────────────────────────────────── */
.portfolio-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.pf-btn {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: var(--grey-300);
    padding: 12px 26px;
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s var(--ease);
}

.pf-btn:hover {
    border-color: var(--gold-20);
    background: rgba(14, 165, 196,.05);
    color: #fff;
}

.pf-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(14, 165, 196,.25);
}

/* ─────────────────────────────────────────
   PORTFOLYO IZGARASI
───────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pf-card {
    background: linear-gradient(160deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all .4s var(--ease);
    display: flex;
    flex-direction: column;
    animation: pfFadeIn .5s ease both;
}

.pf-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14,165,196,.2);
    box-shadow: 0 28px 60px rgba(0,0,0,.4);
}

/* ─────────────────────────────────────────
   ÖNCE / SONRA SLIDER
───────────────────────────────────────── */
.pf-slider {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    border-radius: 0;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.pf-slide-after,
.pf-slide-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-slide-after {
    z-index: 1;
}

.pf-slide-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    width: 50%; /* JS ile güncellenir */
    transition: none;
}

.pf-slide-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* slider genişliğinde değil, orijinal boyutunda */
    height: 100%;
    object-fit: cover;
    min-width: 100%;
}

/* Sürüklenebilir Ayırıcı */
.pf-divider {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: col-resize;
    touch-action: none;
}

.pf-divider-line {
    width: 2px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.5);
}

.pf-divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    color: #111;
    transition: transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.pf-divider:hover .pf-divider-handle,
.pf-slider:active .pf-divider-handle {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 28px rgba(0,0,0,.6), 0 0 0 3px rgba(14,165,196,.4);
}

/* Önce / Sonra Etiketleri */
.pf-label-before,
.pf-label-after {
    position: absolute;
    top: 12px;
    z-index: 8;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 100px;
    pointer-events: none;
}

.pf-label-before {
    left: 12px;
    background: rgba(0,0,0,.65);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
}

.pf-label-after {
    right: 12px;
    background: var(--gold);
    color: var(--black);
}

/* Kategori Rozeti */
.pf-card-cat-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 8;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(0,0,0,.65);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(14,165,196,.2);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   KART GÖVDESİ
───────────────────────────────────────── */
.pf-body {
    padding: 24px 22px 20px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.pf-body-top {}

.pf-cat {
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.pf-card h3.pf-title {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.pf-desc {
    color: var(--grey-300);
    font-size: .83rem;
    line-height: 1.65;
    margin: 0;
}

/* Meta Bilgileri */
.pf-body-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.pf-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--grey-400);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    padding: 5px 11px;
    border-radius: 100px;
}

.pf-meta-pill svg { color: var(--gold); opacity: .8; flex-shrink: 0; }

.pf-meta-badge {
    margin-left: auto;
    font-size: .67rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(14,165,196,.07);
    border: 1px solid rgba(14,165,196,.15);
    padding: 5px 11px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ─────────────────────────────────────────
   DİPNOT
───────────────────────────────────────── */
.pf-disclaimer {
    text-align: center;
    color: var(--grey-500);
    font-size: .75rem;
    line-height: 1.6;
    margin-top: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

/* ─────────────────────────────────────────
   PREMIUM CTA BANDI
───────────────────────────────────────── */
.pf-cta {
    background: var(--gold);
    padding: 85px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pf-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,.2) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,.2) 0%, transparent 40%);
    pointer-events: none;
}

.pf-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.pf-cta h2 {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    font-weight: 900;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.pf-cta p {
    color: rgba(0,0,0,.75);
    font-size: 1.05rem;
    margin-bottom: 32px;
    font-weight: 500;
    line-height: 1.6;
}

/* ─────────────────────────────────────────
   ANİMASYON
───────────────────────────────────────── */
@keyframes pfFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1200px) {
    .pf-stat { padding: 0 36px; }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .pf-stat { padding: 0 24px; }
    .pf-stat-num { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .pf-hero {
        padding: 110px 0 0;
    }

    .pf-sec { padding: 80px 0 60px; }

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .pf-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 24px 0;
    }

    .pf-stat-divider { display: none; }
    .pf-stat { padding: 0 20px; }
}

@media (max-width: 576px) {
    .pf-btn {
        padding: 10px 18px;
        font-size: .82rem;
    }

    .pf-body { padding: 18px 16px 16px; }

    .pf-meta-badge { margin-left: 0; }
}
