body {
  min-height: 100vh;
  padding-top: 72px;
  background-color: #f7f5ee;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-color: rgba(31, 41, 55, 0.12);
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(14px);
  transition:
    top 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
    left 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
    width 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
    border-radius 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
    background-color 350ms ease,
    box-shadow 350ms ease,
    transform 500ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.site-nav {
  transition:
    gap 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
    padding 500ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.site-header.island {
  top: 12px;
  left: 50%;
  width: min(480px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.94);
  box-shadow: 0 12px 34px rgba(20, 30, 40, 0.22);
  color: #fff;
}

.site-header.island .site-nav {
  width: 100%;
  max-width: 100%;
  gap: 1.25rem;
  margin: 0;
  padding: 0.55rem 1.1rem;
}

.site-header.island .site-nav a {
  color: #fff;
}

.site-header.island .site-nav a:hover {
  color: #bfdbfe;
}

.site-header.island .site-nav img {
  /* Jangan dipaksa kotak: rasio logo harus tetap (canvas 16:9),
     cukup tingginya aja yang dikecilin biar nggak gepeng. */
  width: auto;
  height: 2rem;
  object-fit: contain;
}

.portfolio-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex-direction: column;
  align-items: center;
}

.main-title {
  z-index: 3;
  margin-bottom: 2rem;
  /* Dikecilin dari clamp(4rem, 12vw, 11rem) -> 176px kepake buat 3 huruf doang.
     5.5rem = 88px biar "WIP: ON JOURNEYYY!!!" muat 1 baris di layar lebar. */
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  user-select: none;
}

.content-wrapper {
  position: relative;
  width: 100%;
  max-width: 950px;
  height: 560px;
}

.left-section,
.right-section {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
}

.left-section {
  top: 40px;
  left: -20px;
  gap: 20px;
}

.badge-card,
.menu-card {
  background-color: #1e1e1e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.badge-card {
  display: flex;
  width: 160px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
}

.rotated-left {
  transform: rotate(-6deg);
}

.edition-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-icons {
  display: flex;
  gap: 6px;
  font-size: 0.8rem;
}

.tagline {
  color: #2b2b2b;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.folder-container {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: min(480px, 100%);
  height: 520px;
  transform: translateX(-50%);
}

.folder-stage {
  display: flex;
  height: 280px;
  padding: 42px 0 0;
  align-items: flex-start;
  justify-content: center;
  perspective: 1200px;
}

.folder {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 320 / 220;
  --paper-side-shift: clamp(28px, 14vw, 45px);
  --paper-lift: clamp(55px, 21.875vw, 70px);
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .folder:hover {
    transform: translateY(-8px);
  }
}

.folder-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 0 12px 12px 12px;
  background: #e2b761;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.folder-back::before {
  position: absolute;
  top: -24px;
  left: 0;
  width: 110px;
  height: 26px;
  border-radius: 8px 8px 0 0;
  background: #d4a341;
  content: "";
}

.paper-stack {
  position: absolute;
  inset: 0;
}

.paper {
  position: absolute;
  top: 15%;
  left: 7.5%;
  display: flex;
  width: 85%;
  height: 80%;
  padding: 6px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 400ms ease;
}

.paper:focus-visible {
  outline: 3px solid #174d7e;
  outline-offset: 3px;
}

.paper img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.paper-1 {
  z-index: 2;
}

.paper-3 {
  z-index: 4;
}

.folder.open .paper-1 {
  opacity: 1;
  transform: translateY(calc(0px - var(--paper-lift))) translateX(calc(0px - var(--paper-side-shift))) rotate(-8deg);
}

.folder.open .paper-3 {
  opacity: 1;
  transform: translateY(calc(0px - var(--paper-lift))) translateX(var(--paper-side-shift)) rotate(8deg);
}

.folder-front {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 85%;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 0 12px 12px;
  background: #fbc531;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: #713f12;
  font: inherit;
  cursor: pointer;
  transform-origin: bottom;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), filter 300ms ease;
}

.folder-front::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.folder-front:focus-visible {
  outline: 3px solid #1f3864;
  outline-offset: 4px;
}

.folder.open .folder-front {
  transform: perspective(1000px) rotateX(-35deg) translateY(15px);
  filter: brightness(0.95);
}

.folder-label {
  z-index: 1;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.82);
  box-shadow: inset 0 1px 3px rgba(120, 53, 15, 0.12);
  color: #713f12;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 300ms ease;
}

.folder.open .folder-label {
  opacity: 0;
}

.vision-card {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e4dfd3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 48, 60, 0.08);
}

.vision-card h2 {
  font-size: 1rem;
  font-weight: 800;
}

