/*
Theme Name:   Porto Minimalis v2
Theme URI:    https://namakamu.com
Author:       Nama Kamu
Description:  Portfolio minimalis — semua teks & foto bisa diubah via Customizer
Version:      2.0
Text Domain:  porto-v2
*/

/* ═══ TOKENS ═══ */
:root {
  --bg:        #FAFAF9;
  --ink:       #111110;
  --ink-muted: #6B6B69;
  --accent:    #4A7C59;
  --accent-bg: #EAF1EC;
  --border:    #E4E4E2;
  --mono:      'JetBrains Mono', monospace;
  --serif:     'Playfair Display', serif;
  --sans:      'Inter', sans-serif;
  --radius:    10px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ═══ LAYOUT ═══ */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,249,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .03em; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--ink-muted); transition: color .2s; letter-spacing: .02em; }
.nav-links a:hover { color: var(--ink); }

/* ═══ HERO ═══ */
#hero { padding: 140px 0 100px; border-bottom: 1px solid var(--border); }
.hero-eyebrow { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.hero-name { font-family: var(--serif); font-size: clamp(40px,7vw,64px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 28px; }
.hero-terminal { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 13px; padding: 10px 16px; border-radius: 6px; margin-bottom: 32px; }
.hero-terminal .prompt { color: var(--accent); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); animation: blink 1.1s step-end infinite; border-radius: 1px; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-desc { font-size: 17px; color: var(--ink-muted); max-width: 480px; line-height: 1.8; margin-bottom: 40px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: 6px; transition: opacity .2s, transform .2s; }
.hero-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ═══ SECTION BASE ═══ */
section { padding: 80px 0; border-bottom: 1px solid var(--border); }
#contact, #gallery { border-bottom: none; }
.section-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 36px; }
.section-title { font-family: var(--serif); font-size: clamp(26px,4vw,34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 20px; }

/* ═══ ABOUT ═══ */
.about-photo-wrap { margin-bottom: 28px; }
.about-photo { width: 100%; max-width: 480px; border-radius: var(--radius); border: 1px solid var(--border); object-fit: cover; max-height: 320px; }
.about-text { font-size: 16px; color: var(--ink-muted); line-height: 1.9; max-width: 580px; }
.about-text strong { color: var(--ink); font-weight: 500; }

/* ═══ SKILLS ═══ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin-top: 8px; }
.skill-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: border-color .2s, background .2s; }
.skill-card:hover { border-color: var(--accent); background: var(--accent-bg); }
.skill-name { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.skill-level { font-size: 12px; color: var(--ink-muted); }
.skill-bar { margin-top: 8px; height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s ease; }

/* ═══ PROJECTS ═══ */
.projects-list { display: flex; flex-direction: column; gap: 20px; }
.project-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.project-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(74,124,89,.08); }
.project-img-wrap { width: 100%; max-height: 240px; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px 28px; display: flex; flex-direction: column; flex: 1; }
.project-arrow { padding: 0 28px 20px; font-size: 20px; color: var(--border); align-self: flex-end; transition: color .2s; }
.project-card:hover .project-arrow { color: var(--accent); }
.project-tag { display: inline-flex; align-items: center; background: var(--accent-bg); color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; letter-spacing: .04em; }
.project-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.project-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.7; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stack-pill { font-family: var(--mono); font-size: 11px; background: var(--border); color: var(--ink-muted); padding: 3px 10px; border-radius: 4px; }

/* ═══ GALLERY ═══ */
#gallery { padding-bottom: 80px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin-bottom: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1/1; position: relative; transition: border-color .2s, transform .2s; }
.gallery-item:hover { border-color: var(--accent); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(17,17,16,.65); color: #fff; font-size: 12px; padding: 8px 12px; font-family: var(--mono); text-align: center; }
.gallery-hint { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); text-align: center; margin-top: 8px; }
.gallery-hint strong { color: var(--accent); }

/* ═══ CONTACT ═══ */
#contact { padding-bottom: 100px; }
.contact-lead { font-size: 16px; color: var(--ink-muted); line-height: 1.8; max-width: 460px; margin-bottom: 32px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 18px; font-size: 13px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.contact-link:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }

/* ═══ FOOTER ═══ */
footer { padding: 24px 0; border-top: 1px solid var(--border); }
.footer-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  .nav-links { display: none; }
  #hero { padding: 110px 0 64px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ HERO PHOTO ═══ */
.hero-photo-wrap {
  margin-bottom: 32px;
}
.hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-bg);
  outline: 1px solid var(--border);
}
