/* ==========================================================
   Portofolio Tami — tema Cream & Coklat, gaya tech/developer
   ========================================================== */
:root {
	--cream: #f6eee3;
	--paper: #fffaf3;
	--linen: #ecdcc7;
	--sand: #dcc4a6;
	--caramel: #a66a3a;
	--caramel-soft: #d9a873;
	--brown: #6e4329;
	--espresso: #3a2418;
	--espresso-deep: #26170f;
	--ink: #2e1d14;
	--muted: #75604f;
	--line: rgba(58, 36, 24, 0.14);
	--shadow: 0 24px 60px -28px rgba(58, 36, 24, 0.4);
	--display: 'Space Grotesk', system-ui, sans-serif;
	--mono: 'JetBrains Mono', Consolas, monospace;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-style: normal; color: var(--caramel); }
code { font-family: var(--mono); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Tombol ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 10px;
	font: 600 0.95rem var(--sans);
	border: 1.5px solid transparent; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--brown); }
.btn-line { background: transparent; color: var(--espresso); border-color: rgba(58, 36, 24, .35); }
.btn-line:hover { border-color: var(--espresso); background: var(--paper); }
.btn-cream { background: var(--cream); color: var(--espresso); }
.btn-cream:hover { background: var(--caramel-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { background: transparent; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	padding: 18px 0;
	transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
	background: rgba(246, 238, 227, 0.9);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--line);
	padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mono {
	width: 38px; height: 38px; border-radius: 10px;
	display: grid; place-items: center;
	background: var(--espresso); color: var(--cream);
	font: 600 1.05rem/1 var(--mono);
}
.brand-mono-light { background: var(--cream); color: var(--espresso); }
.brand-name { font: 600 1.15rem/1 var(--display); color: var(--espresso); letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--espresso); }
.site-nav .nav-cta {
	padding: 10px 18px; border-radius: 10px;
	background: var(--espresso); color: var(--cream);
}
.site-nav .nav-cta:hover { background: var(--brown); color: var(--cream); }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: var(--linen); cursor: pointer; padding: 0;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 1.6px; background: var(--espresso); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: 130px 0 0;
	background-color: var(--cream);
	background-image: radial-gradient(rgba(58, 36, 24, .13) 1px, transparent 1px);
	background-size: 22px 22px;
	overflow: hidden;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 60px; }
.hero-text { align-self: center; padding-bottom: 70px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 14px; border-radius: 8px;
	background: var(--paper); border: 1px solid var(--line);
	font: 500 .85rem var(--mono); color: var(--caramel);
	margin-bottom: 22px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #6f8f5e; box-shadow: 0 0 0 3px rgba(111, 143, 94, .2); }
.hero-name {
	font-weight: 700;
	font-size: clamp(2.8rem, 6.2vw, 4.9rem); line-height: 1;
	color: var(--espresso); letter-spacing: -0.035em;
}
.hero-role {
	margin-top: 14px;
	font: 500 clamp(1.25rem, 2.3vw, 1.65rem)/1.3 var(--display);
	color: var(--brown); letter-spacing: -0.01em;
}
.hero-role em { color: var(--caramel); }
.hero-lead { margin-top: 20px; max-width: 520px; font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stack {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-top: 36px; font-size: .85rem;
}
.hero-stack .prompt { font-family: var(--mono); color: var(--caramel); margin-right: 4px; }
.hero-stack code {
	padding: 4px 10px; border-radius: 6px;
	background: var(--linen); color: var(--espresso); font-size: .8rem;
}

/* Foto dalam "jendela aplikasi" */
.hero-visual {
	position: relative;
	width: min(380px, 80vw);
	justify-self: center;
}
.hero-visual::before {
	content: ''; position: absolute; z-index: 0;
	top: 22%; bottom: 0; left: -56px; right: -100vw;
	border-top-left-radius: 28px;
	background-color: var(--espresso);
	background-image:
		linear-gradient(rgba(217, 168, 115, .09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217, 168, 115, .09) 1px, transparent 1px),
		linear-gradient(160deg, var(--brown) 0%, var(--espresso) 80%);
	background-size: 28px 28px, 28px 28px, 100% 100%;
}
.photo-window {
	position: relative; z-index: 1;
	border-radius: 14px 14px 0 0; overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line); border-bottom: 0;
	box-shadow: 0 30px 60px -30px rgba(20, 10, 5, .6);
}
.window-bar {
	display: flex; align-items: center; gap: 7px;
	padding: 11px 14px; background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--sand); }
