@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Pixelify+Sans:wght@400..700&display=swap");

:root {
  --font-main: "Inter", Arial, Helvetica, sans-serif;
  --font-pixel: "Pixelify Sans", "Courier New", monospace;

  --color-ink: #080808;
  --color-desktop-green: #14a10b;
  --color-window-yellow: #ffc326;
  --color-window-grey: #858585;
  --color-taskbar: rgba(150, 155, 145, 0.72);
  --color-focus: #050505;

  --color-cekopi-brown: #3b2b2a;
  --color-cekopi-brown-dark: #211818;
  --color-cekopi-brown-mid: #743927;
  --color-cekopi-cream: #f4efdc;
  --color-cekopi-tan: #b88755;
  --color-cekopi-orange: #b46400;

  --desktop-taskbar-height: 50px;
  --desktop-min-height: 520px;
  --desktop-icon-size: 68px;
  --desktop-icon-image-size: 38px;
  --desktop-center-icon-image-size: 44px;
  --desktop-icon-font-size: 11px;

  --note-width: 180px;
  --note-height: 161px;

  --hero-width: min(680px, 86vw);
  --hero-title-size: clamp(36px, 5vw, 54px);
  --hero-kicker-size: 15px;
  --hero-subtitle-size: 14px;

  --window-shadow: 6px 6px 0 rgba(0, 0, 0, 0.36);
  --window-border: 1px solid rgba(0, 0, 0, 0.65);
  --window-bar-height: 36px;
  --window-close-size: 24px;

  --window-about-width: min(420px, calc(100vw - 22px));
  --window-about-height: min(304px, calc(100% - 24px));
  --window-about-title-size: 22px;
  --window-about-meta-size: 8px;
  --window-about-copy-size: 13px;

  --window-project-width: min(1120px, calc(100vw - 28px));
  --window-project-height: min(680px, calc(100% - 48px));
  --window-stub-width: min(440px, calc(100vw - 30px));
  --window-stub-height: min(310px, calc(100% - 40px));

  --cekopi-copy-size: clamp(19px, 2vw, 25px);
  --cekopi-pipeline-title-size: clamp(44px, 6.7vw, 84px);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: #111;
  font-family: var(--font-main);
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .desktop {
  opacity: 0;
  transform: scale(0.996);
}

body.is-loading .taskbar {
  opacity: 0;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 320ms ease, visibility 320ms ease;
}

.splash__logo {
  width: min(220px, 42vw);
  height: auto;
  display: block;
  opacity: 0.92;
}

body.is-ready .splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.desktop,
.taskbar {
  transition: opacity 320ms ease, transform 320ms ease;
}

body.is-ready .desktop,
body.is-ready .taskbar {
  opacity: 1;
  transform: none;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.desktop {
  position: relative;
  height: calc(100dvh - var(--desktop-taskbar-height));
  min-height: var(--desktop-min-height);
  overflow: hidden;
  background: url("Assets/clouds.png") center / cover no-repeat;
}

.desktop-icons {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 10px;
}

.desktop-icons--projects {
  top: 8px;
  left: 8px;
  width: calc(var(--desktop-icon-size) + 4px);
}

.desktop-icon {
  width: var(--desktop-icon-size);
  min-height: var(--desktop-icon-size);
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  border: 0;
  color: var(--color-ink);
  background: transparent;
  font-size: var(--desktop-icon-font-size);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
}

.desktop-icon img {
  width: var(--desktop-icon-image-size);
  height: var(--desktop-icon-image-size);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.3));
}

