/* ===== PDF SHOWCASE SECTION ===== */

#pdf-section {
    padding: 10rem 0 8rem;
    background: var(--bg);
    position: relative;
}

#pdf-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--border);
}

/* ── Section Header ── */
.pdf-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.pdf-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: var(--ink4);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.pdf-eyebrow::before,
.pdf-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--ink4);
}

.pdf-main-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.pdf-main-sub {
    font-size: 0.8rem;
    color: var(--ink3);
    letter-spacing: 0.04em;
    font-weight: 400;
}

/* ── PDF Grid ── */
.pdf-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.4rem;
}

/* ── PDF Card ── */
.pdf-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1.5px solid rgba(17,17,16,0.12);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.32s ease,
                border-color 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transform: translateZ(0);
}

.pdf-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.13);
    border-color: rgba(17,17,16,0.28);
}

/* ── Card Thumb ── */
.pdf-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f0ede8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.pdf-card:hover .pdf-card-cover {
    transform: scale(1.04);
}

.pdf-card-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.06));
    opacity: 0.82;
    transition: opacity 0.3s;
}

.pdf-card:hover .pdf-card-thumb-bg {
    opacity: 0.62;
}

.pdf-card-icon {
    position: absolute;
    left: 0.9rem;
    bottom: 0.85rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pdf-card:hover .pdf-card-icon {
    transform: translateY(-2px);
}

.pdf-doc-icon {
    width: 52px;
    height: 64px;
    background: #fff;
    border-radius: 6px 6px 6px 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 9px 8px;
    gap: 5px;
    border: 1px solid rgba(0,0,0,0.06);
}

.pdf-doc-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: var(--pdf-color, #d4cec6);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    border-radius: 0 4px 0 0;
    opacity: 0.7;
}

.pdf-doc-line {
    height: 2px;
    border-radius: 1px;
    background: var(--pdf-color, #ccc);
    opacity: 0.7;
}

.pdf-doc-line:nth-child(1) { width: 100%; }
.pdf-doc-line:nth-child(2) { width: 80%; }
.pdf-doc-line:nth-child(3) { width: 90%; }
.pdf-doc-line:nth-child(4) { width: 65%; }

.pdf-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pdf-color-dark, var(--ink3));
    background: rgba(255,255,255,0.72);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.6);
}

/* ── Card Body ── */
.pdf-card-body {
    padding: 1.35rem 1.5rem 1.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pdf-card-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.pdf-card-desc {
    font-size: 0.73rem;
    color: var(--ink3);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.pdf-card-footer {
    margin-top: auto;
    padding-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.pdf-card-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink4);
}

.pdf-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink3);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s;
    flex-shrink: 0;
}

.pdf-card:hover .pdf-card-arrow {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
    transform: rotate(45deg);
}

.pdf-card-arrow svg {
    width: 11px;
    height: 11px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .pdf-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2.5rem;
    }
}

@media (max-width: 640px) {
    #pdf-section {
        padding: 6rem 0 5rem;
    }
    .pdf-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}
