/* =============================================
   DESIGN TOKENS & ROOT VARIABLES
   Warna asli dipertahankan: navy #0b1b2b, biru #4fc3f7, putih, cream
============================================= */
:root {
  --navy:       #0b1b2b;
  --navy-mid:   #112233;
  --navy-light: #1c3348;
  --sky:        #4fc3f7;
  --sky-dark:   #0288d1;
  --white:      #ffffff;
  --cream:      #f5f5f0;
  --gold:       #c9a84c;
  --text-dark:  #1a1a2e;
  --text-mid:   #444;
  --text-light: #888;
  --shadow-3d:  0 8px 32px rgba(11,27,43,0.18), 0 2px 8px rgba(11,27,43,0.10);
  --shadow-3d-hover: 0 20px 60px rgba(11,27,43,0.28), 0 6px 20px rgba(11,27,43,0.15);
  --border-3d:  1px solid rgba(79,195,247,0.15);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Source Serif 4', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 3px; }

/* =============================================
   HEADER / NAVBAR — Glassmorphism + 3D depth
============================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  background: rgba(11, 27, 43, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(79,195,247,0.12);
  box-shadow: 0 4px 24px rgba(11,27,43,0.4), 0 1px 0 rgba(79,195,247,0.08);
  transition: background 0.3s;
}

header.scrolled {
  background: rgba(11, 27, 43, 0.97);
  box-shadow: 0 6px 32px rgba(11,27,43,0.6);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(79,195,247,0.25);
  cursor: pointer;
  transition: color 0.3s;
}
.logo:hover { color: var(--sky); }

nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
  transition: left 0.3s, right 0.3s;
}

nav ul li a:hover,
nav ul li a.active-nav {
  color: var(--sky);
  background: rgba(79,195,247,0.08);
}
nav ul li a:hover::after,
nav ul li a.active-nav::after {
  left: 14px; right: 14px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.lang-btn {
  background: none;
  border: 1px solid rgba(79,195,247,0.3);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: 0.3s;
}
.lang-btn.active, .lang-btn:hover {
  color: var(--navy);
  background: var(--sky);
  border-color: var(--sky);
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}
.menu-close {
  display: none !important;
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(40%) saturate(0.7);
  z-index: 0;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg-img { transform: scale(1.08); }

/* Gradient overlay untuk depth 3D */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,27,43,0.6) 0%, transparent 50%, rgba(11,27,43,0.4) 100%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--cream), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  padding: 20px 30px;
  animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 5px 18px;
  border: 1px solid rgba(79,195,247,0.4);
  border-radius: 20px;
  background: rgba(79,195,247,0.08);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(79,195,247,0.4), 0 2px 8px rgba(11,27,43,0.2);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
}
.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(79,195,247,0.5);
  background: #7dd9fc;
}

/* =============================================
   SECTION BASE
============================================= */
section {
  padding: 100px 8%;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 680px;
}

/* =============================================
   LAYANAN SECTION
============================================= */
#layanan {
  background: var(--white);
  text-align: center;
}

#layanan .section-title,
#layanan .section-label { text-align: center; }
#layanan .section-sub { margin: 0 auto 60px; text-align: center; }

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.layanan-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 40px 28px 32px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11,27,43,0.07);
  box-shadow: 0 4px 18px rgba(11,27,43,0.08), 0 1px 4px rgba(11,27,43,0.05);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  transform-style: preserve-3d;
}

.layanan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky-dark), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.layanan-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 20px 48px rgba(11,27,43,0.16), 0 4px 12px rgba(11,27,43,0.1);
}
.layanan-card:hover::before { transform: scaleX(1); }

.layanan-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(11,27,43,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  font-size: 1.8rem;
  position: relative;
}
/* Refleksi efek 3D pada icon */
.layanan-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
}

.layanan-card img.layanan-img {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(11,27,43,0.2));
}

