/* ============================================================
   PORTFOLIO — Light-only, bold red accent, fully independent
   ============================================================ */

/* --- Reset / neutralisasi bocoran default theme --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Semua style pakai --pf-* supaya zero konflik dengan variabel tema default */
:root {
  --pf-red: #c62828;
  --pf-red-dark: #8e1a1a;
  --pf-red-light: #fbe9e7;
  --pf-red-hover: #b71c1c;
  --pf-bg: #fcfcfc;
  --pf-surface: #ffffff;
  --pf-text: #1a1a1a;
  --pf-text-soft: #555;
  --pf-text-muted: #999;
  --pf-border: #e0e0e0;
  --pf-radius: 10px;
  --pf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pf-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --pf-max-w: 1040px;
  --pf-content-w: 740px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas, iframe {
  max-width: 100%; height: auto; display: block;
}

a {
  color: var(--pf-red);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--pf-red-hover); }

:focus-visible {
  outline: 2px solid var(--pf-red);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--pf-text);
  line-height: 1.3;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--pf-red);
  background: var(--pf-red-light);
  border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
  color: var(--pf-text-soft);
}

code {
  font-family: var(--pf-mono);
  font-size: 0.9em;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--pf-red-light);
}

pre {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--pf-radius);
  background: var(--pf-red-light);
  border: 1px solid var(--pf-border);
  overflow: auto;
}
pre code { padding: 0; background: transparent; border-radius: 0; }

hr { border: 0; border-top: 1px solid var(--pf-border); margin: 2rem 0; }

/* ============================================================
   HEADER
   ============================================================ */

.pf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pf-surface);
  border-bottom: 2px solid var(--pf-red);
}

.pf-header-inner {
  max-width: var(--pf-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.pf-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pf-text);
  letter-spacing: -0.5px;
  position: relative;
}

.pf-logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pf-red);
  border-radius: 2px;
}

.pf-logo:hover { color: var(--pf-red); }

.pf-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-nav-link {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pf-text-soft);
  transition: all 0.2s;
}

.pf-nav-link:hover {
  background: var(--pf-red-light);
  color: var(--pf-red);
}

.pf-nav-cta {
  background: var(--pf-red);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
}

.pf-nav-cta:hover {
  background: var(--pf-red-dark);
  color: #fff !important;
}

@media (max-width: 640px) {
  .pf-header-inner { padding: 0 16px; height: 54px; font-size: 0.9rem; }
  .pf-nav-link { padding: 6px 10px; font-size: 0.8rem; }
  .pf-nav-cta { padding: 6px 14px; }
}

/* ============================================================
   HERO
   ============================================================ */

.pf-hero {
  max-width: var(--pf-max-w);
  margin: 0 auto;
  padding: 100px 24px 70px;
  text-align: center;
  position: relative;
}

.pf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--pf-red);
  border-radius: 2px;
}

.pf-hero-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--pf-red-light);
  color: var(--pf-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  border: 3px solid var(--pf-red);
}

.pf-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  letter-spacing: -1.5px;
  color: var(--pf-text);
}

.pf-hero h1 em { font-style: normal; color: var(--pf-red); }

.pf-hero-sub {
  font-size: 1.15rem;
  color: var(--pf-text-soft);
  margin: 0 auto 6px;
  max-width: 560px;
  line-height: 1.6;
}

.pf-hero-loc {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  margin: 0 0 32px;
}

.pf-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.pf-btn-primary {
  background: var(--pf-red);
  color: #fff;
  border-color: var(--pf-red);
}

.pf-btn-primary:hover {
  background: var(--pf-red-dark);
  border-color: var(--pf-red-dark);
  color: #fff;
}

.pf-btn-outline {
  background: transparent;
  color: var(--pf-text);
  border-color: var(--pf-border);
}

.pf-btn-outline:hover {
  border-color: var(--pf-red);
  color: var(--pf-red);
  background: var(--pf-red-light);
}

@media (max-width: 640px) {
  .pf-hero { padding: 60px 16px 40px; }
  .pf-hero-avatar-placeholder { width: 76px; height: 76px; font-size: 1.8rem; }
}

/* ============================================================
   SECTION
   ============================================================ */

.pf-section {
  max-width: var(--pf-max-w);
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
}

.pf-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
  position: relative;
  display: inline-block;
}

