:root{
  --blue: #C7D3DB;
  --taupe: #A79A8A;
  --cream: #FCF7DF;
  --brown: #3E3630;
  --blue-dark: #9AACB9;
  --taupe-dark: #8A7C6B;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family:'Inter', sans-serif;
  color:var(--brown);
  background:var(--cream);
  line-height:1.6;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
}

a{ text-decoration:none; color:inherit; }

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 32px;
}

/* ---------- NAV ---------- */
nav{
  position:sticky;
  top:0;
  z-index:10;
  background:var(--cream);
  border-bottom:1px solid rgba(62,54,48,0.08);
}
.nav-inner{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 48px;
}
.logo{ font-family:'Fraunces', serif; font-weight:600; font-size:18px; }
.nav-links{ display:flex; gap:28px; font-size:14px; }
.nav-links a{ opacity:0.7; transition:opacity .2s; }
.nav-links a:hover{ opacity:1; }

/* ---------- HERO ---------- */
.hero{
  padding:120px 0 90px;
  text-align:center;
}
.hero .eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--taupe-dark);
  background:rgba(167,154,138,0.15);
  padding:6px 14px;
  border-radius:100px;
  margin-bottom:24px;
}
.hero h1{
  font-size:clamp(36px, 6vw, 58px);
  line-height:1.1;
  max-width:720px;
  margin:0 auto 20px;
}
.hero p{
  font-size:16px;
  max-width:480px;
  margin:0 auto 32px;
  opacity:0.75;
}
.btn{
  display:inline-block;
  background:var(--brown);
  color:var(--cream);
  padding:13px 28px;
  border-radius:10px;
  font-size:14px;
  font-weight:500;
  transition:transform .15s ease, background .15s ease;
}
.btn:hover{
  background:var(--taupe-dark);
  transform:translateY(-2px);
}
.btn-outline{
  background:transparent;
  color:var(--brown);
  border:1px solid rgba(62,54,48,0.3);
}
.btn-outline:hover{
  background:var(--brown);
  color:var(--cream);
}

/* ---------- FEATURED (teaser di halaman utama) ---------- */
.featured{
  padding:90px 0;
}
.featured-more{
  text-align:center;
  margin-top:40px;
}

/* ---------- ABOUT ---------- */
.about{
  background:var(--blue);
  padding:80px 0;
}
.about .container{
  display:flex;
  align-items:center;
  gap:56px;
  flex-wrap:wrap;
}
.about-photo{
  width:160px;
  height:160px;
  border-radius:50%;
  background:var(--brown);
  flex-shrink:0;
  overflow:hidden;
}
.about-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.about-text{ flex:1; min-width:260px; }
.about-text h2{ font-size:26px; margin-bottom:14px; }
.about-text p{ font-size:15px; opacity:0.8; max-width:520px; }

/* ---------- PORTFOLIO ---------- */
.portfolio,
.portfolio-page{
  padding:100px 0;
}
.section-head{
  text-align:center;
  margin-bottom:52px;
}
.section-head .eyebrow{
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--taupe-dark);
}
.section-head h2{
  font-size:32px;
  margin-top:10px;
}

.back-link{
  display:inline-block;
  font-size:13px;
  opacity:0.65;
  margin-bottom:32px;
  transition:opacity .2s;
}
.back-link:hover{ opacity:1; }

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
}
.category-card{
  display:block;
  background:#fff;
  border:1px solid rgba(62,54,48,0.1);
  border-radius:16px;
  padding:32px 28px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(62,54,48,0.12);
}
.category-card h3{
  font-size:20px;
  margin-bottom:10px;
}
.category-card p{
  font-size:14px;
  opacity:0.7;
  margin-bottom:20px;
}
.category-arrow{
  font-size:14px;
  font-weight:500;
  color:var(--taupe-dark);
}
.portfolio-group{ margin-bottom:56px; scroll-margin-top:90px; }
.portfolio-group:last-child{ margin-bottom:0; }
.group-title{
  font-size:18px;
  font-weight:500;
  margin-bottom:24px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(62,54,48,0.12);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 490px));
  justify-content:center;
  gap:28px;
}

/* Grid khusus halaman Website development & Figma design — max 3 kolom
   tetap per baris, lebih dari itu otomatis turun ke baris berikutnya */
.grid-portfolio{
  display:grid;
  grid-template-columns:repeat(3, minmax(300px, 490px));
  justify-content:start;
  gap:28px;
}

.card{
  display:block;
  background:#fff;
  border:1px solid rgba(62,54,48,0.1);
  border-radius:16px;
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(62,54,48,0.12);
}
.card-thumb{
  height:200px;
  background:var(--taupe);
  position:relative;
  overflow:hidden;
}
.card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card:nth-child(2) .card-thumb{ background:var(--blue-dark); }
.card:nth-child(3) .card-thumb{ background:var(--brown); }

.card-body{
  padding:20px 22px 22px;
}
.card-tag{
  font-size:11px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--taupe-dark);
  margin-bottom:8px;
  display:block;
}
.card-title{
  font-size:17px;
  font-weight:600;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:6px;
}
.card-desc{
  font-size:13.5px;
  opacity:0.7;
}
.external-icon{
  width:14px;
  height:14px;
  opacity:0.55;
}

/* ---------- FOOTER ---------- */
footer{
  background:var(--brown);
  color:var(--cream);
  padding:64px 0 40px;
  text-align:center;
}
footer h2{
  font-size:26px;
  margin-bottom:10px;
}
footer p{
  opacity:0.7;
  font-size:14px;
  margin-bottom:28px;
}
.footer-links{
  display:flex;
  justify-content:center;
  gap:24px;
  font-size:14px;
  margin-bottom:36px;
}
.footer-links a{ opacity:0.85; transition:opacity .2s; }
.footer-links a:hover{ opacity:1; }
.footer-bottom{
  font-size:12px;
  opacity:0.45;
}

@media (max-width:640px){
  .nav-links{ display:none; }
  .nav-inner{ padding:18px 24px; }
  .hero{ padding:90px 0 60px; }
  .about .container{ text-align:center; justify-content:center; }
}

@media (max-width:400px){
  .container{ padding:0 20px; }
  .grid, .grid-portfolio{ grid-template-columns:1fr; }
  .footer-links{ flex-wrap:wrap; gap:16px; }
}