.layanan-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.layanan-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.layanan-card .card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-dark);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.layanan-card .card-link:hover { color: var(--navy); }

/* =============================================
   KONSULTASI HUKUM SECTION
============================================= */
#konsultasi {
  background: var(--cream);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 50px auto 0;
}

.article-layout.reverse { direction: rtl; }
.article-layout.reverse > * { direction: ltr; }

/* 3D Image Card */
.img-3d-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 16px 48px rgba(11,27,43,0.2), 2px 4px 12px rgba(11,27,43,0.12);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 4/3;
  background: #c8d6e5;
  max-width: 100%;
  width: 100%;
}
.img-3d-wrap:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow: 4px 8px 32px rgba(11,27,43,0.15);
}
.img-3d-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Gloss overlay for 3D feel */
.img-3d-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}

/* Image placeholder style */
.img-placeholder {
  width: 100%; height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #c8d6e5 0%, #a8bdd0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--navy);
  opacity: 0.6;
}
.img-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.img-placeholder span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.article-body {}

.step-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(11,27,43,0.07);
  border: 1px solid rgba(11,27,43,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.step-item:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(11,27,43,0.12);
}

.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--navy);
  color: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(11,27,43,0.3);
}

.step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.step-content p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.quote-block {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--sky);
  background: rgba(79,195,247,0.06);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--navy-mid);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* =============================================
   BANTUAN HUKUM SECTION
============================================= */
#bantuan {
  background: var(--navy);
  color: var(--white);
}

#bantuan .section-title { color: var(--white); }
#bantuan .section-label { color: var(--sky); }
#bantuan .section-sub { color: rgba(255,255,255,0.7); }

#bantuan .img-placeholder {
  background: linear-gradient(135deg, #1c3348, #0b1b2b);
  color: rgba(255,255,255,0.5);
}
#bantuan .img-3d-wrap {
  transform: perspective(1000px) rotateY(4deg) rotateX(2deg);
}

.bantuan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 50px;
  max-width: 1200px;
}

.bantuan-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(79,195,247,0.15);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.bantuan-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(79,195,247,0.12), transparent 70%);
}
.bantuan-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.bantuan-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--sky);
  margin-bottom: 10px;
}
.bantuan-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.bantuan-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

/* =============================================
   LEGALITAS SECTION
============================================= */
#legalitas {
  background: var(--white);
}

.legalitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
  max-width: 1200px;
}

.legalitas-card {
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid rgba(11,27,43,0.08);
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(11,27,43,0.07);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  position: relative;
}
.legalitas-card:nth-child(1) { border-top: 3px solid #4fc3f7; }
.legalitas-card:nth-child(2) { border-top: 3px solid #0b1b2b; }
.legalitas-card:nth-child(3) { border-top: 3px solid var(--gold); }
.legalitas-card:nth-child(4) { border-top: 3px solid #4caf50; }

.legalitas-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 48px rgba(11,27,43,0.14);
}
.legalitas-card .card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(11,27,43,0.08);
  line-height: 1;
  margin-bottom: 10px;
}
.legalitas-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.legalitas-card p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* =============================================
   PENGACARA SECTION
============================================= */
#pengacara {
  background: linear-gradient(160deg, var(--cream) 0%, #e8eef4 100%);
}

.pengacara-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto 0;
}

.keunggulan-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.keunggulan-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(11,27,43,0.06);
  transition: transform 0.25s;
}
.keunggulan-item:hover { transform: translateX(5px); }
.keunggulan-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.keunggulan-check svg {
  width: 14px; height: 14px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 2.5;
}
.keunggulan-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.55;
  padding-top: 3px;
}