.pf-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--pf-red);
  border-radius: 2px;
  margin-top: 6px;
}

.pf-section-sub {
  color: var(--pf-text-soft);
  margin: 0 0 36px;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .pf-section { padding: 40px 16px; }
}

/* ============================================================
   ABOUT
   ============================================================ */

.pf-about {
  max-width: var(--pf-content-w);
  background: var(--pf-surface);
  padding: 32px;
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-border);
  border-left: 4px solid var(--pf-red);
}

.pf-about p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--pf-text-soft);
  margin: 0 0 1rem;
}

.pf-about p:last-child { margin: 0; }

/* ============================================================
   PROJECTS
   ============================================================ */

.pf-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.pf-project-card {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
  transition: all 0.25s;
}

.pf-project-card:hover {
  transform: translateY(-4px);
  border-color: var(--pf-red);
  box-shadow: 0 8px 30px rgba(198, 40, 40, 0.08);
}

.pf-project-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--pf-red-light), #fff5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pf-red);
}

.pf-project-body { padding: 20px; }

.pf-project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.pf-project-desc {
  font-size: 0.9rem;
  color: var(--pf-text-soft);
  margin: 0 0 14px;
  line-height: 1.55;
}

.pf-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--pf-red-light);
  color: var(--pf-red);
}

.pf-project-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.pf-project-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pf-red);
  display: inline-flex;
  gap: 4px;
}

.pf-project-link:hover { color: var(--pf-red-dark); }

@media (max-width: 640px) {
  .pf-projects { grid-template-columns: 1fr; }
}

/* ============================================================
   SKILLS
   ============================================================ */

.pf-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pf-skill-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--pf-text);
}

.pf-skill-item:hover {
  border-color: var(--pf-red);
  background: var(--pf-red-light);
  color: var(--pf-red);
}

/* ============================================================
   TIMELINE
   ============================================================ */

.pf-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-timeline-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  border-left: 4px solid var(--pf-red);
  transition: box-shadow 0.2s;
}

.pf-timeline-item:hover { box-shadow: 0 4px 20px rgba(198, 40, 40, 0.06); }

.pf-tl-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--pf-red-light);
  color: var(--pf-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pf-tl-body { flex: 1; min-width: 0; }

.pf-tl-role {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.pf-tl-company {
  font-size: 0.9rem;
  color: var(--pf-red);
  font-weight: 600;
  margin: 0 0 4px;
}

.pf-tl-date {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  margin: 0 0 8px;
}

.pf-tl-desc {
  font-size: 0.9rem;
  color: var(--pf-text-soft);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pf-timeline-item { flex-direction: column; gap: 12px; }
}

/* ============================================================
   CONTACT
   ============================================================ */

.pf-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pf-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 6px;
  background: var(--pf-surface);
  border: 2px solid var(--pf-border);
  color: var(--pf-text);
  font-weight: 600;
  transition: all 0.2s;
}

.pf-contact-item:hover {
  border-color: var(--pf-red);
  color: var(--pf-red);
  background: var(--pf-red-light);
}

.pf-contact-icon { width: 20px; height: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */

.pf-footer {
  margin-top: auto;
  border-top: 2px solid var(--pf-red);
  background: var(--pf-surface);
  padding: 28px 24px;
}

.pf-footer-inner {
  max-width: var(--pf-max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pf-footer-copy {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  margin: 0;
}

.pf-footer-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: var(--pf-text-muted);
  transition: all 0.2s;
}

.pf-social-link:hover {
  background: var(--pf-red-light);
  color: var(--pf-red);
}

.pf-social-link svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .pf-footer { padding: 24px 16px; }
  .pf-footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============================================================
   CONTENT — single post/page
   ============================================================ */

.pf-content {
  max-width: var(--pf-content-w);
  margin: 0 auto;
  padding: 40px 24px;
}

.pf-content-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--pf-red);
}

.pf-content-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.pf-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  margin: 0;
}

.pf-content-meta a { font-weight: 600; }

.pf-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.pf-meta-updated { color: var(--pf-red); font-weight: 600; }

.pf-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pf-cat-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--pf-red-light);
  color: var(--pf-red);
}

.pf-cat-badge:hover {
  background: var(--pf-red);
  color: #fff;
}

.pf-post-media {
  margin: 0 0 24px;
  border-radius: var(--pf-radius);
  overflow: hidden;
  border: 1px solid var(--pf-border);
}

