/* =========================================
   PORTFOLIO / PDF GALLERY PAGE
   Riyadh Designer
   ========================================= */

.pf-page { background: #ffffff; color: #1a1a1a; }

/* ============ HERO ============ */
.pf-hero {
    position: relative;
    padding: 90px 0 70px;
    background: linear-gradient(135deg, #0a1628 0%, #0f2942 50%, #0a1628 100%);
    color: #fff;
    overflow: hidden;
}
.pf-hero-glow {
    position: absolute; top: 20%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,200,150,0.18), transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}
.pf-hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.pf-hero-inner { position: relative; z-index: 2; text-align: center; }

.pf-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Poppins', monospace;
    font-size: 13px; letter-spacing: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 18px; border-radius: 999px;
    color: #a5f3d0; margin-bottom: 28px;
}
.pf-prompt { color: #00d9a3; font-weight: 700; }
.pf-sep { color: rgba(255,255,255,0.4); }
.pf-typing { color: #fff; }
.pf-cursor {
    display: inline-block; width: 8px; height: 14px;
    background: #00d9a3; animation: pf-blink 1s infinite;
}
@keyframes pf-blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }

.pf-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 4.8vw, 58px);
    font-weight: 800; line-height: 1.15;
    margin: 0 0 22px;
}
.pf-accent { color: #00d9a3; }
.pf-hero-desc {
    max-width: 760px; margin: 0 auto 34px;
    font-size: 17px; line-height: 1.7;
    color: rgba(255,255,255,0.85);
}
.pf-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }
.pf-btn-glow { box-shadow: 0 0 30px rgba(0,217,163,0.45); }
.pf-btn-ghost {
    display: inline-flex; align-items: center;
    padding: 14px 26px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff; text-decoration: none; font-weight: 600;
    transition: all 0.3s ease;
}
.pf-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #00d9a3; }

.pf-hero-stats {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 40px; margin-top: 30px;
}
.pf-stat { text-align: center; }
.pf-stat-num {
    display: block; font-family: 'Poppins', sans-serif;
    font-size: 32px; font-weight: 800; color: #00d9a3;
}
.pf-stat-label {
    font-size: 13px; letter-spacing: 1px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
}

/* ============ GALLERY SECTION ============ */
.pf-gallery-section { padding: 80px 0; }

.pf-section-head {
    text-align: center; max-width: 780px;
    margin: 0 auto 56px;
}
.pf-tag {
    display: inline-block; padding: 6px 16px;
    background: rgba(0,217,163,0.12);
    color: #008c69; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 18px;
}
.pf-section-head h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800; line-height: 1.2;
    margin: 0 0 16px; color: #0a1628;
}
.pf-sub {
    font-size: 16px; line-height: 1.7;
    color: #4b5563; margin: 0;
}

/* ============ GRID ============ */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.pf-card {
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none; color: inherit;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    border-color: #00d9a3;
}

.pf-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}
.pf-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pf-card:hover .pf-card-img img { transform: scale(1.08); }

.pf-card-icon {
    position: absolute; top: 10px; right: 10px;
    background: #dc2626;
    color: #fff; font-size: 10px;
    font-weight: 800; letter-spacing: 1px;
    padding: 4px 8px; border-radius: 4px;
    z-index: 2;
}

.pf-card-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 22, 40, 0.78);
    color: #00d9a3;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: 15px;
    letter-spacing: 1px;
    opacity: 0; transition: opacity 0.3s ease;
    z-index: 1;
}
.pf-card:hover .pf-card-overlay { opacity: 1; }

.pf-card-body { padding: 16px 16px 18px; }
.pf-card-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px; font-weight: 700;
    line-height: 1.35; color: #0a1628;
    margin: 0 0 6px;
}
.pf-card-meta {
    font-size: 12px; color: #6b7280;
    letter-spacing: 0.3px;
}

/* ============ CTA ============ */
.pf-center-cta { text-align: center; margin-top: 60px; }
.pf-cta-note {
    margin-top: 18px; font-size: 14px;
    color: #4b5563;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .pf-hero { padding: 70px 0 50px; }
    .pf-gallery-section { padding: 60px 0; }
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .pf-card-body { padding: 12px; }
    .pf-card-body h3 { font-size: 13px; }
    .pf-card-meta { font-size: 11px; }
    .pf-hero-stats { gap: 24px; }
    .pf-stat-num { font-size: 26px; }
}
@media (max-width: 400px) {
    .pf-grid { grid-template-columns: 1fr; }
}

/* ============ RTL (Arabic) ADJUSTMENTS ============ */
html[dir="rtl"] .pf-card-icon { right: auto; left: 10px; }
html[dir="rtl"] .pf-hero-title { letter-spacing: 0; }