/* ═══════════════════════════════════════════════════════════════
   Tema portofolio Azizah Yanuar, mengikuti template referensi:
   latar putih-abu, satu aksen hijau, nama besar huruf ramping tebal
   (Anton), isi Inter, angka & monogram DM Serif Display, label
   berhuruf kapital renggang, garis hijau pendek sebagai penanda.
   Dipakai penuh oleh index.html; menimpa sebagian gaya portfolio.html.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Nama variabel lama dipertahankan agar warna tetap bisa diatur dari panel admin:
     --brown-dark = teks utama, --brown-mid = teks redup, --brown-light = aksen,
     --brown-pale = garis, --cream = latar. */
  --brown-dark:  #151515;
  --brown-mid:   #5C5C59;
  --brown-light: #1F7A56;
  --brown-pale:  #D9D9D5;
  --cream:       #F5F5F3;
  --cream-dark:  #ECECE9;
  --text:        #151515;
  --text-muted:  #5C5C59;
  --white:       #FFFFFF;

  --ink: var(--brown-dark);
  --muted: var(--brown-mid);
  --accent: var(--brown-light);
  --line: var(--brown-pale);
  --bg: var(--cream);
  --panel: var(--cream-dark);
  --radius: 0;

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font-body);
  font-size: 15.5px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 3rem; }

/* ── Elemen dasar ── */
.label {
  font-family: var(--font-body);
  font-size: .92rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  line-height: 1.55; color: var(--ink);
}
.rule { display: block; width: 60px; height: 2px; background: var(--accent); }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.arrow-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(5px); }

/* monogram A/Y */
.mono {
  position: relative; display: inline-block; width: 44px; height: 44px;
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.mono span:first-child { position: absolute; left: 4px; top: 2px; }
.mono span:last-child { position: absolute; right: 4px; bottom: 2px; }
.mono i { position: absolute; left: 50%; top: 50%; width: 1px; height: 40px; background: var(--ink); transform: translate(-50%, -50%) rotate(35deg); }
.mono-sm { width: 34px; height: 34px; font-size: .92rem; }
.mono-sm i { height: 30px; }

/* ═════════════ HALAMAN UTAMA ═════════════ */

/* ── Hero ── */
.home .hero { padding-top: 2.4rem; overflow: hidden; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.tagline {
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  line-height: 1.8; color: var(--ink); text-decoration: none;
}
.tagline-right { justify-self: end; text-align: right; transition: color .3s; }
.tagline-right:hover { color: var(--accent); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2rem; align-items: end; margin-top: 3.5rem; }
.hero-text { padding-bottom: 5rem; }
.home .hero-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.4rem, 11.5vw, 10rem);
  line-height: .9; letter-spacing: .01em; text-transform: uppercase;
  color: var(--ink);
  word-spacing: 100vw; /* setiap kata di baris sendiri, seperti template */
}
.home .hero-roles {
  margin-top: 1.4rem; display: flex; flex-wrap: wrap;
  font-size: .84rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.home .role-pill { background: none; border: 0; padding: 0; }
.home .role-pill:not(:last-child):not(:nth-last-child(2))::after { content: ','; margin-right: .6em; }
.home .role-pill:last-child:not(:first-child)::before { content: '&'; margin: 0 .7em; }
.home .hero-desc { margin-top: 1.8rem; max-width: 31em; color: #333; font-size: 1rem; line-height: 1.75; }
.hero-text .rule { margin: 2.6rem 0 1.6rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }

.hero-figure { position: relative; height: clamp(440px, 46vw, 600px); margin: 0; }
.hero-circle {
  position: absolute; right: 0; top: 10%;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent);
}
.home .hero-photo {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-46%);
  height: 96%; width: auto; max-width: none;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
}