.pf-post-media img {
  width: 100%;
  height: auto;
  display: block;
}

.pf-video-wrap {
  position: relative;
  padding-top: 56.25%;
}

.pf-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pf-post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--pf-border);
}

.pf-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pf-publisher {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  border-left: 3px solid var(--pf-red);
}

.pf-publisher-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.pf-publisher-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pf-red-light);
  color: var(--pf-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.pf-publisher-meta {
  font-size: 0.92rem;
  color: var(--pf-text-soft);
  line-height: 1.5;
}

.pf-publisher-meta a {
  font-weight: 600;
}

.pf-content-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--pf-text);
}

.pf-content-body h2 { margin-top: 2em; }
.pf-content-body h3 { margin-top: 1.5em; }
.pf-content-body p { margin: 0 0 1.2rem; }
.pf-content-body a { text-decoration: underline; text-underline-offset: 2px; }
.pf-content-body img { margin: 1.5rem 0; border-radius: 6px; border: 1px solid var(--pf-border); }

/* ============================================================
   POST LIST
   ============================================================ */

.pf-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-post-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-left: 4px solid transparent;
  border-radius: var(--pf-radius);
  transition: all 0.2s;
}

.pf-post-card:hover {
  border-left-color: var(--pf-red);
}

.pf-post-card-thumb {
  flex: 0 0 180px;
  border-radius: 6px;
  overflow: hidden;
}

.pf-post-card-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .pf-post-card-thumb { flex: 0 0 auto; width: 100%; }
  .pf-post-card-thumb img { height: 180px; }
}

.pf-post-card-body { flex: 1; min-width: 0; }

.pf-post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pf-post-card-title a { color: var(--pf-text); }
.pf-post-card-title a:hover { color: var(--pf-red); }

.pf-post-card-meta {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  margin: 0 0 8px;
}

.pf-post-card-excerpt {
  font-size: 0.92rem;
  color: var(--pf-text-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .pf-post-card { flex-direction: column; }
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.pf-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pf-page-link:hover,
.pf-page-link.active {
  border-color: var(--pf-red);
  color: var(--pf-red);
  background: var(--pf-red-light);
}

.pf-page-info {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  padding: 0 8px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.pf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-widget {
  padding: 18px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
}

.pf-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--pf-text);
  position: relative;
  padding-bottom: 8px;
}

.pf-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--pf-red);
  border-radius: 1px;
}

.pf-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-widget-list a {
  font-size: 0.9rem;
  color: var(--pf-text-soft);
}

.pf-widget-list a:hover { color: var(--pf-red); }

.pf-widget-empty {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  margin: 0;
}

/* --- Override widget default classes (dari /views/widget/) --- */
.w-box {
  background: var(--pf-surface) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: var(--pf-radius) !important;
  padding: 18px !important;
  box-shadow: none !important;
}

.w-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  color: var(--pf-text) !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid var(--pf-red) !important;
}

.w-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.w-list a {
  font-size: 0.9rem !important;
  color: var(--pf-text-soft) !important;
  padding: 0 !important;
  background: none !important;
}

.w-list a:hover { color: var(--pf-red) !important; }

.w-empty {
  font-size: 0.9rem !important;
  color: var(--pf-text-muted) !important;
  margin: 0 !important;
}

.w-search-form {
  display: flex !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.w-search-form input {
  flex: 1 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 6px !important;
  background: var(--pf-surface) !important;
  color: var(--pf-text) !important;
  font-size: 0.9rem !important;
  outline: none !important;
}

.w-search-form input:focus {
  border-color: var(--pf-red) !important;
}

.w-search-form button {
  padding: 10px 16px !important;
  border: 1px solid var(--pf-red) !important;
  border-radius: 6px !important;
  background: var(--pf-red) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
}

.w-search-form button:hover {
  background: var(--pf-red-dark) !important;
}

/* ============================================================
   SEARCH / 404 / EMPTY
   ============================================================ */

.pf-empty-state {
  text-align: center;
  padding: 80px 24px;
}

.pf-empty-state h2 { margin: 0 0 12px; }

.pf-empty-state p {
  color: var(--pf-text-soft);
  margin: 0 0 24px;
  font-size: 1.05rem;
}
li + li {
  margin-top: 0px;
}