.vision-card p {
  margin-top: 0.35rem;
  color: #555;
  font-size: 0.85rem;
  line-height: 1.55;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  width: min(720px, calc(100vw - 2rem));
  height: min(82vh, 780px);
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: #f7f5ee;
  color: #1e1e1e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
}

.photo-viewer::backdrop {
  background: rgba(19, 28, 40, 0.48);
  backdrop-filter: blur(9px);
}

.viewer-header,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.viewer-header span {
  color: #555;
  font-size: 0.85rem;
  font-weight: 700;
}

.viewer-close,
.viewer-nav {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded8ca;
  border-radius: 999px;
  background: #fff;
  color: #1e1e1e;
  cursor: pointer;
}

.viewer-close {
  font-size: 1.35rem;
}

.viewer-close:hover,
.viewer-nav:hover {
  background: #e9f3fc;
}

.viewer-image-wrap {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #e9e5dc;
}

.viewer-image-wrap img {
  display: block;
  max-width: 100%;
  max-height: min(58vh, 600px);
  object-fit: contain;
}

.viewer-caption {
  flex: 1;
  min-width: 0;
}

.viewer-caption h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.viewer-caption p {
  margin-top: 0.35rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.right-section {
  top: 30px;
  right: -10px;
  align-items: flex-end;
  gap: 25px;
}

.profile-info {
  text-align: right;
}

.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.subtitle {
  margin-top: 4px;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
}

.menu-card {
  width: 230px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.rotated-right {
  transform: rotate(4deg);
}

.menu-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.menu-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 0.8rem;
  font-weight: 500;
}

.menu-card a {
  color: inherit;
  text-decoration: none;
}

.menu-card a:hover {
  color: #fff;
}

.menu-icon {
  font-size: 0.75rem;
}

.check-icon {
  margin-left: auto;
  color: #fff;
  font-size: 0.8rem;
}

.float {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  padding: 0.75rem;
  /* border: 1px solid #1f3864; */
  border-radius: 6px;
  /* background: linear-gradient(145deg, #5a85d6, #4472c4); */
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  animation: float-drift 2.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.float.tl {
  left: calc(50% - 244px);
  top: 14%;
  --r: -15deg;
  --d: 0s;
  --sway: -4px;
  --lift: -22px;
}

.float.tr {
  right: calc(50% - 244px);
  top: 14%;
  --r: 25deg;
  --d: -0.8s;
  --sway: 4px;
  --lift: -18px;
}

.float.bl {
  left: calc(50% - 244px);
  bottom: 52.5%;
  --r: -25deg;
  --d: -1.2s;
  --sway: -3px;
  --lift: -20px;
}

.float.br {
  right: calc(50% - 244px);
  bottom: 52.5%;
  --r: -15deg;
  --d: -1.8s;
  --sway: 3px;
  --lift: -24px;
}

@keyframes float-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--r));
  }
  50% {
    transform: translate3d(var(--sway), var(--lift), 0) rotate(calc(var(--r) + 3deg));
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(var(--r));
  }
}

@media (max-width: 767px) {
  .site-header.island .site-nav {
    gap: 0.8rem;
    padding: 0.45rem 0.8rem;
  }

  .portfolio-container {
    padding: 2rem 1rem;
  }

  .content-wrapper {
    display: flex;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .left-section,
  .right-section,
  .folder-container {
    position: relative;
    inset: auto;
    transform: none;
    align-items: center;
    text-align: center;
  }

  .left-section {
    gap: 1rem;
  }

  .folder-container {
    width: 100%;
    max-width: 480px;
    height: auto;
  }

  .folder-container {
    text-align: left;
  }

  .vision-card {
    padding: 0.9rem 1rem;
  }

  .photo-viewer {
    width: calc(100vw - 1.5rem);
    height: min(88vh, 740px);
    max-height: calc(100vh - 1.5rem);
    padding: 0.75rem;
    border-radius: 14px;
  }

  .photo-viewer[open] {
    gap: 0.75rem;
  }

  .viewer-image-wrap img {
    max-height: 52vh;
  }

  .viewer-caption h2 {
    font-size: 1rem;
  }

  .viewer-caption p {
    font-size: 0.8rem;
  }

  .right-section {
    gap: 1rem;
  }

  .profile-info {
    text-align: center;
  }

  .float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav {
    transition-duration: 180ms;
    transition-timing-function: ease-out;
  }

  .float {
    animation-duration: 4.8s;
    --lift: -12px;
  }

  .folder,
  .paper,
  .folder-front,
  .folder-label {
    transition-duration: 0.01ms;
  }
}