/* ── Pita bagian ── */
.band { padding: 5.5rem 0; }
.band-panel { background: var(--panel); }
.split { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; }
.split-side { display: flex; flex-direction: column; align-items: flex-start; }
.side-text { margin-top: 1.6rem; font-size: .92rem; line-height: 1.7; color: #333; max-width: 15em; }
.side-link { margin-top: auto; padding-top: 2rem; }

/* kepala item: nomor + judul + garis hijau pendek di bawah nomor */
.item-head { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: .9rem; border-bottom: 1px solid var(--line); position: relative; margin-bottom: 1.1rem; }
.item-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 26px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out) .2s; }
.r.in .item-head::after { transform: scaleX(1); }
.item-head .num { font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.item-head h3 { font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; line-height: 1.5; }
.item-head p { font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }

/* proyek & klien */
.project-grid, .card-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #DEDEDA; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(1) contrast(1.05); transition: filter .6s ease, transform 1s var(--ease-out); }
.project:hover .thumb img { filter: none; transform: scale(1.035); }
.project-desc { margin-top: 1rem; font-size: .84rem; line-height: 1.65; color: var(--muted); }
.project-link { display: inline-block; margin-top: .6rem; font-size: .78rem; font-weight: 600; color: var(--accent); text-decoration: none; word-break: break-all; border-bottom: 1px solid transparent; transition: border-color .3s; }
.project-link:hover { border-bottom-color: currentColor; }

/* keahlian + dampak (dua kolom dengan garis pemisah) */
#skills { border-top: 1px solid var(--line); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.duo-col { padding-right: 3.5rem; }
.duo-right { padding: 0 0 0 3.5rem; border-left: 1px solid var(--line); }
.duo .label { margin-bottom: 2rem; }
.skill-row { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.skill-row:first-child { padding-top: 0; }
.skill-row::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 26px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out) .25s; }
.skill-row.in::after { transform: scaleX(1); }
.skill-row .icon { color: #333; margin-top: 1px; }
.skill-row h3 { font-size: .74rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; margin-bottom: .4rem; }
.inline-list { list-style: none; display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.inline-list li:not(:last-child)::after { content: '·'; margin: 0 .55em; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 2.2rem; }
.stat { padding: 0 1.2rem; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { display: block; font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.stat-lbl { display: block; margin-top: .7rem; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.quote { position: relative; border: 1px solid #C9C9C4; padding: 1.6rem 1.8rem 1.4rem 4.6rem; }
.quote-mark { position: absolute; left: 1.4rem; top: .9rem; font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--accent); }
.quote p { font-size: .9rem; line-height: 1.75; color: #333; }
.quote-by { margin-top: 1rem; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.edu { display: flex; gap: 1.5rem; align-items: baseline; margin-top: 1.6rem; }
.edu-lbl { flex-shrink: 0; width: 7.5rem; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.edu p { font-size: .9rem; color: #333; line-height: 1.6; }

/* pengalaman & cara kerja */
.dash-list { list-style: none; }
.dash-list li { position: relative; padding-left: 1rem; margin-bottom: .5rem; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.dash-list li::before { content: ''; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--accent); }
.entry-text { font-size: .88rem; line-height: 1.7; color: var(--muted); }

.samples { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 3rem; margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.samples-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.sample-links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.sample-links a { font-size: .86rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.sample-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* kontak */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .85fr); align-items: stretch; }
.contact-intro { padding-right: 3rem; border-right: 1px solid #C9C9C4; }
.contact-intro .rule { margin: 1.4rem 0; width: 34px; }
.contact-sub { font-size: .9rem; line-height: 1.7; color: #333; max-width: 18em; }
.contact-list { padding: 0 3rem; display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.contact-row { display: flex; gap: 1.3rem; align-items: center; text-decoration: none; }
.contact-row .icon { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.2; }
.c-lbl { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.c-val { display: block; font-size: .9rem; color: #333; word-break: break-word; transition: color .3s; }
a.contact-row:hover .c-val { color: var(--accent); }
.cta-box {
  align-self: center;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 190px; padding: 1.8rem;
  border: 1px solid var(--accent); color: var(--ink); text-decoration: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 2;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out);
}
.cta-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.cta-box:hover { color: #fff; }
.cta-box:hover::before { transform: scaleY(1); }
.cta-box svg { align-self: flex-end; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s, transform .4s var(--ease-out); }
.cta-box:hover svg { stroke: #fff; transform: translateX(5px); }

.site-foot { padding: 1.6rem 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* bar ringkas (muncul setelah hero) */
.minibar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 58px; padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,245,243,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .45s var(--ease-out);
}
.minibar.show { transform: none; }
.minibar .nav-links { display: flex; gap: 1.8rem; list-style: none; }
.minibar .nav-links a { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: .3rem 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.minibar .nav-links a:hover, .minibar .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

/* ── Animasi ── */
.home .topbar { animation: fadeIn .8s ease both; }
.home .hero-name { animation: riseIn 1s var(--ease-out) .1s both; }
.home .hero-roles { animation: riseIn 1s var(--ease-out) .25s both; }
.home .hero-desc { animation: riseIn 1s var(--ease-out) .35s both; }
.home .hero-text .rule { animation: growX 1s var(--ease-out) .55s both; transform-origin: left; }
.home .hero-links { animation: fadeIn 1s ease .7s both; }
.hero-circle { animation: popIn 1.2s var(--ease-out) .15s both; }
.home .hero-photo { animation: photoIn 1.3s var(--ease-out) .35s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes photoIn { from { opacity: 0; transform: translate(-46%, 30px); } to { opacity: 1; transform: translateX(-46%); } }

.r { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.r.in { opacity: 1; transform: none; }
.project-grid > .r:nth-child(3n+2), .card-grid > .r:nth-child(3n+2) { transition-delay: .08s; }
.project-grid > .r:nth-child(3n+3), .card-grid > .r:nth-child(3n+3) { transition-delay: .16s; }

/* ═════════════ HALAMAN PORTOFOLIO (menimpa gaya bawaannya) ═════════════ */
nav:not(.minibar) {
  background: rgba(245,245,243,.94); border-bottom: 1px solid var(--line);
}
nav:not(.minibar) .nav-logo { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
nav:not(.minibar) .nav-links a { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
nav:not(.minibar) .nav-links a:hover, nav:not(.minibar) .nav-links a.active { color: var(--ink); }
.ph-title, .porto-title, .cta-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.ph-label, .porto-cat, .cta-label, .samples-title { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
#page-header { padding: 140px 3rem 4rem; background: var(--bg); text-align: left; max-width: var(--wrap); margin: 0 auto; }
.ph-title { font-size: clamp(3.4rem, 9vw, 7rem); line-height: .92; margin: .6rem 0 1.2rem; }
.ph-sub { margin: 0; max-width: 34em; color: #333; }
.ph-divider { display: block !important; width: 60px; height: 2px; margin: 2rem 0 0 !important; background: var(--accent) !important; }
.porto-divider { display: block !important; width: 34px; height: 2px; background: var(--accent) !important; margin-bottom: 1.4rem; }
#filter { justify-content: flex-start; gap: .5rem 1.8rem; padding: 1rem max(3rem, calc((100% - var(--wrap)) / 2 + 3rem)); background: rgba(245,245,243,.96); border-color: var(--line); }
.filter-btn { border: 0; border-radius: 0; padding: .25rem 0; background: none; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.filter-btn:hover { background: none; color: var(--ink); border-bottom-color: var(--accent); }
.porto-item { background: var(--bg); border-top: 1px solid var(--line); }
.porto-item.alt { background: var(--panel); }
.porto-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .95; margin-bottom: .6rem; }
.porto-subtitle { font-family: var(--font-body); font-style: normal; font-size: .95rem; font-weight: 500; color: var(--muted); }
.porto-desc { color: #333; font-size: .95rem; line-height: 1.75; }
.porto-tag { background: none; border: 1px solid #C9C9C4; border-radius: 0; color: var(--ink); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; }
.sample-pill, .porto-item.alt .sample-pill { display: block; background: none; border: 0; border-radius: 0; padding: .25rem 0 .25rem 1rem; position: relative; font-size: .88rem; color: var(--muted); }
.sample-pill::before { content: ''; position: absolute; left: 0; top: .95em; width: 6px; height: 1px; background: var(--accent); }
.samples-list { display: block; }
.mockup { border-radius: 0; border: 1px solid var(--line); box-shadow: 0 24px 48px -36px rgba(0,0,0,.35); }
#cta { background: var(--panel); }
#cta .cta-title { color: var(--ink); }
#cta .cta-sub { color: #333; }
.btn-light { background: var(--accent); color: #fff; border-radius: 0; }
.btn-light:hover { background: var(--ink); }
.btn-ghost-white { color: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.btn-ghost-white:hover { background: var(--ink); color: #fff; }
footer:not(.site-foot):not(.quote-by) { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); }

/* ── Responsif ── */
@media (max-width: 1000px) {
  .wrap { padding: 0 2rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .side-text { max-width: 34em; }
  .side-link { margin-top: 0; padding-top: 1rem; }
  .project-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { grid-template-columns: 1fr; }
  .duo-col { padding: 0; }
  .duo-right { padding: 3rem 0 0; margin-top: 3rem; border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .contact-intro { border-right: 0; padding-right: 0; grid-column: 1 / -1; }
  .contact-list { padding: 0 2rem 0 0; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .wrap { padding: 0 1.25rem; }
  .tagline { font-size: .6rem; letter-spacing: .16em; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 2.2rem; gap: 0; }
  .hero-text { padding-bottom: 2.5rem; }
  .hero-figure { height: 400px; }
  .hero-circle { width: 300px; right: 50%; transform: translateX(50%); top: 6%; }
  @keyframes popIn { from { transform: translateX(50%) scale(.6); opacity: 0; } to { transform: translateX(50%); opacity: 1; } }
  .band { padding: 4rem 0; }
  .project-grid, .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 0 .7rem; }
  .quote { padding: 1.4rem 1.3rem 1.2rem 3.6rem; }
  .quote-mark { left: 1rem; font-size: 3.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-list { padding: 0; }
  .cta-box { min-height: 150px; }
  .minibar { padding: 0 1.25rem; }
  .minibar .nav-links {
    position: fixed; top: 58px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(245,245,243,.98); border-bottom: 1px solid var(--line); padding: .5rem 0;
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease-out);
  }
  .minibar .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .minibar .nav-links a { display: block; padding: .8rem 1.25rem; border: 0; }
  .hamburger { display: flex; }
  #page-header { padding: 110px 1.25rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .r { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