.desktop-icon span {
  max-width: var(--desktop-icon-size);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.desktop-icon:focus-visible,
.taskbar a:focus-visible,
.project-buttons a:focus-visible,
.project-dots button:focus-visible,
.window__close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.desktop-icon:hover img,
.taskbar a:hover img {
  transform: translateY(-1px);
}

.project-note {
  position: absolute;
  top: 66px;
  left: min(118px, 15vw);
  z-index: 2;
  width: var(--note-width);
  height: var(--note-height);
  background: url("Assets/Note.png") center / contain no-repeat;
  pointer-events: none;
}

.hero {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  width: var(--hero-width);
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero p {
  width: max-content;
  margin: 0 auto -3px;
  font-size: var(--hero-kicker-size);
  font-weight: 800;
  text-align: left;
}

.hero h1 {
  margin: 0;
  font-size: var(--hero-title-size);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero h1 span {
  color: var(--color-desktop-green);
}

.hero strong {
  display: block;
  width: max-content;
  margin: 2px auto 20px;
  font-size: var(--hero-subtitle-size);
  font-weight: 800;
  text-align: right;
}

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

.desktop-icon--center {
  width: 72px;
  min-height: 64px;
  font-weight: 500;
}

.desktop-icon--center img {
  width: var(--desktop-center-icon-image-size);
  height: var(--desktop-center-icon-image-size);
}

.window {
  overflow: hidden;
  border: var(--window-border);
  background: #f8f8f8;
  box-shadow: var(--window-shadow);
}

.window--floating {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  display: none;
  transform: translate(-50%, -50%) scale(0.98);
}

.window--floating.is-open {
  display: flex;
  flex-direction: column;
  animation: window-in 130ms ease-out;
}

.window--floating .window__bar {
  cursor: grab;
}

.window--floating.is-dragging .window__bar {
  cursor: grabbing;
}

@keyframes window-in {
  from {
    transform: translate(-50%, -50%) scale(0.98);
  }

  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.window__bar {
  flex: 0 0 auto;
  min-height: var(--window-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  user-select: none;
  font-weight: 800;
}

.window__bar--yellow {
  background: var(--color-window-yellow);
  font-size: 14px;
}

.window__bar--project {
  min-height: 30px;
  background: var(--color-cekopi-orange);
  color: #130b04;
  font-size: 11px;
}

.window__bar--stub {
  min-height: 34px;
  color: var(--color-ink);
  background: var(--color-window-grey);
  font-size: 14px;
}

.window__close {
  width: var(--window-close-size);
  height: var(--window-close-size);
  border: 0;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--color-ink);
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.window__body {
  flex: 1 1 auto;
  min-height: 0;
}

.window--about {
  width: var(--window-about-width);
  max-width: calc(100vw - 22px);
  height: var(--window-about-height);
  border-radius: 5px;
}

.window__body--about {
  display: flex;
  flex-direction: column;
  background: #fbfbfb;
}

.about-top {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 8px;
}

.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.about-title {
  min-width: 0;
  text-align: left;
}

.about-title h2 {
  margin: 0 0 8px;
  font-size: var(--window-about-title-size);
  line-height: 1;
}

.about-title p {
  margin: 0;
  font-size: var(--window-about-meta-size);
  font-weight: 800;
  line-height: 1.25;
}

.about-qr {
  width: 48px;
  height: 48px;
  display: block;
  image-rendering: pixelated;
}

.about-copy {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 10px 8px;
  text-align: left;
  scrollbar-color: #777 #d3d3d3;
}

.about-copy p {
  margin: 0 0 18px;
  font-size: var(--window-about-copy-size);
  font-weight: 800;
  line-height: 1.15;
}

.about-copy::-webkit-scrollbar {
  width: 12px;
}

.about-copy::-webkit-scrollbar-track {
  background: #d3d3d3;
}

.about-copy::-webkit-scrollbar-thumb {
  background: #777;
  border-radius: 10px;
  border: 2px solid #d3d3d3;
}

.window--project {
  width: var(--window-project-width);
  max-width: calc(100vw - 28px);
  height: auto;
  background: #242424;
}

.window__body--project {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1948 / 1048;
  background: var(--color-cekopi-brown);
}

.project-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.project-section {
  height: 100%;
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-dots {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 5;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.project-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--color-cekopi-cream);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.project-dots button:hover {
  background: var(--color-cekopi-cream);
}

.project-dots button.is-active,
.project-dots button[aria-current="true"] {
  background: var(--color-cekopi-cream);
}

.cekopi-title {
  background: var(--color-cekopi-cream);
}

.cekopi-title-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: var(--color-cekopi-cream);
}

.cekopi-analysis {
  display: grid;
  grid-template-columns: 33.5% 66.5%;
  background: var(--color-cekopi-brown);
}

.cekopi-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 18px;
  color: var(--color-cekopi-cream);
}

.cekopi-copy p {
  max-width: 100%;
  margin: 0;
  font-size: var(--cekopi-copy-size);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.cekopi-roi {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-buttons {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.project-buttons a {
  width: min(194px, 100%);
  min-height: 52px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: rgba(84, 68, 68, 0.86) url("Assets/Button Base.png") center / 100% 100% no-repeat;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(244, 239, 220, 0.14);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.project-buttons img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

.project-buttons span {
  position: relative;
  min-width: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}

.project-buttons span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(54px, 100%);
  height: 1px;
  background: rgba(244, 239, 220, 0.72);
}

.cekopi-pipeline {
  padding: 26px 42px 20px;
  display: grid;
  align-content: center;
  gap: 18px;
  background: var(--color-cekopi-brown);
  color: var(--color-cekopi-cream);
}

.cekopi-pipeline h2 {
  margin: 0;
  color: var(--color-cekopi-cream);
  font-size: var(--cekopi-pipeline-title-size);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0;
}

.cekopi-pipeline h2 span {
  color: var(--color-cekopi-tan);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
}

.phone-shot {
  width: 100%;
  max-height: min(462px, 58vh);
  display: block;
  object-fit: contain;
}

.window--showcase {
  background: #202020;
}

.window--showcase .window__bar--yellow {
  min-height: 18px;
  padding: 2px 6px;
  font-size: 8px;
}

.window--showcase .window__close {
  width: 18px;
  height: 18px;
  font-size: 16px;
}

.window--game {
  width: min(1000px, calc(100vw - 28px), calc((100dvh - var(--desktop-taskbar-height) - 48px) * 1.88));
  height: auto;
  font-family: var(--font-pixel);
}

.window--watersat {
  width: min(1030px, calc(100vw - 28px), calc((100dvh - var(--desktop-taskbar-height) - 48px) * 2.04));
  height: auto;
}

.window__body--showcase {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.game-showcase {
  aspect-ratio: 1997 / 1047;
  background: #111;
}

.game-showcase--skybattle {
  aspect-ratio: 1997 / 1145;
}

.game-hero,
.game-play-section,
.watersat-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.game-hero img,
.game-play-section video,
.watersat-panel video,
.watersat-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-hero--cakequest img {
  object-position: center;
}

.game-hero--cakequest h2,
.game-hero--skybattle h2 {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: var(--font-pixel);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #263351;
  white-space: nowrap;
}

.game-hero--cakequest h2 {
  left: 18px;
  right: 18px;
  top: 54px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: clamp(18px, 3.2vw, 42px);
  line-height: 1;
}

.game-hero--cakequest h2 span:nth-child(1) {
  color: #eb3434;
}

.game-hero--cakequest h2 span:nth-child(2) {
  color: #f09b24;
}

.game-hero--cakequest h2 span:nth-child(3) {
  color: #fff34f;
}

.game-hero--cakequest h2 span:nth-child(4),
.game-hero--cakequest h2 span:nth-child(5) {
  color: #40db41;
}

.game-hero--skybattle h2 {
  left: 50%;
  top: 58%;
  width: min(94%, 920px);
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(18px, 3.4vw, 43px);
  line-height: 1;
  text-align: center;
}

.game-hero--skybattle h2 span {
  color: #f32539;
}

.project-description-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #050505;
  font-weight: 800;
}

.project-description-card p {
  margin: 0;
}

.project-description-card--game {
  left: 0;
  top: 0;
  bottom: 0;
  width: 31%;
  padding: 20px 18px 22px;
  border-radius: 0 0 42px 0;
  background: rgba(206, 206, 206, 0.67);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--font-pixel);
  font-weight: 700;
}

.project-description-card--game p {
  font-size: clamp(15px, 2.05vw, 23px);
  line-height: 1.05;
}

.project-buttons--compact {
  gap: 6px;
}

.project-buttons--compact a {
  width: min(178px, 100%);
  min-height: 48px;
  padding: 7px 15px;
  gap: 10px;
  border-radius: 24px;
  font-size: 16px;
}

.project-buttons--compact img {
  width: 24px;
  height: 24px;
}

.project-buttons--compact span {
  padding-bottom: 7px;
}

.project-buttons--compact span::after {
  width: min(52px, 100%);
}

.project-buttons--right {
  justify-items: end;
}

.watersat-showcase {
  aspect-ratio: 1996 / 980;
  background: #151515;
}

.watersat-panel--home video,
.watersat-panel--home img {
  object-position: center top;
}

.watersat-panel--analysis video {
  object-position: center;
}

.watersat-panel--map img {
  object-position: center;
}

.project-description-card--water {
  right: 0;
  top: 0;
  bottom: 0;
  width: 33%;
  padding: 24px 18px 24px 26px;
  border-radius: 32px 0 0 32px;
  background: rgba(199, 200, 190, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: right;
}

.project-description-card--water p {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.05;
}

.window--stub {
  width: var(--window-stub-width);
  max-width: calc(100vw - 30px);
  height: var(--window-stub-height);
  background: #fff;
  border-radius: 5px;
}

.window__body--stub {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.window__body--stub img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.window__body--stub h2,
.window__body--stub p {
  margin: 0;
}

.window__body--stub h2 {
  font-size: 34px;
}

.window__body--stub p {
  font-weight: 800;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--desktop-taskbar-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 5px 12px 5px 0;
  background: var(--color-taskbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.taskbar-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.taskbar-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.taskbar-apps {
  display: flex;
  align-items: end;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.taskbar-apps::-webkit-scrollbar {
  display: none;
}

.taskbar a {
  min-width: 36px;
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.taskbar a img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: transform 120ms ease;
}

@media (max-width: 780px) {
  :root {
    --desktop-min-height: 620px;
    --window-project-height: min(680px, calc(100% - 20px));
    --cekopi-copy-size: clamp(18px, 4.8vw, 22px);
  }

  body {
    overflow: auto;
  }

  .desktop {
    min-height: calc(100dvh - var(--desktop-taskbar-height));
  }

  .desktop-icons--projects {
    grid-template-columns: repeat(2, var(--desktop-icon-size));
    top: 8px;
    left: 8px;
    width: auto;
  }

  .project-note {
    top: 158px;
    left: 20px;
    width: 145px;
    height: 130px;
  }

  .hero {
    top: 54%;
    width: calc(100vw - 24px);
  }

  .hero h1 {
    font-size: clamp(30px, 9.2vw, 38px);
  }

  .window--floating {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.98) !important;
  }

  .window--project {
    width: calc(100vw - 28px);
    max-width: 360px;
    height: var(--window-project-height);
  }

  .window__body--project {
    flex: 1 1 auto;
    aspect-ratio: auto;
  }

  .window--about {
    width: calc(100vw - 22px);
  }

  .cekopi-title-image {
    object-fit: contain;
  }

  .cekopi-analysis {
    grid-template-columns: 1fr;
    grid-template-rows: 48% 52%;
  }

  .cekopi-copy {
    padding: 16px 24px 20px;
  }

  .cekopi-roi {
    min-height: 0;
  }

  .project-buttons {
    grid-template-columns: 1fr;
  }

  .project-buttons a {
    width: min(194px, 100%);
  }

  .project-buttons span {
    white-space: normal;
  }

  .phone-row {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }

  .phone-shot {
    max-height: 250px;
  }

  .project-dots {
    right: 8px;
  }

  .window--game,
  .window--watersat {
    width: calc(100vw - 28px);
  }

  .project-description-card--game {
    width: 38%;
    padding: 12px 10px;
    border-radius: 0 0 28px 0;
  }

  .project-description-card--game p {
    font-size: clamp(10px, 3.1vw, 13px);
  }

  .project-description-card--water {
    width: 36%;
    padding: 14px 10px 14px 16px;
  }

  .project-description-card--water p {
    font-size: clamp(10px, 2.8vw, 13px);
  }

  .game-hero--cakequest h2 {
    top: 24px;
    gap: 5px;
    font-size: clamp(14px, 4.6vw, 22px);
  }

  .game-hero--skybattle h2 {
    top: 58%;
    font-size: clamp(14px, 4.5vw, 22px);
  }

  .project-buttons--compact a {
    width: min(128px, 100%);
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 17px;
    font-size: 12px;
  }

  .project-buttons--compact img {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 520px) {
  :root {
    --desktop-taskbar-height: 58px;
    --window-about-title-size: 18px;
  }

  .taskbar {
    gap: 8px;
  }

  .taskbar-logo {
    width: 38px;
  }

  .taskbar-apps {
    gap: 12px;
  }

  .about-top {
    grid-template-columns: 62px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .about-avatar {
    width: 56px;
    height: 56px;
  }

  .about-qr {
    width: 38px;
    height: 38px;
  }

  .cekopi-pipeline {
    padding: 24px 20px 30px;
  }

  .project-buttons {
    grid-template-columns: 1fr;
  }
}