/* =============================================
   ARTIKEL / INDEX CARDS
============================================= */
#artikel {
  background: var(--cream);
}
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
  max-width: 1200px;
}
.artikel-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11,27,43,0.08);
  border: 1px solid rgba(11,27,43,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.artikel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(11,27,43,0.14);
}
.artikel-img-box {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #c8d6e5, #a8bdd0);
  overflow: hidden;
}
.artikel-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.artikel-card:hover .artikel-img-box img { transform: scale(1.06); }
.artikel-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11,27,43,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.artikel-body {
  padding: 24px;
}
.artikel-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-dark);
  background: rgba(79,195,247,0.1);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.artikel-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.artikel-body p {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.baca-link {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--sky-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.baca-link:hover { color: var(--navy); }

/* =============================================
   KONTAK SECTION
============================================= */
#kontak {
  background: var(--navy);
  color: var(--white);
}
#kontak .section-title { color: var(--white); }
#kontak .section-label { color: var(--sky); }

.kontak-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 50px auto 0;
  align-items: start;
}

.kontak-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border: 1px solid rgba(79,195,247,0.1);
}
.kontak-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1c3348, #0b1b2b);
  border: 2px solid rgba(79,195,247,0.3);
}
.kontak-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.kontak-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 1.8rem;
}
.kontak-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.kontak-role {
  font-size: 0.85rem;
  color: var(--sky);
  margin-top: 3px;
}

.form-3d {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(79,195,247,0.12);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.form-3d input,
.form-3d textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 10px;
  padding: 13px 16px;
  color: white;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.form-3d input::placeholder,
.form-3d textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-3d input:focus,
.form-3d textarea:focus {
  border-color: var(--sky);
  background: rgba(79,195,247,0.07);
}
.form-3d textarea { resize: vertical; min-height: 130px; }

.btn-kirim {
  width: 100%;
  padding: 14px;
  background: var(--sky);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(79,195,247,0.3);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-kirim:hover {
  background: #7dd9fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,195,247,0.4);
}

.map-3d {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 16px 48px rgba(0,0,0,0.35);
  transform: perspective(1000px) rotateY(-3deg);
  transition: transform 0.4s;
}
.map-3d:hover { transform: perspective(1000px) rotateY(0deg); }
.map-3d iframe {
  width: 100%; height: 320px;
  display: block;
  border: none;
  filter: grayscale(20%) brightness(0.9);
}

/* =============================================
   FOOTER
============================================= */
footer {
  background: #060f18;
  color: white;
  text-align: center;
  padding: 50px 20px 30px;
  border-top: 1px solid rgba(79,195,247,0.1);
}
footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}
footer > p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 24px;
}
footer .social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
}
footer .social a {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1c2f45;
  border: 1px solid rgba(79,195,247,0.15);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
footer .social a:hover {
  background: var(--sky);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(79,195,247,0.35);
}
footer .social a img {
  width: 24px; height: 24px;
  object-fit: contain;
}
footer .social a .ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
}
footer .copyright {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #555;
}

/* =============================================
   REVEAL ANIMATIONS
============================================= */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.25,.46,.45,.94);
}
/* Kurangi jarak translateX agar tidak overflow ke luar viewport */
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up    { transform: translateY(40px); }
.reveal.active {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   DIVIDER
============================================= */
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--sky-dark), var(--sky));
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* =============================================
   MOBILE RESPONSIVE
============================================= */

/* === GLOBAL FIX: cegah elemen apapun overflow ke kanan === */
img, iframe, video, embed, object, table {
  max-width: 100%;
}

/* ---- TABLET LANDSCAPE (max 1024px) ---- */
@media (max-width: 1024px) {
  section { padding: 80px 6%; }

  .pengacara-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
  }
  .kontak-layout { gap: 36px; }
  .article-layout { gap: 40px; }
}

