/* ═══════════════════════════════════════
   VIVID BOOKS — PORTFOLIO PAGE CSS
═══════════════════════════════════════ */
.nav-link--active { color: var(--gold) !important; }
.nav-link--active::after { transform: scaleX(1) !important; }

/* HERO */
.port-hero { min-height: 72vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 140px 0 80px; }
.ph-bg { position: absolute; inset: 0; }
.ph-orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orbFloat 12s ease-in-out infinite; }
.ph-o1 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(201,169,110,0.1), transparent 70%); top: -180px; right: -80px; }
.ph-o2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(100,70,200,0.07), transparent 70%); bottom: -80px; left: 8%; animation-delay: -5s; }
.ph-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%); }
.ph-content { position: relative; z-index: 2; max-width: 800px; padding: 0 48px; }
.ph-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 28px; }
.ph-breadcrumb a:hover { color: var(--gold); }
.ph-breadcrumb span:last-child { color: var(--gold); }
.ph-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.1; color: var(--cream); margin-bottom: 24px; display: flex; flex-direction: column; }
.ph-title em { font-style: italic; color: var(--gold); text-shadow: 0 0 50px rgba(201,169,110,0.2); }
.ph-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; max-width: 600px; margin-bottom: 48px; }
.ph-genre-counts { display: flex; gap: 0; flex-wrap: wrap; background: var(--dark-3); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.pgc-item { flex: 1; min-width: 100px; padding: 20px 16px; text-align: center; cursor: none; border-right: 1px solid var(--border-subtle); transition: background 0.3s; }
.pgc-item:last-child { border-right: none; }
.pgc-item:hover { background: var(--dark-4); }
.pgc-num { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--gold); line-height: 1; }
.pgc-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* CASE STUDIES */
.case-studies { padding: 120px 0; }
.case-card { display: grid; gap: 80px; align-items: center; margin-bottom: 100px; padding-bottom: 100px; border-bottom: 1px solid var(--border-subtle); }
.case-card:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.cc-left { grid-template-columns: 1fr 1.2fr; }
.cc-right { grid-template-columns: 1.2fr 1fr; }

