:root {
  --bg: #f2f2f2;
  --text: #06090f;
  --muted: #646c74;
  --line: #d9dde2;
  --accent: #0aa89d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.theme-dark {
  --bg: #0a1114;
  --text: #e8eff2;
  --muted: #9db0b8;
  --line: #213138;
  --accent: #26c5b8;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wipe {
  position: fixed;
  inset: 0;
  background: #030507;
  transform-origin: top;
  z-index: 9999;
  pointer-events: none;
}

.page-wipe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, 45vw);
  aspect-ratio: 1/1;
  background: url("../img/logo-mark-ui.png") center/contain no-repeat;
  filter: drop-shadow(0 15px 35px rgba(255, 255, 255, 0.45));
}

.topbar {
  position: fixed;
  top: 22px;
  left: 0;
  width: 100%;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  font-size: 1.05rem;
  color: var(--muted);
}

.brand img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  image-rendering: auto;
  transform: translateZ(0);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.42));
}

.dock-nav {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 150px);
  opacity: 0;
  pointer-events: none;
  z-index: 220;
  display: flex;
  gap: 5px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.dock-nav.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

body.theme-dark .dock-nav {
  background: rgba(11, 25, 30, 0.8);
}

.nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.nav-icon.active,
.nav-icon:hover {
  background: rgba(38, 197, 184, 0.16);
  color: var(--accent);
}

.nav-icon::after {
  content: attr(data-label);
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #070c11;
  color: #fff;
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 5px 9px;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.nav-icon:hover::after,
.nav-icon.active::after {
  opacity: 1;
}

.icon-svg {
  width: 17px;
  height: 17px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* PERBAIKAN: Layout Panel agar tidak memencet elemen ke tengah */
.panel {
  min-height: 100svh;
  position: relative;
  padding:120px 28px 80px;
  width: 100%;
  overflow: hidden;
}

.intro-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 18% 14%, rgba(16, 195, 182, 0.2), transparent 35%), radial-gradient(circle at 80% 20%, rgba(16, 195, 182, 0.1), transparent 38%), var(--bg);
}

.about-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100svh;
  padding-top:120px;
  gap:40px;
}

.tech-marquee{
  margin-top:60px;
}

.works-panel {
  display: block;
  padding-top: 15vh;
  background: var(--bg);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 18% 86%, rgba(16, 195, 182, 0.18), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(16, 195, 182, 0.12), transparent 36%),
    var(--bg);
  transition: background-color 420ms ease;
}

.outro-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(180deg, var(--bg), rgba(38, 197, 184, 0.08), transparent);
  transform: translateY(-55%);
  opacity: 0.8;
  pointer-events: none;
  transition: transform 800ms cubic-bezier(.22,1,.36,1), opacity 800ms ease;
}

.outro-panel:hover::before {
  transform: translateY(0);
  opacity: 1;
}

.contact-orb {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 208, 190, 0.1), transparent 48%, rgba(20, 208, 190, 0.12)),
    radial-gradient(circle at 50% 46%, rgba(38, 197, 184, 0.12), transparent 32%);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 520ms ease, transform 720ms cubic-bezier(.22,1,.36,1), filter 520ms ease;
}

.outro-panel:hover .contact-orb {
  opacity: 1;
  transform: scale(1.04);
  filter: saturate(1.2);
}

.bg-orb {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 208, 190, 0.12), transparent 45%, rgba(20, 208, 190, 0.1));
  pointer-events: none;
}

.intro-name {
  text-align: center;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 16px;
}

/* FIX MOTION MARQUEE BARIS ATAS & BAWAH */
@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.marquee-line {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 10vw, 8.2rem);
  line-height: 0.96;
  white-space: nowrap;
  display: inline-block;
  animation: marquee-left 25s linear infinite;
}

.marquee-line.reverse {
  animation: marquee-right 25s linear infinite;
}