/* ---- TABLET PORTRAIT (max 900px) ---- */
@media (max-width: 900px) {
  section { padding: 70px 5%; }

  .article-layout,
  .pengacara-layout,
  .kontak-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .article-layout.reverse { direction: ltr; }

  /* Matikan semua transform 3D — sumber utama overflow di tablet */
  .img-3d-wrap,
  .img-3d-wrap:hover,
  .map-3d,
  .map-3d:hover {
    transform: none !important;
  }

  .pengacara-layout .img-3d-wrap {
    aspect-ratio: 16/9;
    max-height: 360px;
  }

  .bantuan-cards  { grid-template-columns: repeat(2, 1fr); }
  .legalitas-grid { grid-template-columns: repeat(2, 1fr); }
  .artikel-grid   { grid-template-columns: repeat(2, 1fr); }

  /* Kurangi translateX reveal agar tidak overflow di tablet */
  .reveal-left  { transform: translateX(-15px); }
  .reveal-right { transform: translateX(15px); }
}

/* ---- MOBILE (max 768px) ---- */
@media (max-width: 768px) {
  /* Header & Nav */
  .menu-toggle { display: flex !important; }

  nav#nav-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(11,27,43,0.98);
    backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  nav#nav-menu.active { transform: translateY(0); }
  nav#nav-menu .menu-close { display: block !important; }

  nav ul {
    flex-direction: column;
    gap: 24px;
    text-align: center;
    width: 100%;
  }
  nav ul li a { font-size: 1.1rem; padding: 10px 20px; }
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 10px;
  }

  /* === KEY FIX: ganti translateX dengan translateY di mobile
       translateX ke kanan/kiri = sumber horizontal scroll === */
  .reveal-left  { transform: translateY(20px); }
  .reveal-right { transform: translateY(20px); }

  /* Hero */
  .hero { min-height: 520px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero p  { font-size: 0.97rem; max-width: 100%; }
  .hero-content { padding: 20px 16px; width: 100%; }
  .hero-cta { padding: 12px 22px; font-size: 0.9rem; }

  /* Sections */
  section { padding: 60px 5%; }
  .section-title { font-size: clamp(1.4rem, 5vw, 1.7rem); }

  /* Grids jadi 1 kolom di mobile */
  .bantuan-cards,
  .legalitas-grid,
  .artikel-grid,
  .layanan-grid { grid-template-columns: 1fr; }

  /* Matikan semua 3D transform di mobile */
  .img-3d-wrap,
  .img-3d-wrap:hover { transform: none !important; }
  .map-3d,
  .map-3d:hover     { transform: none !important; }

  .img-3d-wrap { aspect-ratio: 16/9; }

  /* Cards */
  .layanan-card  { padding: 28px 20px 24px; }
  .bantuan-card  { padding: 22px 18px; }
  .legalitas-card { padding: 24px 18px; }
  .form-3d       { padding: 24px 18px; }

  /* Map */
  .map-3d iframe { width: 100%; height: 240px; }

  /* Contact */
  .kontak-info { flex-direction: column; text-align: center; }
  .kontak-avatar { margin: 0 auto; }

  /* Step items */
  .step-item { padding: 14px 16px; }
}

/* ---- SMALL MOBILE (max 480px) ---- */
@media (max-width: 480px) {
  header { padding: 0 4%; height: 62px; }
  .logo  { font-size: 1.25rem; }

  section { padding: 50px 4%; }

  .hero { min-height: 460px; }
  .hero h1    { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .hero p     { font-size: 0.88rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.1em; padding: 4px 12px; }
  .hero-cta   { font-size: 0.83rem; padding: 10px 18px; gap: 7px; }

  .section-title { font-size: clamp(1.25rem, 5.5vw, 1.55rem); }
  .section-sub   { font-size: 0.92rem; }

  .layanan-card   { padding: 22px 16px 20px; }
  .form-3d        { padding: 18px 14px; }
  .map-3d iframe  { height: 200px; }

  .step-item { padding: 12px 14px; gap: 12px; }
  .step-num  { width: 30px; height: 30px; font-size: 0.82rem; }

  footer        { padding: 40px 16px 24px; }
  footer h3     { font-size: 1.2rem; }
  footer > p    { font-size: 0.85rem; }
}
