  :root {
      --bg: #ffffff;
      --fg: #0a0a0a;
      --accent: #000000;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      font-family: "Times New Roman", Georgia, serif;
      background: var(--bg);
      color: var(--fg);
      overflow-x: hidden;
    }

    .page {
      min-height: 100dvh;
      display: grid;
      grid-template-columns: 1fr min(900px, 55vw);
      align-items: center;
    }

    /* Ruang kosong di kiri agar tampak seperti sketsa */
    .left-void { height: 100%; }

    .menu-3d {
      perspective: 1200px;               /* kedalaman perspektif */
      transform-style: preserve-3d;
      display: flex;
      right: 50px;
      position:fixed;
    }

    .stack {
      transform: rotateY(-25deg) rotateX(4deg) translateX(2vw);
      transform-origin: left center;
      display: grid;
      gap: 2.2rem;
    }

    .btn3d {
      z-index: 1;
       position: relative; 
      --shadow: 36px;                    /* blur bayangan */
      display: inline-block;
      text-decoration: none;
      font-weight: 900;
      letter-spacing: .04em;
      line-height: 1;
      color: var(--accent);
      font-size: clamp(2rem, 4vw, 4rem); /* responsif, besar seperti sketsa */
      text-shadow:
        0 0 0 var(--accent),
        0 0 var(--shadow) rgba(0,0,0,.35);
      filter: drop-shadow(0 20px 20px rgba(0,0,0,.18));
      transition: transform .25s ease, filter .25s ease, letter-spacing .25s ease;
      will-change: transform, filter;

}


.btn3d::before,
.btn3d::after {
		--z: 0px;
		position: absolute;
		top: 0;
		left: 0;
		display: block;
		content: '';
		width: 105%;
		height: 100%;
		opacity: 0;
		mix-blend-mode: inherit;
		border-radius: inherit;
		transform-style: preserve-3d;
		transform: translate3d(
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px)
		);
	}
	

.btn3d span {
  position: relative;
  z-index: 2; /* teks tetap terlihat */
}
	
	.btn3d:after {
		background-color: #5D00FF;
	}
	
.btn3d:before {
		background-color: #FF1731;
	}
	

	
.btn3d:hover:before {
		--z: 0.04;
		animation: translateWobble 1.3s ease forwards;
	}
	
.btn3d:hover:after {
		--z: -0.06;
		animation: translateWobble 1.3s ease forwards;
	}

  .btn3d2 {
      z-index: 1;
       position: relative; 
      --shadow: 36px;                    /* blur bayangan */
      display: inline-block;
      text-decoration: none;
      font-weight: 900;
      letter-spacing: .04em;
      line-height: 1;
      color: var(--accent);
      font-size: clamp(2rem, 4vw, 4rem); /* responsif, besar seperti sketsa */
      text-shadow:
        0 0 0 var(--accent),
        0 0 var(--shadow) rgba(0,0,0,.35);
      filter: drop-shadow(0 20px 20px rgba(0,0,0,.18));
      transition: transform .25s ease, filter .25s ease, letter-spacing .25s ease;
      will-change: transform, filter;

}


.btn3d2::before,
.btn3d2::after {
		--z: 0px;
		position: absolute;
		top: 0;
		left: 0;
		display: block;
		content: '';
		width: 100%;
		height: 100%;
		opacity: 0;
		mix-blend-mode: inherit;
		border-radius: inherit;
		transform-style: preserve-3d;
		transform: translate3d(
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px)
		);
	}
	

.btn3d2 span {
  position: relative;
  z-index: 2; /* teks tetap terlihat */
}
	
	.btn3d2:after {
		background-color: #5D00FF;
	}
	
.btn3d2:before {
		background-color: #FF1731;
	}
	

	
.btn3d2:hover:before {
		--z: 0.04;
		animation: translateWobble 1.3s ease forwards;
	}
	
.btn3d2:hover:after {
		--z: -0.06;
		animation: translateWobble 1.3s ease forwards;
	}

@keyframes translateWobble {
  0% {
		opacity: 0;
		transform: translate3d(
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px), 
			calc(var(--z) * 0px)
		);
  }
  16% {
		transform: translate3d(
			calc(var(--z) * 160px), 
			calc(var(--z) * 160px), 
			calc(var(--z) * 160px)
		);
  }
  28% {
		opacity: 1;
		transform: translate3d(
			calc(var(--z) * 70px), 
			calc(var(--z) * 70px), 
			calc(var(--z) * 70px)
		);
  }
  44% {
		transform: translate3d(
			calc(var(--z) * 130px), 
			calc(var(--z) * 130px), 
			calc(var(--z) * 130px)
		);
  }
  59% {
		transform: translate3d(
			calc(var(--z) * 85px), 
			calc(var(--z) * 85px), 
			calc(var(--z) * 85px)
		);
  }
  73% {
		transform: translate3d(
			calc(var(--z) * 110px), 
			calc(var(--z) * 110px), 
			calc(var(--z) * 110px)
		);
  }
	88% {
		opacity: 1;
		transform: translate3d(
			calc(var(--z) * 90px), 
			calc(var(--z) * 90px), 
			calc(var(--z) * 90px)
		);
  }
  100% {
		opacity: 1;
		transform: translate3d(
			calc(var(--z) * 100px), 
			calc(var(--z) * 100px), 
			calc(var(--z) * 100px)
		);
  }
}


/* Tombol pertama */
.stack .btn3d:nth-child(1) {
  transform: translateX(-2vw)  ;
  color: orange;
}

/* Tombol kedua */
.stack .btn3d:nth-child(2) {

  color: orange;
}

/* Tombol ketiga */
.stack .btn3d2:nth-child(3) {
  transform: translateX(4vw) ;
  color: orange;
}

/* Tombol keempat */
.stack .btn3d:nth-child(4) {

  color: orange;
}

/* Tombol kelima */
.stack .btn3d:nth-child(5) {
  transform: translateX(-2vw) ;
  color: orange;
}
    /* Fokus aksesibilitas */
    .btn3d:focus-visible { outline: 2px dashed currentColor; outline-offset: 6px; }

    /* Responsif small screens: susun tengah dan kurangi sudut */
    @media (max-width: 720px) {
      .page { grid-template-columns: 1fr; }
      .menu-3d { justify-content: center; }
      .stack { transform: rotateY(-15deg) rotateX(0) translateX(0); gap: 1.6rem; }
      .btn3d { text-align: center; }
    }