.next-arrow {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  z-index: 10;
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.theme-dark .next-arrow {
  background: rgba(7, 16, 18, 0.64);
}

.arrow-svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .next-arrow:hover {
    background: rgba(38, 197, 184, 0.1);
    border-color: var(--accent);
    color: var(--accent);
  }

  .next-arrow:hover .arrow-svg {
    animation: arrow-bounce 1s infinite ease-in-out;
  }
}

@keyframes arrow-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.section-transition{
  position:absolute;
  bottom:-80px;
  left:0;
  width:100%;
  height:160px;
  background:var(--bg);
  transform:translateY(60px);
  transition:transform .8s cubic-bezier(.22,1,.36,1);
  z-index:3;
}

.panel.intro-panel:hover .section-transition{
  transform:translateY(0);
}



/* BACKGROUND TEXT UNTUK ABOUT, SERVICES, WORKS */
.about-bg,
.services-bg,
.works-bg {
  position: absolute;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: rgba(8, 17, 25, 0.05);
  pointer-events: none;
  z-index: 0;
}

.about-bg {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3rem, 16vw, 14rem);
  line-height: 1;
}

.services-bg {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3rem, 15vw, 12rem);
  line-height: 1;
}

.works-bg {
  top: 18%;
  font-size: clamp(3rem, 17vw, 16rem);
}

body.theme-dark .about-bg,
body.theme-dark .services-bg,
body.theme-dark .works-bg {
  color: rgba(232, 241, 244, 0.04);
}

.about-wrap,
.content-wrap {
  width: min(1020px, 100%);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-fill-text {
  margin: 0 auto;
  max-width: min(1060px, 90vw);
  font-size: clamp(1.6rem, 4.1vw, 3.5rem);
  line-height: 1.12;
  font-weight: 500;
  text-wrap: balance;
  text-align: center;
}

.about-fill-word {
  color: var(--text);
  opacity: 0.15;
}

.about-stage {
  width: 100%;
}

.about-more-link {
  margin: 75px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(7, 17, 24, 0.1);
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  pointer-events: none;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.about-more-link.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.theme-dark .about-more-link {
  background: rgba(7, 17, 24, 0.68);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.about-more-link i {
  font-size: 1.15rem;
  transition: transform 220ms ease;
}

@media (hover: hover) {
  .about-more-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-4px) scale(1);
    box-shadow: 0 20px 40px rgba(38, 197, 184, 0.35);
  }

  .about-more-link:hover i {
    transform: translate(3px, -3px);
  }
}

/* TECH MARQUEE SERVICES */
.tech-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: min(1020px, 100%);
  margin: 50px auto 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(38, 197, 184, 0.02);
  position: relative;
  z-index: 2;
}

.tech-marquee::before,
.tech-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
}

.tech-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(38, 197, 184, 0.02));
}

.tech-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(38, 197, 184, 0.02));
}

.tech-track {
  display: inline-flex;
  align-items: center;
  gap: 70px;
  animation: scroll-left 25s linear infinite;
  padding: 0 80px;
  min-width: max-content;
  will-change: transform;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s ease;
  cursor: default;
}

.tech-item i {
  font-size: 3.2rem;
  color: var(--accent);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

@media (hover: hover) {
  .tech-item:hover {
    color: var(--text);
  }

  .tech-item:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 20px var(--accent);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px
}

.bento-item {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  text-align: left;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease
}

body.theme-dark .bento-item {
  background: rgba(0, 0, 0, .2)
}

.bento-item h3 {
  margin: 0 0 12px;
  font-size: 1.5rem
}

.bento-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6
}

.service-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  transition: transform .3s ease
}

.bento-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(38, 197, 184, .15)
}

.bento-item:hover .service-icon {
  transform: scale(1.15) rotate(5deg)
}

.works-list {
  width: min(980px, 100%);
  margin: auto;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.work-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 10px;
  border-bottom: 2px solid var(--line);
  transition: border-color 320ms ease;
  z-index: 1;
}

.work-item:first-child {
  border-top: 2px solid var(--line);
}

