:root {
  --ink: #0d0d0d;
  --paper: #f5f2ec;
  --accent: #1a3a6e;
  --gold: #c9a84c;
  --muted: #8a8680;
  --light: #e8e4db;
  --skelton: #dbd9d7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ── TOPBAR ── */
.topbar {
  border-bottom: 1px solid var(--light);
  padding: 10px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  background-color: var(--accent);
  color: var(--paper);
  letter-spacing: 0.05em;
}
.topbar .socials a {
  color: var(--paper);
  margin-right: 14px;
  text-decoration: none;
  transition: color .2s;
}
.topbar .socials a:hover { color: var(--accent); }

/* ── NAVBAR ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  position: sticky;
  top: 0;
  /* background: rgba(245,242,236,0.92); */
  background: rgb(255, 255, 255);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.scrolled { border-bottom-color: var(--light); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.btn-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn-cta:hover { background: #0f2a52; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: .3s; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden; /* Penting agar blob tidak keluar layar */
  background-color: #ffffff;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Container untuk Mesh Gradient */
.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(80px); /* Menghaluskan percampuran warna */
  opacity: 0.7;
}

/* Elemen Blob Warna */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: opacity(0.6);
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #0047FF; /* Biru Tua */
  top: -100px;
  left: -100px;
  animation: move-1 20s infinite alternate;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: #64D2FF; /* Biru Muda */
  bottom: -150px;
  right: -100px;
  animation: move-2 25s infinite alternate-reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #B4B4FF; /* Ungu Muda */
  top: 20%;
  left: 40%;
  animation: move-1 18s infinite reverse;
}

/* Keyframes Animasi Bergerak */
@keyframes move-1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 150px) scale(1.1); }
  66% { transform: translate(-50px, 200px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes move-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-150px, -100px) rotate(90deg); }
  100% { transform: translate(0, 0) rotate(180deg); }
}

/* Memastikan konten tetap di atas gradasi */
.hero-content, .hero-visual {
  position: relative;
  z-index: 1;
}
.hero {
  padding: 120px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 90vh;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ink);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s, color .2s;
}
.btn-ghost:hover { gap: 14px; color: var(--accent); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 500px;
}

.stacked-cards {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.card-item {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) translateY(40px);
  z-index: 0;
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* State: Gambar yang sedang aktif (paling depan) */
.card-item.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 3;
}

/* State: Gambar di belakangnya (tumpukan kedua) */
.card-item.next {
  opacity: 0.6;
  transform: scale(0.9) translateY(-20px);
  z-index: 2;
}

/* State: Gambar yang baru saja lewat/keluar */
.card-item.prev {
  opacity: 0;
  transform: scale(1.1) translateY(20px);
  z-index: 1;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent), #2a5fb0);
  transform: rotate(3deg);
  opacity: 0.12;
}

.hero-img-frame {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid var(--light);
  overflow: hidden;
  background: linear-gradient(160deg, #e8e4db 0%, #d4cfc8 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img-frame img {
  width: 85%;
  object-fit: cover;
  filter: grayscale(10%);
}

.hero-stat {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--light);
  padding: 16px 20px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.hero-stat--1 { top: -20px; right: -30px; }
.hero-stat--2 { bottom: 60px; left: -40px; }

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 18px 0;
  overflow: hidden;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.marquee-item .dot { color: var(--accent); font-size: 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES ── */
#services {
  padding: 100px 60px;
  background-color: var(--skelton);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.section-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 200px;
  text-align: right;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: #fff;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background .3s;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.service-card:hover { background: var(--accent); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-num { color: rgba(255,255,255,0.9); }
.service-card:hover .service-icon { color: var(--skelton); }

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  transition: color .3s;
}
.service-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: color .3s;
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color .3s;
}
.service-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  transition: color .3s;
}

/* ── PORTFOLIO ── */
#portfolio {
  padding: 100px 60px;
  background: var(--ink);
}
#portfolio .section-title { color: var(--paper); }
#portfolio .section-tag { color: var(--accent); }
#portfolio .section-sub { color: rgba(255,255,255,0.4); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.portfolio-item:first-child { grid-row: span 2; }

.portfolio-thumb {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  transition: transform .5s;
}
.portfolio-item:first-child .portfolio-thumb { min-height: 520px; }

.p-bg-1 { background: linear-gradient(135deg, #1a3a6e, #2a5fb0); }
.p-bg-2 { background: linear-gradient(135deg, #c9a84c, #e8c96a); }
.p-bg-3 { background: linear-gradient(135deg, #2a2a2a, #4a4a4a); }

.portfolio-item:hover .portfolio-thumb { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.portfolio-cat a{
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
   text-decoration: none;
}

.portfolio-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}

.portfolio-name a{
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
   text-decoration: none;
}

/* ── ABOUT ── */
#about {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-img-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--light), #d4cfc8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--accent);
  opacity: 0.4;
  position: relative;
  overflow: hidden;
}
.about-img-frame::after {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.about-img-frame::before {
  content: '';
  position: absolute;
  bottom: 20px; left: 20px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.about-badge-text { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }

.about-content { }
.about-list {
  margin-top: 32px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.about-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--light);
}
.stat-item { }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── PROCESS ── */
#process {
  padding: 100px 60px;
  background: var(--light);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 60px; right: 60px;
  height: 1px;
  background: var(--muted);
  opacity: 0.3;
}
.process-step {
  padding: 0 24px;
  position: relative;
  text-align: center;
}
.step-dot {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: background .3s, color .3s;
}
.process-step:hover .step-dot {
  background: var(--accent);
  color: #fff;
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── CONTACT ── */
#contact {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info { }
.contact-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-title em { font-style: italic; color: var(--accent); }
.contact-desc { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 40px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  transition: color .2s;
}
.contact-link:hover { color: var(--accent); }
.contact-link-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.contact-link:hover .contact-link-icon { background: var(--accent); color: #fff; }

.contact-form { }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light);
  background: #fff;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--muted); }
textarea.form-input { min-height: 120px; resize: vertical; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: #0f2a52; transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
footer .foot-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
}
footer .foot-logo span { color: var(--accent); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 12px; transition: color .2s; }
.foot-links a:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links, .btn-cta { display: none; }
  .hamburger { display: flex; }
  .topbar { padding: 10px 24px; display: none; }
  .hero { padding: 60px 24px; grid-template-columns: 1fr; }
  .hero-card-wrap { width: 100%; height: 340px; }
  #services { padding: 60px 24px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-sub { text-align: left; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }
  #portfolio { padding: 60px 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:first-child { grid-row: auto; }
  .portfolio-item:first-child .portfolio-thumb { min-height: 280px; }
  #about { padding: 60px 24px; grid-template-columns: 1fr; gap: 40px; }
  #process { padding: 60px 24px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  #contact { padding: 60px 24px; grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 30px 24px; flex-direction: column; gap: 16px; text-align: center; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--paper);
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 24px;
  color: var(--paper);
  cursor: pointer;
}