:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #121820;
  --muted: #5f6672;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --line: #e8ebf0;
  --accent: #c59d5f;
  --radius: 18px;
  --shadow: 0 16px 42px rgba(14, 28, 45, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 0%, #e7f1f0 0%, #f5f6f8 52%, #eef2f5 100%);
  line-height: 1.65;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 88px 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.2px;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(17, 31, 49, 0.09);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.94rem;
}

.nav-links a {
  color: #273140;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 0.58rem 1rem;
  font-size: 0.88rem;
  background: var(--ink);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.3);
}

.btn-ghost {
  border: 1px solid rgba(18, 24, 32, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
}

.btn-ghost.light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Parallax utama menggunakan background-attachment fixed di desktop */
.hero-bg {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=70");
  background-attachment: fixed;
  transform: scale(1.05);
}

.hero-overlay,
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 22, 0.48) 0%, rgba(8, 20, 30, 0.74) 100%);
}

.hero-content,
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #f7fbff;
  text-align: center;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.4px);
  opacity: 0.6;
  z-index: 1;
}

.parallax-node {
  --parallax-offset: 0px;
  transform: translate3d(0, var(--parallax-offset), 0);
  will-change: transform;
}

.shape-a {
  width: 260px;
  height: 260px;
  right: -70px;
  top: 12%;
  background: radial-gradient(circle, rgba(197, 157, 95, 0.82), rgba(197, 157, 95, 0));
}

.shape-b {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: 12%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.7), rgba(13, 148, 136, 0));
}

.about {
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fa 100%);
}

.about .grid-2 {
  align-items: center;
}

.about .section-heading,
.about .grid-2 > div {
  text-align: center;
}

.about .section-heading h2 {
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  max-width: 640px;
}

.section-heading.center {
  text-align: center;
}

.section-heading.center h2 {
  margin-inline: auto;
}

.cards {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(14, 30, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e7f3f1;
  margin-bottom: 12px;
  margin-inline: auto;
  font-size: 1.4rem;
}

.advantages {
  overflow: hidden;
}

.advantages .section-heading {
  text-align: center;
}

.advantages .section-heading h2 {
  margin-inline: auto;
}

.adv-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.adv-list {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
  color: #2d3642;
}

.adv-list li {
  margin: 0 0 12px;
}

.layer-box {
  position: relative;
  min-height: 280px;
}

.layer {
  position: absolute;
  border-radius: 22px;
}

/* Layer parallax: background bergerak lebih lambat dari foreground */
.layer-back {
  inset: 24px;
  background: linear-gradient(145deg, #dcebe8 0%, #d2e2ee 100%);
}

.layer-front {
  inset: 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e4e9f0;
  box-shadow: var(--shadow);
  text-align: center;
}

.portfolio-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0;
  border: 1px solid #dde2ea;
}

.project img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.project figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(10, 18, 26, 0) 0%, rgba(10, 18, 26, 0.84) 100%);
}

.project:hover img {
  transform: scale(1.06);
}

.testimonial p {
  color: #3f4a58;
}

.cta {
  min-height: 52vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Parallax CTA dengan overlay gelap untuk mempertahankan kontras teks */
.cta-bg {
  background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1920&q=72");
  background-attachment: fixed;
  transform: scale(1.08);
}

.cta-content {
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
  margin-inline: auto;
}

.footer {
  background: #121a24;
  color: #d7dde8;
  padding: 42px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer-grid > div {
  text-align: center;
}

.footer p,
.footer a {
  color: #b9c2d0;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .cards,
  .portfolio-grid,
  .footer-grid,
  .grid-2,
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 84vh;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 4vw;
    width: min(260px, 86vw);
    padding: 12px;
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    display: none;
    flex-direction: column;
    box-shadow: 0 14px 24px rgba(17, 31, 49, 0.11);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .btn-sm {
    display: none;
  }

  /* Nonaktifkan fixed attachment di mobile untuk performa yang lebih stabil */
  .hero-bg,
  .cta-bg {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn,
  .project img {
    transition: none;
  }
}