.work-item h3 {
  margin: 0 0 6px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-link {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text);
  position: static;
  flex-shrink: 0;
}

.work-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
}

.work-preview {
  position: relative;
  width: 240px;
  height: 160px;
  border-radius: 8px;
  background: radial-gradient(circle at 20% 20%, rgba(31, 206, 186, 0.52), transparent 42%), linear-gradient(135deg, #131821, #171f2b);
  background-size: cover;
  background-position: center;
  opacity: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 240ms ease;
}

.work-preview span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  color: #0b131b;
}

@media (hover: hover) and (pointer: fine) {
  .work-item:hover {
    background: transparent;
  }

  .work-item:hover .work-preview {
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
  }

  .work-item:hover h3,
  .work-item:hover .work-link {
    transform: none;
  }
}

.contact-wrap {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 420ms ease;
}

.outro-panel:hover .contact-wrap {
  transform: translateY(-8px);
}

.contact-status {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--muted);
  flex-wrap: wrap;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
  margin-right: 8px;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.giant-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
  transition: color 0.6s ease, -webkit-text-stroke 0.6s ease;
  text-align: center;
  width: 100%;
  filter: drop-shadow(0 20px 38px rgba(8, 17, 25, 0));
}

@media (hover: hover) {
  .outro-panel:hover .giant-text,
  .giant-text:hover {
    color: var(--text);
    -webkit-text-stroke: 0px transparent;
    filter: drop-shadow(0 24px 42px rgba(8, 17, 25, 0.08));
  }
}

.contact-action {
  margin-top: -20px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-magnetic {
  display: grid;
  place-items: center;
  width: clamp(120px, 15vw, 180px);
  aspect-ratio: 1/1;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 24px 54px rgba(10, 168, 157, 0.22);
  transition: transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

@media (hover: hover) {
  .outro-panel:hover .btn-magnetic,
  .btn-magnetic:hover {
    background: #088c82;
    color: #fff;
    box-shadow: 0 30px 70px rgba(10, 168, 157, 0.34);
  }
}

@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 16px;
  }

  body.theme-dark .work-item {
    background: rgba(0, 0, 0, 0.15);
  }

  .work-preview {
    width: 100%;
    max-width: 100%;
    height: 180px;
    opacity: 1;
    transform: none;
    margin: 15px 0;
    grid-row: 2;
  }

  .work-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 4;
    font-size: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 16px;
    top: 16px;
    font-size: 0.9rem;
    align-items: center;
  }

  .brand img {
    width: 65px;
    height: 65px;
  }

  .panel {
    padding: 90px 16px 70px;
  }

  .about-bg {
    font-size: clamp(2.5rem, 22vw, 5.6rem);
    top: 45%;
  }

  .services-bg {
    font-size: clamp(2.5rem, 20vw, 5.6rem);
  }

  .marquee-line {
    font-size: clamp(1.7rem, 11vw, 3rem);
  }

  .about-fill-text {
    font-size: clamp(1.2rem, 6vw, 2rem);
    line-height: 1.3;
    width: 100%;
  }

  .about-more-link {
    margin-top: 26px;
    padding: 12px 16px;
    font-size: 0.95rem;
    max-width: calc(100vw - 32px);
  }

  .bento-item {
    padding: 22px;
  }

  .next-arrow {
    bottom: 85px;
    width: 44px;
    height: 44px;
  }

  .dock-nav {
    bottom: 16px;
    padding: 6px 10px;
    width: calc(100% - 32px);
    justify-content: space-between;
  }

  .nav-icon {
    width: 38px;
    height: 38px;
  }

  .tech-marquee {
    margin: 40px -14px;
    padding: 18px 0;
  }

  .tech-track {
    gap: 40px;
    padding-right: 40px;
  }

  .tech-item {
    font-size: 1.4rem;
    gap: 8px;
  }

  .tech-item i {
    font-size: 2rem;
  }

  .giant-text {
    -webkit-text-stroke: 1px var(--line);
  }

  .contact-action {
    margin-top: -10px;
  }
}