.window-bar .dot:nth-child(1) { background: #d9826a; }
.window-bar .dot:nth-child(2) { background: var(--caramel-soft); }
.window-bar .dot:nth-child(3) { background: #9db48a; }
.window-bar code { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.window-body { aspect-ratio: 375 / 525; background: var(--sand); }
.window-body img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.18) saturate(1.02); }

/* ---------- Baris layanan ---------- */
.ribbon { background: var(--espresso-deep); }
.ribbon-inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 12px 22px; padding: 24px 0;
	font: 500 .82rem var(--mono); color: var(--caramel-soft);
}
.ribbon-sep { color: rgba(217, 168, 115, .4); }

/* ---------- Bagian umum ---------- */
.section { padding: 110px 0; }
.section-label {
	display: inline-block;
	font: 500 .82rem var(--mono); color: var(--caramel);
	margin-bottom: 14px;
}
.section-label-light { color: var(--caramel-soft); }
.section-title {
	font-weight: 600;
	font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.12;
	color: var(--espresso); max-width: 640px;
}
.section-note { color: var(--muted); max-width: 420px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.empty-note { color: var(--muted); }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 70px; align-items: start; }
.about-bio { margin-top: 24px; font-size: 1.05rem; line-height: 1.85; color: var(--muted); max-width: 600px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill {
	padding: 6px 14px; border-radius: 8px;
	background: var(--linen); border: 1px solid var(--line);
	font: 500 .82rem var(--mono); color: var(--espresso);
}
.profile-card {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.profile-card-title { font: 500 .85rem var(--mono); color: var(--caramel); margin-bottom: 10px; }
.profile-card-title::before { content: '{ '; }
.profile-card-title::after { content: ' }'; }
.profile-card dl { margin: 0; }
.profile-card dl > div { padding: 13px 0; border-top: 1px solid var(--line); }
.profile-card dt { font: 500 .75rem var(--mono); color: var(--muted); }
.profile-card dd { margin: 3px 0 0; color: var(--espresso); font-weight: 600; overflow-wrap: anywhere; }
.profile-card dd a:hover { color: var(--caramel); }

/* ---------- Layanan ---------- */
.services { background: var(--linen); }
.services-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.service-card {
	position: relative;
	background: var(--cream); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 28px 26px 30px;
	transition: background .3s, color .3s, transform .3s;
}
.service-card:hover { background: var(--espresso); color: var(--cream); transform: translateY(-5px); }
.service-no {
	position: absolute; top: 24px; right: 24px;
	font: 500 .8rem var(--mono); color: var(--caramel); transition: color .3s;
}
.service-card:hover .service-no { color: var(--caramel-soft); }
.service-icon {
	width: 50px; height: 50px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--sand); color: var(--brown);
	transition: background .3s, color .3s;
}
.service-card:hover .service-icon { background: var(--caramel); color: var(--cream); }
.svg-icon { width: 24px; height: 24px; }
.service-card h3 { margin-top: 24px; font-size: 1.2rem; line-height: 1.25; }
.service-card p { margin-top: 10px; font-size: .94rem; color: var(--muted); transition: color .3s; }
.service-card:hover p { color: rgba(246, 238, 227, .75); }

/* ---------- Portofolio & Download ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.work-card {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb-empty { height: 100%; display: grid; place-items: center; color: var(--brown); font-size: 2.4rem; }
.work-thumb-empty .svg-icon { width: 44px; height: 44px; }
.work-tag {
	position: absolute; top: 12px; left: 12px;
	padding: 4px 10px; border-radius: 6px;
	background: var(--paper); color: var(--brown);
	font: 500 .74rem var(--mono);
}
.work-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.15rem; line-height: 1.3; color: var(--espresso); }
.work-body p { margin-top: 8px; font-size: .94rem; color: var(--muted); }
.work-meta { display: flex; gap: 14px; margin: 14px 0 18px; font: 500 .78rem var(--mono); color: var(--caramel); }
.work-body .btn { margin-top: auto; }

/* ---------- Ajakan ---------- */
.teaser {
	padding: 76px 0;
	background-color: var(--espresso);
	background-image:
		linear-gradient(rgba(217, 168, 115, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(217, 168, 115, .07) 1px, transparent 1px);
	background-size: 28px 28px;
	color: var(--cream);
}
.teaser-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.teaser-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
.teaser-title em { color: var(--caramel-soft); }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: start; }
.contact-lead { margin-top: 18px; color: var(--muted); max-width: 440px; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { font: 500 .75rem var(--mono); color: var(--muted); }
.contact-list a, .contact-list strong { font: 600 1.1rem var(--display); color: var(--espresso); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--caramel); }

.contact-form {
	background: var(--paper); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font: 500 .8rem var(--mono); color: var(--brown); }
.field input, .field textarea {
	width: 100%; padding: 12px 14px;
	font: 400 .96rem var(--sans); color: var(--ink);
	background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a99787; }
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--caramel);
	box-shadow: 0 0 0 4px rgba(166, 106, 58, .15);
}
.form-note { margin-top: 14px; font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.form-note.success { color: #4f7a43; }
.form-note.error { color: #a84a3a; }

/* ---------- Halaman download ---------- */
.page-hero {
	padding: 150px 0 40px;
	background-image: radial-gradient(rgba(58, 36, 24, .13) 1px, transparent 1px);
	background-size: 22px 22px;
}
.page-hero .section-note { margin-top: 14px; }
.downloads { padding-top: 50px; }
.disclaimer { margin-top: 40px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso-deep); color: rgba(246, 238, 227, .7); padding: 56px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 38px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font: 600 1.15rem/1.2 var(--display); color: var(--cream); }
.footer-tag { font-size: .88rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: .92rem; }
.footer-nav a:hover { color: var(--caramel-soft); }
.footer-bottom { border-top: 1px solid rgba(246, 238, 227, .12); padding: 20px 0 26px; font: 400 .78rem var(--mono); }

/* ---------- Tombol WhatsApp ---------- */
.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	width: 56px; height: 56px; border-radius: 16px;
	display: grid; place-items: center;
	background: var(--espresso); color: var(--cream);
	box-shadow: 0 14px 30px -10px rgba(38, 23, 15, .6);
	transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--caramel); transform: translateY(-2px); }