/* Book 3D visual */
.cc-book-wrap { position: relative; display: flex; justify-content: center; align-items: center; padding: 40px 20px; }
.cc-book { position: relative; transform-style: preserve-3d; transform: perspective(800px) rotateY(-18deg) rotateX(4deg); animation: bookHover 4s ease-in-out infinite; transition: transform 0.6s; width: 180px; }
.cc-book:hover { transform: perspective(800px) rotateY(-8deg) rotateX(2deg) scale(1.04); }
@keyframes bookHover { 0%,100% { transform: perspective(800px) rotateY(-18deg) rotateX(4deg) translateY(0); } 50% { transform: perspective(800px) rotateY(-18deg) rotateX(4deg) translateY(-10px); } }
.cb-face { width: 180px; height: 260px; border-radius: 2px 8px 8px 2px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 16px; position: relative; overflow: hidden; box-shadow: -8px 8px 30px rgba(0,0,0,0.7), inset -3px 0 12px rgba(0,0,0,0.3); }
.cb-face::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, transparent 40%); pointer-events: none; }
.cb-1 .cb-face { background: linear-gradient(160deg, #1a0e00, #3d2200, #7a4800, #C9A96E); }
.cb-2 .cb-face { background: linear-gradient(160deg, #0e001a, #2a0040, #6020a0, #AD6B8E); }
.cb-3 .cb-face { background: linear-gradient(160deg, #001428, #002850, #0060a0, #6B8EAD); }
.cb-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.95); line-height: 1.3; margin-bottom: 6px; }
.cb-sub { font-size: 0.65rem; color: rgba(255,255,255,0.55); line-height: 1.4; margin-bottom: 10px; }
.cb-author { font-size: 0.68rem; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; }
.cb-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 2px 0 0 2px; background: rgba(0,0,0,0.5); }
.cs-1 { background: linear-gradient(180deg, #8B4A00, #5a3000); }
.cs-2 { background: linear-gradient(180deg, #6020a0, #3d0060); }
.cs-3 { background: linear-gradient(180deg, #0060a0, #003060); }
.cb-shadow { position: absolute; bottom: -20px; left: 10%; right: 0; height: 30px; background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent); filter: blur(8px); transform: scaleY(0.5); }
.cc-badge { position: absolute; top: 20px; right: 10px; background: var(--gold); color: var(--dark); border-radius: 100px; padding: 6px 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; box-shadow: 0 4px 16px rgba(201,169,110,0.4); }
.cc-badge--purple { background: #AD6B8E; box-shadow: 0 4px 16px rgba(173,107,142,0.4); color: white; }
.cc-badge--blue { background: #3d7ab5; box-shadow: 0 4px 16px rgba(61,122,181,0.4); color: white; }
.cc-stats-float { position: absolute; bottom: 10px; left: 0; background: var(--dark-3); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 140px; backdrop-filter: blur(12px); }
.csf-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.csf-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--gold); }
.csf-label { font-size: 0.65rem; color: var(--text-muted); text-align: right; }

/* Case content */
.cc-genre-tag { display: inline-block; padding: 4px 12px; background: var(--gold-dim); border: 1px solid var(--border); border-radius: 100px; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.cc-content h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; color: var(--cream); margin-bottom: 4px; }
.cc-author-name { font-size: 0.85rem; color: var(--gold); margin-bottom: 20px; display: block; }
.cc-desc { font-size: 0.9rem; color: #3A3228; line-height: 1.8; margin-bottom: 14px; }
.cc-services-used { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.csu-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; padding-top: 5px; }
.csu-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.csu-tags span { padding: 4px 12px; background: var(--dark-4); border: 1px solid var(--border-subtle); border-radius: 100px; font-size: 0.72rem; color: var(--text-muted); }
.cc-quote { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; font-weight: 300; color: var(--cream); line-height: 1.65; border-left: 2px solid var(--gold); padding-left: 20px; margin: 24px 0 20px; }
.cc-author-mini { display: flex; align-items: center; gap: 12px; }
.cam-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--dark); flex-shrink: 0; }
.cc-author-mini strong { display: block; color: var(--cream); font-weight: 500; font-size: 0.88rem; margin-bottom: 2px; }
.cc-author-mini span { font-size: 0.75rem; color: var(--text-muted); }

/* BOOK GRID */
.book-grid-section { padding: 120px 0; background: var(--dark-2); position: relative; overflow: hidden; }
.bg-section-bg { position: absolute; inset: 0; }
.bgs-orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, rgba(201,169,110,0.04), transparent 60%); filter: blur(60px); }
.book-grid-section .container { position: relative; z-index: 1; }

/* Filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.fb-btn { padding: 9px 22px; background: var(--dark-4); border: 1px solid var(--border-subtle); border-radius: 100px; font-size: 0.82rem; color: var(--text-muted); cursor: none; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.fb-btn:hover { border-color: var(--border); color: var(--text); }
.fb-btn.fb-active { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight: 600; }

/* Books grid */
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.book-tile { cursor: none; }
.book-tile.hidden { display: none; }
.bt-cover { width: 100%; aspect-ratio: 2/3; border-radius: 3px 10px 10px 3px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px; box-shadow: -4px 6px 20px rgba(0,0,0,0.6); transition: transform 0.4s, box-shadow 0.4s; margin-bottom: 14px; }
.book-tile:hover .bt-cover { transform: translateY(-8px) scale(1.02); box-shadow: -6px 16px 40px rgba(0,0,0,0.7); }
.bt-cover::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, transparent 40%); pointer-events: none; }
.bt-title { font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.9); line-height: 1.3; position: relative; z-index: 1; }
.bt-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0,0,0,0.4); }
.bt-badge { position: absolute; top: 10px; right: 8px; background: var(--gold); color: var(--dark); font-size: 0.55rem; font-weight: 700; padding: 3px 8px; border-radius: 100px; letter-spacing: 0.05em; }
/* Book cover colors */
.bc-biz-1 { background: linear-gradient(160deg, #1a0e00, #4a2800, #C9A96E); }
.bc-biz-2 { background: linear-gradient(160deg, #001428, #003060, #1a60a0); }
.bc-biz-3 { background: linear-gradient(160deg, #001a00, #003800, #007000); }
.bc-biz-4 { background: linear-gradient(160deg, #0a0a0a, #282828, #606060); }
.bc-mem-1 { background: linear-gradient(160deg, #0e001a, #280040, #7020a0); }
.bc-mem-2 { background: linear-gradient(160deg, #001428, #002850, #004880); }
.bc-mem-3 { background: linear-gradient(160deg, #1a0000, #400000, #800000); }
.bc-sh-1 { background: linear-gradient(160deg, #001a14, #003828, #007050); }
.bc-sh-2 { background: linear-gradient(160deg, #0a001a, #200040, #500080); }
.bc-sh-3 { background: linear-gradient(160deg, #1a1400, #3a2c00, #706000); }
.bc-fic-1 { background: linear-gradient(160deg, #1a0014, #3d0030, #800060); }
.bc-fic-2 { background: linear-gradient(160deg, #140000, #380008, #700018); }
.bc-fic-3 { background: linear-gradient(160deg, #1a0800, #402000, #904000); }
.bc-spi-1 { background: linear-gradient(160deg, #141400, #303000, #686000); }
.bc-spi-2 { background: linear-gradient(160deg, #001414, #003030, #006060); }
.bc-chi-1 { background: linear-gradient(160deg, #001428, #002050, #1840a0); }
.bt-info h5 { font-size: 0.88rem; font-weight: 600; color: #111009; margin-bottom: 4px; line-height: 1.3; }
.bt-author { display: block; font-size: 0.75rem; color: #3A3228; margin-bottom: 6px; }
.bt-genre-tag { display: inline-block; padding: 2px 10px; background: var(--dark-4); border: 1px solid var(--border-subtle); border-radius: 100px; font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.books-grid-note { text-align: center; padding: 24px; background: var(--dark-3); border: 1px solid var(--border-subtle); border-radius: 12px; font-size: 0.85rem; color: var(--text-muted); }
.books-grid-note a { color: var(--gold); }

/* RESULTS STRIP */
.results-strip { padding: 120px 0; position: relative; overflow: hidden; }
.rs-bg { position: absolute; inset: 0; }
.rs-orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(201,169,110,0.05), transparent 60%); filter: blur(60px); }
.results-strip .container { position: relative; z-index: 1; }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.result-card { padding: 36px 28px; background: var(--dark-3); border: 1px solid var(--border-subtle); border-radius: 16px; text-align: center; transition: border-color 0.4s, transform 0.4s; }
.result-card:hover { border-color: var(--border); transform: translateY(-4px); }
.rc-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.rc-stat { font-family: var(--font-display); font-size: 2.8rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.rc-label { font-size: 0.8rem; font-weight: 700; color: #111009; margin-bottom: 12px; letter-spacing: 0.04em; }
.result-card p { font-size: 0.82rem; color: #3A3228; line-height: 1.7; }

/* TESTIMONIALS */
.port-testimonials { padding: 120px 0; background: var(--dark-2); }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pt-card { padding: 36px 32px; background: var(--dark-3); border: 1px solid var(--border-subtle); border-radius: 16px; transition: border-color 0.4s, transform 0.4s; }
.pt-card:hover { border-color: var(--border); transform: translateY(-4px); }
.ptc-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 4px; margin-bottom: 16px; }
.pt-card blockquote { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; font-weight: 300; color: var(--cream); line-height: 1.75; margin-bottom: 24px; }
.ptc-author { display: flex; align-items: center; gap: 14px; }
.ptca-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: var(--dark); }
.ptc-author strong { display: block; color: var(--cream); font-weight: 500; margin-bottom: 3px; }
.ptc-author span { font-size: 0.75rem; color: var(--text-muted); }

/* CTA */
.port-cta { padding: 120px 0; position: relative; overflow: hidden; background: var(--dark-2); }
.pc-bg { position: absolute; inset: 0; }
.pcb-glow { position: absolute; top: 50%; left: 30%; transform: translate(-50%,-50%); width: 600px; height: 500px; background: radial-gradient(ellipse, rgba(201,169,110,0.07), transparent 60%); filter: blur(60px); }
.port-cta .container { position: relative; z-index: 1; }
.port-cta-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.pct-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.pct-trust { display: flex; flex-direction: column; gap: 14px; }
.ptt-item { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cc-left, .cc-right { grid-template-columns: 1fr; gap: 40px; }
  .cc-right .cc-content { order: -1; }
  .cc-book-wrap { padding: 20px; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-grid { grid-template-columns: 1fr; }
  .port-cta-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .ph-content { padding: 0 24px; }
  .ph-genre-counts { flex-wrap: wrap; }
  .pgc-item { min-width: 80px; border-bottom: 1px solid var(--border-subtle); }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { gap: 8px; }
  .cc-stats-float { position: static; margin-top: 20px; flex-direction: row; }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
}