.wa-icon { width: 27px; height: 27px; }
.wa-tooltip {
	position: absolute; right: 68px; white-space: nowrap;
	padding: 8px 12px; border-radius: 8px;
	background: var(--paper); color: var(--espresso);
	font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
	opacity: 0; transform: translateX(8px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: none; }

/* ---------- Animasi muncul ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: absolute; top: calc(100% + 8px); left: 20px; right: 20px;
		flex-direction: column; align-items: stretch; gap: 4px;
		padding: 12px; border-radius: 14px;
		background: var(--paper); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.site-nav.open { opacity: 1; visibility: visible; transform: none; }
	.site-nav a { padding: 12px 14px; border-radius: 8px; }
	.site-nav a:hover { background: var(--linen); }
	.site-nav .nav-cta { text-align: center; margin-top: 6px; }

	.hero { padding: 120px 0 0; }
	.hero-text { padding-bottom: 0; }
	.hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
	.hero-visual::before { left: -100vw; top: 35%; border-top-left-radius: 0; }
	.section { padding: 84px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
	.container { width: calc(100% - 32px); }
	.site-nav { left: 16px; right: 16px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.ribbon-inner { gap: 8px 14px; font-size: .76rem; }	.form-row { grid-template-columns: 1fr; gap: 0; }
	.contact-form, .profile-card { padding: 24px 20px; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.footer-bottom { padding-bottom: 96px; }
	.wa-tooltip { display: none; }
}
